Enum sprs::errors::StructureError
source · pub enum StructureError {
Unsorted(&'static str),
SizeMismatch(&'static str),
OutOfRange(&'static str),
}
Variants§
Implementations§
source§impl StructureError
impl StructureError
pub fn kind(&self) -> StructureErrorKind
Trait Implementations§
source§impl Clone for StructureError
impl Clone for StructureError
source§fn clone(&self) -> StructureError
fn clone(&self) -> StructureError
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 StructureError
impl Debug for StructureError
source§impl Display for StructureError
impl Display for StructureError
source§impl Error for StructureError
impl Error for StructureError
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<StructureError> for SprsError
impl From<StructureError> for SprsError
source§fn from(e: StructureError) -> Self
fn from(e: StructureError) -> Self
Converts to this type from the input type.
source§impl PartialEq<StructureError> for StructureError
impl PartialEq<StructureError> for StructureError
source§fn eq(&self, other: &StructureError) -> bool
fn eq(&self, other: &StructureError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for StructureError
impl Eq for StructureError
impl StructuralEq for StructureError
impl StructuralPartialEq for StructureError
Auto Trait Implementations§
impl RefUnwindSafe for StructureError
impl Send for StructureError
impl Sync for StructureError
impl Unpin for StructureError
impl UnwindSafe for StructureError
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
§impl<T> Pointable for T
impl<T> Pointable for T
source§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§unsafe fn to_subset_unchecked(&self) -> SS
unsafe 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.