pub struct LengthError(/* private fields */);
Expand description
The error returned when the length of the predicted and the ground truth do not match
Trait Implementations§
Source§impl Clone for LengthError
impl Clone for LengthError
Source§fn clone(&self) -> LengthError
fn clone(&self) -> LengthError
Returns a copy 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 LengthError
impl Debug for LengthError
Source§impl Display for LengthError
impl Display for LengthError
Source§impl Error for LengthError
impl Error for LengthError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl Hash for LengthError
impl Hash for LengthError
Source§impl Ord for LengthError
impl Ord for LengthError
Source§fn cmp(&self, other: &LengthError) -> Ordering
fn cmp(&self, other: &LengthError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LengthError
impl PartialEq for LengthError
Source§impl PartialOrd for LengthError
impl PartialOrd for LengthError
impl Copy for LengthError
impl Eq for LengthError
impl StructuralPartialEq for LengthError
Auto Trait Implementations§
impl Freeze for LengthError
impl RefUnwindSafe for LengthError
impl Send for LengthError
impl Sync for LengthError
impl Unpin for LengthError
impl UnwindSafe for LengthError
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