[][src]Struct bluetooth_mesh::mesh::U24

pub struct U24(_);

24-bit Unsigned Integer. Commonly used for other 24-bit Unsigned types (IVIndex, SequenceNumber, Etc)

Methods

impl U24[src]

#[must_use] pub fn new(v: u32) -> U24[src]

#[must_use] pub const fn new_masked(v: u32) -> U24[src]

Creates a U24 by masking the 4th byte of 'v'

#[must_use] pub const fn value(self) -> u32[src]

#[must_use] pub const fn max_value() -> U24[src]

Trait Implementations

impl Add<U24> for U24[src]

type Output = U24

The resulting type after applying the + operator.

impl Clone for U24[src]

impl Copy for U24[src]

impl Debug for U24[src]

impl Default for U24[src]

impl Display for U24[src]

impl Eq for U24[src]

impl From<U24> for u32[src]

impl From<u16> for U24[src]

impl FromStr for U24[src]

type Err = U24ConversionError

The associated error which can be returned from parsing.

impl Hash for U24[src]

impl Ord for U24[src]

impl PartialEq<U24> for U24[src]

impl PartialOrd<U24> for U24[src]

impl StructuralEq for U24[src]

impl StructuralPartialEq for U24[src]

impl Sub<U24> for U24[src]

type Output = U24

The resulting type after applying the - operator.

impl ToFromBytesEndian for U24[src]

type AsBytesType = [u8; 3]

impl TryFrom<u32> for U24[src]

type Error = U24ConversionError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for U24

impl Send for U24

impl Sync for U24

impl Unpin for U24

impl UnwindSafe for U24

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> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,