pub enum ParsePaperSizeError {
InvalidHeight,
InvalidWidth,
InvalidUnit,
MissingUnit,
MissingDelimiter,
}Expand description
An error parsing a PaperSize.
Variants§
InvalidHeight
Invalid paper height.
InvalidWidth
Invalid paper width.
InvalidUnit
Invalid unit of measurement.
MissingUnit
Missing unit of measurement.
MissingDelimiter
Missing delimiter.
Trait Implementations§
Source§impl Clone for ParsePaperSizeError
impl Clone for ParsePaperSizeError
Source§fn clone(&self) -> ParsePaperSizeError
fn clone(&self) -> ParsePaperSizeError
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 ParsePaperSizeError
impl Debug for ParsePaperSizeError
Source§impl Display for ParsePaperSizeError
impl Display for ParsePaperSizeError
Source§impl Error for ParsePaperSizeError
impl Error for ParsePaperSizeError
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<ParsePaperSizeError> for ParsePaperSpecError
impl From<ParsePaperSizeError> for ParsePaperSpecError
Source§fn from(value: ParsePaperSizeError) -> Self
fn from(value: ParsePaperSizeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParsePaperSizeError
impl PartialEq for ParsePaperSizeError
impl Copy for ParsePaperSizeError
impl Eq for ParsePaperSizeError
impl StructuralPartialEq for ParsePaperSizeError
Auto Trait Implementations§
impl Freeze for ParsePaperSizeError
impl RefUnwindSafe for ParsePaperSizeError
impl Send for ParsePaperSizeError
impl Sync for ParsePaperSizeError
impl Unpin for ParsePaperSizeError
impl UnwindSafe for ParsePaperSizeError
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