pub trait DocumentFragmentMethods<D>where
    D: DomTypes,{
    // Required methods
    fn GetElementById(
        &self,
        elementId: DOMString,
    ) -> Option<Root<Dom<<D as DomTypes>::Element>>>;
    fn Children(
        &self,
        _can_gc: CanGc,
    ) -> Root<Dom<<D as DomTypes>::HTMLCollection>>;
    fn GetFirstElementChild(
        &self,
    ) -> Option<Root<Dom<<D as DomTypes>::Element>>>;
    fn GetLastElementChild(&self) -> Option<Root<Dom<<D as DomTypes>::Element>>>;
    fn ChildElementCount(&self) -> u32;
    fn Prepend(
        &self,
        nodes: Vec<NodeOrString<D>>,
        _can_gc: CanGc,
    ) -> Result<(), Error>;
    fn Append(
        &self,
        nodes: Vec<NodeOrString<D>>,
        _can_gc: CanGc,
    ) -> Result<(), Error>;
    fn ReplaceChildren(
        &self,
        nodes: Vec<NodeOrString<D>>,
        _can_gc: CanGc,
    ) -> Result<(), Error>;
    fn QuerySelector(
        &self,
        selectors: DOMString,
    ) -> Result<Option<Root<Dom<<D as DomTypes>::Element>>>, Error>;
    fn QuerySelectorAll(
        &self,
        selectors: DOMString,
    ) -> Result<Root<Dom<<D as DomTypes>::NodeList>>, Error>;
    fn Constructor(
        global: &<D as DomTypes>::Window,
        proto: Option<Handle<'_, *mut JSObject>>,
        can_gc: CanGc,
    ) -> Result<Root<Dom<<D as DomTypes>::DocumentFragment>>, Error>;
}Required Methods§
fn GetElementById( &self, elementId: DOMString, ) -> Option<Root<Dom<<D as DomTypes>::Element>>>
fn Children(&self, _can_gc: CanGc) -> Root<Dom<<D as DomTypes>::HTMLCollection>>
fn GetFirstElementChild(&self) -> Option<Root<Dom<<D as DomTypes>::Element>>>
fn GetLastElementChild(&self) -> Option<Root<Dom<<D as DomTypes>::Element>>>
fn ChildElementCount(&self) -> u32
fn Prepend( &self, nodes: Vec<NodeOrString<D>>, _can_gc: CanGc, ) -> Result<(), Error>
fn Append( &self, nodes: Vec<NodeOrString<D>>, _can_gc: CanGc, ) -> Result<(), Error>
fn ReplaceChildren( &self, nodes: Vec<NodeOrString<D>>, _can_gc: CanGc, ) -> Result<(), Error>
fn QuerySelector( &self, selectors: DOMString, ) -> Result<Option<Root<Dom<<D as DomTypes>::Element>>>, Error>
fn QuerySelectorAll( &self, selectors: DOMString, ) -> Result<Root<Dom<<D as DomTypes>::NodeList>>, Error>
fn Constructor( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, ) -> Result<Root<Dom<<D as DomTypes>::DocumentFragment>>, 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.