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

pub struct MathBlock { /* fields omitted */ }

A math block wraps an inline Math so that it forms a stand-alone block within the document.

Implementations

impl MathBlock[src]

pub fn with_caption(math: Math, caption: Caption) -> Self[src]

Create a new instance from the inline Math instance and a Caption.

pub fn with_caption_str(math: Math, caption: &str) -> Self[src]

Create a new instance from the inline Math instance and a caption string.

pub fn inner(&self) -> &Math[src]

Return a reference to the inner Math instance.

Trait Implementations

impl Clone for MathBlock[src]

impl Debug for MathBlock[src]

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

impl From<Math> for MathBlock[src]

impl HasCaption for MathBlock[src]

impl HasLabel for MathBlock[src]

impl Into<BlockContent> for MathBlock[src]

impl Serialize for MathBlock[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.