[][src]Struct docx_rs::Paragraph

pub struct Paragraph {
    pub children: Vec<ParagraphChild>,
    pub property: ParagraphProperty,
    pub has_numbering: bool,
    // some fields omitted
}

Fields

children: Vec<ParagraphChild>property: ParagraphPropertyhas_numbering: bool

Methods

impl Paragraph[src]

pub fn new() -> Paragraph[src]

pub fn children(&self) -> &Vec<ParagraphChild>[src]

pub fn add_run(self, run: Run) -> Paragraph[src]

pub fn add_insert(self, insert: Insert) -> Paragraph[src]

pub fn add_delete(self, delete: Delete) -> Paragraph[src]

pub fn add_attr(
    self,
    key: impl Into<String>,
    val: impl Into<String>
) -> Paragraph
[src]

pub fn add_bookmark_start(
    self,
    id: impl Into<String>,
    name: impl Into<String>
) -> Paragraph
[src]

pub fn add_bookmark_end(self, id: impl Into<String>) -> Paragraph[src]

pub fn add_comment_start(self, comment: Comment) -> Paragraph[src]

pub fn add_comment_end(self, id: usize) -> Paragraph[src]

pub fn align(self, alignment_type: AlignmentType) -> Paragraph[src]

pub fn style(self, style_id: &str) -> Paragraph[src]

pub fn indent(
    self,
    left: usize,
    special_indent: Option<SpecialIndentType>
) -> Paragraph
[src]

pub fn numbering(self, id: NumberingId, level: IndentLevel) -> Self[src]

Trait Implementations

impl Clone for Paragraph[src]

impl Debug for Paragraph[src]

impl Default for Paragraph[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.