#[non_exhaustive]pub enum PictureSizeError {
Empty,
TooLarge,
}Expand description
Why a size is not a PictureSize.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for PictureSizeError
impl Clone for PictureSizeError
impl Copy for PictureSizeError
Source§impl Debug for PictureSizeError
impl Debug for PictureSizeError
Source§impl Display for PictureSizeError
impl Display for PictureSizeError
impl Eq for PictureSizeError
Source§impl Error for PictureSizeError
impl Error for PictureSizeError
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 PictureSizeError
impl PartialEq for PictureSizeError
impl StructuralPartialEq for PictureSizeError
Auto Trait Implementations§
impl Freeze for PictureSizeError
impl RefUnwindSafe for PictureSizeError
impl Send for PictureSizeError
impl Sync for PictureSizeError
impl Unpin for PictureSizeError
impl UnsafeUnpin for PictureSizeError
impl UnwindSafe for PictureSizeError
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