pub struct Obu<'a> {
pub header: ObuHeader,
pub data: Cow<'a, [u8]>,
pub start_offset: usize,
pub size: usize,
}
Fields§
§header: ObuHeader
The OBU header.
data: Cow<'a, [u8]>
The data backing the OBU.
start_offset: usize
Where the OBU data starts, after the size has been read.
size: usize
The OBU size as per the specification after start_offset
.
Trait Implementations§
impl<'a> Eq for Obu<'a>
impl<'a> StructuralPartialEq for Obu<'a>
Auto Trait Implementations§
impl<'a> Freeze for Obu<'a>
impl<'a> RefUnwindSafe for Obu<'a>
impl<'a> Send for Obu<'a>
impl<'a> Sync for Obu<'a>
impl<'a> Unpin for Obu<'a>
impl<'a> UnwindSafe for Obu<'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