Trait somedoc::model::HasInnerContent [−][src]
This trait should be implemented by any type, whether block or inline, that includes.
InlineContent
. This allows for common treatment of such
types in writers and similar use cases.
Required methods
fn inner(&self) -> &Vec<T>
[src]
Return a reference to the inner value.
fn into_inner(self) -> Vec<T>
[src]
Return the inner value, consuming self
.
fn inner_mut(&mut self) -> &mut Vec<T>
[src]
Return a mutable reference to the inner list of content.
fn add_content(&mut self, content: T) -> Result<()>
[src]
Add content
to the inner list of content. If there is some consistency condition that
would be broken by this addition an error will be returned.