pub struct ModuloError {
pub divisor: usize,
pub modulo: usize,
}Expand description
Fields§
§divisor: usizeThe divisor that the value length should be divided by (the D).
modulo: usizeThe expected modulo of the length division (the M).
Implementations§
Trait Implementations§
Source§impl Debug for ModuloError
impl Debug for ModuloError
Source§impl Display for ModuloError
impl Display for ModuloError
Source§impl Error for ModuloError
impl Error for ModuloError
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()
Auto Trait Implementations§
impl Freeze for ModuloError
impl RefUnwindSafe for ModuloError
impl Send for ModuloError
impl Sync for ModuloError
impl Unpin for ModuloError
impl UnwindSafe for ModuloError
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