pub enum Element {
Show 24 variants
Div,
Raw {
value: String,
},
Aside,
Main,
Header,
Footer,
Section,
Form,
Span,
Input {
input: Input,
},
Button,
Image {
source: Option<String>,
alt: Option<String>,
fit: Option<ImageFit>,
source_set: Option<String>,
sizes: Option<Number>,
loading: Option<ImageLoading>,
},
Anchor {
target: Option<LinkTarget>,
href: Option<String>,
},
Heading {
size: HeaderSize,
},
UnorderedList,
OrderedList,
ListItem,
Table,
THead,
TH,
TBody,
TR,
TD,
Canvas,
}
Variants§
Div
Raw
Aside
Main
Header
Section
Form
Span
Input
Button
Image
Fields
§
loading: Option<ImageLoading>
Anchor
Heading
Fields
§
size: HeaderSize
UnorderedList
OrderedList
ListItem
Table
THead
TH
TBody
TR
TD
Canvas
Implementations§
Source§impl Element
impl Element
pub const fn allows_children(&self) -> bool
pub const fn tag_display_str(&self) -> &'static str
Trait Implementations§
impl StructuralPartialEq for Element
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
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