#[non_exhaustive]pub struct FrameworkAdapterRegistry { /* private fields */ }Expand description
Registry for compiler-substrate framework adapters.
Adapters consume HIR/stash/import compiler facts and emit more compiler facts. They must not directly special-case diagnostics, completion, hover, or navigation.
Implementations§
Source§impl FrameworkAdapterRegistry
impl FrameworkAdapterRegistry
Sourcepub fn new(adapters: Vec<FrameworkAdapterKind>) -> Self
pub fn new(adapters: Vec<FrameworkAdapterKind>) -> Self
Create a registry with an explicit adapter set.
Sourcepub fn adapters(&self) -> &[FrameworkAdapterKind]
pub fn adapters(&self) -> &[FrameworkAdapterKind]
Return the adapter kinds enabled in this registry.
Sourcepub fn project_file(&self, file: &HirFile) -> FrameworkFactGraph
pub fn project_file(&self, file: &HirFile) -> FrameworkFactGraph
Project framework compiler facts from a lowered HIR file.
Trait Implementations§
Source§impl Clone for FrameworkAdapterRegistry
impl Clone for FrameworkAdapterRegistry
Source§fn clone(&self) -> FrameworkAdapterRegistry
fn clone(&self) -> FrameworkAdapterRegistry
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 FrameworkAdapterRegistry
impl Debug for FrameworkAdapterRegistry
Source§impl Default for FrameworkAdapterRegistry
impl Default for FrameworkAdapterRegistry
Source§impl PartialEq for FrameworkAdapterRegistry
impl PartialEq for FrameworkAdapterRegistry
Source§fn eq(&self, other: &FrameworkAdapterRegistry) -> bool
fn eq(&self, other: &FrameworkAdapterRegistry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FrameworkAdapterRegistry
impl StructuralPartialEq for FrameworkAdapterRegistry
Auto Trait Implementations§
impl Freeze for FrameworkAdapterRegistry
impl RefUnwindSafe for FrameworkAdapterRegistry
impl Send for FrameworkAdapterRegistry
impl Sync for FrameworkAdapterRegistry
impl Unpin for FrameworkAdapterRegistry
impl UnsafeUnpin for FrameworkAdapterRegistry
impl UnwindSafe for FrameworkAdapterRegistry
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