[][src]Struct onenote_parser::Parser

pub struct Parser;

The OneNote file parser.

Implementations

impl Parser[src]

pub fn new() -> Parser[src]

Create a new OneNote file parser.

pub fn parse_notebook(&mut self, path: &Path) -> Result<Notebook>[src]

Parse a OneNote notebook.

The path argument must point to a .onetoc2 file. This will parse the table of contents of the notebook as well as all contained sections from the folder that the table of contents file is in.

pub fn parse_section(&mut self, path: &Path) -> Result<Section>[src]

Parse a OneNote section file.

The path argument must point to a .one file that contains a OneNote section.

Trait Implementations

impl Default for Parser[src]

Auto Trait Implementations

impl RefUnwindSafe for Parser

impl Send for Parser

impl Sync for Parser

impl Unpin for Parser

impl UnwindSafe for Parser

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.