Struct linefeed::terminal::SignalSet [−][src]
pub struct SignalSet(_);
Represents a set of Signal
values
Methods
impl SignalSet
[src]
impl SignalSet
pub fn new() -> SignalSet
[src]
pub fn new() -> SignalSet
Returns an empty SignalSet
.
pub fn all() -> SignalSet
[src]
pub fn all() -> SignalSet
Returns a SignalSet
containing all available signals.
pub fn contains(&self, sig: Signal) -> bool
[src]
pub fn contains(&self, sig: Signal) -> bool
Returns whether this set contains the given Signal
.
pub fn contains_all(&self, other: SignalSet) -> bool
[src]
pub fn contains_all(&self, other: SignalSet) -> bool
Returns whether this set contains all signals present in another set.
pub fn intersects(&self, other: SignalSet) -> bool
[src]
pub fn intersects(&self, other: SignalSet) -> bool
Returns whether this set contains any signals present in another set.
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
Returns whether this set contains any signals.
pub fn insert(&mut self, sig: Signal)
[src]
pub fn insert(&mut self, sig: Signal)
Inserts a Signal
into this set.
pub fn remove(&mut self, sig: Signal)
[src]
pub fn remove(&mut self, sig: Signal)
Removes a Signal
from this set.
pub fn set(&mut self, sig: Signal, set: bool)
[src]
pub fn set(&mut self, sig: Signal, set: bool)
Sets whether this set contains the given Signal
.
pub fn difference(&self, other: SignalSet) -> SignalSet
[src]
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
.
pub fn symmetric_difference(&self, other: SignalSet) -> SignalSet
[src]
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
.
pub fn intersection(&self, other: SignalSet) -> SignalSet
[src]
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
.
pub fn union(&self, other: SignalSet) -> SignalSet
[src]
pub fn union(&self, other: SignalSet) -> SignalSet
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]
pub fn inverse(&self) -> SignalSet
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]
impl BitAnd<SignalSet> for SignalSet
type Output = SignalSet
The resulting type after applying the &
operator.
fn bitand(self, rhs: SignalSet) -> SignalSet
[src]
fn bitand(self, rhs: SignalSet) -> SignalSet
Performs the &
operation.
impl Extend<Signal> for SignalSet
[src]
impl Extend<Signal> for SignalSet
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = Signal>,
[src]
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = Signal>,
Extends a collection with the contents of an iterator. Read more
impl Sub<SignalSet> for SignalSet
[src]
impl Sub<SignalSet> for SignalSet
type Output = SignalSet
The resulting type after applying the -
operator.
fn sub(self, rhs: SignalSet) -> SignalSet
[src]
fn sub(self, rhs: SignalSet) -> SignalSet
Performs the -
operation.
impl Clone for SignalSet
[src]
impl Clone for SignalSet
fn clone(&self) -> SignalSet
[src]
fn clone(&self) -> SignalSet
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for SignalSet
[src]
impl Debug for SignalSet
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<Signal> for SignalSet
[src]
impl From<Signal> for SignalSet
impl BitOr<SignalSet> for SignalSet
[src]
impl BitOr<SignalSet> for SignalSet
type Output = SignalSet
The resulting type after applying the |
operator.
fn bitor(self, rhs: SignalSet) -> SignalSet
[src]
fn bitor(self, rhs: SignalSet) -> SignalSet
Performs the |
operation.
impl FromIterator<Signal> for SignalSet
[src]
impl FromIterator<Signal> for SignalSet
fn from_iter<I>(iter: I) -> SignalSet where
I: IntoIterator<Item = Signal>,
[src]
fn from_iter<I>(iter: I) -> SignalSet where
I: IntoIterator<Item = Signal>,
Creates a value from an iterator. Read more
impl Default for SignalSet
[src]
impl Default for SignalSet
impl SubAssign<SignalSet> for SignalSet
[src]
impl SubAssign<SignalSet> for SignalSet
fn sub_assign(&mut self, rhs: SignalSet)
[src]
fn sub_assign(&mut self, rhs: SignalSet)
Performs the -=
operation.
impl BitXor<SignalSet> for SignalSet
[src]
impl BitXor<SignalSet> for SignalSet
type Output = SignalSet
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: SignalSet) -> SignalSet
[src]
fn bitxor(self, rhs: SignalSet) -> SignalSet
Performs the ^
operation.
impl Copy for SignalSet
[src]
impl Copy for SignalSet
impl BitAndAssign<SignalSet> for SignalSet
[src]
impl BitAndAssign<SignalSet> for SignalSet
fn bitand_assign(&mut self, rhs: SignalSet)
[src]
fn bitand_assign(&mut self, rhs: SignalSet)
Performs the &=
operation.
impl Eq for SignalSet
[src]
impl Eq for SignalSet
impl PartialEq<SignalSet> for SignalSet
[src]
impl PartialEq<SignalSet> for SignalSet
fn eq(&self, other: &SignalSet) -> bool
[src]
fn eq(&self, other: &SignalSet) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SignalSet) -> bool
[src]
fn ne(&self, other: &SignalSet) -> bool
This method tests for !=
.
impl BitXorAssign<SignalSet> for SignalSet
[src]
impl BitXorAssign<SignalSet> for SignalSet
fn bitxor_assign(&mut self, rhs: SignalSet)
[src]
fn bitxor_assign(&mut self, rhs: SignalSet)
Performs the ^=
operation.
impl Not for SignalSet
[src]
impl Not for SignalSet
type Output = SignalSet
The resulting type after applying the !
operator.
fn not(self) -> SignalSet
[src]
fn not(self) -> SignalSet
Performs the unary !
operation.
impl BitOrAssign<SignalSet> for SignalSet
[src]
impl BitOrAssign<SignalSet> for SignalSet
fn bitor_assign(&mut self, rhs: SignalSet)
[src]
fn bitor_assign(&mut self, rhs: SignalSet)
Performs the |=
operation.