Struct latex::Paragraph
[−]
[src]
pub struct Paragraph { pub elements: Vec<ParagraphElement>, }
A single paragraph.
Fields
elements: Vec<ParagraphElement>
A list of ParagraphElements
which make up the paragraph's contents.
Methods
impl Paragraph
[src]
fn new() -> Self
Create a new paragraph.
fn push(&mut self, elem: ParagraphElement) -> &mut Self
Add a ParagraphElement
to the Paragraph
.
fn push_text(&mut self, text: &str) -> &mut Self
Add some raw text to the paragraph.
Trait Implementations
impl Clone for Paragraph
[src]
fn clone(&self) -> Paragraph
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Paragraph
[src]
impl Default for Paragraph
[src]
impl PartialEq for Paragraph
[src]
fn eq(&self, __arg_0: &Paragraph) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Paragraph) -> bool
This method tests for !=
.