pub struct KnowledgeBase;Expand description
Entry point for opening a Lepiter knowledge base directory.
Implementations§
Source§impl KnowledgeBase
impl KnowledgeBase
Sourcepub fn open(path: impl AsRef<Path>) -> Result<KnowledgeBaseIndex>
pub fn open(path: impl AsRef<Path>) -> Result<KnowledgeBaseIndex>
Scans a knowledge base directory and builds a page metadata index.
This operation only reads metadata and does not parse full page content.
Full parsing is done lazily via KnowledgeBaseIndex::load_page.
Auto Trait Implementations§
impl Freeze for KnowledgeBase
impl RefUnwindSafe for KnowledgeBase
impl Send for KnowledgeBase
impl Sync for KnowledgeBase
impl Unpin for KnowledgeBase
impl UnsafeUnpin for KnowledgeBase
impl UnwindSafe for KnowledgeBase
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