pub struct ExceptionSyndromeRegister(/* private fields */);Expand description
Implementations§
Source§impl ExceptionSyndromeRegister
impl ExceptionSyndromeRegister
Sourcepub const RSVD1_MASK: u64
pub const RSVD1_MASK: u64
Mask of all reserved-as-1 bits.
Sourcepub const RSVD0_MASK: u64
pub const RSVD0_MASK: u64
Mask of all reserved-as-0 bits.
Sourcepub const DEFAULT: u64
pub const DEFAULT: u64
The default value of the layout, combining all field defaults and reserved-as values.
Sourcepub const ISS2_SHIFT: usize = 32
pub const ISS2_SHIFT: usize = 32
Bit shift (i.e., the low bit) of iss2.
Sourcepub const FIELDS: [FieldMetadata<u64>; 4]
pub const FIELDS: [FieldMetadata<u64>; 4]
Metadata of all named fields in the layout.
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new instance with reserved-as-1 bits set and
all other bits zeroed (i.e., with a value of
Self::RSVD1_MASK).
pub const fn bits(self) -> u64
Sourcepub const fn set_iss2(&mut self, value: u32) -> &mut Self
pub const fn set_iss2(&mut self, value: u32) -> &mut Self
Sets the value of ExceptionSyndromeRegister[55:32].
Sourcepub fn ec(&self) -> ExceptionClasswhere
ExceptionClass: TryFromBytes,
pub fn ec(&self) -> ExceptionClasswhere
ExceptionClass: TryFromBytes,
The value of ExceptionSyndromeRegister[31:26].
§Panics
Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_ec to recover from invalid bit patterns.
Sourcepub fn try_ec(&self) -> Result<ExceptionClass, InvalidBits<u8>>where
ExceptionClass: TryFromBytes,
pub fn try_ec(&self) -> Result<ExceptionClass, InvalidBits<u8>>where
ExceptionClass: TryFromBytes,
Fallible variant of Self::ec.
Sourcepub fn set_ec(&mut self, value: ExceptionClass) -> &mut Self
pub fn set_ec(&mut self, value: ExceptionClass) -> &mut Self
Sets the value of ExceptionSyndromeRegister[31:26].
Trait Implementations§
Source§impl Binary for ExceptionSyndromeRegister
impl Binary for ExceptionSyndromeRegister
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Resultwhere
ExceptionClass: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Resultwhere
ExceptionClass: Debug,
Formats the value using the given formatter. Read more
Source§impl Clone for ExceptionSyndromeRegister
impl Clone for ExceptionSyndromeRegister
Source§fn clone(&self) -> ExceptionSyndromeRegister
fn clone(&self) -> ExceptionSyndromeRegister
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExceptionSyndromeRegister
Source§impl Debug for ExceptionSyndromeRegister
impl Debug for ExceptionSyndromeRegister
Source§impl Default for ExceptionSyndromeRegister
impl Default for ExceptionSyndromeRegister
Source§fn default() -> Self
fn default() -> Self
Returns an instance with the default bits set (i.e,. with a
value of Self::DEFAULT.
impl Eq for ExceptionSyndromeRegister
Source§impl From<ExceptionSyndromeRegister> for u64
impl From<ExceptionSyndromeRegister> for u64
Source§fn from(value: ExceptionSyndromeRegister) -> Self
fn from(value: ExceptionSyndromeRegister) -> Self
Converts to this type from the input type.
Source§impl From<u64> for ExceptionSyndromeRegister
impl From<u64> for ExceptionSyndromeRegister
Source§impl IntoIterator for ExceptionSyndromeRegister
impl IntoIterator for ExceptionSyndromeRegister
Source§impl<'a> IntoIterator for &'a ExceptionSyndromeRegister
impl<'a> IntoIterator for &'a ExceptionSyndromeRegister
Source§impl LowerHex for ExceptionSyndromeRegister
impl LowerHex for ExceptionSyndromeRegister
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Resultwhere
ExceptionClass: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Resultwhere
ExceptionClass: Debug,
Formats the value using the given formatter. Read more
Source§impl Octal for ExceptionSyndromeRegister
impl Octal for ExceptionSyndromeRegister
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Resultwhere
ExceptionClass: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Resultwhere
ExceptionClass: Debug,
Formats the value using the given formatter. Read more
Source§impl PartialEq for ExceptionSyndromeRegister
impl PartialEq for ExceptionSyndromeRegister
impl StructuralPartialEq for ExceptionSyndromeRegister
Source§impl UpperHex for ExceptionSyndromeRegister
impl UpperHex for ExceptionSyndromeRegister
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Resultwhere
ExceptionClass: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Resultwhere
ExceptionClass: Debug,
Formats the value using the given formatter. Read more
Auto Trait Implementations§
impl Freeze for ExceptionSyndromeRegister
impl RefUnwindSafe for ExceptionSyndromeRegister
impl Send for ExceptionSyndromeRegister
impl Sync for ExceptionSyndromeRegister
impl Unpin for ExceptionSyndromeRegister
impl UnsafeUnpin for ExceptionSyndromeRegister
impl UnwindSafe for ExceptionSyndromeRegister
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,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)