pub struct ListStyle {
pub list_type: ListType,
pub font: Font,
pub font_size: f64,
pub text_color: Color,
pub marker_color: Option<Color>,
pub max_width: Option<f64>,
pub line_spacing: f64,
pub indent: f64,
pub paragraph_spacing: f64,
pub draw_separator: bool,
}Expand description
Predefined list styles
Fields§
§list_type: ListTypeList type
font: FontFont for text
font_size: f64Font size
text_color: ColorText color
marker_color: Option<Color>Marker color (None = same as text)
max_width: Option<f64>Maximum width for text wrapping
line_spacing: f64Line spacing multiplier
indent: f64Indentation per level
paragraph_spacing: f64Paragraph spacing after items
draw_separator: boolWhether to draw separators
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ListStyle
impl RefUnwindSafe for ListStyle
impl Send for ListStyle
impl Sync for ListStyle
impl Unpin for ListStyle
impl UnwindSafe for ListStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more