pub trait AnimationMethods<D: DomTypes> {
// Required methods
fn GetEffect(&self) -> Option<DomRoot<D::AnimationEffect>>;
fn SetEffect(&self, value: Option<&D::AnimationEffect>);
fn GetTimeline(&self) -> Option<DomRoot<D::AnimationTimeline>>;
fn SetTimeline(&self, value: Option<&D::AnimationTimeline>);
fn Constructor(
cx: &mut JSContext,
global: &D::Window,
proto: Option<HandleObject<'_>>,
effect: Option<&D::AnimationEffect>,
timeline: Option<Option<&D::AnimationTimeline>>,
) -> DomRoot<D::Animation>;
}Required Methods§
fn GetEffect(&self) -> Option<DomRoot<D::AnimationEffect>>
fn SetEffect(&self, value: Option<&D::AnimationEffect>)
fn GetTimeline(&self) -> Option<DomRoot<D::AnimationTimeline>>
fn SetTimeline(&self, value: Option<&D::AnimationTimeline>)
fn Constructor( cx: &mut JSContext, global: &D::Window, proto: Option<HandleObject<'_>>, effect: Option<&D::AnimationEffect>, timeline: Option<Option<&D::AnimationTimeline>>, ) -> DomRoot<D::Animation>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.