Struct amplify::num::u24[][src]

pub struct u24(_);
Expand description

24-bit unsigned integer in the range 0..16_777_216

Implementations

impl u24[src]

pub const BITS: u32[src]

Bit dimension

pub const MIN: Self[src]

Minimum value

pub const MAX: Self[src]

Maximal value

Methods from Deref<Target = u32>

pub const MIN: u321.43.0[src]

pub const MAX: u321.43.0[src]

pub const BITS: u321.53.0[src]

pub fn as_ne_bytes(&self) -> &[u8; 4][src]

🔬 This is a nightly-only experimental API. (num_as_ne_bytes)

Return the memory representation of this integer as a byte array in native byte order.

to_ne_bytes should be preferred over this whenever possible.

Examples

#![feature(num_as_ne_bytes)]
let num = 0x12345678u32;
let bytes = num.as_ne_bytes();
assert_eq!(
    bytes,
    if cfg!(target_endian = "big") {
        &[0x12, 0x34, 0x56, 0x78]
    } else {
        &[0x78, 0x56, 0x34, 0x12]
    }
);

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]

Performs the + operation. Read more

impl Add<&'_ u24> for u24[src]

type Output = u24

The resulting type after applying the + operator.

fn add(self, rhs: &u24) -> Self::Output[src]

Performs the + operation. Read more

impl Add<&'_ u32> for &u24[src]

type Output = u24

The resulting type after applying the + operator.

fn add(self, rhs: &u32) -> Self::Output[src]

Performs the + operation. Read more

impl Add<&'_ u32> for u24[src]

type Output = u24

The resulting type after applying the + operator.

fn add(self, rhs: &u32) -> Self::Output[src]

Performs the + operation. Read more

impl Add<u24> for u24[src]

type Output = u24

The resulting type after applying the + operator.

fn add(self, rhs: Self) -> Self::Output[src]

Performs the + operation. Read more

impl Add<u24> for &u24[src]

type Output = u24

The resulting type after applying the + operator.

fn add(self, rhs: u24) -> Self::Output[src]

Performs the + operation. Read more

impl Add<u32> for u24[src]

type Output = u24

The resulting type after applying the + operator.

fn add(self, rhs: u32) -> Self::Output[src]

Performs the + operation. Read more

impl Add<u32> for &u24[src]

type Output = u24

The resulting type after applying the + operator.

fn add(self, rhs: u32) -> Self::Output[src]

Performs the + operation. Read more

impl AddAssign<&'_ u24> for u24[src]

fn add_assign(&mut self, rhs: &u24)[src]

Performs the += operation. Read more

impl AddAssign<&'_ u32> for u24[src]

fn add_assign(&mut self, rhs: &u32)[src]

Performs the += operation. Read more

impl AddAssign<u24> for u24[src]

fn add_assign(&mut self, rhs: Self)[src]

Performs the += operation. Read more

impl AddAssign<u32> for u24[src]

fn add_assign(&mut self, rhs: u32)[src]

Performs the += operation. Read more

impl AsRef<u32> for u24[src]

fn as_ref(&self) -> &u32[src]

Performs the conversion.

impl BitAnd<&'_ u24> for &u24[src]

type Output = u24

The resulting type after applying the & operator.

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

Performs the & operation. Read more

impl BitAnd<&'_ u24> for u24[src]

type Output = u24

The resulting type after applying the & operator.

fn bitand(self, rhs: &u24) -> Self::Output[src]

Performs the & operation. Read more

impl BitAnd<&'_ u32> for &u24[src]

type Output = u24

The resulting type after applying the & operator.

fn bitand(self, rhs: &u32) -> Self::Output[src]

Performs the & operation. Read more

impl BitAnd<&'_ u32> for u24[src]

type Output = u24

The resulting type after applying the & operator.

fn bitand(self, rhs: &u32) -> Self::Output[src]

Performs the & operation. Read more

impl BitAnd<u24> for u24[src]

type Output = u24

The resulting type after applying the & operator.

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

