Struct saphir::header::ContentRange
source · pub struct ContentRange(pub ContentRangeSpec);
Expand description
Content-Range
header, defined in
RFC7233
Tuple Fields
0: ContentRangeSpec
Trait Implementations
sourceimpl Clone for ContentRange
impl Clone for ContentRange
sourcefn clone(&self) -> ContentRange
fn clone(&self) -> ContentRange
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ContentRange
impl Debug for ContentRange
sourceimpl Deref for ContentRange
impl Deref for ContentRange
type Target = ContentRangeSpec
type Target = ContentRangeSpec
The resulting type after dereferencing.
sourcefn deref(&self) -> &ContentRangeSpec
fn deref(&self) -> &ContentRangeSpec
Dereferences the value.
sourceimpl DerefMut for ContentRange
impl DerefMut for ContentRange
sourcefn deref_mut(&mut self) -> &mut ContentRangeSpec
fn deref_mut(&mut self) -> &mut ContentRangeSpec
Mutably dereferences the value.
sourceimpl Display for ContentRange
impl Display for ContentRange
sourceimpl Header for ContentRange
impl Header for ContentRange
sourcefn header_name() -> &'static str
fn header_name() -> &'static str
Returns the name of the header field this belongs to. Read more
sourcefn parse_header(raw: &Raw) -> Result<ContentRange, Error>
fn parse_header(raw: &Raw) -> Result<ContentRange, Error>
Parse a header from a raw stream of bytes. Read more
sourceimpl PartialEq<ContentRange> for ContentRange
impl PartialEq<ContentRange> for ContentRange
sourcefn eq(&self, other: &ContentRange) -> bool
fn eq(&self, other: &ContentRange) -> bool
impl StructuralPartialEq for ContentRange
Auto Trait Implementations
impl RefUnwindSafe for ContentRange
impl Send for ContentRange
impl Sync for ContentRange
impl Unpin for ContentRange
impl UnwindSafe for ContentRange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more