pub struct DataSize(/* private fields */);Implementations§
Source§impl DataSize
impl DataSize
pub fn new(size: u32, uncompressed: bool) -> Self
pub fn new_compressed(size: u32) -> Self
pub fn new_uncompressed(size: u32) -> Self
pub fn uncompressed(&self) -> bool
pub fn set_uncompressed(&mut self)
pub fn set_compressed(&mut self)
pub fn size(&self) -> u32
Trait Implementations§
Source§impl DekuReader<'_, Endian> for DataSize
impl DekuReader<'_, Endian> for DataSize
Source§impl DekuUpdate for DataSize
impl DekuUpdate for DataSize
Source§impl DekuWriter<Endian> for DataSize
impl DekuWriter<Endian> for DataSize
impl Copy for DataSize
impl Eq for DataSize
impl StructuralPartialEq for DataSize
Auto Trait Implementations§
impl Freeze for DataSize
impl RefUnwindSafe for DataSize
impl Send for DataSize
impl Sync for DataSize
impl Unpin for DataSize
impl UnwindSafe for DataSize
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more