Struct somedoc::model::block::Paragraph[][src]

pub struct Paragraph { /* fields omitted */ }

A paragraph is a bounded block of inline content, usually text.

Implementations

impl Paragraph[src]

pub fn with_alignment(inner: &str, alignment: Alignment) -> Self[src]

Create a new instance with the string as inline content and the provided alignment.

Trait Implementations

impl Clone for Paragraph[src]

impl Debug for Paragraph[src]

impl Default for Paragraph[src]

impl<'de> Deserialize<'de> for Paragraph[src]

impl From<&'_ str> for Paragraph[src]

impl From<InlineContent> for Paragraph[src]

impl From<String> for Paragraph[src]

impl From<Vec<InlineContent, Global>> for Paragraph[src]

impl HasAlignment for Paragraph[src]

impl HasInlineContent for Paragraph[src]

impl HasInnerContent<InlineContent> for Paragraph[src]

impl HasLabel for Paragraph[src]

impl Into<BlockContent> for Paragraph[src]

impl Serialize 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.