pub struct Component<'a> {
pub tag: &'a str,
pub meta: Option<Vec<Attribute<'a>>>,
pub child: Child<'a>,
}
Expand description
The HTML component to be created, where
tag
describes the tag of the HTML component e.g. “div” will lead to a <div></div>
component being built;
meta
is either None
or a list of the attributes for the component; and
child
describes what is inside the component
Fields§
§tag: &'a str
§meta: Option<Vec<Attribute<'a>>>
§child: Child<'a>
Auto Trait Implementations§
impl<'a> Freeze for Component<'a>
impl<'a> RefUnwindSafe for Component<'a>
impl<'a> Send for Component<'a>
impl<'a> Sync for Component<'a>
impl<'a> Unpin for Component<'a>
impl<'a> UnwindSafe for Component<'a>
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