pub struct Chunk<'a> {
pub trak_idx: usize,
pub trak: TrakAtomRef<'a>,
pub sample_sizes: Vec<u32>,
pub sample_durations: Vec<u32>,
pub data: Vec<u8>,
}Fields§
§trak_idx: usizeIndex of the trak in the file
trak: TrakAtomRef<'a>Reference to the track the sample is in
sample_sizes: Vec<u32>Slice of sample sizes within this chunk
sample_durations: Vec<u32>Timescale duration of each sample indexed reletive to sample_sizes
data: Vec<u8>Bytes in the chunk
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Chunk<'a>
impl<'a> RefUnwindSafe for Chunk<'a>
impl<'a> Send for Chunk<'a>
impl<'a> Sync for Chunk<'a>
impl<'a> Unpin for Chunk<'a>
impl<'a> UnsafeUnpin for Chunk<'a>
impl<'a> UnwindSafe for Chunk<'a>
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> 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