pub struct PropertyAccess {
pub expr: Expr,
pub property: SmallName,
pub key_expr: Option<Expr>,
}Expand description
Property access like n.prop.
Fields§
§expr: Expr§property: SmallName§key_expr: Option<Expr>CIP-131: when a SET/REMOVE target uses the dynamic-property bracket
form (n[<expr>]) instead of the static n.prop form, the property
key is computed at runtime from this expression rather than being the
statically-known property string (which is left empty). None for
every static .prop access, keeping property back-compatible for
all existing (non-SET/REMOVE) uses of PropertyAccess.
Trait Implementations§
Source§impl Clone for PropertyAccess
impl Clone for PropertyAccess
Source§impl Debug for PropertyAccess
impl Debug for PropertyAccess
Source§impl PartialEq for PropertyAccess
impl PartialEq for PropertyAccess
impl StructuralPartialEq for PropertyAccess
Auto Trait Implementations§
impl Forget for PropertyAccess
impl Freeze for PropertyAccess
impl Move for PropertyAccess
impl RefUnwindSafe for PropertyAccess
impl Send for PropertyAccess
impl Sync for PropertyAccess
impl Unpin for PropertyAccess
impl UnsafeUnpin for PropertyAccess
impl UnwindSafe for PropertyAccess
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