pub enum IndentError {
InconsistentIndent,
MixedIndent,
}
Variants§
InconsistentIndent
Not all indentations use the same character sequence.
Only returned if allow_inconsistent_indent is false.
MixedIndent
The current indentation is not a continuation nor substring of the previous indentation.
Trait Implementations§
Source§impl Debug for IndentError
impl Debug for IndentError
Source§impl Display for IndentError
impl Display for IndentError
Source§impl Error for IndentError
impl Error for IndentError
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 IndentError
impl PartialEq for IndentError
impl StructuralPartialEq for IndentError
Auto Trait Implementations§
impl Freeze for IndentError
impl RefUnwindSafe for IndentError
impl Send for IndentError
impl Sync for IndentError
impl Unpin for IndentError
impl UnwindSafe for IndentError
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