pub(crate) trait CSSMethods<D>where
D: DomTypes,{
// Required methods
fn Escape(
global: &<D as DomTypes>::Window,
ident: DOMString,
) -> Result<DOMString, Error>;
fn Supports(
global: &<D as DomTypes>::Window,
property: DOMString,
value: DOMString,
) -> bool;
fn Supports_(
global: &<D as DomTypes>::Window,
conditionText: DOMString,
) -> bool;
fn PaintWorklet(
global: &<D as DomTypes>::Window,
) -> Root<Dom<<D as DomTypes>::Worklet>>;
fn RegisterProperty(
global: &<D as DomTypes>::Window,
definition: &PropertyDefinition,
) -> Result<(), Error>;
}
Required Methods§
fn Escape( global: &<D as DomTypes>::Window, ident: DOMString, ) -> Result<DOMString, Error>
fn Supports( global: &<D as DomTypes>::Window, property: DOMString, value: DOMString, ) -> bool
fn Supports_(global: &<D as DomTypes>::Window, conditionText: DOMString) -> bool
fn PaintWorklet( global: &<D as DomTypes>::Window, ) -> Root<Dom<<D as DomTypes>::Worklet>>
fn RegisterProperty( global: &<D as DomTypes>::Window, definition: &PropertyDefinition, ) -> Result<(), Error>
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.