pub enum WordError {
Utf8(Utf8Error),
Tag(ParseIntError),
Attribute,
}Expand description
Represents an error that occurred while parsing a Word.
Variants§
Utf8(Utf8Error)
The word is not a valid UTF-8 string.
Tag(ParseIntError)
The word is a tag, but the tag value is invalid.
Attribute
The word is an attribute pair, but the format is invalid.
Trait Implementations§
Source§impl From<ParseIntError> for WordError
impl From<ParseIntError> for WordError
Source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<WordError> for SentenceError
impl From<WordError> for SentenceError
impl StructuralPartialEq for WordError
Auto Trait Implementations§
impl Freeze for WordError
impl RefUnwindSafe for WordError
impl Send for WordError
impl Sync for WordError
impl Unpin for WordError
impl UnwindSafe for WordError
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