[][src]Struct dyon::ast::TryExpr

pub struct TryExpr {
    pub expr: Expression,
    pub source_range: Range,
}

Try-expression, catches run-time errors from sub-expression.

E.g. try foo().

Fields

expr: Expression

Sub-expression to catch run-time errors from.

source_range: Range

The range in source.

Implementations

impl TryExpr[src]

pub fn from_meta_data(
    file: &Arc<String>,
    source: &Arc<String>,
    convert: Convert,
    ignored: &mut Vec<Range>
) -> Result<(Range, TryExpr), ()>
[src]

Creates try expression from meta data.

Trait Implementations

impl Clone for TryExpr[src]

impl Debug for TryExpr[src]

Auto Trait Implementations

impl !RefUnwindSafe for TryExpr

impl Send for TryExpr

impl Sync for TryExpr

impl Unpin for TryExpr

impl !UnwindSafe for TryExpr

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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