Struct lib::Bytes [−][src]
Expand description
The struct used to store the number of bytes.
Trait bounds specify what traits are required from the type used to store the number of bytes.
Into<u64>
in particular is required as the number of bytes is temporarily converted to u64
(the only type that we are sure can store any number stored in another type without overflowing)
to compare it.
Implementations
Return a copy of the value in the type that was used to store it internally
Return value in the type that was used to store it internally and consume Byte
Trait Implementations
Auto Trait Implementations
impl<U> RefUnwindSafe for Bytes<U> where
U: RefUnwindSafe,
impl<U> UnwindSafe for Bytes<U> where
U: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more