pub struct List { /* private fields */ }Implementations§
Source§impl List
impl List
pub fn new() -> Self
pub fn new_with_ordering(ordering: ListType) -> Self
pub fn add_element(&mut self, item: impl IntoHtmlNode + 'static)
pub fn add_element_with_attributes( &mut self, item: impl IntoHtmlNode + 'static, attributes: HtmlAttributes, )
Trait Implementations§
Source§impl IntoHtmlNode for List
impl IntoHtmlNode for List
Source§impl SetHtmlAttributes for List
impl SetHtmlAttributes for List
fn get_attributes(&self) -> &HtmlAttributes
fn get_attributes_mut(&mut self) -> &mut HtmlAttributes
fn set_class<S: Into<String>>(&mut self, class: S)
fn clear_class(&mut self)
fn set_id<S: Into<String>>(&mut self, id: S)
fn clear_id(&mut self)
Auto Trait Implementations§
impl Freeze for List
impl !RefUnwindSafe for List
impl !Send for List
impl !Sync for List
impl Unpin 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