pub struct OverlayFlags(/* private fields */);Expand description
Overlay flags and compressed size.
Implementations§
Source§impl OverlayFlags
impl OverlayFlags
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) -> bool
pub const fn is_compressed(&self) -> bool
Bits: 24..25
Sourcepub const fn with_is_compressed(self, value: bool) -> Self
pub const fn with_is_compressed(self, value: bool) -> Self
Bits: 24..25
Sourcepub fn set_is_compressed(&mut self, value: bool)
pub fn set_is_compressed(&mut self, value: bool)
Bits: 24..25
Sourcepub const fn with_is_signed(self, value: bool) -> Self
pub const fn with_is_signed(self, value: bool) -> Self
Bits: 25..26
Sourcepub fn set_is_signed(&mut self, value: bool)
pub fn set_is_signed(&mut self, value: bool)
Bits: 25..26
Sourcepub const fn with_reserved(self, value: u8) -> Self
pub const fn with_reserved(self, value: u8) -> Self
Bits: 26..32
Sourcepub fn set_reserved(&mut self, value: u8)
pub fn set_reserved(&mut self, value: u8)
Bits: 26..32
Trait Implementations§
Source§impl Clone for OverlayFlags
impl Clone for OverlayFlags
Source§fn clone(&self) -> OverlayFlags
fn clone(&self) -> OverlayFlags
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 OverlayFlags
impl Debug for OverlayFlags
Source§impl Default for OverlayFlags
impl Default for OverlayFlags
Source§impl From<OverlayFlags> for u32
impl From<OverlayFlags> for u32
Source§fn from(v: OverlayFlags) -> u32
fn from(v: OverlayFlags) -> u32
Converts to this type from the input type.
Source§impl From<u32> for OverlayFlags
impl From<u32> for OverlayFlags
impl Copy for OverlayFlags
impl Pod for OverlayFlags
Auto Trait Implementations§
impl Freeze for OverlayFlags
impl RefUnwindSafe for OverlayFlags
impl Send for OverlayFlags
impl Sync for OverlayFlags
impl Unpin for OverlayFlags
impl UnwindSafe for OverlayFlags
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.