pub struct FileBlobView<'a, T>where
T: FileKind,{
pub data: &'a [u8],
/* private fields */
}Fields§
§data: &'a [u8]Implementations§
Trait Implementations§
Source§impl<'a, T> Clone for FileBlobView<'a, T>
impl<'a, T> Clone for FileBlobView<'a, T>
Source§fn clone(&self) -> FileBlobView<'a, T>
fn clone(&self) -> FileBlobView<'a, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, T> Debug for FileBlobView<'a, T>where
T: FileKind,
impl<'a, T> Debug for FileBlobView<'a, T>where
T: FileKind,
Source§impl<'a, T> Default for FileBlobView<'a, T>where
T: FileKind,
impl<'a, T> Default for FileBlobView<'a, T>where
T: FileKind,
Source§fn default() -> FileBlobView<'a, T>
fn default() -> FileBlobView<'a, T>
Returns the “default value” for a type. Read more
Source§impl<'a, T> PartialEq for FileBlobView<'a, T>where
T: FileKind,
impl<'a, T> PartialEq for FileBlobView<'a, T>where
T: FileKind,
Source§impl<'a, T> Serialize for FileBlobView<'a, T>where
T: FileKind,
impl<'a, T> Serialize for FileBlobView<'a, T>where
T: FileKind,
const SIZE: usize = 4
const ALIGN: usize = 4
Source§const MODE: DataType = DataType::Offset
const MODE: DataType = DataType::Offset
Whether this value is written inline at the field position (
Inline)
or whether a 32-bit forward offset to the value is written instead
(Offset). This constant is inspected by parent arrays and tables
at compile time to choose the correct write strategy.Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
Upper bound on the number of bytes this value and its alignment padding
will consume. Used by
write_to and parent tables to call
ensure_capacity before entering the unchecked fast path.Source§fn write_to<B>(&self, buffer: &mut B) -> usizewhere
B: Buffer,
fn write_to<B>(&self, buffer: &mut B) -> usizewhere
B: Buffer,
Write this value into
buffer, calling ensure_capacity first.
Returns the slot of the outermost written unit (length prefix for arrays,
value start for scalars).Source§fn write_to_unchecked<B>(&self, buffer: &mut B) -> usizewhere
B: Buffer,
fn write_to_unchecked<B>(&self, buffer: &mut B) -> usizewhere
B: Buffer,
Write this value into
buffer without checking capacity first. Read moreSource§fn is_absent(&self) -> bool
fn is_absent(&self) -> bool
Return
true if this value is the default/zero/absent state. Read moreconst ALIGNR: usize = _
const ALIGN_MASK: usize = _
fn tag(&self) -> u8
impl<'a, T> Copy for FileBlobView<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for FileBlobView<'a, T>
impl<'a, T> RefUnwindSafe for FileBlobView<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for FileBlobView<'a, T>where
T: Send,
impl<'a, T> Sync for FileBlobView<'a, T>where
T: Sync,
impl<'a, T> Unpin for FileBlobView<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for FileBlobView<'a, T>
impl<'a, T> UnwindSafe for FileBlobView<'a, T>where
T: UnwindSafe,
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