pub struct PropertyValue {
pub mutability: Option<Mut>,
pub name: Ident,
pub colon_token: Colon,
pub expr: Expr,
}Expand description
Represents a property in a component.
ⓘ
identifier: some+expressionIn which case, the identifier is stored in the name field, while some+expression is in expr.
Fields§
§mutability: Option<Mut>Mutability of the field, used only by a few components.
name: Identname of the property
colon_token: Colon§expr: ExprExpression of the property
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PropertyValue
impl RefUnwindSafe for PropertyValue
impl !Send for PropertyValue
impl !Sync for PropertyValue
impl Unpin for PropertyValue
impl UnwindSafe for PropertyValue
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