pub struct SynthResult {
pub typ: Option<Node>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
Result of a synth call: the synthesised type as an AST node (or None
when synthesis fails) plus any diagnostics emitted along the way.
Fields§
§typ: Option<Node>§diagnostics: Vec<Diagnostic>Trait Implementations§
Source§impl Clone for SynthResult
impl Clone for SynthResult
Source§fn clone(&self) -> SynthResult
fn clone(&self) -> SynthResult
Returns a duplicate of the value. Read more
1.0.0 · 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 SynthResult
impl Debug for SynthResult
Source§impl Default for SynthResult
impl Default for SynthResult
Source§fn default() -> SynthResult
fn default() -> SynthResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SynthResult
impl RefUnwindSafe for SynthResult
impl Send for SynthResult
impl Sync for SynthResult
impl Unpin for SynthResult
impl UnsafeUnpin for SynthResult
impl UnwindSafe for SynthResult
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