Struct biome_diagnostics::CodeSuggestion
source · pub struct CodeSuggestion {
pub span: TextRange,
pub applicability: Applicability,
pub msg: MarkupBuf,
pub suggestion: TextEdit,
pub labels: Vec<TextRange>,
}Expand description
A Suggestion that is provided by Biome’s linter, and
can be reported to the user, and can be automatically
applied if it has the right Applicability.
Fields§
§span: TextRange§applicability: Applicability§msg: MarkupBuf§suggestion: TextEdit§labels: Vec<TextRange>Trait Implementations§
source§impl Clone for CodeSuggestion
impl Clone for CodeSuggestion
source§fn clone(&self) -> CodeSuggestion
fn clone(&self) -> CodeSuggestion
Returns a copy 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 CodeSuggestion
impl Debug for CodeSuggestion
source§impl<'de> Deserialize<'de> for CodeSuggestion
impl<'de> Deserialize<'de> for CodeSuggestion
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for CodeSuggestion
impl Hash for CodeSuggestion
source§impl PartialEq for CodeSuggestion
impl PartialEq for CodeSuggestion
source§fn eq(&self, other: &CodeSuggestion) -> bool
fn eq(&self, other: &CodeSuggestion) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for CodeSuggestion
impl Serialize for CodeSuggestion
impl Eq for CodeSuggestion
impl StructuralPartialEq for CodeSuggestion
Auto Trait Implementations§
impl RefUnwindSafe for CodeSuggestion
impl Send for CodeSuggestion
impl Sync for CodeSuggestion
impl Unpin for CodeSuggestion
impl UnwindSafe for CodeSuggestion
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.