[−][src]Struct linefeed::terminal::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 Clone for SignalSet
[src]
fn clone(&self) -> SignalSet
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl BitAndAssign<SignalSet> for SignalSet
[src]
fn bitand_assign(&mut self, rhs: 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 Eq for 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 Default for SignalSet
[src]
impl SubAssign<SignalSet> for SignalSet
[src]
fn sub_assign(&mut self, rhs: SignalSet)
[src]
impl Copy for SignalSet
[src]
impl BitAnd<SignalSet> for SignalSet
[src]
type Output = SignalSet
The resulting type after applying the &
operator.
fn bitand(self, rhs: SignalSet) -> SignalSet
[src]
impl BitOrAssign<SignalSet> for SignalSet
[src]
fn bitor_assign(&mut self, rhs: SignalSet)
[src]
impl FromIterator<Signal> for SignalSet
[src]
fn from_iter<I>(iter: I) -> SignalSet where
I: IntoIterator<Item = Signal>,
[src]
I: IntoIterator<Item = Signal>,
impl BitOr<SignalSet> for SignalSet
[src]
type Output = SignalSet
The resulting type after applying the |
operator.
fn bitor(self, rhs: SignalSet) -> SignalSet
[src]
impl From<Signal> for SignalSet
[src]
impl Extend<Signal> for SignalSet
[src]
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = Signal>,
[src]
I: IntoIterator<Item = Signal>,
impl PartialEq<SignalSet> for SignalSet
[src]
impl Debug for SignalSet
[src]
impl Not for SignalSet
[src]
type Output = SignalSet
The resulting type after applying the !
operator.
fn not(self) -> SignalSet
[src]
impl BitXorAssign<SignalSet> for SignalSet
[src]
fn bitxor_assign(&mut self, rhs: SignalSet)
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into 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> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,