Enum onenote_parser::contents::Content
source · pub enum Content {
RichText(RichText),
Table(Table),
Image(Image),
EmbeddedFile(EmbeddedFile),
Ink(Ink),
Unknown,
}
Expand description
The content of an outline.
Variants
RichText(RichText)
A rich-text block.
Table(Table)
A table.
Image(Image)
An embedded image.
EmbeddedFile(EmbeddedFile)
An embedded file.
Ink(Ink)
An ink drawing
Unknown
Content of unknown type.
Implementations
sourceimpl Content
impl Content
sourcepub fn rich_text(&self) -> Option<&RichText>
pub fn rich_text(&self) -> Option<&RichText>
Return the rich-text data if it’s a rich-text content block.
sourcepub fn embedded_file(&self) -> Option<&EmbeddedFile>
pub fn embedded_file(&self) -> Option<&EmbeddedFile>
Return the embedded file data if it’s a embedded file content block.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnwindSafe for Content
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