pub enum Entry<R, N, B, const BOUND: bool>{
Node(Node<R, N, B, BOUND>),
Detached(DetachedEntry<R, N, B, BOUND>),
}
Variants§
Node(Node<R, N, B, BOUND>)
Detached(DetachedEntry<R, N, B, BOUND>)
Implementations§
Source§impl<R, N, B, const BOUND: bool> Entry<R, N, B, BOUND>
impl<R, N, B, const BOUND: bool> Entry<R, N, B, BOUND>
pub fn node(&self) -> Option<&Node<R, N, B, BOUND>>
pub fn detached(&self) -> Option<&DetachedEntry<R, N, B, BOUND>>
pub fn node_mut(&mut self) -> Option<&mut Node<R, N, B, BOUND>>
pub fn detached_mut(&mut self) -> Option<&mut DetachedEntry<R, N, B, BOUND>>
pub fn is_node(&self) -> bool
pub fn is_detached(&self) -> bool
pub fn branch(&self) -> Option<&B>
pub fn path(&self) -> &Path<B>
pub fn value(&self) -> Option<&N>
Source§impl<R, N, B> Entry<R, N, B, TREEBOUND>
impl<R, N, B> Entry<R, N, B, TREEBOUND>
Sourcepub fn apply_move<T>(&mut self, node: &Traversal<T, B>) -> Result<(), usize>
pub fn apply_move<T>(&mut self, node: &Traversal<T, B>) -> Result<(), usize>
Applies the movement of the given traversal node, ignoring the contained data.
No movement is made if the given node is a Start node or if the Step moves above the tree root.
pub fn apply_move_deref<T, C>(&mut self, node: &Traversal<T, C>) -> boolwhere
C: Deref<Target = B>,
Source§impl<R, N, B> Entry<R, N, B, TREEBOUND>
impl<R, N, B> Entry<R, N, B, TREEBOUND>
pub fn remove_subtree(self) -> Self
Source§impl<R, N, B, const BOUND: bool> Entry<R, N, B, BOUND>
impl<R, N, B, const BOUND: bool> Entry<R, N, B, BOUND>
pub fn and_modify<F>(self, f: F) -> Self
pub fn apply_data(&mut self, node: Traversal<N, B>) -> bool
Source§impl<R, N, B> Entry<R, N, B, TREEBOUND>
impl<R, N, B> Entry<R, N, B, TREEBOUND>
pub fn apply_extend(&mut self, node: Traversal<N, B>) -> bool
Source§impl<R, N, B, const BOUND: bool> Entry<R, N, B, BOUND>
impl<R, N, B, const BOUND: bool> Entry<R, N, B, BOUND>
pub fn offshoot_len(&self) -> usize
Trait Implementations§
Source§impl<R, N, B, const BOUND: bool> From<DetachedEntry<R, N, B, BOUND>> for Entry<R, N, B, BOUND>
impl<R, N, B, const BOUND: bool> From<DetachedEntry<R, N, B, BOUND>> for Entry<R, N, B, BOUND>
Source§fn from(value: DetachedEntry<R, N, B, BOUND>) -> Self
fn from(value: DetachedEntry<R, N, B, BOUND>) -> Self
Converts to this type from the input type.
Source§impl<R, N, B, const BOUND: bool> From<Result<DetachedEntry<R, N, B, BOUND>, Node<R, N, B, BOUND>>> for Entry<R, N, B, BOUND>
impl<R, N, B, const BOUND: bool> From<Result<DetachedEntry<R, N, B, BOUND>, Node<R, N, B, BOUND>>> for Entry<R, N, B, BOUND>
Auto Trait Implementations§
impl<R, N, B, const BOUND: bool> Freeze for Entry<R, N, B, BOUND>where
R: Freeze,
impl<R, N, B, const BOUND: bool> RefUnwindSafe for Entry<R, N, B, BOUND>where
R: RefUnwindSafe,
B: RefUnwindSafe,
impl<R, N, B, const BOUND: bool> Send for Entry<R, N, B, BOUND>
impl<R, N, B, const BOUND: bool> Sync for Entry<R, N, B, BOUND>
impl<R, N, B, const BOUND: bool> Unpin for Entry<R, N, B, BOUND>
impl<R, N, B, const BOUND: bool> UnwindSafe for Entry<R, N, B, BOUND>where
R: UnwindSafe,
B: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more