pub struct DummyNode;Expand description
Dummy node
Trait Implementations§
Source§impl DiagramRules<DummyEdge, DummyNode, ()> for DummyRules
impl DiagramRules<DummyEdge, DummyNode, ()> for DummyRules
Source§type Cofactors<'a> = Empty<Borrowed<'a, DummyEdge>>
type Cofactors<'a> = Empty<Borrowed<'a, DummyEdge>>
Iterator created by
DiagramRules::cofactors()Source§fn reduce<M>(
_manager: &M,
_level: LevelNo,
_children: impl IntoIterator<Item = DummyEdge>,
) -> ReducedOrNew<DummyEdge, DummyNode>
fn reduce<M>( _manager: &M, _level: LevelNo, _children: impl IntoIterator<Item = DummyEdge>, ) -> ReducedOrNew<DummyEdge, DummyNode>
Apply the reduction rule(s) Read more
impl Eq for DummyNode
Source§impl InnerNode<DummyEdge> for DummyNode
impl InnerNode<DummyEdge> for DummyNode
Source§type ChildrenIter<'a> = Empty<Borrowed<'a, DummyEdge>>
where
Self: 'a
type ChildrenIter<'a> = Empty<Borrowed<'a, DummyEdge>> where Self: 'a
Iterator over children of an inner node
Source§fn new(_level: LevelNo, _children: impl IntoIterator<Item = DummyEdge>) -> Self
fn new(_level: LevelNo, _children: impl IntoIterator<Item = DummyEdge>) -> Self
Create a new node Read more
Source§fn check_level(&self, _check: impl FnOnce(LevelNo) -> bool) -> bool
fn check_level(&self, _check: impl FnOnce(LevelNo) -> bool) -> bool
Returns the result of
check applied to the node’s level in case this
node type stores levels, otherwise returns true. Read moreSource§fn assert_level_matches(&self, _level: LevelNo)
fn assert_level_matches(&self, _level: LevelNo)
Panics if the node types stores a level and the node’s level is not
levelSource§fn children(&self) -> Self::ChildrenIter<'_>
fn children(&self) -> Self::ChildrenIter<'_>
Get the children of this node as an iterator
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
impl StructuralPartialEq for DummyNode
Auto Trait Implementations§
impl Freeze for DummyNode
impl RefUnwindSafe for DummyNode
impl Send for DummyNode
impl Sync for DummyNode
impl Unpin for DummyNode
impl UnsafeUnpin for DummyNode
impl UnwindSafe for DummyNode
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