pub struct CriticalFormatError(pub FormatError);Expand description
A formatting error where the plugin cannot recover.
Return one of these to signal to the dprint CLI that it should recreate the plugin.
Tuple Fields§
§0: FormatErrorTrait Implementations§
Source§impl Debug for CriticalFormatError
impl Debug for CriticalFormatError
Source§impl Display for CriticalFormatError
impl Display for CriticalFormatError
Source§impl Error for CriticalFormatError
impl Error for CriticalFormatError
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 From<CriticalFormatError> for FormatError
impl From<CriticalFormatError> for FormatError
Source§fn from(error: CriticalFormatError) -> Self
fn from(error: CriticalFormatError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CriticalFormatError
impl !UnwindSafe for CriticalFormatError
impl Freeze for CriticalFormatError
impl Send for CriticalFormatError
impl Sync for CriticalFormatError
impl Unpin for CriticalFormatError
impl UnsafeUnpin for CriticalFormatError
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