pub struct DiscardWriteZeroesFlags(/* private fields */);Expand description
The flags of a DiscardWriteZeroes segment.
Implementations§
Source§impl DiscardWriteZeroesFlags
impl DiscardWriteZeroesFlags
Sourcepub const fn with_unmap_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_unmap_checked(self, value: bool) -> Result<Self, ()>
Bits: 0..1
Sourcepub const fn with_unmap(self, value: bool) -> Self
pub const fn with_unmap(self, value: bool) -> Self
Bits: 0..1
Sourcepub const fn with_reserved_checked(self, value: u32) -> Result<Self, ()>
pub const fn with_reserved_checked(self, value: u32) -> Result<Self, ()>
Bits: 1..32
Sourcepub const fn with_reserved(self, value: u32) -> Self
pub const fn with_reserved(self, value: u32) -> Self
Bits: 1..32
Sourcepub const fn set_reserved(&mut self, value: u32)
pub const fn set_reserved(&mut self, value: u32)
Bits: 1..32
Trait Implementations§
Source§impl Clone for DiscardWriteZeroesFlags
impl Clone for DiscardWriteZeroesFlags
Source§fn clone(&self) -> DiscardWriteZeroesFlags
fn clone(&self) -> DiscardWriteZeroesFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DiscardWriteZeroesFlags
Source§impl Debug for DiscardWriteZeroesFlags
impl Debug for DiscardWriteZeroesFlags
Source§impl Default for DiscardWriteZeroesFlags
impl Default for DiscardWriteZeroesFlags
Source§impl From<DiscardWriteZeroesFlags> for le32
impl From<DiscardWriteZeroesFlags> for le32
Source§fn from(v: DiscardWriteZeroesFlags) -> Self
fn from(v: DiscardWriteZeroesFlags) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DiscardWriteZeroesFlags
impl RefUnwindSafe for DiscardWriteZeroesFlags
impl Send for DiscardWriteZeroesFlags
impl Sync for DiscardWriteZeroesFlags
impl Unpin for DiscardWriteZeroesFlags
impl UnsafeUnpin for DiscardWriteZeroesFlags
impl UnwindSafe for DiscardWriteZeroesFlags
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