Struct resast::expr::Prop [−][src]
pub struct Prop<'a> {
pub key: PropKey<'a>,
pub value: PropValue<'a>,
pub kind: PropKind,
pub method: bool,
pub computed: bool,
pub short_hand: bool,
pub is_static: bool,
}
Expand description
A single part of an object literal or class
Fields
key: PropKey<'a>
value: PropValue<'a>
kind: PropKind
method: bool
computed: bool
short_hand: bool
is_static: bool
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Prop<'a>
impl<'a> UnwindSafe for Prop<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more