pub enum FormatSourceError {
Parse(ParseError),
Recovered(Vec<ParseError>),
}Expand description
Error returned by format_source when source can’t be safely formatted.
Variants§
Parse(ParseError)
source failed to parse at all.
Recovered(Vec<ParseError>)
source parsed but recovered one or more syntax errors inside individual sheet items.
Trait Implementations§
Source§impl Debug for FormatSourceError
impl Debug for FormatSourceError
Source§impl Display for FormatSourceError
impl Display for FormatSourceError
Source§impl Error for FormatSourceError
impl Error for FormatSourceError
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 !Send for FormatSourceError
impl !Sync for FormatSourceError
impl Freeze for FormatSourceError
impl RefUnwindSafe for FormatSourceError
impl Unpin for FormatSourceError
impl UnsafeUnpin for FormatSourceError
impl UnwindSafe for FormatSourceError
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