pub struct DescriptionStore { /* private fields */ }Expand description
The sidecar is opened only when requested. Numeric queries perform no text I/O.
Implementations§
Source§impl DescriptionStore
impl DescriptionStore
pub fn loaded(index: DescriptionIndex) -> Self
Sourcepub fn is_available(&self) -> bool
pub fn is_available(&self) -> bool
Whether this store has descriptions at all.
Sourcepub fn concept_rows(&self, concept: u32) -> Result<Option<Vec<DescriptionRow>>>
pub fn concept_rows(&self, concept: u32) -> Result<Option<Vec<DescriptionRow>>>
One concept’s descriptions. Reads only that concept’s rows unless the whole index is already loaded, so describing a concept costs a few small reads rather than loading every description in the edition.
pub fn get(&self) -> Result<Option<&DescriptionIndex>>
Trait Implementations§
Source§impl Debug for DescriptionStore
impl Debug for DescriptionStore
Auto Trait Implementations§
impl !Freeze for DescriptionStore
impl RefUnwindSafe for DescriptionStore
impl Send for DescriptionStore
impl Sync for DescriptionStore
impl Unpin for DescriptionStore
impl UnsafeUnpin for DescriptionStore
impl UnwindSafe for DescriptionStore
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