pub struct EntrySize { /* private fields */ }Expand description
The declared sizes of one entry, as the validators consume them.
Implementations§
Source§impl EntrySize
impl EntrySize
Sourcepub const fn new(
uncompressed: Uncompressed,
compressed: Option<Compressed>,
) -> Self
pub const fn new( uncompressed: Uncompressed, compressed: Option<Compressed>, ) -> Self
Pairs the declared sizes of one entry.
Sourcepub const fn uncompressed(&self) -> Uncompressed
pub const fn uncompressed(&self) -> Uncompressed
The declared uncompressed size.
Sourcepub const fn compressed(&self) -> Option<Compressed>
pub const fn compressed(&self) -> Option<Compressed>
The declared compressed size, when the format records one.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntrySize
impl RefUnwindSafe for EntrySize
impl Send for EntrySize
impl Sync for EntrySize
impl Unpin for EntrySize
impl UnsafeUnpin for EntrySize
impl UnwindSafe for EntrySize
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