#[repr(C)]pub struct ObjectTypeProperty<'gc> {
pub metadata: NodeMetadata<'gc>,
pub key: &'gc Node<'gc>,
pub value: &'gc Node<'gc>,
pub method: Cell<bool>,
pub optional: Cell<bool>,
pub static: Cell<bool>,
pub proto: Cell<bool>,
pub variance: Option<&'gc Node<'gc>>,
pub kind: Cell<NodeLabel>,
}Expand description
The ObjectTypeProperty AST node.
Fields§
§metadata: NodeMetadata<'gc>Source range, debug location, paren count, and node id.
key: &'gc Node<'gc>ESTree key property.
value: &'gc Node<'gc>ESTree value property.
method: Cell<bool>ESTree method property.
optional: Cell<bool>ESTree optional property.
static: Cell<bool>ESTree static property.
proto: Cell<bool>ESTree proto property.
variance: Option<&'gc Node<'gc>>ESTree variance property.
kind: Cell<NodeLabel>ESTree kind property.
Implementations§
Source§impl<'gc> ObjectTypeProperty<'gc>
impl<'gc> ObjectTypeProperty<'gc>
Trait Implementations§
Auto Trait Implementations§
impl<'gc> !Freeze for ObjectTypeProperty<'gc>
impl<'gc> !RefUnwindSafe for ObjectTypeProperty<'gc>
impl<'gc> !Send for ObjectTypeProperty<'gc>
impl<'gc> !Sync for ObjectTypeProperty<'gc>
impl<'gc> !UnwindSafe for ObjectTypeProperty<'gc>
impl<'gc> Unpin for ObjectTypeProperty<'gc>
impl<'gc> UnsafeUnpin for ObjectTypeProperty<'gc>
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