pub struct ListOptions {Show 16 fields
pub font: Font,
pub font_size: f64,
pub text_color: Color,
pub indent: f64,
pub line_spacing: f64,
pub marker_spacing: f64,
pub max_width: Option<f64>,
pub text_align: TextAlign,
pub marker_font: Font,
pub marker_color: Option<Color>,
pub paragraph_spacing: f64,
pub draw_separator: bool,
pub separator_color: Color,
pub separator_width: f64,
pub marker_prefix: String,
pub marker_suffix: String,
}Expand description
Options for list rendering
Fields§
§font: FontFont for list text
font_size: f64Font size in points
text_color: ColorText color
indent: f64Indentation per level in points
line_spacing: f64Line spacing multiplier
marker_spacing: f64Space between bullet/number and text
max_width: Option<f64>Maximum width for text wrapping (None = no wrapping)
text_align: TextAlignText alignment for wrapped lines
marker_font: FontFont for markers (bullets/numbers)
marker_color: Option<Color>Marker color (None = same as text)
paragraph_spacing: f64Paragraph spacing after each item
draw_separator: boolWhether to draw a line after each item
separator_color: ColorSeparator line color
separator_width: f64Separator line width
marker_prefix: StringCustom prefix before markers (e.g., “Chapter “, “Section “)
marker_suffix: StringCustom suffix after markers (e.g., “)”, “]”, “:”)
Trait Implementations§
Source§impl Clone for ListOptions
impl Clone for ListOptions
Source§fn clone(&self) -> ListOptions
fn clone(&self) -> ListOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ListOptions
impl Debug for ListOptions
Auto Trait Implementations§
impl Freeze for ListOptions
impl RefUnwindSafe for ListOptions
impl Send for ListOptions
impl Sync for ListOptions
impl Unpin for ListOptions
impl UnwindSafe for ListOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more