Struct dot_parser::ast::EdgeStmt
source · [−]pub struct EdgeStmt<'a, A = (&'a str, &'a str)> {
pub node: NodeID<'a>,
pub next: EdgeRHS<'a>,
pub attr: Option<AttrList<'a, A>>,
}
Expand description
The description of an edge. This corresponds to the edge_stmt
non-terminal
of the grammar.
Fields
node: NodeID<'a>
The origin of the edge.
next: EdgeRHS<'a>
The destination of the edge.
attr: Option<AttrList<'a, A>>
The attributes of the edge.
Trait Implementations
sourceimpl<'a, A: Ord> Ord for EdgeStmt<'a, A>
impl<'a, A: Ord> Ord for EdgeStmt<'a, A>
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<'a, A: PartialEq> PartialEq<EdgeStmt<'a, A>> for EdgeStmt<'a, A>
impl<'a, A: PartialEq> PartialEq<EdgeStmt<'a, A>> for EdgeStmt<'a, A>
sourceimpl<'a, A: PartialOrd> PartialOrd<EdgeStmt<'a, A>> for EdgeStmt<'a, A>
impl<'a, A: PartialOrd> PartialOrd<EdgeStmt<'a, A>> for EdgeStmt<'a, A>
sourcefn partial_cmp(&self, other: &EdgeStmt<'a, A>) -> Option<Ordering>
fn partial_cmp(&self, other: &EdgeStmt<'a, A>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl<'a, A: Eq> Eq for EdgeStmt<'a, A>
impl<'a, A> StructuralEq for EdgeStmt<'a, A>
impl<'a, A> StructuralPartialEq for EdgeStmt<'a, A>
Auto Trait Implementations
impl<'a, A> RefUnwindSafe for EdgeStmt<'a, A>where
A: RefUnwindSafe,
impl<'a, A> Send for EdgeStmt<'a, A>where
A: Send,
impl<'a, A> Sync for EdgeStmt<'a, A>where
A: Sync,
impl<'a, A> Unpin for EdgeStmt<'a, A>where
A: Unpin,
impl<'a, A> UnwindSafe for EdgeStmt<'a, A>where
A: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more