pub struct Pages<'a> { /* private fields */ }Expand description
Sub-handle returned by Knowledge::pages. Hosts the verb-bare
save / load / remove over the page collection while keeping
the index updated and the char budget enforced.
Implementations§
Source§impl Pages<'_>
impl Pages<'_>
Sourcepub fn save(&self, page: Page) -> Result<KnowledgeOutcome, String>
pub fn save(&self, page: Page) -> Result<KnowledgeOutcome, String>
Upsert page and its index entry. Creates or overwrites the
page file and refreshes the index. Returns the outcome with
the new char usage so the tool layer can show progress.
Auto Trait Implementations§
impl<'a> Freeze for Pages<'a>
impl<'a> RefUnwindSafe for Pages<'a>
impl<'a> Send for Pages<'a>
impl<'a> Sync for Pages<'a>
impl<'a> Unpin for Pages<'a>
impl<'a> UnsafeUnpin for Pages<'a>
impl<'a> UnwindSafe for Pages<'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