[][src]Struct boa::syntax::ast::node::try_node::Try

pub struct Try { /* fields omitted */ }

The try...catch statement marks a block of statements to try and specifies a response should an exception be thrown.

The try statement consists of a try-block, which contains one or more statements. {} must always be used, even for single statements. At least one catch-block, or a finally-block, must be present.

More information:

Implementations

impl Try[src]

pub fn block(&self) -> &Block[src]

Gets the try block.

pub fn catch(&self) -> Option<&Catch>[src]

Gets the catch block, if any.

pub fn finally(&self) -> Option<&Block>[src]

Gets the finally block, if any.

Trait Implementations

impl Clone for Try[src]

impl Debug for Try[src]

impl Display for Try[src]

impl Drop for Try[src]

impl Executable for Try[src]

impl Finalize for Try[src]

impl From<Try> for Node[src]

impl PartialEq<Try> for Try[src]

impl StructuralPartialEq for Try[src]

impl Trace for Try[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> NativeObject for T where
    T: Any + Debug + Trace
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,