pub enum CovGradError {
ShapeMismatch(Vec<(usize, usize)>),
Empty,
ImproperSize(usize, usize),
}
Expand description
Error from constructing a CovGrad
Variants§
ShapeMismatch(Vec<(usize, usize)>)
The shapes of the slices do not match
Empty
A CovGrad cannot be empty
ImproperSize(usize, usize)
Improper number of points to construct a CovGrad
Trait Implementations§
source§impl Clone for CovGradError
impl Clone for CovGradError
source§fn clone(&self) -> CovGradError
fn clone(&self) -> CovGradError
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 CovGradError
impl Debug for CovGradError
source§impl<'de> Deserialize<'de> for CovGradError
impl<'de> Deserialize<'de> for CovGradError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for CovGradError
impl Display for CovGradError
source§impl Error for CovGradError
impl Error for CovGradError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<CovGradError> for KernelError
impl From<CovGradError> for KernelError
source§fn from(e: CovGradError) -> Self
fn from(e: CovGradError) -> Self
Converts to this type from the input type.
source§impl PartialEq for CovGradError
impl PartialEq for CovGradError
source§fn eq(&self, other: &CovGradError) -> bool
fn eq(&self, other: &CovGradError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CovGradError
impl Serialize for CovGradError
impl Eq for CovGradError
impl StructuralPartialEq for CovGradError
Auto Trait Implementations§
impl Freeze for CovGradError
impl RefUnwindSafe for CovGradError
impl Send for CovGradError
impl Sync for CovGradError
impl Unpin for CovGradError
impl UnwindSafe for CovGradError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.