Trait NodeMetadata

Source
pub trait NodeMetadata:
    Sized
    + Copy
    + Default {
    // Required method
    fn merge(&mut self, other: &Self);
}
Expand description

Aggregated metadata for nodes, that can propagate up a node tree.

Required Methods§

Source

fn merge(&mut self, other: &Self)

Merges another NodeMetadata into this one.

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.

Implementations on Foreign Types§

Source§

impl NodeMetadata for ()

Source§

fn merge(&mut self, _: &Self)

Implementors§