pub enum PenaltyMapError {
InvalidDimensions,
SizeMismatch {
expected: usize,
actual: usize,
},
}Expand description
Errors returned by penalty-map validation.
Variants§
Trait Implementations§
Source§impl Clone for PenaltyMapError
impl Clone for PenaltyMapError
Source§fn clone(&self) -> PenaltyMapError
fn clone(&self) -> PenaltyMapError
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 PenaltyMapError
impl Debug for PenaltyMapError
Source§impl Display for PenaltyMapError
impl Display for PenaltyMapError
Source§impl Error for PenaltyMapError
impl Error for PenaltyMapError
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 PartialEq for PenaltyMapError
impl PartialEq for PenaltyMapError
impl Copy for PenaltyMapError
impl Eq for PenaltyMapError
impl StructuralPartialEq for PenaltyMapError
Auto Trait Implementations§
impl Freeze for PenaltyMapError
impl RefUnwindSafe for PenaltyMapError
impl Send for PenaltyMapError
impl Sync for PenaltyMapError
impl Unpin for PenaltyMapError
impl UnsafeUnpin for PenaltyMapError
impl UnwindSafe for PenaltyMapError
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