Enum ht16k33::ValidationError
source · pub enum ValidationError {
ValueTooLarge {
name: String,
value: u8,
limit: u8,
inclusive: bool,
},
}
Expand description
Errors encountered during validation.
Variants
ValueTooLarge
Fields
name: String
Name of the value.
value: u8
Value that failed validation.
limit: u8
Limit that the value exceeded.
inclusive: bool
Whether the limit is inclusive or not.
The value is too large.
Trait Implementations
sourceimpl Debug for ValidationError
impl Debug for ValidationError
sourceimpl Display for ValidationError
impl Display for ValidationError
sourceimpl Fail for ValidationError
impl Fail for ValidationError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreAuto Trait Implementations
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnwindSafe for ValidationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more