Skip to main content

TdmSlotMask

Struct TdmSlotMask 

Source
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 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.

Source§

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 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.

Source§

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.

Source§

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 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 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 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.

Source§

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 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.

Source§

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.

Source§

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 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 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 Clone for TdmSlotMask

Source§

fn clone(&self) -> TdmSlotMask

Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for TdmSlotMask

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 Eq for TdmSlotMask

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.

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable)§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for TdmSlotMask

Auto Trait Implementations§

§

impl Freeze for TdmSlotMask

§

impl RefUnwindSafe for TdmSlotMask

§

impl Send for TdmSlotMask

§

impl Sync for TdmSlotMask

§

impl Unpin for TdmSlotMask

§

impl UnsafeUnpin 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> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 = !

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

fn try_from(value: U) -> Result<T, !>

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.