pub struct Element {
pub name: Ident,
pub props: Vec<Prop>,
pub template: Option<Ident>,
pub children: Option<Vec<Node>>,
pub action: Option<Action>,
pub span: Span,
}Expand description
A built-in component such as Button(...) { ... } => action.
Fields§
§name: Ident§props: Vec<Prop>§template: Option<Ident>Row template variable, as in List(...) |item| { ... }.
children: Option<Vec<Node>>§action: Option<Action>§span: SpanImplementations§
Trait Implementations§
Auto Trait Implementations§
impl !Send for Element
impl !Sync for Element
impl Freeze for Element
impl RefUnwindSafe for Element
impl Unpin for Element
impl UnsafeUnpin 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