pub struct ReshapeShapeError(/* private fields */);Expand description
A ReshapeShape error.
For example
- more than one element is -1, or
- input dims are not increasing.
Trait Implementations§
Source§impl Clone for ReshapeShapeError
impl Clone for ReshapeShapeError
Source§fn clone(&self) -> ReshapeShapeError
fn clone(&self) -> ReshapeShapeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReshapeShapeError
impl Debug for ReshapeShapeError
Source§impl Display for ReshapeShapeError
impl Display for ReshapeShapeError
Source§impl Error for ReshapeShapeError
impl Error for ReshapeShapeError
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<Vec<ReshapeDim>> for ReshapeShapeError
impl From<Vec<ReshapeDim>> for ReshapeShapeError
Source§fn from(value: Vec<ReshapeDim>) -> Self
fn from(value: Vec<ReshapeDim>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReshapeShapeError
impl RefUnwindSafe for ReshapeShapeError
impl Send for ReshapeShapeError
impl Sync for ReshapeShapeError
impl Unpin for ReshapeShapeError
impl UnsafeUnpin for ReshapeShapeError
impl UnwindSafe for ReshapeShapeError
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