Skip to main content

TextBodyExt

Trait TextBodyExt 

Source
pub trait TextBodyExt {
    // Required methods
    fn paragraphs(&self) -> &[TextParagraph];
    fn text(&self) -> String;
}
Expand description

Extension trait for TextBody providing convenience methods.

Required Methods§

Source

fn paragraphs(&self) -> &[TextParagraph]

Get all paragraphs in the text body.

Source

fn text(&self) -> String

Extract all text from the text body.

Implementors§

Source§

impl TextBodyExt for TextBody

Available on crate feature dml-text only.