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 duplicate 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
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 Error for OffsetNewErr
impl Error for OffsetNewErr
Source§impl Hash for OffsetNewErr
impl Hash for OffsetNewErr
Source§impl PartialEq for OffsetNewErr
impl PartialEq for OffsetNewErr
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