pub(crate) struct InnerPosition<'a> {
pub(crate) node: Node<'a>,
pub(crate) character_index: usize,
}Fields§
§node: Node<'a>§character_index: usizeImplementations§
Source§impl<'a> InnerPosition<'a>
impl<'a> InnerPosition<'a>
fn upgrade(tree_state: &'a TreeState, weak: WeakPosition) -> Option<Self>
fn clamped_upgrade( tree_state: &'a TreeState, weak: WeakPosition, ) -> Option<Self>
fn is_word_start(&self) -> bool
fn is_run_start(&self) -> bool
fn is_line_start(&self) -> bool
fn is_run_end(&self) -> bool
fn is_line_end(&self) -> bool
fn is_paragraph_end(&self) -> bool
fn is_document_start(&self, root_node: &Node<'_>) -> bool
fn is_document_end(&self, root_node: &Node<'_>) -> bool
fn biased_to_start(&self, root_node: &Node<'_>) -> Self
fn biased_to_end(&self, root_node: &Node<'_>) -> Self
fn comparable(&self, root_node: &Node<'_>) -> (Vec<usize>, usize)
fn previous_word_start(&self) -> Self
fn word_end(&self) -> Self
fn line_start(&self) -> Self
fn line_end(&self) -> Self
pub(crate) fn downgrade(&self) -> WeakPosition
Trait Implementations§
Source§impl<'a> Clone for InnerPosition<'a>
impl<'a> Clone for InnerPosition<'a>
Source§fn clone(&self) -> InnerPosition<'a>
fn clone(&self) -> InnerPosition<'a>
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 PartialEq for InnerPosition<'_>
impl PartialEq for InnerPosition<'_>
impl<'a> Copy for InnerPosition<'a>
impl Eq for InnerPosition<'_>
Auto Trait Implementations§
impl<'a> Freeze for InnerPosition<'a>
impl<'a> RefUnwindSafe for InnerPosition<'a>
impl<'a> Send for InnerPosition<'a>
impl<'a> Sync for InnerPosition<'a>
impl<'a> Unpin for InnerPosition<'a>
impl<'a> UnwindSafe for InnerPosition<'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.