pub enum ParsePaperSpecError {
InvalidHeight,
InvalidWidth,
InvalidUnit,
MissingField,
}
Expand description
An error parsing a PaperSpec.
Variants§
InvalidHeight
Invalid paper height.
InvalidWidth
Invalid paper width.
InvalidUnit
Invalid unit of measurement.
MissingField
Missing field in paper specification.
Trait Implementations§
Source§impl Clone for ParsePaperSpecError
impl Clone for ParsePaperSpecError
Source§fn clone(&self) -> ParsePaperSpecError
fn clone(&self) -> ParsePaperSpecError
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 ParsePaperSpecError
impl Debug for ParsePaperSpecError
Source§impl Display for ParsePaperSpecError
impl Display for ParsePaperSpecError
Source§impl Error for ParsePaperSpecError
impl Error for ParsePaperSpecError
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 ParsePaperSpecError
impl PartialEq for ParsePaperSpecError
impl Copy for ParsePaperSpecError
impl Eq for ParsePaperSpecError
impl StructuralPartialEq for ParsePaperSpecError
Auto Trait Implementations§
impl Freeze for ParsePaperSpecError
impl RefUnwindSafe for ParsePaperSpecError
impl Send for ParsePaperSpecError
impl Sync for ParsePaperSpecError
impl Unpin for ParsePaperSpecError
impl UnwindSafe for ParsePaperSpecError
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