pub struct StdlibView { /* private fields */ }Expand description
The standard library modules one reader can use, from Stdlib::view.
Docs, search, suggestions and the catalog all read this one set, so none
of them advertises what another leaves out.
Implementations§
Source§impl StdlibView
impl StdlibView
Sourcepub fn declaration(&self, name: &str) -> Option<&PackageDeclaration>
pub fn declaration(&self, name: &str) -> Option<&PackageDeclaration>
The narrowed declaration of the module name.
Sourcepub fn resolve(&self, name: &str) -> Resolution
pub fn resolve(&self, name: &str) -> Resolution
resolve over the view.
Sourcepub fn suggest_filtered(
&self,
name: &str,
extra: &[String],
visible: impl Fn(&str) -> bool,
) -> Option<String>
pub fn suggest_filtered( &self, name: &str, extra: &[String], visible: impl Fn(&str) -> bool, ) -> Option<String>
suggest_filtered over the view.
Sourcepub fn catalog_filtered(
&self,
extra: Vec<CatalogEntry>,
visible: impl Fn(&str) -> bool,
) -> Catalog
pub fn catalog_filtered( &self, extra: Vec<CatalogEntry>, visible: impl Fn(&str) -> bool, ) -> Catalog
catalog_filtered over the view.
Auto Trait Implementations§
impl Freeze for StdlibView
impl RefUnwindSafe for StdlibView
impl Send for StdlibView
impl Sync for StdlibView
impl Unpin for StdlibView
impl UnsafeUnpin for StdlibView
impl UnwindSafe for StdlibView
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