Trait TreeNode

Source
pub trait TreeNode:
    Debug
    + Clone
    + Display {
    // Required methods
    fn try_from_val(val: Val) -> Result<Self, Error>
       where Self: Sized;
    fn try_into_val(&self) -> Result<Val, Error>;

    // Provided method
    fn prepare_save(&mut self) { ... }
}

Required Methods§

Source

fn try_from_val(val: Val) -> Result<Self, Error>
where Self: Sized,

Source

fn try_into_val(&self) -> Result<Val, Error>

Provided Methods§

Source

fn prepare_save(&mut self)

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§

Source§

impl TreeNode for MTreeNode

Source§

impl<BK> TreeNode for BTreeNode<BK>
where BK: BKeys + Clone,