Struct tree_sitter_facade::InputEdit
source · [−]pub struct InputEdit { /* private fields */ }
Implementations
sourceimpl InputEdit
impl InputEdit
pub fn new(
start_byte: u32,
old_end_byte: u32,
new_end_byte: u32,
start_position: &Point,
old_end_position: &Point,
new_end_position: &Point
) -> Self
pub fn new_end_byte(&self) -> u32
pub fn new_end_position(&self) -> Point
pub fn old_end_byte(&self) -> u32
pub fn old_end_position(&self) -> Point
pub fn start_byte(&self) -> u32
pub fn start_position(&self) -> Point
Trait Implementations
impl Eq for InputEdit
impl StructuralEq for InputEdit
impl StructuralPartialEq for InputEdit
Auto Trait Implementations
impl RefUnwindSafe for InputEdit
impl Send for InputEdit
impl Sync for InputEdit
impl Unpin for InputEdit
impl UnwindSafe for InputEdit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more