pub enum FormatError {
Syntax(Vec<Diagnostic>),
Unverified,
}Expand description
Why a source could not be formatted.
Variants§
Syntax(Vec<Diagnostic>)
The source has syntax errors (the diagnostics).
Unverified
The formatted source does not mean the same as the original, so nothing can be written.
Trait Implementations§
Auto Trait Implementations§
impl Forget for FormatError
impl Freeze for FormatError
impl Move for FormatError
impl RefUnwindSafe for FormatError
impl Send for FormatError
impl Sync for FormatError
impl Unpin for FormatError
impl UnsafeUnpin for FormatError
impl UnwindSafe for FormatError
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