pub struct SymbolQuery { /* private fields */ }Expand description
SymbolQuery specifies the preficate for filtering symbols by name.
All matching is case-insensitive. Filtering by prefix or by subsequence is supported, subsequence being a good default choice.
As the number of results might be huge, consider the limit hint,
which serves as approximate limit on the number of results returned.
To implement async streaming/pagination, use greater_than together with
limit.
Implementations§
Source§impl SymbolQuery
impl SymbolQuery
pub fn subsequence(query_string: &str) -> SymbolQuery
pub fn prefix(query_string: &str) -> SymbolQuery
pub fn limit(self, limit: usize) -> SymbolQuery
pub fn greater_than(self, greater_than: &str) -> SymbolQuery
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SymbolQuery
impl RefUnwindSafe for SymbolQuery
impl Send for SymbolQuery
impl Sync for SymbolQuery
impl Unpin for SymbolQuery
impl UnwindSafe for SymbolQuery
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