pub struct FormatOutput {
pub source: Option<String>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
Result of formatting Stack source.
Fields§
§source: Option<String>Canonical source, absent when lexical or syntax errors prevent formatting.
diagnostics: Vec<Diagnostic>Compiler diagnostics for the original source.
Trait Implementations§
Source§impl Clone for FormatOutput
impl Clone for FormatOutput
Source§fn clone(&self) -> FormatOutput
fn clone(&self) -> FormatOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FormatOutput
impl Debug for FormatOutput
impl Eq for FormatOutput
Source§impl PartialEq for FormatOutput
impl PartialEq for FormatOutput
impl StructuralPartialEq for FormatOutput
Auto Trait Implementations§
impl Freeze for FormatOutput
impl RefUnwindSafe for FormatOutput
impl Send for FormatOutput
impl Sync for FormatOutput
impl Unpin for FormatOutput
impl UnsafeUnpin for FormatOutput
impl UnwindSafe for FormatOutput
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