pub enum ParsePrintSchemaError {
InvalidXml(Error),
InvalidPrintSchema {
pos: TextPosition,
reason: String,
},
WrongDocumentType {
expected: &'static str,
found: &'static str,
},
}Expand description
Represents an error occurred while parsing print schema.
Variants§
InvalidXml(Error)
Invalid XML.
InvalidPrintSchema
Invalid print schema.
WrongDocumentType
Wrong document type.
Trait Implementations§
Source§impl Debug for ParsePrintSchemaError
impl Debug for ParsePrintSchemaError
Source§impl Display for ParsePrintSchemaError
impl Display for ParsePrintSchemaError
Source§impl Error for ParsePrintSchemaError
impl Error for ParsePrintSchemaError
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<ParsePrintSchemaError> for PageImageableSizeError
impl From<ParsePrintSchemaError> for PageImageableSizeError
Source§fn from(source: ParsePrintSchemaError) -> Self
fn from(source: ParsePrintSchemaError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ParsePrintSchemaError
impl !UnwindSafe for ParsePrintSchemaError
impl Freeze for ParsePrintSchemaError
impl Send for ParsePrintSchemaError
impl Sync for ParsePrintSchemaError
impl Unpin for ParsePrintSchemaError
impl UnsafeUnpin for ParsePrintSchemaError
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