[−][src]Struct bluetooth_mesh::mesh::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.
fn add(self, rhs: Self) -> Self::Output[src]
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.
fn from_str(s: &str) -> Result<Self, Self::Err>[src]
impl Hash for U24[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Ord for U24[src]
fn cmp(&self, other: &U24) -> Ordering[src]
#[must_use]
fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<U24> for U24[src]
impl PartialOrd<U24> for U24[src]
fn partial_cmp(&self, other: &U24) -> Option<Ordering>[src]
fn lt(&self, other: &U24) -> bool[src]
fn le(&self, other: &U24) -> bool[src]
fn gt(&self, other: &U24) -> bool[src]
fn ge(&self, other: &U24) -> bool[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.
fn sub(self, rhs: Self) -> Self::Output[src]
impl ToFromBytesEndian for U24[src]
type AsBytesType = [u8; 3]
#[must_use]
fn to_bytes_le(&self) -> Self::AsBytesType[src]
#[must_use]
fn to_bytes_be(&self) -> Self::AsBytesType[src]
#[must_use]
fn from_bytes_le(bytes: &[u8]) -> Option<Self>[src]
#[must_use]
fn from_bytes_be(bytes: &[u8]) -> Option<Self>[src]
#[must_use]
fn byte_size() -> usize[src]
#[must_use]
fn to_bytes_ne(&self) -> Self::AsBytesType[src]
#[must_use]
fn from_bytes_ne(bytes: &[u8]) -> Option<Self>[src]
#[must_use]
fn to_bytes_endian(&self, endian: Option<Endian>) -> Self::AsBytesType[src]
#[must_use]
fn from_bytes_endian(bytes: &[u8], endian: Option<Endian>) -> Option<Self>[src]
impl TryFrom<u32> for U24[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>, [src]
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>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,