[−][src]Struct mortal::signal::SignalSet
Represents a set of Signal
values
Methods
impl SignalSet
[src]
pub fn new() -> SignalSet
[src]
Returns an empty SignalSet
.
pub fn all() -> SignalSet
[src]
Returns a SignalSet
containing all available signals.
pub fn contains(&self, sig: Signal) -> bool
[src]
Returns whether this set contains the given Signal
.
pub fn contains_all(&self, other: SignalSet) -> bool
[src]
Returns whether this set contains all signals present in another set.
pub fn intersects(&self, other: SignalSet) -> bool
[src]
Returns whether this set contains any signals present in another set.
pub fn is_empty(&self) -> bool
[src]
Returns whether this set contains any signals.
pub fn insert(&mut self, sig: Signal)
[src]
Inserts a Signal
into this set.
pub fn remove(&mut self, sig: Signal)
[src]
Removes a Signal
from this set.
pub fn set(&mut self, sig: Signal, set: bool)
[src]
Sets whether this set contains the given Signal
.
pub fn difference(&self, other: SignalSet) -> SignalSet
[src]
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
.
pub fn symmetric_difference(&self, other: SignalSet) -> SignalSet
[src]
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
.
pub fn intersection(&self, other: SignalSet) -> SignalSet
[src]
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
.
pub fn union(&self, other: SignalSet) -> SignalSet
[src]
Returns the union of two sets.
The result is all signals contained in either or both sets.
This is equivalent to self | other
.
pub fn inverse(&self) -> SignalSet
[src]
Returns the inverse of the set.
The result is all valid signals not contained in this set.
This is equivalent to !self
.
Trait Implementations
impl BitAnd<SignalSet> for SignalSet
[src]
type Output = SignalSet
The resulting type after applying the &
operator.
fn bitand(self, rhs: SignalSet) -> SignalSet
[src]
impl BitAndAssign<SignalSet> for SignalSet
[src]
fn bitand_assign(&mut self, rhs: SignalSet)
[src]
impl BitOr<SignalSet> for SignalSet
[src]
type Output = SignalSet
The resulting type after applying the |
operator.
fn bitor(self, rhs: SignalSet) -> SignalSet
[src]
impl BitOrAssign<SignalSet> for SignalSet
[src]
fn bitor_assign(&mut self, rhs: SignalSet)
[src]
impl BitXor<SignalSet> for SignalSet
[src]
type Output = SignalSet
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: SignalSet) -> SignalSet
[src]
impl BitXorAssign<SignalSet> for SignalSet
[src]
fn bitxor_assign(&mut self, rhs: SignalSet)
[src]
impl Clone for SignalSet
[src]
impl Copy for SignalSet
[src]
impl Debug for SignalSet
[src]
impl Default for SignalSet
[src]
impl Eq for SignalSet
[src]
impl Extend<Signal> for SignalSet
[src]
fn extend<I: IntoIterator<Item = Signal>>(&mut self, iter: I)
[src]
impl From<Signal> for SignalSet
[src]
impl FromIterator<Signal> for SignalSet
[src]
fn from_iter<I: IntoIterator<Item = Signal>>(iter: I) -> SignalSet
[src]
impl Not for SignalSet
[src]
type Output = SignalSet
The resulting type after applying the !
operator.
fn not(self) -> SignalSet
[src]
impl PartialEq<SignalSet> for SignalSet
[src]
impl StructuralEq for SignalSet
[src]
impl StructuralPartialEq for SignalSet
[src]
impl Sub<SignalSet> for SignalSet
[src]
type Output = SignalSet
The resulting type after applying the -
operator.
fn sub(self, rhs: SignalSet) -> SignalSet
[src]
impl SubAssign<SignalSet> for SignalSet
[src]
fn sub_assign(&mut self, rhs: SignalSet)
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,