pub enum StorageCoerceError {
Unsupported {
from: &'static str,
to: &'static str,
},
OutOfRange {
from: &'static str,
to: &'static str,
index: Option<usize>,
},
NonFinite {
to: &'static str,
index: Option<usize>,
},
PrecisionLoss {
to: &'static str,
index: Option<usize>,
},
NotIntegral {
to: &'static str,
index: Option<usize>,
},
MissingValue {
to: &'static str,
index: Option<usize>,
},
InvalidUtf8 {
index: Option<usize>,
},
}Expand description
Error type for storage-directed conversion failures.
Variants§
Unsupported
Conversion between these types is not supported.
OutOfRange
Value is out of range for the target type.
Fields
NonFinite
Value is non-finite (NaN or Inf) but target requires finite.
Fields
PrecisionLoss
Conversion would lose precision.
Fields
NotIntegral
Float value is not integral but target is integer type.
Fields
MissingValue
Missing value (NA) cannot be represented in target type.
Fields
InvalidUtf8
Invalid UTF-8 in string conversion.
Implementations§
Trait Implementations§
Source§impl Clone for StorageCoerceError
impl Clone for StorageCoerceError
Source§fn clone(&self) -> StorageCoerceError
fn clone(&self) -> StorageCoerceError
Returns a duplicate 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 StorageCoerceError
impl Debug for StorageCoerceError
Source§impl Display for StorageCoerceError
impl Display for StorageCoerceError
Source§impl Error for StorageCoerceError
impl Error for StorageCoerceError
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 PartialEq for StorageCoerceError
impl PartialEq for StorageCoerceError
impl Eq for StorageCoerceError
impl StructuralPartialEq for StorageCoerceError
Auto Trait Implementations§
impl Freeze for StorageCoerceError
impl RefUnwindSafe for StorageCoerceError
impl Send for StorageCoerceError
impl Sync for StorageCoerceError
impl Unpin for StorageCoerceError
impl UnsafeUnpin for StorageCoerceError
impl UnwindSafe for StorageCoerceError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> RDisplay for Twhere
T: Display,
impl<T> RDisplay for Twhere
T: Display,
Source§fn as_r_string(&self) -> String
fn as_r_string(&self) -> String
Convert to a user-friendly string.
Source§impl<T> RError for Twhere
T: Error,
impl<T> RError for Twhere
T: Error,
Source§fn error_message(&self) -> String
fn error_message(&self) -> String
Get the error message (Display representation).
Source§fn error_chain(&self) -> Vec<String>
fn error_chain(&self) -> Vec<String>
Get all error messages in the chain, from outermost to innermost.
Source§fn error_chain_length(&self) -> i32
fn error_chain_length(&self) -> i32
Get the number of errors in the chain.