#[repr(transparent)]pub struct ByteLen(pub u64);Expand description
Length of a byte range (distinct from ByteOffset so they can’t be
confused at call sites).
Tuple Fields§
§0: u64Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ByteLen
impl<'de> Deserialize<'de> for ByteLen
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for ByteLen
impl Ord for ByteLen
Source§impl PartialOrd for ByteLen
impl PartialOrd for ByteLen
impl Copy for ByteLen
impl Eq for ByteLen
impl StructuralPartialEq for ByteLen
Auto Trait Implementations§
impl Freeze for ByteLen
impl RefUnwindSafe for ByteLen
impl Send for ByteLen
impl Sync for ByteLen
impl Unpin for ByteLen
impl UnsafeUnpin for ByteLen
impl UnwindSafe for ByteLen
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