pub struct FenceCursorContext { /* private fields */ }Implementations§
Source§impl FenceCursorContext
impl FenceCursorContext
pub fn prefix(&self) -> &str
pub fn prefix_start(&self) -> usize
pub fn cursor(&self) -> usize
pub fn source(&self) -> FenceTextIndexSource
pub fn has_parser_backed_facts(&self) -> bool
pub fn is_source_start(&self) -> bool
pub fn directive_prefix(&self) -> Option<&'static str>
pub fn is_comment_or_directive_line(&self) -> bool
pub fn expected_syntax(&self) -> Option<FenceExpectedSyntaxKind>
pub fn expected_syntax_span(&self) -> Option<ByteSpan>
pub fn completion_kinds(&self) -> &[FenceCursorCompletionKind]
pub fn offers(&self, kind: FenceCursorCompletionKind) -> bool
Trait Implementations§
Source§impl Clone for FenceCursorContext
impl Clone for FenceCursorContext
Source§fn clone(&self) -> FenceCursorContext
fn clone(&self) -> FenceCursorContext
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 FenceCursorContext
impl Debug for FenceCursorContext
impl Eq for FenceCursorContext
Source§impl PartialEq for FenceCursorContext
impl PartialEq for FenceCursorContext
Source§fn eq(&self, other: &FenceCursorContext) -> bool
fn eq(&self, other: &FenceCursorContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FenceCursorContext
Auto Trait Implementations§
impl Freeze for FenceCursorContext
impl RefUnwindSafe for FenceCursorContext
impl Send for FenceCursorContext
impl Sync for FenceCursorContext
impl Unpin for FenceCursorContext
impl UnsafeUnpin for FenceCursorContext
impl UnwindSafe for FenceCursorContext
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.