pub struct ByteRange {
pub offset: u64,
pub len: u64,
}Expand description
A checked byte range in a media source.
Offsets and lengths are modeled as u64 at the source boundary so large
files cannot silently wrap usize arithmetic. Conversion to usize is
delayed until a concrete in-memory window is materialized.
Fields§
§offset: u64§len: u64Implementations§
Trait Implementations§
impl Copy for ByteRange
impl Eq for ByteRange
impl StructuralPartialEq for ByteRange
Auto Trait Implementations§
impl Freeze for ByteRange
impl RefUnwindSafe for ByteRange
impl Send for ByteRange
impl Sync for ByteRange
impl Unpin for ByteRange
impl UnsafeUnpin for ByteRange
impl UnwindSafe for ByteRange
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