pub struct ComponentExpr {
pub name: Ident,
pub props: Vec<PropAssign>,
pub children: Option<UIBlock>,
pub span: Span,
}Expand description
A component expression: Text { value: "hello" } or Modal { visible: v } { children }
Fields§
§name: Ident§props: Vec<PropAssign>§children: Option<UIBlock>§span: SpanTrait Implementations§
Source§impl Clone for ComponentExpr
impl Clone for ComponentExpr
Source§fn clone(&self) -> ComponentExpr
fn clone(&self) -> ComponentExpr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComponentExpr
impl Debug for ComponentExpr
Source§impl<'de> Deserialize<'de> for ComponentExpr
impl<'de> Deserialize<'de> for ComponentExpr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ComponentExpr
impl PartialEq for ComponentExpr
Source§impl Serialize for ComponentExpr
impl Serialize for ComponentExpr
impl StructuralPartialEq for ComponentExpr
Auto Trait Implementations§
impl Freeze for ComponentExpr
impl RefUnwindSafe for ComponentExpr
impl Send for ComponentExpr
impl Sync for ComponentExpr
impl Unpin for ComponentExpr
impl UnwindSafe for ComponentExpr
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