pub trait NodeType: Out + Sized {
// Required methods
fn into_node(self: Box<Self>) -> Node;
fn from_node(node: Node) -> Result<Box<Self>, Node>;
fn peek(node: &Node) -> Option<&Self>;
fn peek_mut(node: &mut Node) -> Option<&mut Self>;
}Expand description
A node type that is a variant of Node, with the casts of castNode and IsA.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".