Struct x86defs::SegmentAttributes
source · pub struct SegmentAttributes(/* private fields */);
Implementations§
source§impl SegmentAttributes
impl SegmentAttributes
sourcepub const fn segment_type(&self) -> u8
pub const fn segment_type(&self) -> u8
Bits: 0..4
sourcepub const fn with_segment_type(self, value: u8) -> Self
pub const fn with_segment_type(self, value: u8) -> Self
Bits: 0..4
sourcepub fn set_segment_type(&mut self, value: u8)
pub fn set_segment_type(&mut self, value: u8)
Bits: 0..4
sourcepub const fn non_system_segment(&self) -> bool
pub const fn non_system_segment(&self) -> bool
Bits: 4..5
sourcepub const fn with_non_system_segment(self, value: bool) -> Self
pub const fn with_non_system_segment(self, value: bool) -> Self
Bits: 4..5
sourcepub fn set_non_system_segment(&mut self, value: bool)
pub fn set_non_system_segment(&mut self, value: bool)
Bits: 4..5
sourcepub const fn descriptor_privilege_level(&self) -> u8
pub const fn descriptor_privilege_level(&self) -> u8
Bits: 5..7
sourcepub const fn with_descriptor_privilege_level(self, value: u8) -> Self
pub const fn with_descriptor_privilege_level(self, value: u8) -> Self
Bits: 5..7
sourcepub fn set_descriptor_privilege_level(&mut self, value: u8)
pub fn set_descriptor_privilege_level(&mut self, value: u8)
Bits: 5..7
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_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_default(self, value: bool) -> Self
pub const fn with_default(self, value: bool) -> Self
Bits: 14..15
sourcepub fn set_default(&mut self, value: bool)
pub fn set_default(&mut self, value: bool)
Bits: 14..15
sourcepub const fn granularity(&self) -> bool
pub const fn granularity(&self) -> bool
Bits: 15..16
sourcepub const fn with_granularity(self, value: bool) -> Self
pub const fn with_granularity(self, value: bool) -> Self
Bits: 15..16
sourcepub fn set_granularity(&mut self, value: bool)
pub fn set_granularity(&mut self, value: bool)
Bits: 15..16
Trait Implementations§
source§impl<'a> Arbitrary<'a> for SegmentAttributes
impl<'a> Arbitrary<'a> for SegmentAttributes
source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read more§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl Clone for SegmentAttributes
impl Clone for SegmentAttributes
source§fn clone(&self) -> SegmentAttributes
fn clone(&self) -> SegmentAttributes
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 SegmentAttributes
impl Debug for SegmentAttributes
source§impl Default for SegmentAttributes
impl Default for SegmentAttributes
source§impl From<SegmentAttributes> for u16
impl From<SegmentAttributes> for u16
source§fn from(v: SegmentAttributes) -> u16
fn from(v: SegmentAttributes) -> u16
Converts to this type from the input type.
source§impl From<u16> for SegmentAttributes
impl From<u16> for SegmentAttributes
source§impl PartialEq for SegmentAttributes
impl PartialEq for SegmentAttributes
impl Copy for SegmentAttributes
impl StructuralPartialEq for SegmentAttributes
Auto Trait Implementations§
impl Freeze for SegmentAttributes
impl RefUnwindSafe for SegmentAttributes
impl Send for SegmentAttributes
impl Sync for SegmentAttributes
impl Unpin for SegmentAttributes
impl UnwindSafe for SegmentAttributes
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
)