pub enum AdapterError {
Shape {
operation: &'static str,
expected: Vec<usize>,
actual: Vec<usize>,
},
MissingSource {
role: &'static str,
index: usize,
},
Column {
role: &'static str,
index: usize,
columns: usize,
},
UnsupportedElement {
role: &'static str,
element: &'static str,
column: Option<usize>,
},
Binding {
role: &'static str,
detail: String,
},
SourceRow {
slot: usize,
value: String,
column: Option<usize>,
},
Allocation {
operation: &'static str,
source: TryReserveError,
},
Native(Error),
}Expand description
A structural ndarray binding failure, distinct from native scientific validation.
Variants§
Trait Implementations§
Source§impl Debug for AdapterError
impl Debug for AdapterError
Source§impl Display for AdapterError
impl Display for AdapterError
Source§impl Error for AdapterError
impl Error for AdapterError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for AdapterError
impl !UnwindSafe for AdapterError
impl Forget for AdapterError
impl Freeze for AdapterErrorwhere
&'static str: Freeze,
*const u8 is !null: Freeze,
PhantomData<usize>: Freeze,
PhantomData<u8>: Freeze,
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
*const ArcInner<DiagnosticData> is !null: Freeze,
PhantomData<ArcInner<DiagnosticData>>: Freeze,
*const OperationFailure is !null: Freeze,
PhantomData<OperationFailure>: Freeze,
impl Move for AdapterError
impl Send for AdapterError
impl Sync for AdapterError
impl Unpin for AdapterError
impl UnsafeUnpin for AdapterErrorwhere
&'static str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const ArcInner<DiagnosticData> is !null: UnsafeUnpin,
PhantomData<ArcInner<DiagnosticData>>: UnsafeUnpin,
*const OperationFailure is !null: UnsafeUnpin,
PhantomData<OperationFailure>: UnsafeUnpin,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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§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.