pub struct PageTree { /* private fields */ }Expand description
Page tree structure
Implementations§
Source§impl PageTree
impl PageTree
Sourcepub fn page_count(&self) -> u32
pub fn page_count(&self) -> u32
Get total page count
Sourcepub fn add_page(
&mut self,
page: Page,
page_id: ObjectId,
parent_id: ObjectId,
) -> Result<()>
pub fn add_page( &mut self, page: Page, page_id: ObjectId, parent_id: ObjectId, ) -> Result<()>
Add a page
Sourcepub fn add_pages_node(
&mut self,
node_id: ObjectId,
parent_id: Option<ObjectId>,
) -> Result<()>
pub fn add_pages_node( &mut self, node_id: ObjectId, parent_id: Option<ObjectId>, ) -> Result<()>
Add intermediate node
Sourcepub fn node_to_dict(&self, node_id: ObjectId) -> Result<Dictionary>
pub fn node_to_dict(&self, node_id: ObjectId) -> Result<Dictionary>
Convert node to dictionary
Auto Trait Implementations§
impl Freeze for PageTree
impl RefUnwindSafe for PageTree
impl Send for PageTree
impl Sync for PageTree
impl Unpin for PageTree
impl UnwindSafe for PageTree
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