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
sourceimpl<'a> PartialEq<Prop<'a>> for Prop<'a>
impl<'a> PartialEq<Prop<'a>> for Prop<'a>
impl<'a> StructuralPartialEq for Prop<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Prop<'a>
impl<'a> Send for Prop<'a>
impl<'a> Sync for Prop<'a>
impl<'a> Unpin for Prop<'a>
impl<'a> UnwindSafe for Prop<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more