Struct genpdf::elements::UnorderedList [−][src]
pub struct UnorderedList { /* fields omitted */ }
Expand description
An unordered list of elements with bullet points.
Examples
With setters:
use genpdf::elements; let mut list = elements::UnorderedList::new(); list.push(elements::Paragraph::new("first")); list.push(elements::Paragraph::new("second")); list.push(elements::Paragraph::new("third"));
With setters and a custom bullet symbol:
use genpdf::elements; let mut list = elements::UnorderedList::with_bullet("*"); list.push(elements::Paragraph::new("first")); list.push(elements::Paragraph::new("second")); list.push(elements::Paragraph::new("third"));
Chained:
use genpdf::elements; let list = elements::UnorderedList::new() .element(elements::Paragraph::new("first")) .element(elements::Paragraph::new("second")) .element(elements::Paragraph::new("third"));
Implementations
Creates a new unordered list with the default bullet point symbol.
Creates a new unordered list with the given bullet point symbol.
Trait Implementations
Returns the “default value” for a type. Read more
Renders this element to the given area using the given style and font cache. Read more
Draws a frame around this element.
Adds a padding to this element.
Auto Trait Implementations
impl !RefUnwindSafe for UnorderedList
impl !Send for UnorderedList
impl !Sync for UnorderedList
impl Unpin for UnorderedList
impl !UnwindSafe for UnorderedList