Struct gluon_base::ast::ValueBinding
source · 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§
Trait Implementations§
source§impl<'ast, Id> AstAlloc<'ast, Id> for ValueBinding<'ast, Id>
impl<'ast, Id> AstAlloc<'ast, Id> for ValueBinding<'ast, Id>
fn alloc(self, arena: &'ast Arena<'ast, Id>) -> &'ast mut Self
fn alloc_extend( iter: impl IntoIterator<Item = Self>, arena: &'ast Arena<'ast, Id> ) -> &'ast mut [Self]
source§impl<'ast, Id> AstClone<'ast, Id> for ValueBinding<'ast, Id>
impl<'ast, Id> AstClone<'ast, Id> for ValueBinding<'ast, Id>
source§impl<'ast, Id: Debug> Debug for ValueBinding<'ast, Id>
impl<'ast, Id: Debug> Debug for ValueBinding<'ast, Id>
source§impl<T> Default for ValueBinding<'_, T>where
T: PartialEq,
impl<T> Default for ValueBinding<'_, T>where
T: PartialEq,
source§impl<'ast, Id: PartialEq> PartialEq for ValueBinding<'ast, Id>
impl<'ast, Id: PartialEq> PartialEq for ValueBinding<'ast, Id>
source§fn eq(&self, other: &ValueBinding<'ast, Id>) -> bool
fn eq(&self, other: &ValueBinding<'ast, Id>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'ast, Id: Eq> Eq for ValueBinding<'ast, Id>
impl<'ast, Id> StructuralEq for ValueBinding<'ast, Id>
impl<'ast, Id> StructuralPartialEq for ValueBinding<'ast, Id>
Auto Trait Implementations§
impl<'ast, Id> RefUnwindSafe for ValueBinding<'ast, Id>where
Id: RefUnwindSafe,
impl<'ast, Id> Send for ValueBinding<'ast, Id>
impl<'ast, Id> Sync for ValueBinding<'ast, Id>
impl<'ast, Id> Unpin for ValueBinding<'ast, Id>where
Id: Unpin,
impl<'ast, Id> !UnwindSafe for ValueBinding<'ast, Id>
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