Trait Instanceable

Source
pub trait Instanceable {
    // Required method
    fn iterate<F: FnMut(Option<*mut dyn Node>, *mut dyn Node, bool)>(
        self,
        iterator: F,
    );
}
Expand description

This marks any object that can be referenced in the NodeTree as either a node or a collection of nodes.

Required Methods§

Source

fn iterate<F: FnMut(Option<*mut dyn Node>, *mut dyn Node, bool)>( self, iterator: F, )

Goes through and iterates through all of the nodes that are represented by this collection. The arguments passed through are the pointers to the parent (if there is one), the node itself, and whether the node is an owner.

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§