pub struct LanguageRegistry { /* private fields */ }Implementations§
Source§impl LanguageRegistry
impl LanguageRegistry
Sourcepub fn syntactic_emphasis(&self, file: &mut FileDiff) -> bool
pub fn syntactic_emphasis(&self, file: &mut FileDiff) -> bool
Set char-precise emphasis on file’s diff lines from the AST diff.
Returns false when the syntactic engine is unavailable, so the caller
can fall back to the textual engine.
Source§impl LanguageRegistry
impl LanguageRegistry
Sourcepub fn scope_index(&self, path: &str, content: &str) -> ScopeIndex
pub fn scope_index(&self, path: &str, content: &str) -> ScopeIndex
Parse content and index its definition spans for scope lookup. Returns
an empty index when the language is unsupported, has no tags query, the
file is too large, or parsing fails — callers then show no breadcrumb.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LanguageRegistry
impl RefUnwindSafe for LanguageRegistry
impl Send for LanguageRegistry
impl Sync for LanguageRegistry
impl Unpin for LanguageRegistry
impl UnsafeUnpin for LanguageRegistry
impl UnwindSafe for LanguageRegistry
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