Struct bddisasm::cpu_modes::PrivilegeLevel
source · pub struct PrivilegeLevel {
pub ring0: bool,
pub ring1: bool,
pub ring2: bool,
pub ring3: bool,
}
Expand description
Privilege levels (rings) in which an instruction is supported.
Fields§
§ring0: bool
Instruction is valid in ring 0.
ring1: bool
Instruction is valid in ring 1.
ring2: bool
Instruction is valid in ring 2.
ring3: bool
Instruction is valid in ring 3.
Trait Implementations§
source§impl Clone for PrivilegeLevel
impl Clone for PrivilegeLevel
source§fn clone(&self) -> PrivilegeLevel
fn clone(&self) -> PrivilegeLevel
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 PrivilegeLevel
impl Debug for PrivilegeLevel
source§impl Hash for PrivilegeLevel
impl Hash for PrivilegeLevel
source§impl PartialEq for PrivilegeLevel
impl PartialEq for PrivilegeLevel
source§fn eq(&self, other: &PrivilegeLevel) -> bool
fn eq(&self, other: &PrivilegeLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PrivilegeLevel
impl Eq for PrivilegeLevel
impl StructuralPartialEq for PrivilegeLevel
Auto Trait Implementations§
impl RefUnwindSafe for PrivilegeLevel
impl Send for PrivilegeLevel
impl Sync for PrivilegeLevel
impl Unpin for PrivilegeLevel
impl UnwindSafe for PrivilegeLevel
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