pub enum DecimalResolutionParseError {
InvalidWidth,
MissingSeparator,
InvalidHeight,
}Expand description
An error found when trying to parse a decimal resolution (<width>x<height>).
Variants§
InvalidWidth
The width component was not a valid integer.
MissingSeparator
The x separator character was missing.
InvalidHeight
The height component was not a valid integer.
Trait Implementations§
Source§impl Clone for DecimalResolutionParseError
impl Clone for DecimalResolutionParseError
Source§fn clone(&self) -> DecimalResolutionParseError
fn clone(&self) -> DecimalResolutionParseError
Returns a duplicate 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 DecimalResolutionParseError
impl Debug for DecimalResolutionParseError
Source§impl Error for DecimalResolutionParseError
impl Error for DecimalResolutionParseError
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()
impl Copy for DecimalResolutionParseError
impl StructuralPartialEq for DecimalResolutionParseError
Auto Trait Implementations§
impl Freeze for DecimalResolutionParseError
impl RefUnwindSafe for DecimalResolutionParseError
impl Send for DecimalResolutionParseError
impl Sync for DecimalResolutionParseError
impl Unpin for DecimalResolutionParseError
impl UnsafeUnpin for DecimalResolutionParseError
impl UnwindSafe for DecimalResolutionParseError
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