pub struct Table<'a> { /* private fields */ }Implementations§
Source§impl<'a> Table<'a>
impl<'a> Table<'a>
pub fn new(doc: &'a Doc) -> Self
pub fn add_index(&mut self, query: impl AsRef<str>)
pub fn query( &mut self, query: impl AsRef<str>, value: impl AsRef<str>, ) -> Option<Element<'_>>
pub fn len(&self) -> usize
pub fn indices(&self) -> Vec<IndexInfo>
pub fn num_queries(&self) -> usize
pub fn num_query_cache_hits(&self) -> usize
pub fn num_query_cache_misses(&self) -> usize
pub fn query_cache_hit_ratio(&self) -> f32
pub fn num_auto_cache_hits(&self) -> usize
pub fn num_auto_cache_misses(&self) -> usize
pub fn auto_cache_hit_ratio(&self) -> f32
pub fn num_index_hits(&self) -> usize
pub fn num_index_misses(&self) -> usize
pub fn index_hit_ratio(&self) -> f32
pub fn allocated_memory(&self) -> usize
Auto Trait Implementations§
impl<'a> Freeze for Table<'a>
impl<'a> RefUnwindSafe for Table<'a>
impl<'a> !Send for Table<'a>
impl<'a> !Sync for Table<'a>
impl<'a> Unpin for Table<'a>
impl<'a> UnwindSafe for Table<'a>
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