pub struct ThrowStatement<'s> {
pub throw: &'s Token<'s>,
pub value: Box<Expression<'s>>,
}Expand description
A throw statement.
Grammar: throw Expression
Fields§
§throw: &'s Token<'s>§value: Box<Expression<'s>>Trait Implementations§
Source§impl<'s> Clone for ThrowStatement<'s>
impl<'s> Clone for ThrowStatement<'s>
Source§fn clone(&self) -> ThrowStatement<'s>
fn clone(&self) -> ThrowStatement<'s>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'s> Freeze for ThrowStatement<'s>
impl<'s> RefUnwindSafe for ThrowStatement<'s>
impl<'s> Send for ThrowStatement<'s>
impl<'s> Sync for ThrowStatement<'s>
impl<'s> Unpin for ThrowStatement<'s>
impl<'s> UnwindSafe for ThrowStatement<'s>
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