pub struct TextLocation {
pub paragraph_index: usize,
pub char_offset: usize,
}Expand description
Text location in the document
Fields§
§paragraph_index: usize§char_offset: usizeTrait Implementations§
Source§impl Clone for TextLocation
impl Clone for TextLocation
Source§fn clone(&self) -> TextLocation
fn clone(&self) -> TextLocation
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 TextLocation
impl RefUnwindSafe for TextLocation
impl Send for TextLocation
impl Sync for TextLocation
impl Unpin for TextLocation
impl UnsafeUnpin for TextLocation
impl UnwindSafe for TextLocation
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