pub struct SourceEdit {
pub start: usize,
pub end: usize,
pub replacement: String,
}Expand description
One pending replacement: swap the original source’s [start, end) byte
range for replacement.
Fields§
§start: usizeStart byte offset (inclusive) in the original source.
end: usizeEnd byte offset (exclusive) in the original source.
replacement: StringThe text to put in that range’s place.
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 (const: unstable) · 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