pub struct SignalSet(_);
Expand description
Represents a set of Signal
values
Implementations
sourceimpl SignalSet
impl SignalSet
sourcepub fn contains(&self, sig: Signal) -> bool
pub fn contains(&self, sig: Signal) -> bool
Returns whether this set contains the given Signal
.
sourcepub fn contains_all(&self, other: SignalSet) -> bool
pub fn contains_all(&self, other: SignalSet) -> bool
Returns whether this set contains all signals present in another set.
sourcepub fn intersects(&self, other: SignalSet) -> bool
pub fn intersects(&self, other: SignalSet) -> bool
Returns whether this set contains any signals present in another set.
sourcepub fn difference(&self, other: SignalSet) -> SignalSet
pub fn difference(&self, other: SignalSet) -> SignalSet
Returns the difference of two sets.
The result is all signals contained in self
, except for those
also contained in other
.
This is equivalent to self - other
or self & !other
.
sourcepub fn symmetric_difference(&self, other: SignalSet) -> SignalSet
pub fn symmetric_difference(&self, other: SignalSet) -> SignalSet
Returns the symmetric difference of two sets.
The result is all signals contained in either set, but not those contained in both.
This is equivalent to self ^ other
.
sourcepub fn intersection(&self, other: SignalSet) -> SignalSet
pub fn intersection(&self, other: SignalSet) -> SignalSet
Returns the intersection of two sets.
The result is all signals contained in both sets, but not those contained in either one or the other.
This is equivalent to self & other
.
Trait Implementations
sourceimpl BitAndAssign<SignalSet> for SignalSet
impl BitAndAssign<SignalSet> for SignalSet
sourcefn bitand_assign(&mut self, rhs: SignalSet)
fn bitand_assign(&mut self, rhs: SignalSet)
Performs the
&=
operation. Read moresourceimpl BitOrAssign<SignalSet> for SignalSet
impl BitOrAssign<SignalSet> for SignalSet
sourcefn bitor_assign(&mut self, rhs: SignalSet)
fn bitor_assign(&mut self, rhs: SignalSet)
Performs the
|=
operation. Read moresourceimpl BitXorAssign<SignalSet> for SignalSet
impl BitXorAssign<SignalSet> for SignalSet
sourcefn bitxor_assign(&mut self, rhs: SignalSet)
fn bitxor_assign(&mut self, rhs: SignalSet)
Performs the
^=
operation. Read moresourceimpl Extend<Signal> for SignalSet
impl Extend<Signal> for SignalSet
sourcefn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = Signal>,
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = Signal>,
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl FromIterator<Signal> for SignalSet
impl FromIterator<Signal> for SignalSet
sourceimpl SubAssign<SignalSet> for SignalSet
impl SubAssign<SignalSet> for SignalSet
sourcefn sub_assign(&mut self, rhs: SignalSet)
fn sub_assign(&mut self, rhs: SignalSet)
Performs the
-=
operation. Read moreimpl Copy for SignalSet
impl Eq for SignalSet
impl StructuralEq for SignalSet
impl StructuralPartialEq for SignalSet
Auto Trait Implementations
impl RefUnwindSafe for SignalSet
impl Send for SignalSet
impl Sync for SignalSet
impl Unpin for SignalSet
impl UnwindSafe for SignalSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more