pub enum OwnedValueError {
ArrayShapeOverflow {
rows: usize,
columns: usize,
},
InvalidArrayShape {
rows: usize,
columns: usize,
elements: usize,
},
NestedArrayUnsupported,
}Expand description
Failure to construct an owned semantic value directly.
Variants§
ArrayShapeOverflow
Multiplying the requested dimensions overflowed usize.
InvalidArrayShape
The supplied flat element count does not match the dimensions.
Fields
NestedArrayUnsupported
An owned array attempted to contain another array.
Trait Implementations§
Source§impl Clone for OwnedValueError
impl Clone for OwnedValueError
Source§impl Debug for OwnedValueError
impl Debug for OwnedValueError
Source§impl Display for OwnedValueError
impl Display for OwnedValueError
impl Eq for OwnedValueError
Source§impl Error for OwnedValueError
impl Error for OwnedValueError
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 From<OwnedValueError> for ConversionError
impl From<OwnedValueError> for ConversionError
Source§fn from(error: OwnedValueError) -> Self
fn from(error: OwnedValueError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OwnedValueError
impl PartialEq for OwnedValueError
impl StructuralPartialEq for OwnedValueError
Auto Trait Implementations§
impl Freeze for OwnedValueError
impl RefUnwindSafe for OwnedValueError
impl Send for OwnedValueError
impl Sync for OwnedValueError
impl Unpin for OwnedValueError
impl UnsafeUnpin for OwnedValueError
impl UnwindSafe for OwnedValueError
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