pub struct BoundPort<E> {
pub edge: E,
pub end: EdgeEnd,
}Expand description
A port that is connected to an edge.
This is given by a an edge and an edge end. This always determines the port uniquely.
Fields§
§edge: EThe edge
end: EdgeEndWhether it is the left or right end of the edge.
Implementations§
Trait Implementations§
Source§impl<'de, E> Deserialize<'de> for BoundPort<E>where
E: Deserialize<'de>,
impl<'de, E> Deserialize<'de> for BoundPort<E>where
E: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<E: Ord> Ord for BoundPort<E>
impl<E: Ord> Ord for BoundPort<E>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<E: PartialOrd> PartialOrd for BoundPort<E>
impl<E: PartialOrd> PartialOrd for BoundPort<E>
impl<E: Copy> Copy for BoundPort<E>
impl<E: Eq> Eq for BoundPort<E>
impl<E> StructuralPartialEq for BoundPort<E>
Auto Trait Implementations§
impl<E> Freeze for BoundPort<E>where
E: Freeze,
impl<E> RefUnwindSafe for BoundPort<E>where
E: RefUnwindSafe,
impl<E> Send for BoundPort<E>where
E: Send,
impl<E> Sync for BoundPort<E>where
E: Sync,
impl<E> Unpin for BoundPort<E>where
E: Unpin,
impl<E> UnwindSafe for BoundPort<E>where
E: 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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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