Trait orx_selfref_col::NodeData
source · pub trait NodeData<T> {
// Required methods
fn active(value: T) -> Self;
fn get(&self) -> Option<&T>;
fn get_mut(&mut self) -> Option<&mut T>;
fn swap_data(&mut self, new_value: T) -> T;
}
Expand description
Trait representing how the node data will be stored in a self referential collection.
Required Methods§
sourcefn get(&self) -> Option<&T>
fn get(&self) -> Option<&T>
Returns a reference to the stored value; returns None if the node is not active.
Object Safety§
This trait is not object safe.