Struct genpdf::elements::BulletPoint [−][src]
pub struct BulletPoint<E: Element> { /* fields omitted */ }
Expand description
A bullet point in a list.
This is a helper element for the OrderedList
and UnorderedList
types, but you can
also use it directly if you have special requirements.
Example
use genpdf::elements; let layout = elements::LinearLayout::vertical() .element(elements::BulletPoint::new(elements::Paragraph::new("first")) .with_bullet("a)")) .element(elements::BulletPoint::new(elements::Paragraph::new("second")) .with_bullet("b)"));
Implementations
Creates a new bullet point with the given element.
Sets the bullet point symbol for this bullet point.
Sets the bullet point symbol for this bullet point and returns the bullet point.
Trait Implementations
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<E> RefUnwindSafe for BulletPoint<E> where
E: RefUnwindSafe,
impl<E> Send for BulletPoint<E> where
E: Send,
impl<E> Sync for BulletPoint<E> where
E: Sync,
impl<E> Unpin for BulletPoint<E> where
E: Unpin,
impl<E> UnwindSafe for BulletPoint<E> where
E: UnwindSafe,