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 more
sourceimpl 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 more
sourceimpl 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 more
sourceimpl Extend<Signal> for SignalSet
impl Extend<Signal> for SignalSet
sourcefn extend<I: IntoIterator<Item = Signal>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = Signal>>(&mut self, iter: I)
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)
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
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 more
impl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more