#[repr(u8)]pub enum NavKind {
Stay = 0,
Next = 1,
NextSkipTrivia = 2,
NextExact = 3,
Down = 4,
DownSkipTrivia = 5,
DownExact = 6,
Up = 7,
UpSkipTrivia = 8,
UpExact = 9,
}Expand description
Navigation kind determining movement direction and skip policy.
Variants§
Stay = 0
No movement. Used only for first transition when cursor is at root.
Next = 1
Skip any nodes to find match.
NextSkipTrivia = 2
Skip trivia only, fail if non-trivia skipped.
NextExact = 3
No skipping, current sibling must match.
Down = 4
Skip any among children.
DownSkipTrivia = 5
Skip trivia only among children.
DownExact = 6
First child must match, no skip.
Up = 7
Ascend level levels, no constraint.
UpSkipTrivia = 8
Validate last non-trivia, ascend level levels.
UpExact = 9
Validate last child, ascend level levels.
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.