Struct dot_parser::ast::NodeID
source · pub struct NodeID {
pub id: String,
pub port: Option<Port>,
}Expand description
This structure corresponds to the node_id non-terminal of the grammar.
If contains the identifier of the node, and possibly a port.
Fields§
§id: StringThe identifier of the node.
port: Option<Port>The port of the node, if any.
Trait Implementations§
source§impl Ord for NodeID
impl Ord for NodeID
source§impl PartialEq for NodeID
impl PartialEq for NodeID
source§impl PartialOrd for NodeID
impl PartialOrd for NodeID
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 moresource§impl<'a> TryFrom<Pair<'a, Rule>> for NodeID
impl<'a> TryFrom<Pair<'a, Rule>> for NodeID
§type Error = ParseError<'a>
type Error = ParseError<'a>
The type returned in the event of a conversion error.
impl Eq for NodeID
impl StructuralPartialEq for NodeID
Auto Trait Implementations§
impl Freeze for NodeID
impl RefUnwindSafe for NodeID
impl Send for NodeID
impl Sync for NodeID
impl Unpin for NodeID
impl UnwindSafe for NodeID
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