pub enum NdarrowError {
NullsPresent {
null_count: usize,
},
TypeMismatch {
message: String,
},
ShapeMismatch {
message: String,
},
InvalidMetadata {
message: String,
},
InnerTypeMismatch {
message: String,
},
NonStandardLayout,
SparseOffsetMismatch,
Arrow(ArrowError),
Shape(ShapeError),
}Expand description
Errors that can occur during Arrow <-> ndarray conversions.
Variants§
NullsPresent
Arrow array contains null values where none were expected.
TypeMismatch
The Arrow array’s data type does not match the expected type.
ShapeMismatch
The array shape is incompatible with the requested ndarray shape.
InvalidMetadata
Extension type metadata is missing or invalid.
InnerTypeMismatch
The inner array of a composite type (FixedSizeList, Struct) is not the expected type.
NonStandardLayout
The ndarray is not in standard (C-contiguous) layout and cannot be transferred to Arrow without copying.
SparseOffsetMismatch
Sparse arrays have mismatched offsets between indices and values columns.
Arrow(ArrowError)
An error propagated from the arrow crate.
Shape(ShapeError)
An ndarray shape error.
Trait Implementations§
Source§impl Debug for NdarrowError
impl Debug for NdarrowError
Source§impl Display for NdarrowError
impl Display for NdarrowError
Source§impl Error for NdarrowError
impl Error for NdarrowError
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<ArrowError> for NdarrowError
impl From<ArrowError> for NdarrowError
Source§fn from(err: ArrowError) -> Self
fn from(err: ArrowError) -> Self
Converts to this type from the input type.
Source§impl From<ShapeError> for NdarrowError
impl From<ShapeError> for NdarrowError
Source§fn from(err: ShapeError) -> Self
fn from(err: ShapeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NdarrowError
impl !RefUnwindSafe for NdarrowError
impl Send for NdarrowError
impl Sync for NdarrowError
impl Unpin for NdarrowError
impl UnsafeUnpin for NdarrowError
impl !UnwindSafe for NdarrowError
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