Skip to main content

NoGcTraversal

Trait NoGcTraversal 

Source
pub(crate) trait NoGcTraversal {
    // Required methods
    fn parent<'a>(no_gc: &'a NoGC, node: &Node) -> Option<UnrootedDom<'a, Node>>;
    fn children<'a>(
        no_gc: &'a NoGC,
        node: &Node,
    ) -> impl Iterator<Item = UnrootedDom<'a, Node>>;
}

Required Methods§

Source

fn parent<'a>(no_gc: &'a NoGC, node: &Node) -> Option<UnrootedDom<'a, Node>>

Source

fn children<'a>( no_gc: &'a NoGC, node: &Node, ) -> impl Iterator<Item = UnrootedDom<'a, Node>>

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§