pub struct List {
pub items: Vec<ListItem>,
pub marker_width: f32,
pub gap: f32,
pub common: Common,
/* private fields */
}Fields§
§items: Vec<ListItem>§marker_width: f32§gap: f32§common: CommonImplementations§
Source§impl List
impl List
pub fn new() -> Self
pub fn bullet(self, content: impl Into<Element>) -> Self
Sourcepub fn numbered(self, content: impl Into<Element>) -> Self
pub fn numbered(self, content: impl Into<Element>) -> Self
Appends a numbered item, auto-incrementing from 1.
pub fn marker_width(self, width: f32) -> Self
pub fn gap(self, gap: f32) -> Self
pub fn width(self, width: f32) -> Self
pub fn height(self, height: f32) -> Self
pub fn flex(self, factor: f32) -> Self
pub fn keep_with_next(self) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for List
impl RefUnwindSafe for List
impl Send for List
impl Sync for List
impl Unpin for List
impl UnsafeUnpin for List
impl UnwindSafe for List
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