Struct abyss::x86_64::segmentation::SegmentSelector
source · #[repr(transparent)]pub struct SegmentSelector(_);
Expand description
X86_64’s segment selector.
Implementations§
source§impl SegmentSelector
impl SegmentSelector
sourcepub const fn new(index: u16, dpl: PrivilegeLevel) -> Self
pub const fn new(index: u16, dpl: PrivilegeLevel) -> Self
Create a new SegmentSelector from the index and dpl.
sourcepub const fn dpl(self) -> PrivilegeLevel
pub const fn dpl(self) -> PrivilegeLevel
Get dpl of the SegmentSelector.
Trait Implementations§
source§impl Clone for SegmentSelector
impl Clone for SegmentSelector
source§fn clone(&self) -> SegmentSelector
fn clone(&self) -> SegmentSelector
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SegmentSelector
impl Debug for SegmentSelector
source§impl PartialEq<SegmentSelector> for SegmentSelector
impl PartialEq<SegmentSelector> for SegmentSelector
source§fn eq(&self, other: &SegmentSelector) -> bool
fn eq(&self, other: &SegmentSelector) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SegmentSelector
impl Eq for SegmentSelector
impl StructuralEq for SegmentSelector
impl StructuralPartialEq for SegmentSelector
Auto Trait Implementations§
impl RefUnwindSafe for SegmentSelector
impl Send for SegmentSelector
impl Sync for SegmentSelector
impl Unpin for SegmentSelector
impl UnwindSafe for SegmentSelector
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
const: unstable§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more