pub enum TypeError {
Show 15 variants
IncompatibleDtypes {
left: DType,
right: DType,
},
InvalidCast {
from: DType,
to: DType,
},
LossyFloatToInt {
value: f64,
},
InvalidBoolInt {
value: i64,
},
InvalidBoolFloat {
value: f64,
},
NonNumericValue {
value: String,
dtype: DType,
},
ValueIsMissing {
kind: NullKind,
},
InvalidSparseValueDType {
dtype: DType,
},
InvalidIntervalStep {
step: f64,
},
IntervalStepDoesNotDivide {
step: f64,
span: f64,
},
IntervalRangeParameterCount,
ValueNotParseable {
value: String,
target: String,
},
TimeZone(TimeZoneError),
AlreadyTzAware,
TzNaiveCannotConvert,
}Variants§
IncompatibleDtypes
InvalidCast
LossyFloatToInt
InvalidBoolInt
InvalidBoolFloat
NonNumericValue
ValueIsMissing
InvalidSparseValueDType
InvalidIntervalStep
IntervalStepDoesNotDivide
IntervalRangeParameterCount
ValueNotParseable
TimeZone(TimeZoneError)
AlreadyTzAware
TzNaiveCannotConvert
Trait Implementations§
Source§impl Error for TypeError
impl Error for TypeError
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<TimeZoneError> for TypeError
impl From<TimeZoneError> for TypeError
Source§fn from(source: TimeZoneError) -> Self
fn from(source: TimeZoneError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for TypeError
Auto Trait Implementations§
impl Forget for TypeError
impl Freeze for TypeError
impl Move for TypeError
impl RefUnwindSafe for TypeError
impl Send for TypeError
impl Sync for TypeError
impl Unpin for TypeError
impl UnsafeUnpin for TypeError
impl UnwindSafe for TypeError
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