pub struct ProjectedNode<Id> { /* private fields */ }Expand description
A node in the flat visible tree projection.
Implementations§
Source§impl<Id: Copy> ProjectedNode<Id>
impl<Id: Copy> ProjectedNode<Id>
pub const fn id(self) -> Id
pub const fn parent(self) -> Option<Id>
Sourcepub const fn parent_index(self) -> Option<usize>
pub const fn parent_index(self) -> Option<usize>
Возвращает индекс родительского вхождения в проекции строк.
В отличие от Self::parent, различает повторные вхождения одной вершины
модели в проекции DAG.
pub const fn level(self) -> usize
pub const fn is_last_sibling(self) -> bool
pub const fn visible_child_count(self) -> usize
pub const fn expansion(self) -> TreeExpansionState
pub const fn match_state(self) -> TreeMatchState
Trait Implementations§
Source§impl<Id: Clone> Clone for ProjectedNode<Id>
impl<Id: Clone> Clone for ProjectedNode<Id>
Source§fn clone(&self) -> ProjectedNode<Id>
fn clone(&self) -> ProjectedNode<Id>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<Id: Copy> Copy for ProjectedNode<Id>
Source§impl<Id: Debug> Debug for ProjectedNode<Id>
impl<Id: Debug> Debug for ProjectedNode<Id>
impl<Id: Eq> Eq for ProjectedNode<Id>
Source§impl<Id: PartialEq> PartialEq for ProjectedNode<Id>
impl<Id: PartialEq> PartialEq for ProjectedNode<Id>
impl<Id: PartialEq> StructuralPartialEq for ProjectedNode<Id>
Auto Trait Implementations§
impl<Id> Freeze for ProjectedNode<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for ProjectedNode<Id>where
Id: RefUnwindSafe,
impl<Id> Send for ProjectedNode<Id>where
Id: Send,
impl<Id> Sync for ProjectedNode<Id>where
Id: Sync,
impl<Id> Unpin for ProjectedNode<Id>where
Id: Unpin,
impl<Id> UnsafeUnpin for ProjectedNode<Id>where
Id: UnsafeUnpin,
impl<Id> UnwindSafe for ProjectedNode<Id>where
Id: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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