pub struct CacheBuilder { /* private fields */ }Expand description
CacheBuilder is single-threaded and non-reentrant by design.
Implementations§
Source§impl CacheBuilder
impl CacheBuilder
pub fn new(config: CacheBuildConfig) -> Self
pub fn build( &self, documents: Vec<Document>, output_dir: &Path, ) -> Result<ContextCache, CacheBuildError>
Auto Trait Implementations§
impl Freeze for CacheBuilder
impl RefUnwindSafe for CacheBuilder
impl Send for CacheBuilder
impl Sync for CacheBuilder
impl Unpin for CacheBuilder
impl UnsafeUnpin for CacheBuilder
impl UnwindSafe for CacheBuilder
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