Skip to main content

Node

Trait Node 

Source
pub trait Node: Sized {
    // Required methods
    fn id(&self) -> &NodeId;
    fn children(&self) -> &Children<Self>;
}
Expand description

A node of a tree, as far as its shape goes.

Required Methods§

Source

fn id(&self) -> &NodeId

Source

fn children(&self) -> &Children<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§