pub struct OverlayCompressedSize(/* private fields */);Expand description
Overlay compressed size bitfield.
Implementations§
source§impl OverlayCompressedSize
impl OverlayCompressedSize
sourcepub const fn with_size(self, value: usize) -> Self
pub const fn with_size(self, value: usize) -> Self
Compressed size, zero if not compressed.
Bits: 0..24
sourcepub const fn is_compressed(&self) -> u8
pub const fn is_compressed(&self) -> u8
Bits: 24..32
sourcepub const fn with_is_compressed(self, value: u8) -> Self
pub const fn with_is_compressed(self, value: u8) -> Self
Bits: 24..32
sourcepub fn set_is_compressed(&mut self, value: u8)
pub fn set_is_compressed(&mut self, value: u8)
Bits: 24..32
Trait Implementations§
source§impl Clone for OverlayCompressedSize
impl Clone for OverlayCompressedSize
source§fn clone(&self) -> OverlayCompressedSize
fn clone(&self) -> OverlayCompressedSize
Returns a copy 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 Debug for OverlayCompressedSize
impl Debug for OverlayCompressedSize
source§impl Default for OverlayCompressedSize
impl Default for OverlayCompressedSize
source§impl From<OverlayCompressedSize> for u32
impl From<OverlayCompressedSize> for u32
source§fn from(v: OverlayCompressedSize) -> u32
fn from(v: OverlayCompressedSize) -> u32
Converts to this type from the input type.
source§impl From<u32> for OverlayCompressedSize
impl From<u32> for OverlayCompressedSize
impl Copy for OverlayCompressedSize
impl Pod for OverlayCompressedSize
Auto Trait Implementations§
impl Freeze for OverlayCompressedSize
impl RefUnwindSafe for OverlayCompressedSize
impl Send for OverlayCompressedSize
impl Sync for OverlayCompressedSize
impl Unpin for OverlayCompressedSize
impl UnwindSafe for OverlayCompressedSize
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)