pub struct SourceEdit {
pub span: Span,
pub new_text: String,
}Expand description
A source-level edit that can be applied to fix a violation.
Fields§
§span: SpanSpan to replace (use empty span for pure insert, non-empty for replace/delete).
new_text: StringReplacement text (empty string for deletion).
Implementations§
Source§impl SourceEdit
impl SourceEdit
Trait Implementations§
Source§impl Clone for SourceEdit
impl Clone for SourceEdit
Source§fn clone(&self) -> SourceEdit
fn clone(&self) -> SourceEdit
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 moreAuto Trait Implementations§
impl Freeze for SourceEdit
impl RefUnwindSafe for SourceEdit
impl Send for SourceEdit
impl Sync for SourceEdit
impl Unpin for SourceEdit
impl UnsafeUnpin for SourceEdit
impl UnwindSafe for SourceEdit
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