pub enum BoundarySite<G: Graph> {
Site(Site<G::Node, G::PortLabel>),
Wire {
id: usize,
end: EdgeEnd,
},
}
Expand description
A site of a boundary port.
Either a site of the graph or a site on an “imaginary” wire. As many such wires can be created as needed. For any wire ID, there may be at most one site for each end. Wires should be assigned increasing indices starting from 0.
Variants§
Implementations§
Trait Implementations§
Source§impl<G> Clone for BoundarySite<G>where
G: Graph,
impl<G> Clone for BoundarySite<G>where
G: Graph,
Source§impl<G> Debug for BoundarySite<G>
impl<G> Debug for BoundarySite<G>
Source§impl<'de, G: Graph> Deserialize<'de> for BoundarySite<G>
impl<'de, G: Graph> Deserialize<'de> for BoundarySite<G>
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<G> Hash for BoundarySite<G>
impl<G> Hash for BoundarySite<G>
Source§impl<G> Ord for BoundarySite<G>where
G: Graph,
impl<G> Ord for BoundarySite<G>where
G: Graph,
Source§impl<G> PartialEq for BoundarySite<G>where
G: Graph,
impl<G> PartialEq for BoundarySite<G>where
G: Graph,
Source§impl<G> PartialOrd for BoundarySite<G>where
G: Graph,
impl<G> PartialOrd for BoundarySite<G>where
G: Graph,
Source§impl<G: Graph> Serialize for BoundarySite<G>
impl<G: Graph> Serialize for BoundarySite<G>
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<G> Eq for BoundarySite<G>where
G: Graph,
Auto Trait Implementations§
impl<G> Freeze for BoundarySite<G>
impl<G> RefUnwindSafe for BoundarySite<G>
impl<G> Send for BoundarySite<G>
impl<G> Sync for BoundarySite<G>
impl<G> Unpin for BoundarySite<G>
impl<G> UnwindSafe for BoundarySite<G>
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