Enum eccodes::errors::MessageNdarrayError
source · pub enum MessageNdarrayError {
UnexpectedKeyType(String),
UnexpectedValuesLength(usize, usize),
UnexpectedKeyValue(String),
InvalidShape(ShapeError),
IntCasting(TryFromIntError),
}
Available on crate feature
message_ndarray
only.Expand description
Errors returned by the message_ndarray
module.
Variants§
UnexpectedKeyType(String)
Returned when functions converting to ndarray cannot correctly read key necessary for the conversion.
UnexpectedValuesLength(usize, usize)
Returned when length of values array is not equal to product of Ni and Nj keys.
UnexpectedKeyValue(String)
Returned when functions converting to ndarray cannot correctly parse key necessary for the conversion.
InvalidShape(ShapeError)
Returned when ndarray cannot create an array with the shape defined by Ni and Nj keys.
IntCasting(TryFromIntError)
This error can occur when casting types of shape fails on 32-bit systems or for very large arrays.
Trait Implementations§
source§impl Clone for MessageNdarrayError
impl Clone for MessageNdarrayError
source§fn clone(&self) -> MessageNdarrayError
fn clone(&self) -> MessageNdarrayError
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 MessageNdarrayError
impl Debug for MessageNdarrayError
source§impl Display for MessageNdarrayError
impl Display for MessageNdarrayError
source§impl Error for MessageNdarrayError
impl Error for MessageNdarrayError
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<MessageNdarrayError> for CodesError
impl From<MessageNdarrayError> for CodesError
source§fn from(source: MessageNdarrayError) -> Self
fn from(source: MessageNdarrayError) -> Self
Converts to this type from the input type.
source§impl From<ShapeError> for MessageNdarrayError
impl From<ShapeError> for MessageNdarrayError
source§fn from(source: ShapeError) -> Self
fn from(source: ShapeError) -> Self
Converts to this type from the input type.
source§impl From<TryFromIntError> for MessageNdarrayError
impl From<TryFromIntError> for MessageNdarrayError
source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
source§impl PartialEq for MessageNdarrayError
impl PartialEq for MessageNdarrayError
source§fn eq(&self, other: &MessageNdarrayError) -> bool
fn eq(&self, other: &MessageNdarrayError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MessageNdarrayError
Auto Trait Implementations§
impl Freeze for MessageNdarrayError
impl RefUnwindSafe for MessageNdarrayError
impl Send for MessageNdarrayError
impl Sync for MessageNdarrayError
impl Unpin for MessageNdarrayError
impl UnwindSafe for MessageNdarrayError
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