Performs the & operation. Read more

impl BitAnd<u24> for &u24[src]

type Output = u24

The resulting type after applying the & operator.

fn bitand(self, rhs: u24) -> Self::Output[src]

Performs the & operation. Read more

impl BitAnd<u32> for u24[src]

type Output = u24

The resulting type after applying the & operator.

fn bitand(self, rhs: u32) -> Self::Output[src]

Performs the & operation. Read more

impl BitAnd<u32> for &u24[src]

type Output = u24

The resulting type after applying the & operator.

fn bitand(self, rhs: u32) -> Self::Output[src]

Performs the & operation. Read more

impl BitAndAssign<&'_ u24> for u24[src]

fn bitand_assign(&mut self, rhs: &u24)[src]

Performs the &= operation. Read more

impl BitAndAssign<&'_ u32> for u24[src]

fn bitand_assign(&mut self, rhs: &u32)[src]

Performs the &= operation. Read more

impl BitAndAssign<u24> for u24[src]

fn bitand_assign(&mut self, rhs: Self)[src]

Performs the &= operation. Read more

impl BitAndAssign<u32> for u24[src]

fn bitand_assign(&mut self, rhs: u32)[src]

Performs the &= operation. Read more

impl BitOr<&'_ u24> for &u24[src]

type Output = u24

The resulting type after applying the | operator.

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

Performs the | operation. Read more

impl BitOr<&'_ u24> for u24[src]

type Output = u24

The resulting type after applying the | operator.

fn bitor(self, rhs: &u24) -> Self::Output[src]

Performs the | operation. Read more

impl BitOr<&'_ u32> for &u24[src]

type Output = u24

The resulting type after applying the | operator.

fn bitor(self, rhs: &u32) -> Self::Output[src]

Performs the | operation. Read more

impl BitOr<&'_ u32> for u24[src]

type Output = u24

The resulting type after applying the | operator.

fn bitor(self, rhs: &u32) -> Self::Output[src]

Performs the | operation. Read more

impl BitOr<u24> for u24[src]

type Output = u24

The resulting type after applying the | operator.

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

Performs the | operation. Read more

impl BitOr<u24> for &u24[src]

type Output = u24

The resulting type after applying the | operator.

fn bitor(self, rhs: u24) -> Self::Output[src]

Performs the | operation. Read more

impl BitOr<u32> for u24[src]

type Output = u24

The resulting type after applying the | operator.

fn bitor(self, rhs: u32) -> Self::Output[src]

Performs the | operation. Read more

impl BitOr<u32> for &u24[src]

type Output = u24

The resulting type after applying the | operator.

fn bitor(self, rhs: u32) -> Self::Output[src]

Performs the | operation. Read more

impl BitOrAssign<&'_ u24> for u24[src]

fn bitor_assign(&mut self, rhs: &u24)[src]

Performs the |= operation. Read more

impl BitOrAssign<&'_ u32> for u24[src]

fn bitor_assign(&mut self, rhs: &u32)[src]

Performs the |= operation. Read more

impl BitOrAssign<u24> for u24[src]

fn bitor_assign(&mut self, rhs: Self)[src]

Performs the |= operation. Read more

impl BitOrAssign<u32> for u24[src]

fn bitor_assign(&mut self, rhs: u32)[src]

Performs the |= operation. Read more

impl BitXor<&'_ u24> for &u24[src]

type Output = u24

The resulting type after applying the ^ operator.

fn bitxor(self, rhs: Self) -> Self::Output[src]

Performs the ^ operation. Read more

impl BitXor<&'_ u24> for u24[src]

type Output = u24

The resulting type after applying the ^ operator.

fn bitxor(self, rhs: &u24) -> Self::Output[src]

Performs the ^ operation. Read more

impl BitXor<&'_ u32> for &u24[src]

type Output = u24

The resulting type after applying the ^ operator.

fn bitxor(self, rhs: &u32) -> Self::Output[src]

Performs the ^ operation. Read more

impl BitXor<&'_ u32> for u24[src]

