pub struct Blob { /* private fields */ }Implementations§
Source§impl Blob
impl Blob
pub fn new(raw_blob: Vec<u8>) -> Self
pub fn data(&self) -> &Vec<u8> ⓘ
pub fn data_mut(&mut self) -> &mut Vec<u8> ⓘ
pub fn parse_header(&mut self) -> Result<&mut Self, Error>
pub fn get_header(&self) -> &Option<BlobHeader>
pub fn get_position_after_header(&self) -> Option<u64>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Blob
impl RefUnwindSafe for Blob
impl Send for Blob
impl Sync for Blob
impl Unpin for Blob
impl UnsafeUnpin for Blob
impl UnwindSafe for Blob
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