Skip to main content

FileRange

Type Alias FileRange 

Source
pub type FileRange = Range<u64, _F>;
Expand description

Start and exclusive-end range for file content

Aliased Type§

pub struct FileRange {
    pub start: u64,
    pub end: u64,
    pub _marker: PhantomData<_F>,
}

Fields§

§start: u64§end: u64§_marker: PhantomData<_F>

Implementations§

Source§

impl FileRange

Source

pub fn full() -> Self

Source

pub fn take_segment(self, segment_size: u64) -> (Self, Option<Self>)

Source

pub fn length(&self) -> u64

Trait Implementations§

Source§

impl From<Range<u64, _H>> for FileRange

Source§

fn from(value: HttpRange) -> Self

Converts to this type from the input type.