Enum docx_rust::document::ParagraphContent
source · pub enum ParagraphContent<'a> {
CommentRangeStart(CommentRangeStart<'a>),
CommentRangeEnd(CommentRangeEnd<'a>),
Run(Run<'a>),
Link(Hyperlink<'a>),
BookmarkStart(BookmarkStart<'a>),
BookmarkEnd(BookmarkEnd<'a>),
}
Expand description
A set of elements that can be contained as the content of a paragraph.
Variants§
CommentRangeStart(CommentRangeStart<'a>)
CommentRangeEnd(CommentRangeEnd<'a>)
Run(Run<'a>)
Link(Hyperlink<'a>)
BookmarkStart(BookmarkStart<'a>)
BookmarkEnd(BookmarkEnd<'a>)
Trait Implementations§
source§impl<'a> Clone for ParagraphContent<'a>
impl<'a> Clone for ParagraphContent<'a>
source§fn clone(&self) -> ParagraphContent<'a>
fn clone(&self) -> ParagraphContent<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for ParagraphContent<'a>
impl<'a> Debug for ParagraphContent<'a>
source§impl<'a> From<BookmarkEnd<'a>> for ParagraphContent<'a>
impl<'a> From<BookmarkEnd<'a>> for ParagraphContent<'a>
source§fn from(original: BookmarkEnd<'a>) -> ParagraphContent<'a>
fn from(original: BookmarkEnd<'a>) -> ParagraphContent<'a>
Converts to this type from the input type.
source§impl<'a> From<BookmarkStart<'a>> for ParagraphContent<'a>
impl<'a> From<BookmarkStart<'a>> for ParagraphContent<'a>
source§fn from(original: BookmarkStart<'a>) -> ParagraphContent<'a>
fn from(original: BookmarkStart<'a>) -> ParagraphContent<'a>
Converts to this type from the input type.
source§impl<'a> From<CommentRangeEnd<'a>> for ParagraphContent<'a>
impl<'a> From<CommentRangeEnd<'a>> for ParagraphContent<'a>
source§fn from(original: CommentRangeEnd<'a>) -> ParagraphContent<'a>
fn from(original: CommentRangeEnd<'a>) -> ParagraphContent<'a>
Converts to this type from the input type.
source§impl<'a> From<CommentRangeStart<'a>> for ParagraphContent<'a>
impl<'a> From<CommentRangeStart<'a>> for ParagraphContent<'a>
source§fn from(original: CommentRangeStart<'a>) -> ParagraphContent<'a>
fn from(original: CommentRangeStart<'a>) -> ParagraphContent<'a>
Converts to this type from the input type.
source§impl<'a> From<Hyperlink<'a>> for ParagraphContent<'a>
impl<'a> From<Hyperlink<'a>> for ParagraphContent<'a>
source§fn from(original: Hyperlink<'a>) -> ParagraphContent<'a>
fn from(original: Hyperlink<'a>) -> ParagraphContent<'a>
Converts to this type from the input type.
source§impl<'a> From<Run<'a>> for ParagraphContent<'a>
impl<'a> From<Run<'a>> for ParagraphContent<'a>
source§fn from(original: Run<'a>) -> ParagraphContent<'a>
fn from(original: Run<'a>) -> ParagraphContent<'a>
Converts to this type from the input type.