pub struct BmffBox<'a> {
pub typ: [u8; 4],
pub offset: usize,
pub data: &'a [u8],
pub data_offset: usize,
pub uuid: Option<[u8; 16]>,
}Expand description
A parsed box header with its payload slice.
Fields§
§typ: [u8; 4]§offset: usizeAbsolute offset of the box start in the root slice.
data: &'a [u8]Payload (after the size/type/uuid header).
data_offset: usizeAbsolute offset of data in the root slice.
uuid: Option<[u8; 16]>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for BmffBox<'a>
impl<'a> RefUnwindSafe for BmffBox<'a>
impl<'a> Send for BmffBox<'a>
impl<'a> Sync for BmffBox<'a>
impl<'a> Unpin for BmffBox<'a>
impl<'a> UnsafeUnpin for BmffBox<'a>
impl<'a> UnwindSafe for BmffBox<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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