Struct deno_ast::TextChange
source · pub struct TextChange {
pub range: Range<usize>,
pub new_text: String,
}
Fields§
§range: Range<usize>
Range start to end byte index.
new_text: String
New text to insert or replace at the provided range.
Implementations§
Trait Implementations§
source§impl Clone for TextChange
impl Clone for TextChange
source§fn clone(&self) -> TextChange
fn clone(&self) -> TextChange
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 moreAuto Trait Implementations§
impl RefUnwindSafe for TextChange
impl Send for TextChange
impl Sync for TextChange
impl Unpin for TextChange
impl UnwindSafe for TextChange
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