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
sourceimpl<'a> Clone for ParagraphContent<'a>
impl<'a> Clone for ParagraphContent<'a>
sourcefn clone(&self) -> ParagraphContent<'a>
fn clone(&self) -> ParagraphContent<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for ParagraphContent<'a>
impl<'a> Debug for ParagraphContent<'a>
sourceimpl<'a> From<BookmarkEnd<'a>> for ParagraphContent<'a>
impl<'a> From<BookmarkEnd<'a>> for ParagraphContent<'a>
sourcefn from(original: BookmarkEnd<'a>) -> ParagraphContent<'a>
fn from(original: BookmarkEnd<'a>) -> ParagraphContent<'a>
Converts to this type from the input type.
sourceimpl<'a> From<BookmarkStart<'a>> for ParagraphContent<'a>
impl<'a> From<BookmarkStart<'a>> for ParagraphContent<'a>
sourcefn from(original: BookmarkStart<'a>) -> ParagraphContent<'a>
fn from(original: BookmarkStart<'a>) -> ParagraphContent<'a>
Converts to this type from the input type.
sourceimpl<'a> From<CommentRangeEnd<'a>> for ParagraphContent<'a>
impl<'a> From<CommentRangeEnd<'a>> for ParagraphContent<'a>
sourcefn from(original: CommentRangeEnd<'a>) -> ParagraphContent<'a>
fn from(original: CommentRangeEnd<'a>) -> ParagraphContent<'a>
Converts to this type from the input type.
sourceimpl<'a> From<CommentRangeStart<'a>> for ParagraphContent<'a>
impl<'a> From<CommentRangeStart<'a>> for ParagraphContent<'a>
sourcefn from(original: CommentRangeStart<'a>) -> ParagraphContent<'a>
fn from(original: CommentRangeStart<'a>) -> ParagraphContent<'a>
Converts to this type from the input type.
sourceimpl<'a> From<Hyperlink<'a>> for ParagraphContent<'a>
impl<'a> From<Hyperlink<'a>> for ParagraphContent<'a>
sourcefn from(original: Hyperlink<'a>) -> ParagraphContent<'a>
fn from(original: Hyperlink<'a>) -> ParagraphContent<'a>
Converts to this type from the input type.
sourceimpl<'a> From<Run<'a>> for ParagraphContent<'a>
impl<'a> From<Run<'a>> for ParagraphContent<'a>
sourcefn from(original: Run<'a>) -> ParagraphContent<'a>
fn from(original: Run<'a>) -> ParagraphContent<'a>
Converts to this type from the input type.
sourceimpl<'__input: 'a, 'a> XmlRead<'__input> for ParagraphContent<'a>
impl<'__input: 'a, 'a> XmlRead<'__input> for ParagraphContent<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ParagraphContent<'a>
impl<'a> Send for ParagraphContent<'a>
impl<'a> Sync for ParagraphContent<'a>
impl<'a> Unpin for ParagraphContent<'a>
impl<'a> UnwindSafe for ParagraphContent<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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