Struct dot_parser::ast::NodeStmt
source · [−]pub struct NodeStmt<'a, A = (&'a str, &'a str)> {
pub node: NodeID<'a>,
pub attr: Option<AttrList<'a, A>>,
}
Expand description
This structure corresponds to the node_stmt
non-terminal of the grammar.
It is basically a node identifier attached to some attributes.
Fields
node: NodeID<'a>
The identifier of the node.
attr: Option<AttrList<'a, A>>
The possible list of attributes.
Implementations
Trait Implementations
sourceimpl<'a, A: Ord> Ord for NodeStmt<'a, A>
impl<'a, A: Ord> Ord for NodeStmt<'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<NodeStmt<'a, A>> for NodeStmt<'a, A>
impl<'a, A: PartialEq> PartialEq<NodeStmt<'a, A>> for NodeStmt<'a, A>
sourceimpl<'a, A: PartialOrd> PartialOrd<NodeStmt<'a, A>> for NodeStmt<'a, A>
impl<'a, A: PartialOrd> PartialOrd<NodeStmt<'a, A>> for NodeStmt<'a, A>
sourcefn partial_cmp(&self, other: &NodeStmt<'a, A>) -> Option<Ordering>
fn partial_cmp(&self, other: &NodeStmt<'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 NodeStmt<'a, A>
impl<'a, A> StructuralEq for NodeStmt<'a, A>
impl<'a, A> StructuralPartialEq for NodeStmt<'a, A>
Auto Trait Implementations
impl<'a, A> RefUnwindSafe for NodeStmt<'a, A>where
A: RefUnwindSafe,
impl<'a, A> Send for NodeStmt<'a, A>where
A: Send,
impl<'a, A> Sync for NodeStmt<'a, A>where
A: Sync,
impl<'a, A> Unpin for NodeStmt<'a, A>where
A: Unpin,
impl<'a, A> UnwindSafe for NodeStmt<'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