pub struct FormatError {
pub file: PathBuf,
pub reason: String,
}Expand description
A file clang-format could not format, or cuno could not read or write.
Fields§
§file: PathBufThe file.
reason: StringWhat went wrong: clang-format’s own message, or the I/O error.
Trait Implementations§
Source§impl CunoError for FormatError
impl CunoError for FormatError
Source§impl Debug for FormatError
impl Debug for FormatError
Source§impl Display for FormatError
impl Display for FormatError
Source§impl Error for FormatError
impl Error for FormatError
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()
Auto Trait Implementations§
impl Forget for FormatError
impl Freeze for FormatError
impl Move for FormatError
impl RefUnwindSafe for FormatError
impl Send for FormatErrorwhere
RawVecInner: Send,
impl Sync for FormatErrorwhere
RawVecInner: Sync,
impl Unpin for FormatError
impl UnsafeUnpin for FormatError
impl UnwindSafe for FormatErrorwhere
RawVecInner: UnwindSafe,
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