#[repr(C)]pub struct MatchExpressionCase<'gc> {
pub metadata: NodeMetadata<'gc>,
pub pattern: &'gc Node<'gc>,
pub body: &'gc Node<'gc>,
pub guard: Option<&'gc Node<'gc>>,
}Expand description
The MatchExpressionCase AST node.
Fields§
§metadata: NodeMetadata<'gc>Source range, debug location, paren count, and node id.
pattern: &'gc Node<'gc>ESTree pattern property.
body: &'gc Node<'gc>ESTree body property.
guard: Option<&'gc Node<'gc>>ESTree guard property.
Implementations§
Source§impl<'gc> MatchExpressionCase<'gc>
impl<'gc> MatchExpressionCase<'gc>
Trait Implementations§
Auto Trait Implementations§
impl<'gc> !Freeze for MatchExpressionCase<'gc>
impl<'gc> !RefUnwindSafe for MatchExpressionCase<'gc>
impl<'gc> !Send for MatchExpressionCase<'gc>
impl<'gc> !Sync for MatchExpressionCase<'gc>
impl<'gc> !UnwindSafe for MatchExpressionCase<'gc>
impl<'gc> Unpin for MatchExpressionCase<'gc>
impl<'gc> UnsafeUnpin for MatchExpressionCase<'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