pub struct FeatureEngine { /* private fields */ }Implementations§
Source§impl FeatureEngine
impl FeatureEngine
pub fn new(documents: DocumentStore) -> Self
pub fn rebuild(&mut self)
pub fn documents(&self) -> &DocumentStore
pub fn documents_mut(&mut self) -> &mut DocumentStore
pub fn index(&self) -> &WorkspaceIndex
pub fn publish_diagnostics(&self, uri: &str) -> Vec<Diagnostic>
pub fn document_symbols(&self, uri: &str) -> Vec<DocumentSymbol>
pub fn workspace_symbols(&self, query: &str) -> Vec<WorkspaceSymbol>
pub fn hover(&self, uri: &str, position: TextPosition) -> Option<Hover>
pub fn completion( &self, uri: &str, position: TextPosition, options: CompletionOptions, ) -> CompletionList
pub fn definition(&self, uri: &str, position: TextPosition) -> Option<Location>
pub fn references(&self, uri: &str, position: TextPosition) -> Vec<Location>
pub fn document_highlights( &self, uri: &str, position: TextPosition, ) -> Vec<DocumentHighlight>
pub fn semantic_tokens( &self, uri: &str, range: Option<TextRange>, ) -> SemanticTokens
pub fn folding_ranges(&self, uri: &str) -> Vec<FoldingRange>
pub fn selection_ranges( &self, uri: &str, positions: &[TextPosition], ) -> Vec<SelectionRange>
pub fn prepare_rename( &self, uri: &str, position: TextPosition, ) -> Option<PrepareRename>
pub fn rename( &self, uri: &str, position: TextPosition, new_name: &str, ) -> Option<WorkspaceEdit>
pub fn code_actions(&self, _uri: &str, _range: TextRange) -> Vec<CodeAction>
pub fn signature_help( &self, uri: &str, position: TextPosition, ) -> Option<SignatureHelp>
pub fn inlay_hints(&self, _uri: &str, _range: TextRange) -> Vec<InlayHint>
pub fn type_definition( &self, uri: &str, position: TextPosition, ) -> Option<Location>
pub fn implementation(&self, uri: &str, position: TextPosition) -> Vec<Location>
Trait Implementations§
Source§impl Clone for FeatureEngine
impl Clone for FeatureEngine
Source§fn clone(&self) -> FeatureEngine
fn clone(&self) -> FeatureEngine
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 moreAuto Trait Implementations§
impl Freeze for FeatureEngine
impl RefUnwindSafe for FeatureEngine
impl Send for FeatureEngine
impl Sync for FeatureEngine
impl Unpin for FeatureEngine
impl UnsafeUnpin for FeatureEngine
impl UnwindSafe for FeatureEngine
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.