Struct dot_parser::subgraph_free::EdgeRHS
source · pub struct EdgeRHS {
pub to: NodeID,
pub next: Option<Box<EdgeRHS>>,
}Expand description
The Right hand side of an edge description. This corresponds to the
EdgeRHS non-terminal of the grammar.
Notice that the grammar allows multiple EdgeRHS in sequence, to chain edges:
A -> B -> C.
Notice that, contrary to Ast::EdgeRHS, Ast::FlatGraph::EdgeRHS can not contain a subgraph.
Fields§
§to: NodeIDThe identifier of the destination of the edge.
next: Option<Box<EdgeRHS>>A possible chained RHS.
Trait Implementations§
source§impl Ord for EdgeRHS
impl Ord for EdgeRHS
source§impl PartialEq for EdgeRHS
impl PartialEq for EdgeRHS
source§impl PartialOrd for EdgeRHS
impl PartialOrd for EdgeRHS
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for EdgeRHS
impl StructuralPartialEq for EdgeRHS
Auto Trait Implementations§
impl Freeze for EdgeRHS
impl RefUnwindSafe for EdgeRHS
impl Send for EdgeRHS
impl Sync for EdgeRHS
impl Unpin for EdgeRHS
impl UnwindSafe for EdgeRHS
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