pub struct VocabularyCache { /* private fields */ }Expand description
The vocabulary cache of one store: per repository, keyed on the head commit. Keep it beside the store it was read from.
Implementations§
Source§impl VocabularyCache
impl VocabularyCache
Sourcepub fn vocabulary_of(
&self,
store: &Store,
repo_id: &str,
target: Target,
) -> Result<Rc<Vocabulary>>
pub fn vocabulary_of( &self, store: &Store, repo_id: &str, target: Target, ) -> Result<Rc<Vocabulary>>
The vocabulary of target in repo_id, read once per head commit.
Trait Implementations§
Source§impl Debug for VocabularyCache
impl Debug for VocabularyCache
Auto Trait Implementations§
impl !Freeze for VocabularyCache
impl !RefUnwindSafe for VocabularyCache
impl !Send for VocabularyCache
impl !Sync for VocabularyCache
impl Unpin for VocabularyCache
impl UnsafeUnpin for VocabularyCache
impl UnwindSafe for VocabularyCache
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