pub struct Node<A> {
pub id: String,
pub port: Option<Port>,
pub attr: AList<A>,
}
Expand description
A single node of the graph.
Fields§
§id: String
The identifier of the node.
port: Option<Port>
The port of the node.
attr: AList<A>
The attributes that apply to this node.
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for Node<A>
impl<A> RefUnwindSafe for Node<A>where
A: RefUnwindSafe,
impl<A> Send for Node<A>where
A: Send,
impl<A> Sync for Node<A>where
A: Sync,
impl<A> Unpin for Node<A>where
A: Unpin,
impl<A> UnwindSafe for Node<A>where
A: UnwindSafe,
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