pub struct Position<'a> {
root_node: Node<'a>,
pub(crate) inner: InnerPosition<'a>,
}Fields§
§root_node: Node<'a>§inner: InnerPosition<'a>Implementations§
Source§impl<'a> Position<'a>
impl<'a> Position<'a>
pub fn to_raw(self) -> WeakPosition
pub fn inner_node(&self) -> &Node<'a>
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_paragraph_separator(&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 biased_to_start(&self) -> Self
pub fn biased_to_end(&self) -> Self
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 PartialOrd for Position<'_>
impl PartialOrd for Position<'_>
impl<'a> Copy for Position<'a>
impl Eq for Position<'_>
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.