pub struct LedgerNode<T, M> { /* private fields */ }Implementations§
Source§impl<T, M> LedgerNode<T, M>
impl<T, M> LedgerNode<T, M>
pub fn root() -> Arc<Self>
pub fn from_parent(parent: &Arc<Self>, event: T) -> Arc<Self>
pub fn new_children(&self, event: T) -> Arc<Self>
pub fn children(&self) -> Vec<Arc<Self>>
pub fn event(&self) -> &T
pub fn uid(&self) -> Option<Uid>
pub fn insert(&self, event: impl Into<T>) -> Arc<Self>
pub fn get_chain(&self) -> Vec<Uid>
pub fn get_end_nodes(&self) -> Vec<Arc<Self>>
Trait Implementations§
impl<T, M> Send for LedgerNode<T, M>
impl<T, M> Sync for LedgerNode<T, M>
Auto Trait Implementations§
impl<T, M> !Freeze for LedgerNode<T, M>
impl<T, M> !RefUnwindSafe for LedgerNode<T, M>
impl<T, M> Unpin for LedgerNode<T, M>
impl<T, M> UnsafeUnpin for LedgerNode<T, M>where
T: UnsafeUnpin,
M: UnsafeUnpin,
impl<T, M> !UnwindSafe for LedgerNode<T, M>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more