pub struct ContentLength(pub usize);Tuple Fields§
§0: usizeTrait Implementations§
Source§impl Clone for ContentLength
impl Clone for ContentLength
Source§fn clone(&self) -> ContentLength
fn clone(&self) -> ContentLength
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContentLength
impl Debug for ContentLength
Source§impl Display for ContentLength
impl Display for ContentLength
Source§impl Hash for ContentLength
impl Hash for ContentLength
Source§impl Into<usize> for ContentLength
impl Into<usize> for ContentLength
Source§impl Ord for ContentLength
impl Ord for ContentLength
Source§fn cmp(&self, other: &ContentLength) -> Ordering
fn cmp(&self, other: &ContentLength) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl ParseHeader for ContentLength
impl ParseHeader for ContentLength
fn header_name() -> &'static [&'static str]
fn decode<'a>( headers: impl IntoIterator<Item = &'a HeaderValue>, ) -> Option<Self>
Source§impl PartialEq for ContentLength
impl PartialEq for ContentLength
Source§impl PartialOrd for ContentLength
impl PartialOrd for ContentLength
impl Copy for ContentLength
impl Eq for ContentLength
impl StructuralPartialEq for ContentLength
Auto Trait Implementations§
impl Freeze for ContentLength
impl RefUnwindSafe for ContentLength
impl Send for ContentLength
impl Sync for ContentLength
impl Unpin for ContentLength
impl UnwindSafe for ContentLength
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more