Struct mortal::signal::SignalSet
[−]
[src]
pub struct 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 Copy for SignalSet
[src]
impl Clone for SignalSet
[src]
fn clone(&self) -> SignalSet
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for SignalSet
[src]
impl Eq for SignalSet
[src]
impl PartialEq for SignalSet
[src]
fn eq(&self, __arg_0: &SignalSet) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SignalSet) -> bool
[src]
This method tests for !=
.
impl Debug for SignalSet
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<Signal> for SignalSet
[src]
impl Extend<Signal> for SignalSet
[src]
fn extend<I: IntoIterator<Item = Signal>>(&mut self, iter: I)
[src]
Extends a collection with the contents of an iterator. Read more
impl FromIterator<Signal> for SignalSet
[src]
fn from_iter<I: IntoIterator<Item = Signal>>(iter: I) -> SignalSet
[src]
Creates a value from an iterator. Read more
impl BitAnd for SignalSet
[src]
type Output = SignalSet
The resulting type after applying the &
operator.
fn bitand(self, rhs: SignalSet) -> SignalSet
[src]
Performs the &
operation.
impl BitOr for SignalSet
[src]
type Output = SignalSet
The resulting type after applying the |
operator.
fn bitor(self, rhs: SignalSet) -> SignalSet
[src]
Performs the |
operation.
impl BitXor for SignalSet
[src]
type Output = SignalSet
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: SignalSet) -> SignalSet
[src]
Performs the ^
operation.
impl Sub for SignalSet
[src]
type Output = SignalSet
The resulting type after applying the -
operator.
fn sub(self, rhs: SignalSet) -> SignalSet
[src]
Performs the -
operation.
impl Not for SignalSet
[src]
type Output = SignalSet
The resulting type after applying the !
operator.
fn not(self) -> SignalSet
[src]
Performs the unary !
operation.
impl BitAndAssign for SignalSet
[src]
fn bitand_assign(&mut self, rhs: SignalSet)
[src]
Performs the &=
operation.
impl BitOrAssign for SignalSet
[src]
fn bitor_assign(&mut self, rhs: SignalSet)
[src]
Performs the |=
operation.
impl BitXorAssign for SignalSet
[src]
fn bitxor_assign(&mut self, rhs: SignalSet)
[src]
Performs the ^=
operation.
impl SubAssign for SignalSet
[src]
fn sub_assign(&mut self, rhs: SignalSet)
[src]
Performs the -=
operation.