Skip to main content

AnimationMethods

pub trait AnimationMethods<D: DomTypes> {
    // Required method
    fn Constructor(
        cx: &mut JSContext,
        global: &D::Window,
        proto: Option<HandleObject<'_>>,
        effect: Option<&D::AnimationEffect>,
    ) -> DomRoot<D::Animation>;
}

Required Methods§

Source

fn Constructor( cx: &mut JSContext, global: &D::Window, proto: Option<HandleObject<'_>>, effect: Option<&D::AnimationEffect>, ) -> 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.

Implementors§