Enum lc3_ensemble::ast::OffsetNewErr
source · pub enum OffsetNewErr {
CannotFitUnsigned(u32),
CannotFitSigned(u32),
}Expand description
The errors that can result from calling Offset::new.
Variants§
CannotFitUnsigned(u32)
The provided offset cannot fit an unsigned integer of the given bitsize.
CannotFitSigned(u32)
The provided offset cannot fit a signed integer of the given bitsize.
Trait Implementations§
source§impl Clone for OffsetNewErr
impl Clone for OffsetNewErr
source§fn clone(&self) -> OffsetNewErr
fn clone(&self) -> OffsetNewErr
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 OffsetNewErr
impl Debug for OffsetNewErr
source§impl Display for OffsetNewErr
impl Display for OffsetNewErr
source§impl Error for OffsetNewErr
impl Error for OffsetNewErr
source§impl Error for OffsetNewErr
impl Error for OffsetNewErr
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl Hash for OffsetNewErr
impl Hash for OffsetNewErr
source§impl PartialEq for OffsetNewErr
impl PartialEq for OffsetNewErr
source§fn eq(&self, other: &OffsetNewErr) -> bool
fn eq(&self, other: &OffsetNewErr) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for OffsetNewErr
impl Eq for OffsetNewErr
impl StructuralPartialEq for OffsetNewErr
Auto Trait Implementations§
impl Freeze for OffsetNewErr
impl RefUnwindSafe for OffsetNewErr
impl Send for OffsetNewErr
impl Sync for OffsetNewErr
impl Unpin for OffsetNewErr
impl UnwindSafe for OffsetNewErr
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