[][src]Struct mortal::signal::SignalSet

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 BitAnd<SignalSet> for SignalSet[src]

type Output = SignalSet

The resulting type after applying the & operator.

impl BitAndAssign<SignalSet> for SignalSet[src]

impl BitOr<SignalSet> for SignalSet[src]

type Output = SignalSet

The resulting type after applying the | operator.

impl BitOrAssign<SignalSet> for SignalSet[src]

impl BitXor<SignalSet> for SignalSet[src]

type Output = SignalSet

The resulting type after applying the ^ operator.

impl BitXorAssign<SignalSet> for 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]

impl From<Signal> for SignalSet[src]

impl FromIterator<Signal> for SignalSet[src]

impl Not for SignalSet[src]

type Output = SignalSet

The resulting type after applying the ! operator.

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.

impl SubAssign<SignalSet> for SignalSet[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.