pub struct Store {
pub card_opts: CardOptions,
/* private fields */
}Fields§
§card_opts: CardOptionsImplementations§
Source§impl Store
impl Store
pub fn open(path: &Path, card_opts: CardOptions) -> Result<Self>
Sourcepub fn reload_if_replaced(&mut self) -> Result<bool>
pub fn reload_if_replaced(&mut self) -> Result<bool>
Reopen when the index file was atomically replaced by a rebuild.
pub fn config(&self) -> &Config
Sourcepub fn resolve(&self, query: &str, limit: usize) -> Result<Vec<GroupMatch>>
pub fn resolve(&self, query: &str, limit: usize) -> Result<Vec<GroupMatch>>
Group key or name to candidates, best tier first.
pub fn search(&self, req: &SearchRequest) -> Result<SearchOutcome>
pub fn describe(&self, top: usize) -> Result<Description>
Auto Trait Implementations§
impl !Freeze for Store
impl !RefUnwindSafe for Store
impl !Sync for Store
impl !UnwindSafe for Store
impl Send for Store
impl Unpin for Store
impl UnsafeUnpin for Store
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