pub struct CompletionContext<'a> { /* private fields */ }Implementations§
Source§impl<'a> CompletionContext<'a>
impl<'a> CompletionContext<'a>
pub fn from_snapshot( snapshot: &'a DocumentSnapshot, position: Position, ) -> Option<Self>
pub fn prefix(&self) -> &str
pub fn fence(&self) -> &FenceSnapshot
pub fn document_uri(&self) -> &str
pub fn has_parser_backed_facts(&self) -> bool
pub fn fact_source(&self) -> FenceTextIndexSource
pub fn is_source_start(&self) -> bool
pub fn prefix_range(&self) -> Option<Range>
pub fn direction_value_range(&self) -> Option<Range>
pub fn is_block_diagram(&self) -> bool
pub fn operator_range(&self) -> Option<Range>
pub fn shape_value_range(&self) -> Option<Range>
pub fn shape_value_edit(&self, value: &str) -> Option<CompletionTextEditParts>
pub fn shape_trigger_range(&self) -> Option<Range>
pub fn offer_diagram_headers(&self) -> bool
pub fn offer_operator_items(&self) -> bool
pub fn offer_directive_items(&self) -> bool
pub fn offer_direction_items(&self) -> bool
pub fn offer_shape_items(&self) -> bool
pub fn offer_node_items(&self) -> bool
pub fn offer_template_items(&self) -> bool
pub fn offer_frontmatter_items(&self) -> bool
pub fn offer_class_name_items(&self) -> bool
pub fn offer_style_snippet_items(&self) -> bool
pub fn offer_interaction_snippet_items(&self) -> bool
pub fn is_comment_or_directive_line(&self) -> bool
pub fn is_parser_controlled_payload(&self) -> bool
pub fn directive_prefix(&self) -> Option<&'static str>
pub fn node_text_edit_range(&self) -> Option<Range>
pub fn class_name_text_edit_range(&self) -> Option<Range>
pub fn style_text_edit_range(&self) -> Option<Range>
pub fn interaction_text_edit_range(&self) -> Option<Range>
pub fn frontmatter_text_edit_range(&self) -> Option<Range>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CompletionContext<'a>
impl<'a> RefUnwindSafe for CompletionContext<'a>
impl<'a> Send for CompletionContext<'a>
impl<'a> Sync for CompletionContext<'a>
impl<'a> Unpin for CompletionContext<'a>
impl<'a> UnsafeUnpin for CompletionContext<'a>
impl<'a> UnwindSafe for CompletionContext<'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