pub struct FileChunk {
pub bytes: [u8; 4096],
}
Fields§
§bytes: [u8; 4096]
Trait Implementations§
Source§impl Storable for FileChunk
impl Storable for FileChunk
Source§fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
Converts bytes into an element.
Source§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes
, but includes additional checks to ensure the element’s serialized bytes
are within the element’s bounds.impl StructuralPartialEq for FileChunk
Auto Trait Implementations§
impl Freeze for FileChunk
impl RefUnwindSafe for FileChunk
impl Send for FileChunk
impl Sync for FileChunk
impl Unpin for FileChunk
impl UnwindSafe for FileChunk
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