pub struct Throw {
pub value: Box<Expr>,
pub token: Token,
}Expand description
Represents a throw statement in the AST.
The throw statement is used to raise an exception with a specified value.
Fields§
§value: Box<Expr>The expression representing the value to be thrown.
token: TokenThe token corresponding to the throw keyword in the source code.
Trait Implementations§
impl StructuralPartialEq for Throw
Auto Trait Implementations§
impl Freeze for Throw
impl RefUnwindSafe for Throw
impl Send for Throw
impl Sync for Throw
impl Unpin for Throw
impl UnwindSafe for Throw
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