pub enum InternalError {
UnsanitisedCharInString(char),
IncorrectChunkLineNumber {
expected: u32,
got: u32,
},
ParagraphBreakTooShort,
ParagraghBreakNonwhitespace,
BeginCommand,
EndCommand,
UnbrokenParagraph,
}
Expand description
Errors caused by incorrect usage of the crate
Variants§
UnsanitisedCharInString(char)
Chunk containing unsanitised character
IncorrectChunkLineNumber
Incorrect line number for a chunk
ParagraphBreakTooShort
ParagraphBreak does not contain enough line breaks
ParagraghBreakNonwhitespace
Nonwhitespace in ParagraphBreak
BeginCommand
begin
is used as a command
EndCommand
end
is used as a command
UnbrokenParagraph
ParagraphBreak is not added for Text
Trait Implementations§
Source§impl Debug for InternalError
impl Debug for InternalError
Source§impl Display for InternalError
impl Display for InternalError
Source§impl Error for InternalError
impl Error for InternalError
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 InternalError
impl PartialEq for InternalError
impl Eq for InternalError
impl StructuralPartialEq for InternalError
Auto Trait Implementations§
impl Freeze for InternalError
impl RefUnwindSafe for InternalError
impl Send for InternalError
impl Sync for InternalError
impl Unpin for InternalError
impl UnwindSafe for InternalError
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