pub struct Site<N, P> {
pub node: N,
pub port: P,
}Expand description
Site: where ports can be connected.
Uniquely given by a node and a port label. There may be 0, 1 or multiple ports at the same site.
Fields§
§node: NThe node
port: PThe port label
Implementations§
Trait Implementations§
Source§impl<'de, N, P> Deserialize<'de> for Site<N, P>where
N: Deserialize<'de>,
P: Deserialize<'de>,
impl<'de, N, P> Deserialize<'de> for Site<N, P>where
N: Deserialize<'de>,
P: 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<N: Ord, P: Ord> Ord for Site<N, P>
impl<N: Ord, P: Ord> Ord for Site<N, P>
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<N: PartialOrd, P: PartialOrd> PartialOrd for Site<N, P>
impl<N: PartialOrd, P: PartialOrd> PartialOrd for Site<N, P>
Source§impl<G: Graph> TryFrom<BoundarySite<G>> for Site<G::Node, G::PortLabel>
impl<G: Graph> TryFrom<BoundarySite<G>> for Site<G::Node, G::PortLabel>
Source§type Error = BoundarySite<G>
type Error = BoundarySite<G>
The type returned in the event of a conversion error.
impl<N: Copy, P: Copy> Copy for Site<N, P>
impl<N: Eq, P: Eq> Eq for Site<N, P>
impl<N, P> StructuralPartialEq for Site<N, P>
Auto Trait Implementations§
impl<N, P> Freeze for Site<N, P>
impl<N, P> RefUnwindSafe for Site<N, P>where
N: RefUnwindSafe,
P: RefUnwindSafe,
impl<N, P> Send for Site<N, P>
impl<N, P> Sync for Site<N, P>
impl<N, P> Unpin for Site<N, P>
impl<N, P> UnwindSafe for Site<N, P>where
N: UnwindSafe,
P: 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