pub struct FenceTextIndex { /* private fields */ }Implementations§
Source§impl FenceTextIndex
impl FenceTextIndex
pub fn from_text(text: &str, diagram_type: Option<&str>) -> Self
pub fn from_core_facts(facts: EditorSemanticFacts) -> Self
pub fn merge_text_scan_node_ids( &mut self, text: &str, diagram_type: Option<&str>, )
pub fn node_ids(&self) -> impl Iterator<Item = &String>
pub fn class_names(&self) -> impl Iterator<Item = &String>
pub fn directive_prefixes(&self) -> impl Iterator<Item = &String>
pub fn has_directive_prefix(&self, prefix: &str) -> bool
pub fn first_reference_span(&self, name: &str) -> Option<ByteSpan>
pub fn reference_spans(&self, name: &str) -> &[ByteSpan]
pub fn first_reference_span_for_item( &self, item: &FenceSemanticItem, ) -> Option<ByteSpan>
pub fn reference_spans_for_item(&self, item: &FenceSemanticItem) -> &[ByteSpan]
pub fn first_reference_span_in_group( &self, group: &FenceReferenceGroup, ) -> Option<ByteSpan>
pub fn reference_spans_in_group( &self, group: &FenceReferenceGroup, ) -> &[ByteSpan]
pub fn references( &self, ) -> impl Iterator<Item = (&FenceReferenceGroup, &[ByteSpan])>
pub fn symbol_at_offset(&self, offset: usize) -> Option<(String, ByteSpan)>
pub fn semantic_item_at_offset( &self, offset: usize, ) -> Option<&FenceSemanticItem>
pub fn entity_item_at_offset(&self, offset: usize) -> Option<&FenceSemanticItem>
pub fn outline_items(&self) -> &[FenceLineItem]
pub fn semantic_items(&self) -> &[FenceSemanticItem]
pub fn expected_syntax(&self) -> &[FenceExpectedSyntax]
pub fn source(&self) -> FenceTextIndexSource
pub fn cursor_context( &self, text: &str, cursor_offset: usize, ) -> FenceCursorContext
Trait Implementations§
Source§impl Clone for FenceTextIndex
impl Clone for FenceTextIndex
Source§fn clone(&self) -> FenceTextIndex
fn clone(&self) -> FenceTextIndex
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 FenceTextIndex
impl Debug for FenceTextIndex
Source§impl Default for FenceTextIndex
impl Default for FenceTextIndex
Source§fn default() -> FenceTextIndex
fn default() -> FenceTextIndex
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FenceTextIndex
impl RefUnwindSafe for FenceTextIndex
impl Send for FenceTextIndex
impl Sync for FenceTextIndex
impl Unpin for FenceTextIndex
impl UnsafeUnpin for FenceTextIndex
impl UnwindSafe for FenceTextIndex
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