Struct gluon_completion::SuggestionQuery
source · pub struct SuggestionQuery {
pub paths: Vec<PathBuf>,
pub modules: Vec<Cow<'static, str>>,
pub prefix_filter: bool,
pub span: Option<Span<BytePos>>,
}
Fields§
§paths: Vec<PathBuf>
§modules: Vec<Cow<'static, str>>
§prefix_filter: bool
§span: Option<Span<BytePos>>
Implementations§
source§impl SuggestionQuery
impl SuggestionQuery
pub fn new() -> Self
pub fn suggest<'ast, T>( &self, env: &T, source_span: Span<BytePos>, expr: &SpannedExpr<'ast, Symbol>, pos: BytePos ) -> Vec<Suggestion>
pub fn suggest_metadata<'a, 'b, 'ast, T>( &self, env: &'a FnvMap<Symbol, Arc<Metadata>>, type_env: &T, source_span: Span<BytePos>, expr: &'b SpannedExpr<'ast, Symbol>, pos: BytePos, name: &str ) -> Option<&'a Metadata>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SuggestionQuery
impl Send for SuggestionQuery
impl Sync for SuggestionQuery
impl Unpin for SuggestionQuery
impl UnwindSafe for SuggestionQuery
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