Enum xswag_base::diag::Snippet
[−]
[src]
pub enum Snippet { None, Orig(Span), Replace { span: Span, with: String, }, }
Variants
None
No snippet
Orig(Span)
Show the original code with this highlighted span
Replace
Show original code, but replace a part of it with something new and highlight the new part. Hint: also able to only insert.
Fields
span: Span | |
with: String |
Methods
impl Snippet
[src]
Trait Implementations
impl Eq for Snippet
[src]
impl PartialEq for Snippet
[src]
fn eq(&self, __arg_0: &Snippet) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Snippet) -> bool
This method tests for !=
.
impl Clone for Snippet
[src]
fn clone(&self) -> Snippet
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more