type Output = u24

The resulting type after applying the ^ operator.

fn bitxor(self, rhs: &u32) -> Self::Output[src]

Performs the ^ operation. Read more

impl BitXor<u24> for u24[src]

type Output = u24

The resulting type after applying the ^ operator.

fn bitxor(self, rhs: Self) -> Self::Output[src]

Performs the ^ operation. Read more

impl BitXor<u24> for &u24[src]

type Output = u24

The resulting type after applying the ^ operator.

fn bitxor(self, rhs: u24) -> Self::Output[src]

Performs the ^ operation. Read more

impl BitXor<u32> for u24[src]

type Output = u24

The resulting type after applying the ^ operator.

fn bitxor(self, rhs: u32) -> Self::Output[src]

Performs the ^ operation. Read more

impl BitXor<u32> for &u24[src]

type Output = u24

The resulting type after applying the ^ operator.

fn bitxor(self, rhs: u32) -> Self::Output[src]

Performs the ^ operation. Read more

impl BitXorAssign<&'_ u24> for u24[src]

fn bitxor_assign(&mut self, rhs: &u24)[src]

Performs the ^= operation. Read more

impl BitXorAssign<&'_ u32> for u24[src]

fn bitxor_assign(&mut self, rhs: &u32)[src]

Performs the ^= operation. Read more

impl BitXorAssign<u24> for u24[src]

fn bitxor_assign(&mut self, rhs: Self)[src]

Performs the ^= operation. Read more

impl BitXorAssign<u32> for u24[src]

fn bitxor_assign(&mut self, rhs: u32)[src]

Performs the ^= operation. Read more

impl Clone for u24[src]

