Enum fork_tree::FinalizationResult
source · [−]pub enum FinalizationResult<V> {
Changed(Option<V>),
Unchanged,
}
Expand description
Result of finalizing a node (that could be a part of the tree or not).
Variants
Changed(Option<V>)
The tree has changed, optionally return the value associated with the finalized node.
Unchanged
The tree has not changed.
Trait Implementations
sourceimpl<V: Debug> Debug for FinalizationResult<V>
impl<V: Debug> Debug for FinalizationResult<V>
sourceimpl<V: PartialEq> PartialEq<FinalizationResult<V>> for FinalizationResult<V>
impl<V: PartialEq> PartialEq<FinalizationResult<V>> for FinalizationResult<V>
sourcefn eq(&self, other: &FinalizationResult<V>) -> bool
fn eq(&self, other: &FinalizationResult<V>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FinalizationResult<V>) -> bool
fn ne(&self, other: &FinalizationResult<V>) -> bool
This method tests for !=
.
impl<V> StructuralPartialEq for FinalizationResult<V>
Auto Trait Implementations
impl<V> RefUnwindSafe for FinalizationResult<V> where
V: RefUnwindSafe,
impl<V> Send for FinalizationResult<V> where
V: Send,
impl<V> Sync for FinalizationResult<V> where
V: Sync,
impl<V> Unpin for FinalizationResult<V> where
V: Unpin,
impl<V> UnwindSafe for FinalizationResult<V> where
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more