pub enum ParseError<'a> {
NomError(Err<&'a [u8], u32>),
InvalidHeader(&'static str),
InvalidCommentVersion,
InvalidImageVersion,
InvalidImageWidth,
InvalidImageHeight,
InvalidImageXHot,
InvalidImageYHot,
InvalidTOC,
}
Expand description
Represents an error when parsing an XCursor
file
Variants§
NomError(Err<&'a [u8], u32>)
A nom
error
InvalidHeader(&'static str)
Invalid header
InvalidCommentVersion
Invalid comment version in file
InvalidImageVersion
Invalid image version in file
InvalidImageWidth
Invalid image width
InvalidImageHeight
Invalid image height
InvalidImageXHot
Invalid image X hot
InvalidImageYHot
Invalid image X hot
InvalidTOC
Invalid TableOfContents
type
Trait Implementations§
Source§impl<'a> Debug for ParseError<'a>
impl<'a> Debug for ParseError<'a>
Source§impl<'a> Display for ParseError<'a>
impl<'a> Display for ParseError<'a>
Source§impl<'a> Error for ParseError<'a>
impl<'a> Error for ParseError<'a>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Auto Trait Implementations§
impl<'a> Freeze for ParseError<'a>
impl<'a> RefUnwindSafe for ParseError<'a>
impl<'a> Send for ParseError<'a>
impl<'a> Sync for ParseError<'a>
impl<'a> Unpin for ParseError<'a>
impl<'a> UnwindSafe for ParseError<'a>
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