#[repr(C)]pub struct IndexedAccessType<'gc> {
pub metadata: NodeMetadata<'gc>,
pub object_type: &'gc Node<'gc>,
pub index_type: &'gc Node<'gc>,
}Expand description
The IndexedAccessType AST node.
Fields§
§metadata: NodeMetadata<'gc>Source range, debug location, paren count, and node id.
object_type: &'gc Node<'gc>ESTree objectType property.
index_type: &'gc Node<'gc>ESTree indexType property.
Implementations§
Source§impl<'gc> IndexedAccessType<'gc>
impl<'gc> IndexedAccessType<'gc>
Sourcepub fn new(
metadata: NodeMetadata<'gc>,
object_type: &'gc Node<'gc>,
index_type: &'gc Node<'gc>,
) -> Self
pub fn new( metadata: NodeMetadata<'gc>, object_type: &'gc Node<'gc>, index_type: &'gc Node<'gc>, ) -> Self
Build IndexedAccessType from its metadata and ESTree.def fields.
Trait Implementations§
Auto Trait Implementations§
impl<'gc> !Freeze for IndexedAccessType<'gc>
impl<'gc> !RefUnwindSafe for IndexedAccessType<'gc>
impl<'gc> !Send for IndexedAccessType<'gc>
impl<'gc> !Sync for IndexedAccessType<'gc>
impl<'gc> !UnwindSafe for IndexedAccessType<'gc>
impl<'gc> Unpin for IndexedAccessType<'gc>
impl<'gc> UnsafeUnpin for IndexedAccessType<'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