fn clone(&self) -> u24[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for u24[src]

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

Formats the value using the given formatter. Read more

impl Default for u24[src]

fn default() -> u24[src]

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

impl Deref for u24[src]

type Target = u32

The resulting type after dereferencing.

fn deref(&self) -> &Self::Target[src]

Dereferences the value.

impl Display for u24[src]

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

Formats the value using the given formatter. Read more

impl Div<&'_ u24> for &u24[src]

type Output = u24

The resulting type after applying the / operator.

fn div(self, rhs: Self) -> Self::Output[src]

Performs the / operation. Read more

impl Div<&'_ u24> for u24[src]

type Output = u24

The resulting type after applying the / operator.

fn div(self, rhs: &u24) -> Self::Output[src]

Performs the / operation. Read more

impl Div<&'_ u32> for &u24[src]

type Output = u24

The resulting type after applying the / operator.

fn div(self, rhs: &u32) -> Self::Output[src]

Performs the / operation. Read more

impl Div<&'_ u32> for u24[src]

type Output = u24

The resulting type after applying the / operator.

fn div(self, rhs: &u32) -> Self::Output[src]

Performs the / operation. Read more

impl Div<u24> for u24[src]

type Output = u24

The resulting type after applying the / operator.

fn div(self, rhs: Self) -> Self::Output[src]

Performs the / operation. Read more

impl Div<u24> for &u24[src]

type Output = u24

The resulting type after applying the / operator.

fn div(self, rhs: u24) -> Self::Output[src]

Performs the / operation. Read more

impl Div<u32> for u24[src]

type Output = u24

The resulting type after applying the / operator.

fn div(self, rhs: u32) -> Self::Output[src]

Performs the / operation. Read more

impl Div<u32> for &u24[src]

type Output = u24

The resulting type after applying the / operator.

fn div(self, rhs: u32) -> Self::Output[src]

Performs the / operation. Read more

impl DivAssign<&'_ u24> for u24[src]

fn div_assign(&mut self, rhs: &u24)[src]

Performs the /= operation. Read more

impl DivAssign<&'_ u32> for u24[src]

fn div_assign(&mut self, rhs: &u32)[src]

Performs the /= operation. Read more

impl DivAssign<u24> for u24[src]

fn div_assign(&mut self, rhs: Self)[src]

Performs the /= operation. Read more

impl DivAssign<u32> for u24[src]

fn div_assign(&mut self, rhs: u32)[src]

Performs the /= operation. Read more

impl From<u24> for u32[src]

fn from(val: u24) -> Self[src]

Performs the conversion.

impl FromStr for u24[src]

type Err = ParseIntError

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Self, Self::Err>[src]

Parses a string s to return a value of this type. Read more

impl Hash for u24[src]

fn hash<__H: Hasher>(&self, state: &mut __H)[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl Mul<&'_ u24> for &u24[src]

type Output = u24

The resulting type after applying the * operator.

fn mul(self, rhs: Self) -> Self::Output[src]

Performs the * operation. Read more

impl Mul<&'_ u24> for u24[src]

type Output = u24

The resulting type after applying the * operator.

fn mul(self, rhs: &u24) -> Self::Output[src]

Performs the * operation. Read more

impl Mul<&'_ u32> for &u24[src]

type Output = u24

The resulting type after applying the * operator.

fn mul(self, rhs: &u32) -> Self::Output[src]

Performs the * operation. Read more

impl Mul<&'_ u32> for u24[src]

type Output = u24

The resulting type after applying the * operator.

fn mul(self, rhs: &u32) -> Self::Output[src]

Performs the * operation. Read more

impl Mul<u24> for u24[src]

type Output = u24

The resulting type after applying the * operator.

fn mul(self, rhs: Self) -> Self::Output[src]

Performs the * operation. Read more

impl Mul<u24> for &u24[src]

type Output = u24

The resulting type after applying the * operator.

fn mul(self, rhs: u24) -> Self::Output[src]

Performs the * operation. Read more

impl Mul<u32> for u24[src]

type Output = u24

The resulting type after applying the * operator.

fn mul(self, rhs: u32) -> Self::Output[src]

Performs the * operation. Read more

impl Mul<u32> for &u24[src]

type Output = u24

The resulting type after applying the * operator.

fn mul(self, rhs: u32) -> Self::Output[src]

Performs the * operation. Read more

impl MulAssign<&'_ u24> for u24[src]

fn mul_assign(&mut self, rhs: &u24)[src]

Performs the *= operation. Read more

impl MulAssign<&'_ u32> for u24[src]

fn mul_assign(&mut self, rhs: &u32)[src]

Performs the *= operation. Read more

impl MulAssign<u24> for u24[src]

fn mul_assign(&mut self, rhs: Self)[src]

Performs the *= operation. Read more

impl MulAssign<u32> for u24[src]

fn mul_assign(&mut self, rhs: u32)[src]

Performs the *= operation. Read more

impl Ord for u24[src]

fn cmp(&self, other: &u24) -> Ordering[src]

This method returns an Ordering between self and other. Read more

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl PartialEq<u24> for u24[src]

fn eq(&self, other: &u24) -> bool[src]

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

fn ne(&self, other: &u24) -> bool[src]

This method tests for !=.

impl PartialOrd<u24> for u24[src]

fn partial_cmp(&self, other: &u24) -> Option<Ordering>[src]

This method returns an ordering between self and other values if one exists. Read more

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Rem<&'_ u24> for &u24[src]

type Output = u24

The resulting type after applying the % operator.

fn rem(self, rhs: Self) -> Self::Output[src]

Performs the % operation. Read more

impl Rem<&'_ u24> for u24[src]

type Output = u24

The resulting type after applying the % operator.

fn rem(self, rhs: &u24) -> Self::Output[src]

Performs the % operation. Read more

impl Rem<&'_ u32> for &u24[src]

type Output = u24

The resulting type after applying the % operator.

fn rem(self, rhs: &u32) -> Self::Output[src]

Performs the % operation. Read more

impl Rem<&'_ u32> for u24[src]

type Output = u24

The resulting type after applying the % operator.

fn rem(self, rhs: &u32) -> Self::Output[src]

Performs the % operation. Read more

impl Rem<u24> for u24[src]

type Output = u24

The resulting type after applying the % operator.

fn rem(self, rhs: Self) -> Self::Output[src]

Performs the % operation. Read more

impl Rem<u24> for &u24[src]

type Output = u24

The resulting type after applying the % operator.

fn rem(self, rhs: u24) -> Self::Output[src]

Performs the % operation. Read more

impl Rem<u32> for u24[src]

type Output = u24

The resulting type after applying the % operator.

fn rem(self, rhs: u32) -> Self::Output[src]

Performs the % operation. Read more

impl Rem<u32> for &u24[src]

type Output = u24

The resulting type after applying the % operator.

fn rem(self, rhs: u32) -> Self::Output[src]

Performs the % operation. Read more

impl RemAssign<&'_ u24> for u24[src]

fn rem_assign(&mut self, rhs: &u24)[src]

Performs the %= operation. Read more

impl RemAssign<&'_ u32> for u24[src]

fn rem_assign(&mut self, rhs: &u32)[src]

Performs the %= operation. Read more

impl RemAssign<u24> for u24[src]

fn rem_assign(&mut self, rhs: Self)[src]

Performs the %= operation. Read more

impl RemAssign<u32> for u24[src]

fn rem_assign(&mut self, rhs: u32)[src]

Performs the %= operation. Read more

impl Shl<&'_ u24> for &u24[src]

type Output = u24

The resulting type after applying the << operator.

fn shl(self, rhs: Self) -> Self::Output[src]

Performs the << operation. Read more

impl Shl<&'_ u24> for u24[src]

type Output = u24

The resulting type after applying the << operator.

fn shl(self, rhs: &u24) -> Self::Output[src]

Performs the << operation. Read more

impl Shl<&'_ u32> for &u24[src]

type Output = u24

The resulting type after applying the << operator.

fn shl(self, rhs: &u32) -> Self::Output[src]

Performs the << operation. Read more

impl Shl<&'_ u32> for u24[src]

type Output = u24

The resulting type after applying the << operator.

fn shl(self, rhs: &u32) -> Self::Output[src]

Performs the << operation. Read more

impl Shl<u24> for u24[src]

type Output = u24

The resulting type after applying the << operator.

fn shl(self, rhs: Self) -> Self::Output[src]

Performs the << operation. Read more

impl Shl<u24> for &u24[src]

type Output = u24

The resulting type after applying the << operator.

fn shl(self, rhs: u24) -> Self::Output[src]

Performs the << operation. Read more

impl Shl<u32> for u24[src]

type Output = u24

The resulting type after applying the << operator.

fn shl(self, rhs: u32) -> Self::Output[src]

Performs the << operation. Read more

impl Shl<u32> for &u24[src]

type Output = u24

The resulting type after applying the << operator.

fn shl(self, rhs: u32) -> Self::Output[src]

Performs the << operation. Read more

impl ShlAssign<&'_ u24> for u24[src]

fn shl_assign(&mut self, rhs: &u24)[src]

Performs the <<= operation. Read more

impl ShlAssign<&'_ u32> for u24[src]

fn shl_assign(&mut self, rhs: &u32)[src]

Performs the <<= operation. Read more

impl ShlAssign<u24> for u24[src]

fn shl_assign(&mut self, rhs: Self)[src]

Performs the <<= operation. Read more

impl ShlAssign<u32> for u24[src]

fn shl_assign(&mut self, rhs: u32)[src]

Performs the <<= operation. Read more

impl Shr<&'_ u24> for &u24[src]

type Output = u24

The resulting type after applying the >> operator.

fn shr(self, rhs: Self) -> Self::Output[src]

Performs the >> operation. Read more

impl Shr<&'_ u24> for u24[src]

type Output = u24

The resulting type after applying the >> operator.

fn shr(self, rhs: &u24) -> Self::Output[src]

Performs the >> operation. Read more

impl Shr<&'_ u32> for &u24[src]

type Output = u24

The resulting type after applying the >> operator.

fn shr(self, rhs: &u32) -> Self::Output[src]

Performs the >> operation. Read more

impl Shr<&'_ u32> for u24[src]

type Output = u24

The resulting type after applying the >> operator.

fn shr(self, rhs: &u32) -> Self::Output[src]

Performs the >> operation. Read more

impl Shr<u24> for u24[src]

type Output = u24

The resulting type after applying the >> operator.

fn shr(self, rhs: Self) -> Self::Output[src]

Performs the >> operation. Read more

impl Shr<u24> for &u24[src]

type Output = u24

The resulting type after applying the >> operator.

fn shr(self, rhs: u24) -> Self::Output[src]

Performs the >> operation. Read more

impl Shr<u32> for u24[src]

type Output = u24

The resulting type after applying the >> operator.

fn shr(self, rhs: u32) -> Self::Output[src]

Performs the >> operation. Read more

impl Shr<u32> for &u24[src]

type Output = u24

The resulting type after applying the >> operator.

fn shr(self, rhs: u32) -> Self::Output[src]

Performs the >> operation. Read more

impl ShrAssign<&'_ u24> for u24[src]

fn shr_assign(&mut self, rhs: &u24)[src]

Performs the >>= operation. Read more

impl ShrAssign<&'_ u32> for u24[src]

fn shr_assign(&mut self, rhs: &u32)[src]

Performs the >>= operation. Read more

impl ShrAssign<u24> for u24[src]

fn shr_assign(&mut self, rhs: Self)[src]

Performs the >>= operation. Read more

impl ShrAssign<u32> for u24[src]

fn shr_assign(&mut self, rhs: u32)[src]

Performs the >>= operation. Read more

impl Sub<&'_ u24> for &u24[src]

type Output = u24

The resulting type after applying the - operator.

fn sub(self, rhs: Self) -> Self::Output[src]

Performs the - operation. Read more

impl Sub<&'_ u24> for u24[src]

type Output = u24

The resulting type after applying the - operator.

fn sub(self, rhs: &u24) -> Self::Output[src]

Performs the - operation. Read more

impl Sub<&'_ u32> for &u24[src]

type Output = u24

The resulting type after applying the - operator.

fn sub(self, rhs: &u32) -> Self::Output[src]

Performs the - operation. Read more

impl Sub<&'_ u32> for u24[src]

type Output = u24

The resulting type after applying the - operator.

fn sub(self, rhs: &u32) -> Self::Output[src]

Performs the - operation. Read more

impl Sub<u24> for u24[src]

type Output = u24

The resulting type after applying the - operator.

fn sub(self, rhs: Self) -> Self::Output[src]

Performs the - operation. Read more

impl Sub<u24> for &u24[src]

type Output = u24

The resulting type after applying the - operator.

fn sub(self, rhs: u24) -> Self::Output[src]

Performs the - operation. Read more

impl Sub<u32> for u24[src]

type Output = u24

The resulting type after applying the - operator.

fn sub(self, rhs: u32) -> Self::Output[src]

Performs the - operation. Read more

impl Sub<u32> for &u24[src]

type Output = u24

The resulting type after applying the - operator.

fn sub(self, rhs: u32) -> Self::Output[src]

Performs the - operation. Read more

impl SubAssign<&'_ u24> for u24[src]

fn sub_assign(&mut self, rhs: &u24)[src]

Performs the -= operation. Read more

impl SubAssign<&'_ u32> for u24[src]

fn sub_assign(&mut self, rhs: &u32)[src]

Performs the -= operation. Read more

impl SubAssign<u24> for u24[src]

fn sub_assign(&mut self, rhs: Self)[src]

Performs the -= operation. Read more

impl SubAssign<u32> for u24[src]

fn sub_assign(&mut self, rhs: u32)[src]

Performs the -= operation. Read more

impl TryFrom<u32> for u24[src]

type Error = ValueOverflow

The type returned in the event of a conversion error.

fn try_from(value: u32) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl Copy for u24[src]

impl Eq for u24[src]

impl StructuralEq for u24[src]

impl StructuralPartialEq 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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

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

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

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

Performs the conversion.