pub struct BulletPoint<E: Element> { /* private fields */ }
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 rckive_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 using the given line style.
Adds a padding to this element.
Sets the default style for this element and its children.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Creates a boxed element from this element.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.