pub enum FmtError {
Syntax(Vec<Diagnostic>),
Internal(String),
}Expand description
Why a file was not formatted.
Variants§
Syntax(Vec<Diagnostic>)
The file has syntax errors; they are returned as they are.
Internal(String)
The formatter produced a different program; this is a bug of the formatter.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FmtError
impl RefUnwindSafe for FmtError
impl Send for FmtError
impl Sync for FmtError
impl Unpin for FmtError
impl UnsafeUnpin for FmtError
impl UnwindSafe for FmtError
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