pub enum ParseKindKind {
Viewport,
Top,
Bottom,
}Expand description
Exhaustive view of a ParseKind for use in
SyntaxLayer::dispatch_parse_kind callbacks.
Unlike ParseKind (which is #[non_exhaustive]), matching on this enum
requires no wildcard arm.
Variants§
Viewport
The current visible viewport region.
Top
The top of the document — pre-cached for gg.
Bottom
The bottom of the document — pre-cached for G.
Trait Implementations§
Source§impl Clone for ParseKindKind
impl Clone for ParseKindKind
Source§fn clone(&self) -> ParseKindKind
fn clone(&self) -> ParseKindKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseKindKind
impl Debug for ParseKindKind
Source§impl PartialEq for ParseKindKind
impl PartialEq for ParseKindKind
Source§fn eq(&self, other: &ParseKindKind) -> bool
fn eq(&self, other: &ParseKindKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ParseKindKind
impl Eq for ParseKindKind
impl StructuralPartialEq for ParseKindKind
Auto Trait Implementations§
impl Freeze for ParseKindKind
impl RefUnwindSafe for ParseKindKind
impl Send for ParseKindKind
impl Sync for ParseKindKind
impl Unpin for ParseKindKind
impl UnsafeUnpin for ParseKindKind
impl UnwindSafe for ParseKindKind
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