pub struct HttpByteRangeSet { /* private fields */ }Expand description
A bounded, normalized byte-range set for one representation.
Implementations§
Source§impl HttpByteRangeSet
impl HttpByteRangeSet
Sourcepub const fn requested_count(&self) -> usize
pub const fn requested_count(&self) -> usize
Returns the number of non-empty range specs supplied by the sender.
Sourcepub fn ranges(&self) -> &[HttpByteRange]
pub fn ranges(&self) -> &[HttpByteRange]
Returns the satisfiable ranges in request order.
Sourcepub fn into_ranges(self) -> Vec<HttpByteRange>
pub fn into_ranges(self) -> Vec<HttpByteRange>
Consumes the set and returns its satisfiable ranges.
Trait Implementations§
Source§impl Debug for HttpByteRangeSet
impl Debug for HttpByteRangeSet
Source§impl PartialEq for HttpByteRangeSet
impl PartialEq for HttpByteRangeSet
impl Eq for HttpByteRangeSet
impl StructuralPartialEq for HttpByteRangeSet
Auto Trait Implementations§
impl Freeze for HttpByteRangeSet
impl RefUnwindSafe for HttpByteRangeSet
impl Send for HttpByteRangeSet
impl Sync for HttpByteRangeSet
impl Unpin for HttpByteRangeSet
impl UnwindSafe for HttpByteRangeSet
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