pub struct PortConnectivity<TS> { /* private fields */ }
Expand description
Internal connectivity from one port to any number of opposing ports.
Implementations§
Source§impl<TS> PortConnectivity<TS>
impl<TS> PortConnectivity<TS>
Sourcepub fn insert(&mut self, index: usize, element: TS) -> boolwhere
TS: PartialOrder,
pub fn insert(&mut self, index: usize, element: TS) -> boolwhere
TS: PartialOrder,
Inserts an element by reference, ensuring that the index exists.
Sourcepub fn insert_ref(&mut self, index: usize, element: &TS) -> boolwhere
TS: PartialOrder + Clone,
pub fn insert_ref(&mut self, index: usize, element: &TS) -> boolwhere
TS: PartialOrder + Clone,
Inserts an element by reference, ensuring that the index exists.
Sourcepub fn add_port(&mut self, port: usize, summary: Antichain<TS>)
pub fn add_port(&mut self, port: usize, summary: Antichain<TS>)
Introduces a summary for port
. Panics if a summary already exists.
Sourcepub fn iter_ports(&self) -> impl Iterator<Item = (usize, &Antichain<TS>)>
pub fn iter_ports(&self) -> impl Iterator<Item = (usize, &Antichain<TS>)>
Borrowing iterator of port identifiers and antichains.
Trait Implementations§
Source§impl<TS: Clone> Clone for PortConnectivity<TS>
impl<TS: Clone> Clone for PortConnectivity<TS>
Source§fn clone(&self) -> PortConnectivity<TS>
fn clone(&self) -> PortConnectivity<TS>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<TS> Columnar for PortConnectivity<TS>
impl<TS> Columnar for PortConnectivity<TS>
Source§type Ref<'a> = PortConnectivityReference<<BTreeMap<usize, Antichain<TS>> as Columnar>::Ref<'a>>
where
BTreeMap<usize, Antichain<TS>>: 'a
type Ref<'a> = PortConnectivityReference<<BTreeMap<usize, Antichain<TS>> as Columnar>::Ref<'a>> where BTreeMap<usize, Antichain<TS>>: 'a
For each lifetime, a reference with that lifetime. Read more
Source§type Container = PortConnectivityContainer<<BTreeMap<usize, Antichain<TS>> as Columnar>::Container>
type Container = PortConnectivityContainer<<BTreeMap<usize, Antichain<TS>> as Columnar>::Container>
The type that stores the columnar representation. Read more
Source§fn copy_from<'a>(&mut self, other: Self::Ref<'a>)
fn copy_from<'a>(&mut self, other: Self::Ref<'a>)
Repopulates
self
from a reference. Read moreSource§fn into_owned<'a>(other: Self::Ref<'a>) -> Self
fn into_owned<'a>(other: Self::Ref<'a>) -> Self
Produce an instance of
Self
from Self::Ref<'a>
.Source§fn as_columns<'a, I>(selves: I) -> Self::Containerwhere
I: IntoIterator<Item = &'a Self>,
Self: 'a,
fn as_columns<'a, I>(selves: I) -> Self::Containerwhere
I: IntoIterator<Item = &'a Self>,
Self: 'a,
Converts a sequence of the references to the type into columnar form.
Source§fn into_columns<I>(selves: I) -> Self::Containerwhere
I: IntoIterator<Item = Self>,
Self: Sized,
fn into_columns<I>(selves: I) -> Self::Containerwhere
I: IntoIterator<Item = Self>,
Self: Sized,
Converts a sequence of the type into columnar form. Read more
Source§impl<TS> Container<PortConnectivity<TS>> for PortConnectivityContainer<<BTreeMap<usize, Antichain<TS>> as Columnar>::Container>
impl<TS> Container<PortConnectivity<TS>> for PortConnectivityContainer<<BTreeMap<usize, Antichain<TS>> as Columnar>::Container>
Source§impl<TS: Debug> Debug for PortConnectivity<TS>
impl<TS: Debug> Debug for PortConnectivity<TS>
Source§impl<TS> Default for PortConnectivity<TS>
impl<TS> Default for PortConnectivity<TS>
Source§impl<'de, TS> Deserialize<'de> for PortConnectivity<TS>where
TS: Deserialize<'de>,
impl<'de, TS> Deserialize<'de> for PortConnectivity<TS>where
TS: 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<TS> FromIterator<(usize, Antichain<TS>)> for PortConnectivity<TS>
impl<TS> FromIterator<(usize, Antichain<TS>)> for PortConnectivity<TS>
Source§impl<TS, R0> PartialEq<PortConnectivity<TS>> for PortConnectivityReference<R0>
impl<TS, R0> PartialEq<PortConnectivity<TS>> for PortConnectivityReference<R0>
Source§impl<TS: PartialEq> PartialEq for PortConnectivity<TS>
impl<TS: PartialEq> PartialEq for PortConnectivity<TS>
Source§impl<'columnar, TS, C0> Push<&'columnar PortConnectivity<TS>> for PortConnectivityContainer<C0>
impl<'columnar, TS, C0> Push<&'columnar PortConnectivity<TS>> for PortConnectivityContainer<C0>
Source§fn push(&mut self, item: &'columnar PortConnectivity<TS>)
fn push(&mut self, item: &'columnar PortConnectivity<TS>)
Pushes an item onto
self
.Source§fn extend(&mut self, iter: impl IntoIterator<Item = T>)
fn extend(&mut self, iter: impl IntoIterator<Item = T>)
Pushes elements of an iterator onto
self
.Source§impl<TS, C0> Push<PortConnectivity<TS>> for PortConnectivityContainer<C0>
impl<TS, C0> Push<PortConnectivity<TS>> for PortConnectivityContainer<C0>
Source§fn push(&mut self, item: PortConnectivity<TS>)
fn push(&mut self, item: PortConnectivity<TS>)
Pushes an item onto
self
.Source§fn extend(&mut self, iter: impl IntoIterator<Item = T>)
fn extend(&mut self, iter: impl IntoIterator<Item = T>)
Pushes elements of an iterator onto
self
.Source§impl<TS> Serialize for PortConnectivity<TS>where
TS: Serialize,
impl<TS> Serialize for PortConnectivity<TS>where
TS: Serialize,
impl<TS: Eq> Eq for PortConnectivity<TS>
impl<TS> StructuralPartialEq for PortConnectivity<TS>
Auto Trait Implementations§
impl<TS> Freeze for PortConnectivity<TS>
impl<TS> RefUnwindSafe for PortConnectivity<TS>where
TS: RefUnwindSafe,
impl<TS> Send for PortConnectivity<TS>where
TS: Send,
impl<TS> Sync for PortConnectivity<TS>where
TS: Sync,
impl<TS> Unpin for PortConnectivity<TS>
impl<TS> UnwindSafe for PortConnectivity<TS>where
TS: RefUnwindSafe,
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> 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.