pub struct TextObjectRange {
pub start_byte: usize,
pub end_byte: usize,
pub start_row: u32,
pub start_col: u32,
pub end_row: u32,
pub end_col: u32,
}Expand description
Result of a text object query — byte and position range in the buffer.
Fields§
§start_byte: usizeByte offset where the text object starts.
end_byte: usizeByte offset where the text object ends.
start_row: u32Start row (0-indexed).
start_col: u32Start column (0-indexed).
end_row: u32End row (0-indexed).
end_col: u32End column (0-indexed).
Implementations§
Trait Implementations§
Source§impl Clone for TextObjectRange
impl Clone for TextObjectRange
Source§fn clone(&self) -> TextObjectRange
fn clone(&self) -> TextObjectRange
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 moreSource§impl Debug for TextObjectRange
impl Debug for TextObjectRange
Source§impl PartialEq for TextObjectRange
impl PartialEq for TextObjectRange
impl Copy for TextObjectRange
impl Eq for TextObjectRange
impl StructuralPartialEq for TextObjectRange
Auto Trait Implementations§
impl Freeze for TextObjectRange
impl RefUnwindSafe for TextObjectRange
impl Send for TextObjectRange
impl Sync for TextObjectRange
impl Unpin for TextObjectRange
impl UnsafeUnpin for TextObjectRange
impl UnwindSafe for TextObjectRange
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