pub struct TdmSlotMask(/* private fields */);
Expand description

Mask of TDM slots to enable.

Implementations§

source§

impl TdmSlotMask

source

pub fn from_mask_value(value: u16) -> Self

Creates a TdmSlotMask from the raw bit mask value.

source

pub fn is_empty(&self) -> bool

Indicates whether this slot mask is empty.

source

pub fn len(&self) -> usize

Returns the number of slots in the slot mask.

source

pub fn mask_value(&self) -> u16

Returns the mask value as a u16.

Trait Implementations§

source§

impl BitAnd<TdmSlot> for TdmSlotMask

Bitwise AND a TdmSlotMask with a TdmSlot to produce a TdmSlotMask.

If the slot mask contains the slot, the result is a TdmSlotMask containing that slot. Otherwise, the result is an empty slot mask.

§

type Output = TdmSlotMask

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: TdmSlot) -> Self::Output

Performs the & operation. Read more
source§

impl BitAnd<TdmSlotMask> for TdmSlot

Bitwise AND a TdmSlot with a TdmSlotMask to produce a TdmSlotMask.

If the slot mask contains the slot, the result is a TdmSlotMask containing that slot. Otherwise, the result is an empty slot mask.

§

type Output = TdmSlotMask

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: TdmSlotMask) -> Self::Output

Performs the & operation. Read more
source§

impl BitAnd for TdmSlotMask

Bitwise AND a TdmSlotMask with another TdmSlotMask to produce a TdmSlotMask.

The result is a slot mask containing the slots that are common to both slot masks.

§

type Output = TdmSlotMask

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
source§

impl BitAndAssign<TdmSlot> for TdmSlotMask

Bitwise AND a TdmSlotMask with a TdmSlot and assign the result to self.

If the slot mask contains the slot, the result is a TdmSlotMask containing that slot. Otherwise, the result is an empty slot mask.

source§

fn bitand_assign(&mut self, rhs: TdmSlot)

Performs the &= operation. Read more
source§

impl BitAndAssign for TdmSlotMask

Bitwise AND a TdmSlotMask with another TdmSlotMask and assign the result to self.

The result is a slot mask containing the slots that are common to both slot masks.

source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
source§

impl BitOr<TdmSlot> for TdmSlotMask

Bitwise OR aTdmSlotMask with a TdmSlot to produce a TdmSlotMask.

The result is a TdmSlotMask containing the slot and all slots in the slot mask.

§

type Output = TdmSlotMask

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: TdmSlot) -> Self::Output

Performs the | operation. Read more
source§

impl BitOr<TdmSlotMask> for TdmSlot

Bitwise OR aTdmSlot with a TdmSlotMask to produce a TdmSlotMask.

The result is a TdmSlotMask containing the slot and all slots in the slot mask.

§

type Output = TdmSlotMask

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: TdmSlotMask) -> Self::Output

Performs the | operation. Read more
source§

impl BitOr for TdmSlotMask

Bitwise OR aTdmSlotMask with another TdmSlotMask to produce a TdmSlotMask.

The result is a TdmSlotMask containing the slots in either slot mask.

§

type Output = TdmSlotMask

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
source§

impl BitOrAssign<TdmSlot> for TdmSlotMask

Bitwise OR aTdmSlotMask with a TdmSlot and assign the result to self.

The result is a TdmSlotMask containing the slot and all slots in the slot mask.

source§

fn bitor_assign(&mut self, rhs: TdmSlot)

Performs the |= operation. Read more
source§

impl BitOrAssign for TdmSlotMask

Bitwise OR aTdmSlotMask with another TdmSlotMask and assign the result to `self.

The result is a TdmSlotMask containing the slots in either slot mask.

source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
source§

impl Clone for TdmSlotMask

source§

fn clone(&self) -> TdmSlotMask

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TdmSlotMask

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for TdmSlotMask

source§

fn default() -> TdmSlotMask

Returns the “default value” for a type. Read more
source§

impl From<TdmSlot> for TdmSlotMask

Convert a TdmSlot into a TdmSlotMask.

source§

fn from(slot: TdmSlot) -> TdmSlotMask

Converts to this type from the input type.
source§

impl Not for TdmSlotMask

Produce the bitwise NOT of a TdmSlotMask to produce a TdmSlotMask containing all slots except the slots in the original slot mask.

§

type Output = TdmSlotMask

The resulting type after applying the ! operator.
source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
source§

impl PartialEq for TdmSlotMask

source§

fn eq(&self, other: &TdmSlotMask) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for TdmSlotMask

source§

impl Eq for TdmSlotMask

source§

impl StructuralPartialEq for TdmSlotMask

Auto Trait Implementations§

§

impl RefUnwindSafe for TdmSlotMask

§

impl Send for TdmSlotMask

§

impl Sync for TdmSlotMask

§

impl Unpin for TdmSlotMask

§

impl UnwindSafe for TdmSlotMask

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where 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>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.