pub enum RankAdapterError {
Unsupported(String),
RoundTrip(String),
LimitExceeded(String),
Invalid(String),
}Expand description
Errors raised by discrete rank spaces, metrics, and grade compilers.
Variants§
Unsupported(String)
A staged rank adapter is not yet implemented.
RoundTrip(String)
A rank / unrank round-trip invariant was violated.
LimitExceeded(String)
An explicit enumeration or search limit was exceeded.
Invalid(String)
A value was invalid for the space (wrong shape, out of range, etc.).
Trait Implementations§
Source§impl Clone for RankAdapterError
impl Clone for RankAdapterError
Source§fn clone(&self) -> RankAdapterError
fn clone(&self) -> RankAdapterError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RankAdapterError
impl Debug for RankAdapterError
Source§impl Display for RankAdapterError
impl Display for RankAdapterError
impl Eq for RankAdapterError
Source§impl Error for RankAdapterError
impl Error for RankAdapterError
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 From<CombError> for RankAdapterError
impl From<CombError> for RankAdapterError
Source§impl From<GraphError> for RankAdapterError
impl From<GraphError> for RankAdapterError
Source§fn from(err: GraphError) -> Self
fn from(err: GraphError) -> Self
Converts to this type from the input type.
Source§impl From<SpectralError> for RankAdapterError
impl From<SpectralError> for RankAdapterError
Source§fn from(err: SpectralError) -> Self
fn from(err: SpectralError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RankAdapterError
impl PartialEq for RankAdapterError
impl StructuralPartialEq for RankAdapterError
Auto Trait Implementations§
impl Freeze for RankAdapterError
impl RefUnwindSafe for RankAdapterError
impl Send for RankAdapterError
impl Sync for RankAdapterError
impl Unpin for RankAdapterError
impl UnsafeUnpin for RankAdapterError
impl UnwindSafe for RankAdapterError
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