Trait somedoc::model::block::HasCaption[][src]

pub trait HasCaption {
    fn caption(&self) -> &Option<Caption>;
fn set_caption(&mut self, caption: Caption) -> &mut Self;
fn unset_caption(&mut self) -> &mut Self; fn has_caption(&self) -> bool { ... } }

Implemented by values that support a caption.

Required methods

fn caption(&self) -> &Option<Caption>[src]

Return the caption, if present.

fn set_caption(&mut self, caption: Caption) -> &mut Self[src]

Set the caption to the provided value.

fn unset_caption(&mut self) -> &mut Self[src]

Set the caption to None.

Loading content...

Provided methods

fn has_caption(&self) -> bool[src]

Returns true if a caption is set, else false.

Loading content...

Implementors

impl HasCaption for CodeBlock[src]

impl HasCaption for ImageBlock[src]

impl HasCaption for MathBlock[src]

impl HasCaption for Table[src]

impl HasCaption for HyperLink[src]

Loading content...