pub struct Blob { /* private fields */ }Expand description
A blob object – raw, uninterpreted data.
Represents the contents of a file. No encoding, compression, or metadata is stored – just the raw bytes.
§Empty blobs
An empty blob (Blob::new(vec![])) is perfectly valid and represents
an empty file.
§Example
use libvctrl_handler::Blob;
let data = b"Hello, world!".to_vec();
let blob = Blob::new(data.clone());
assert_eq!(blob.data(), b"Hello, world!");Implementations§
Trait Implementations§
impl Eq for Blob
impl StructuralPartialEq for Blob
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