Struct x86defs::vmx::VmxSegmentAttributes
source · pub struct VmxSegmentAttributes(/* private fields */);
Implementations§
source§impl VmxSegmentAttributes
impl VmxSegmentAttributes
sourcepub const fn with_present(self, value: bool) -> Self
pub const fn with_present(self, value: bool) -> Self
Bits: 7..8
sourcepub fn set_present(&mut self, value: bool)
pub fn set_present(&mut self, value: bool)
Bits: 7..8
sourcepub const fn with_reserved1(self, value: u32) -> Self
pub const fn with_reserved1(self, value: u32) -> Self
Bits: 8..12
sourcepub fn set_reserved1(&mut self, value: u32)
pub fn set_reserved1(&mut self, value: u32)
Bits: 8..12
sourcepub const fn with_available(self, value: bool) -> Self
pub const fn with_available(self, value: bool) -> Self
Bits: 12..13
sourcepub fn set_available(&mut self, value: bool)
pub fn set_available(&mut self, value: bool)
Bits: 12..13
sourcepub const fn with_long_mode(self, value: u32) -> Self
pub const fn with_long_mode(self, value: u32) -> Self
Bits: 13..14
sourcepub fn set_long_mode(&mut self, value: u32)
pub 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(self, value: u32) -> Self
pub const fn with_default_size(self, value: u32) -> Self
Bits: 14..15
sourcepub fn set_default_size(&mut self, value: u32)
pub 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(self, value: u32) -> Self
pub const fn with_granularity(self, value: u32) -> Self
Bits: 15..16
sourcepub fn set_granularity(&mut self, value: u32)
pub fn set_granularity(&mut self, value: u32)
Bits: 15..16
sourcepub const fn with_reserved(self, value: u32) -> Self
pub const fn with_reserved(self, value: u32) -> Self
Bits: 17..32
sourcepub fn set_reserved(&mut self, value: u32)
pub 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
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
)