pub struct Suggestion {
pub message: String,
pub snippets: Vec<Snippet>,
pub solutions: Vec<Solution>,
}Expand description
An error/warning and possible solutions for fixing it
Fields§
§message: String§snippets: Vec<Snippet>§solutions: Vec<Solution>Trait Implementations§
Source§impl Clone for Suggestion
impl Clone for Suggestion
Source§impl Debug for Suggestion
impl Debug for Suggestion
impl Eq for Suggestion
Source§impl Hash for Suggestion
impl Hash for Suggestion
Source§impl PartialEq for Suggestion
impl PartialEq for Suggestion
impl StructuralPartialEq for Suggestion
Auto Trait Implementations§
impl Forget for Suggestion
impl Freeze for Suggestionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Snippet>: Freeze,
PhantomData<Solution>: Freeze,
impl Move for Suggestion
impl RefUnwindSafe for Suggestion
impl Send for Suggestionwhere
RawVecInner: Send,
impl Sync for Suggestionwhere
RawVecInner: Sync,
impl Unpin for Suggestion
impl UnsafeUnpin for Suggestionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Snippet>: UnsafeUnpin,
PhantomData<Solution>: UnsafeUnpin,
impl UnwindSafe for Suggestionwhere
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes