pub struct TextPosition<'a> { /* private fields */ }
Implementations§
source§impl<'a> Position<'a>
impl<'a> Position<'a>
pub fn inner_node(&self) -> &Node<'_>
pub fn is_format_start(&self) -> bool
pub fn is_word_start(&self) -> bool
pub fn is_line_start(&self) -> bool
pub fn is_line_end(&self) -> bool
pub fn is_paragraph_start(&self) -> bool
pub fn is_paragraph_end(&self) -> bool
pub fn is_page_start(&self) -> bool
pub fn is_document_start(&self) -> bool
pub fn is_document_end(&self) -> bool
pub fn to_degenerate_range(&self) -> Range<'a>
pub fn to_global_usv_index(&self) -> usize
pub fn to_global_utf16_index(&self) -> usize
pub fn to_line_index(&self) -> usize
pub fn forward_to_character_start(&self) -> Self
pub fn forward_to_character_end(&self) -> Self
pub fn backward_to_character_start(&self) -> Self
pub fn forward_to_format_start(&self) -> Self
pub fn forward_to_format_end(&self) -> Self
pub fn backward_to_format_start(&self) -> Self
pub fn forward_to_word_start(&self) -> Self
pub fn forward_to_word_end(&self) -> Self
pub fn backward_to_word_start(&self) -> Self
pub fn forward_to_line_start(&self) -> Self
pub fn forward_to_line_end(&self) -> Self
pub fn backward_to_line_start(&self) -> Self
pub fn forward_to_paragraph_start(&self) -> Self
pub fn forward_to_paragraph_end(&self) -> Self
pub fn backward_to_paragraph_start(&self) -> Self
pub fn forward_to_page_start(&self) -> Self
pub fn forward_to_page_end(&self) -> Self
pub fn backward_to_page_start(&self) -> Self
pub fn document_end(&self) -> Self
pub fn document_start(&self) -> Self
Trait Implementations§
source§impl<'a> PartialOrd for Position<'a>
impl<'a> PartialOrd for Position<'a>
impl<'a> Copy for Position<'a>
impl<'a> Eq for Position<'a>
Auto Trait Implementations§
impl<'a> Freeze for Position<'a>
impl<'a> RefUnwindSafe for Position<'a>
impl<'a> Send for Position<'a>
impl<'a> Sync for Position<'a>
impl<'a> Unpin for Position<'a>
impl<'a> UnwindSafe for Position<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)