pub struct VmxSegmentAttributes(/* private fields */);
Implementations§
Source§impl VmxSegmentAttributes
impl VmxSegmentAttributes
Sourcepub const fn with_typ_checked(self, value: u32) -> Result<Self, ()>
pub const fn with_typ_checked(self, value: u32) -> Result<Self, ()>
Bits: 0..4
Sourcepub const fn with_user_checked(self, value: u32) -> Result<Self, ()>
pub const fn with_user_checked(self, value: u32) -> Result<Self, ()>
Bits: 4..5
Sourcepub const fn with_dpl_checked(self, value: u32) -> Result<Self, ()>
pub const fn with_dpl_checked(self, value: u32) -> Result<Self, ()>
Bits: 5..7
Sourcepub const fn with_present_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_present_checked(self, value: bool) -> Result<Self, ()>
Bits: 7..8
Sourcepub const fn with_present(self, value: bool) -> Self
pub const fn with_present(self, value: bool) -> Self
Bits: 7..8
Sourcepub const fn set_present(&mut self, value: bool)
pub const fn set_present(&mut self, value: bool)
Bits: 7..8
Sourcepub const fn with_reserved1_checked(self, value: u32) -> Result<Self, ()>
pub const fn with_reserved1_checked(self, value: u32) -> Result<Self, ()>
Bits: 8..12
Sourcepub const fn with_reserved1(self, value: u32) -> Self
pub const fn with_reserved1(self, value: u32) -> Self
Bits: 8..12
Sourcepub const fn set_reserved1(&mut self, value: u32)
pub const fn set_reserved1(&mut self, value: u32)
Bits: 8..12
Sourcepub const fn with_available_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_available_checked(self, value: bool) -> Result<Self, ()>
Bits: 12..13
Sourcepub const fn with_available(self, value: bool) -> Self
pub const fn with_available(self, value: bool) -> Self
Bits: 12..13
Sourcepub const fn set_available(&mut self, value: bool)
pub const fn set_available(&mut self, value: bool)
Bits: 12..13
Sourcepub const fn with_long_mode_checked(self, value: u32) -> Result<Self, ()>
pub const fn with_long_mode_checked(self, value: u32) -> Result<Self, ()>
Bits: 13..14
Sourcepub const fn with_long_mode(self, value: u32) -> Self
pub const fn with_long_mode(self, value: u32) -> Self
Bits: 13..14
Sourcepub const fn set_long_mode(&mut self, value: u32)
pub const fn set_long_mode(&mut self, value: u32)
Bits: 13..14
Sourcepub const fn default_size(&self) -> u32
pub const fn default_size(&self) -> u32
Bits: 14..15
Sourcepub const fn with_default_size_checked(self, value: u32) -> Result<Self, ()>
pub const fn with_default_size_checked(self, value: u32) -> Result<Self, ()>
Bits: 14..15
Sourcepub const fn with_default_size(self, value: u32) -> Self
pub const fn with_default_size(self, value: u32) -> Self
Bits: 14..15
Sourcepub const fn set_default_size(&mut self, value: u32)
pub const fn set_default_size(&mut self, value: u32)
Bits: 14..15
Sourcepub const fn granularity(&self) -> u32
pub const fn granularity(&self) -> u32
Bits: 15..16
Sourcepub const fn with_granularity_checked(self, value: u32) -> Result<Self, ()>
pub const fn with_granularity_checked(self, value: u32) -> Result<Self, ()>
Bits: 15..16
Sourcepub const fn with_granularity(self, value: u32) -> Self
pub const fn with_granularity(self, value: u32) -> Self
Bits: 15..16
Sourcepub const fn set_granularity(&mut self, value: u32)
pub const fn set_granularity(&mut self, value: u32)
Bits: 15..16
Sourcepub const fn with_null_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_null_checked(self, value: bool) -> Result<Self, ()>
Bits: 16..17
Sourcepub const fn with_reserved_checked(self, value: u32) -> Result<Self, ()>
pub const fn with_reserved_checked(self, value: u32) -> Result<Self, ()>
Bits: 17..32
Sourcepub const fn with_reserved(self, value: u32) -> Self
pub const fn with_reserved(self, value: u32) -> Self
Bits: 17..32
Sourcepub const fn set_reserved(&mut self, value: u32)
pub const fn set_reserved(&mut self, value: u32)
Bits: 17..32
Trait Implementations§
Source§impl Clone for VmxSegmentAttributes
impl Clone for VmxSegmentAttributes
Source§fn clone(&self) -> VmxSegmentAttributes
fn clone(&self) -> VmxSegmentAttributes
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 VmxSegmentAttributes
impl Debug for VmxSegmentAttributes
Source§impl Default for VmxSegmentAttributes
impl Default for VmxSegmentAttributes
Source§impl From<VmxSegmentAttributes> for u32
impl From<VmxSegmentAttributes> for u32
Source§fn from(v: VmxSegmentAttributes) -> u32
fn from(v: VmxSegmentAttributes) -> u32
Converts to this type from the input type.
Source§impl From<u32> for VmxSegmentAttributes
impl From<u32> for VmxSegmentAttributes
impl Copy for VmxSegmentAttributes
Auto Trait Implementations§
impl Freeze for VmxSegmentAttributes
impl RefUnwindSafe for VmxSegmentAttributes
impl Send for VmxSegmentAttributes
impl Sync for VmxSegmentAttributes
impl Unpin for VmxSegmentAttributes
impl UnwindSafe for VmxSegmentAttributes
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