pub struct PaneSnapshotShapeError { /* private fields */ }Expand description
Error returned when a snapshot’s dimensions do not match its cell vector.
Implementations§
Source§impl PaneSnapshotShapeError
impl PaneSnapshotShapeError
Sourcepub const fn actual_cells(&self) -> usize
pub const fn actual_cells(&self) -> usize
Returns the actual number of cells supplied.
Sourcepub const fn expected_cells(&self) -> usize
pub const fn expected_cells(&self) -> usize
Returns the expected rows * cols cell count.
Trait Implementations§
Source§impl Clone for PaneSnapshotShapeError
impl Clone for PaneSnapshotShapeError
Source§fn clone(&self) -> PaneSnapshotShapeError
fn clone(&self) -> PaneSnapshotShapeError
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 PaneSnapshotShapeError
impl Debug for PaneSnapshotShapeError
Source§impl Display for PaneSnapshotShapeError
impl Display for PaneSnapshotShapeError
impl Eq for PaneSnapshotShapeError
Source§impl Error for PaneSnapshotShapeError
impl Error for PaneSnapshotShapeError
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 Hash for PaneSnapshotShapeError
impl Hash for PaneSnapshotShapeError
Source§impl PartialEq for PaneSnapshotShapeError
impl PartialEq for PaneSnapshotShapeError
Source§fn eq(&self, other: &PaneSnapshotShapeError) -> bool
fn eq(&self, other: &PaneSnapshotShapeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PaneSnapshotShapeError
Auto Trait Implementations§
impl Freeze for PaneSnapshotShapeError
impl RefUnwindSafe for PaneSnapshotShapeError
impl Send for PaneSnapshotShapeError
impl Sync for PaneSnapshotShapeError
impl Unpin for PaneSnapshotShapeError
impl UnsafeUnpin for PaneSnapshotShapeError
impl UnwindSafe for PaneSnapshotShapeError
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