pub enum AlignError {
ShiftTooBig(u8),
NotPowerOfTwo(u64),
NotByteMultiple(u64),
}
Expand description
Errors that can occur when constructing an Align
Variants§
ShiftTooBig(u8)
The shift would exceed our maximum shift value.
NotPowerOfTwo(u64)
The input used to compute the shift is not a power of two.
NotByteMultiple(u64)
The input used to compute the shift is not a byte multiple.
Trait Implementations§
Source§impl Debug for AlignError
impl Debug for AlignError
Source§impl Display for AlignError
impl Display for AlignError
Source§impl Error for AlignError
impl Error for AlignError
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 From<AlignError> for AlignSpecError
impl From<AlignError> for AlignSpecError
Source§fn from(source: AlignError) -> Self
fn from(source: AlignError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AlignError
impl RefUnwindSafe for AlignError
impl Send for AlignError
impl Sync for AlignError
impl Unpin for AlignError
impl UnwindSafe for AlignError
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