#[repr(u8)]pub enum NewGPRError {
InvalidBit8HighIndex = 0,
IndexOutOfRange = 1,
}
Expand description
Represents an error that occurs when creating a new general purpose register.
Variants§
InvalidBit8HighIndex = 0
Error when creating a new GPR
from a GPRKind::Bit8High
and index
outside of the 4..=7
range.
IndexOutOfRange = 1
Error when creating a new GPR
from a kind
and index
outside of the 0..=15
range.
Trait Implementations§
Source§impl Clone for NewGPRError
impl Clone for NewGPRError
Source§fn clone(&self) -> NewGPRError
fn clone(&self) -> NewGPRError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NewGPRError
impl Debug for NewGPRError
Source§impl Hash for NewGPRError
impl Hash for NewGPRError
Source§impl PartialEq for NewGPRError
impl PartialEq for NewGPRError
impl Copy for NewGPRError
impl Eq for NewGPRError
impl StructuralPartialEq for NewGPRError
Auto Trait Implementations§
impl Freeze for NewGPRError
impl RefUnwindSafe for NewGPRError
impl Send for NewGPRError
impl Sync for NewGPRError
impl Unpin for NewGPRError
impl UnwindSafe for NewGPRError
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