Struct devicemapper::Bytes
source · pub struct Bytes(pub u128);
Expand description
A type for bytes
Tuple Fields§
§0: u128
Implementations§
Methods from Deref<Target = u128>§
pub const MIN: u128 = 0u128
pub const MAX: u128 = 340_282_366_920_938_463_463_374_607_431_768_211_455u128
pub const BITS: u32 = 128u32
Trait Implementations§
source§impl AddAssign for Bytes
impl AddAssign for Bytes
source§fn add_assign(&mut self, rhs: Bytes)
fn add_assign(&mut self, rhs: Bytes)
Performs the
+=
operation. Read moresource§impl<'de> Deserialize<'de> for Bytes
impl<'de> Deserialize<'de> for Bytes
source§fn deserialize<D>(deserializer: D) -> Result<Bytes, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Bytes, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Bytes
impl Ord for Bytes
source§impl PartialEq for Bytes
impl PartialEq for Bytes
source§impl PartialOrd for Bytes
impl PartialOrd for Bytes
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl SubAssign for Bytes
impl SubAssign for Bytes
source§fn sub_assign(&mut self, rhs: Bytes)
fn sub_assign(&mut self, rhs: Bytes)
Performs the
-=
operation. Read moreimpl Copy for Bytes
impl Eq for Bytes
impl StructuralPartialEq for Bytes
Auto Trait Implementations§
impl Freeze for Bytes
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnwindSafe for Bytes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more