pub struct TakenLevelView<'a, 'id, N, ET, TM, R, MD, const TERMINALS: usize>where
N: NodeBase + InnerNode<Edge<'id, N, ET>>,
ET: Tag,
TM: TerminalManager<'id, N, ET, TERMINALS>,
MD: DropWith<Edge<'id, N, ET>>,{ /* private fields */ }Trait Implementations§
Source§impl<'id, N, ET, TM, R, MD, const TERMINALS: usize> Drop for TakenLevelView<'_, 'id, N, ET, TM, R, MD, TERMINALS>
impl<'id, N, ET, TM, R, MD, const TERMINALS: usize> Drop for TakenLevelView<'_, 'id, N, ET, TM, R, MD, TERMINALS>
Source§impl<'id, N, ET, TM, R, MD, const TERMINALS: usize> LevelView<Edge<'id, N, ET>, N> for TakenLevelView<'_, 'id, N, ET, TM, R, MD, TERMINALS>
impl<'id, N, ET, TM, R, MD, const TERMINALS: usize> LevelView<Edge<'id, N, ET>, N> for TakenLevelView<'_, 'id, N, ET, TM, R, MD, TERMINALS>
Source§type Iterator<'b> = LevelViewIter<'b, 'id, N, ET>
where
Self: 'b,
Edge<'id, N, ET>: 'b
type Iterator<'b> = LevelViewIter<'b, 'id, N, ET> where Self: 'b, Edge<'id, N, ET>: 'b
Iterator over
Edges pointing to nodes at this levelSource§type Taken = TakenLevelView<'_, 'id, N, ET, TM, R, MD, TERMINALS>
type Taken = TakenLevelView<'_, 'id, N, ET, TM, R, MD, TERMINALS>
Taken level view, see
LevelView::take()Source§fn get(&self, node: &N) -> Option<&Edge<'id, N, ET>>
fn get(&self, node: &N) -> Option<&Edge<'id, N, ET>>
Get the edge corresponding to the given node (if present)
Source§fn insert(&mut self, edge: Edge<'id, N, ET>) -> bool
fn insert(&mut self, edge: Edge<'id, N, ET>) -> bool
Insert the given edge into the unique table at this level, assuming that
the referenced node is already stored in the associated manager. Read more
Source§fn get_or_insert(&mut self, node: N) -> AllocResult<Edge<'id, N, ET>>
fn get_or_insert(&mut self, node: N) -> AllocResult<Edge<'id, N, ET>>
Source§unsafe fn swap(&mut self, other: &mut Self)
unsafe fn swap(&mut self, other: &mut Self)
Move all nodes from this level to the other level and vice versa. Read more
Auto Trait Implementations§
impl<'a, 'id, N, ET, TM, R, MD, const TERMINALS: usize> Freeze for TakenLevelView<'a, 'id, N, ET, TM, R, MD, TERMINALS>
impl<'a, 'id, N, ET, TM, R, MD, const TERMINALS: usize> !RefUnwindSafe for TakenLevelView<'a, 'id, N, ET, TM, R, MD, TERMINALS>
impl<'a, 'id, N, ET, TM, R, MD, const TERMINALS: usize> Send for TakenLevelView<'a, 'id, N, ET, TM, R, MD, TERMINALS>
impl<'a, 'id, N, ET, TM, R, MD, const TERMINALS: usize> Sync for TakenLevelView<'a, 'id, N, ET, TM, R, MD, TERMINALS>
impl<'a, 'id, N, ET, TM, R, MD, const TERMINALS: usize> Unpin for TakenLevelView<'a, 'id, N, ET, TM, R, MD, TERMINALS>
impl<'a, 'id, N, ET, TM, R, MD, const TERMINALS: usize> !UnwindSafe for TakenLevelView<'a, 'id, N, ET, TM, R, MD, TERMINALS>
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> 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