pub struct DummyLevelView;Expand description
Dummy level view (not constructible)
Trait Implementations§
Source§impl LevelView<DummyEdge, DummyNode> for DummyLevelView
impl LevelView<DummyEdge, DummyNode> for DummyLevelView
Source§type Iterator<'a> = Empty<&'a DummyEdge>
where
Self: 'a,
DummyEdge: 'a
type Iterator<'a> = Empty<&'a DummyEdge> where Self: 'a, DummyEdge: 'a
Iterator over
Edges pointing to nodes at this levelSource§type Taken = DummyLevelView
type Taken = DummyLevelView
Taken level view, see
LevelView::take()Source§fn get(&self, _node: &DummyNode) -> Option<&DummyEdge>
fn get(&self, _node: &DummyNode) -> Option<&DummyEdge>
Get the edge corresponding to the given node (if present)
Source§fn insert(&mut self, _edge: DummyEdge) -> bool
fn insert(&mut self, _edge: DummyEdge) -> 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§unsafe fn insert_unchecked(&mut self, _edge: DummyEdge) -> bool
unsafe fn insert_unchecked(&mut self, _edge: DummyEdge) -> bool
Insert the given edge into the unique table at this level, assuming that
the referenced node is already stored in the associated manager. Unsafe
version of
Self::insert(). Read moreSource§fn get_or_insert(&mut self, _node: DummyNode) -> AllocResult<DummyEdge>
fn get_or_insert(&mut self, _node: DummyNode) -> AllocResult<DummyEdge>
Source§unsafe fn get_or_insert_unchecked(
&mut self,
_node: DummyNode,
) -> AllocResult<DummyEdge>
unsafe fn get_or_insert_unchecked( &mut self, _node: DummyNode, ) -> AllocResult<DummyEdge>
Get the edge corresponding to
level and node if present, or insert
it. Unsafe version of Self::get_or_insert() Read moreSource§fn remove(&mut self, _node: &DummyNode) -> bool
fn remove(&mut self, _node: &DummyNode) -> bool
Remove
node from (this level of) the manager Read moreSource§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 Freeze for DummyLevelView
impl RefUnwindSafe for DummyLevelView
impl Send for DummyLevelView
impl Sync for DummyLevelView
impl Unpin for DummyLevelView
impl UnsafeUnpin for DummyLevelView
impl UnwindSafe for DummyLevelView
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