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: String
The 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 PartialOrd for NodeID
impl PartialOrd for NodeID
Source§impl<'a> TryFrom<Pair<'a, Rule>> for NodeID
impl<'a> TryFrom<Pair<'a, Rule>> for NodeID
Source§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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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