Trait somedoc::model::block::HasCaption [−][src]
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
.
Provided methods
fn has_caption(&self) -> bool
[src]
Returns true
if a caption is set, else false
.