Struct onenote_parser::page::Page
source · pub struct Page { /* private fields */ }
Expand description
A page.
See [MS-ONE] 1.3.2 and [MS-ONE] 2.2.19.
Implementations
sourceimpl Page
impl Page
sourcepub fn title(&self) -> Option<&Title>
pub fn title(&self) -> Option<&Title>
The page’s title element.
See [MS-ONE] 2.2.64.
sourcepub fn level(&self) -> i32
pub fn level(&self) -> i32
The page’s level in the section page tree.
See [MS-ONE] 2.3.74.
The page’s author.
sourcepub fn height(&self) -> Option<f32>
pub fn height(&self) -> Option<f32>
The page’s height.
See [MS-ONE] 2.3.7.
sourcepub fn contents(&self) -> &[PageContent]
pub fn contents(&self) -> &[PageContent]
The page contents.
sourcepub fn title_text(&self) -> Option<&str>
pub fn title_text(&self) -> Option<&str>
The page’s title text.
This is calculated using a heuristic similar to the one OneNote uses.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnwindSafe for Page
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more