[][src]Struct gluon_base::ast::ValueBinding

pub struct ValueBinding<'ast, Id> {
    pub metadata: BaseMetadata<'ast>,
    pub name: SpannedPattern<'ast, Id>,
    pub typ: Option<AstType<'ast, Id>>,
    pub resolved_type: ArcType<Id>,
    pub args: &'ast mut [Argument<SpannedIdent<Id>>],
    pub expr: SpannedExpr<'ast, Id>,
}

Fields

metadata: BaseMetadata<'ast>name: SpannedPattern<'ast, Id>typ: Option<AstType<'ast, Id>>resolved_type: ArcType<Id>args: &'ast mut [Argument<SpannedIdent<Id>>]expr: SpannedExpr<'ast, Id>

Implementations

impl<'ast, Id> ValueBinding<'ast, Id>[src]

pub fn span(&self) -> Span<BytePos>[src]

Trait Implementations

impl<'ast, Id> AstAlloc<'ast, Id> for ValueBinding<'ast, Id>[src]

impl<'ast, Id> AstClone<'ast, Id> for ValueBinding<'ast, Id> where
    Id: AstClone<'ast, Id>,
    Id: Clone
[src]

impl<'ast, Id: Debug> Debug for ValueBinding<'ast, Id>[src]

impl<T, '_> Default for ValueBinding<'_, T> where
    T: PartialEq
[src]

impl<'ast, Id: Eq> Eq for ValueBinding<'ast, Id>[src]

impl<'ast, Id: PartialEq> PartialEq<ValueBinding<'ast, Id>> for ValueBinding<'ast, Id>[src]

impl<'ast, Id> StructuralEq for ValueBinding<'ast, Id>[src]

impl<'ast, Id> StructuralPartialEq for ValueBinding<'ast, Id>[src]

Auto Trait Implementations

impl<'ast, Id> RefUnwindSafe for ValueBinding<'ast, Id> where
    Id: RefUnwindSafe

impl<'ast, Id> Send for ValueBinding<'ast, Id> where
    Id: Send + Sync

impl<'ast, Id> Sync for ValueBinding<'ast, Id> where
    Id: Send + Sync

impl<'ast, Id> Unpin for ValueBinding<'ast, Id> where
    Id: Unpin

impl<'ast, Id> !UnwindSafe for ValueBinding<'ast, Id>

Blanket Implementations

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

impl<Id> AsId<Id> for Id where
    Id: ?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, 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.