Struct fuel_merkle::common::Subtree
source · [−]pub struct Subtree<T> { /* private fields */ }
Implementations
sourceimpl<T> Subtree<T>
impl<T> Subtree<T>
pub fn new(node: T, next: Option<Box<Subtree<T>>>) -> Self
pub fn next(&self) -> &Option<Box<Subtree<T>>>
pub fn next_mut(&mut self) -> &mut Option<Box<Subtree<T>>>
pub fn take_next(&mut self) -> Option<Box<Subtree<T>>>
pub fn node(&self) -> &T
pub fn node_mut(&mut self) -> &mut T
pub fn next_node(&self) -> Option<&T>
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Subtree<T> where
T: RefUnwindSafe,
impl<T> Send for Subtree<T> where
T: Send,
impl<T> Sync for Subtree<T> where
T: Sync,
impl<T> Unpin for Subtree<T> where
T: Unpin,
impl<T> UnwindSafe for Subtree<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more