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