Struct gluon_base::ast::ExprField
source · pub struct ExprField<'ast, Id, E> {
pub metadata: BaseMetadata<'ast>,
pub name: Spanned<Id, BytePos>,
pub value: Option<E>,
}
Fields§
§metadata: BaseMetadata<'ast>
§name: Spanned<Id, BytePos>
§value: Option<E>
Trait Implementations§
source§impl<'ast, Id> AstAlloc<'ast, Id> for ExprField<'ast, Id, ArcType<Id>>
impl<'ast, Id> AstAlloc<'ast, Id> for ExprField<'ast, Id, ArcType<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> AstAlloc<'ast, Id> for ExprField<'ast, Id, SpannedExpr<'ast, Id>>
impl<'ast, Id> AstAlloc<'ast, Id> for ExprField<'ast, Id, SpannedExpr<'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: PartialEq, E: PartialEq> PartialEq for ExprField<'ast, Id, E>
impl<'ast, Id: PartialEq, E: PartialEq> PartialEq for ExprField<'ast, Id, E>
impl<'ast, Id: Eq, E: Eq> Eq for ExprField<'ast, Id, E>
impl<'ast, Id, E> StructuralEq for ExprField<'ast, Id, E>
impl<'ast, Id, E> StructuralPartialEq for ExprField<'ast, Id, E>
Auto Trait Implementations§
impl<'ast, Id, E> RefUnwindSafe for ExprField<'ast, Id, E>where
E: RefUnwindSafe,
Id: RefUnwindSafe,
impl<'ast, Id, E> Send for ExprField<'ast, Id, E>
impl<'ast, Id, E> Sync for ExprField<'ast, Id, E>
impl<'ast, Id, E> Unpin for ExprField<'ast, Id, E>
impl<'ast, Id, E> !UnwindSafe for ExprField<'ast, Id, E>
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