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§
fn try_from_val(val: Val) -> Result<Self, Error>where
Self: Sized,
fn try_into_val(&self) -> Result<Val, Error>
Provided Methods§
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.