Enum gluon_base::ast::PatternField
source · pub enum PatternField<'ast, Id> {
Type {
name: Spanned<Id, BytePos>,
},
Value {
name: Spanned<Id, BytePos>,
value: Option<SpannedPattern<'ast, Id>>,
},
}
Variants§
Implementations§
Trait Implementations§
source§impl<'ast, Id> AstAlloc<'ast, Id> for PatternField<'ast, Id>
impl<'ast, Id> AstAlloc<'ast, Id> for PatternField<'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 PatternField<'ast, Id>
impl<'ast, Id> AstClone<'ast, Id> for PatternField<'ast, Id>
source§impl<'ast, Id: Debug> Debug for PatternField<'ast, Id>
impl<'ast, Id: Debug> Debug for PatternField<'ast, Id>
source§impl<'ast, Id: PartialEq> PartialEq for PatternField<'ast, Id>
impl<'ast, Id: PartialEq> PartialEq for PatternField<'ast, Id>
source§fn eq(&self, other: &PatternField<'ast, Id>) -> bool
fn eq(&self, other: &PatternField<'ast, Id>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'ast, Id: Eq> Eq for PatternField<'ast, Id>
impl<'ast, Id> StructuralEq for PatternField<'ast, Id>
impl<'ast, Id> StructuralPartialEq for PatternField<'ast, Id>
Auto Trait Implementations§
impl<'ast, Id> RefUnwindSafe for PatternField<'ast, Id>where
Id: RefUnwindSafe,
impl<'ast, Id> Send for PatternField<'ast, Id>
impl<'ast, Id> Sync for PatternField<'ast, Id>
impl<'ast, Id> Unpin for PatternField<'ast, Id>where
Id: Unpin,
impl<'ast, Id> !UnwindSafe for PatternField<'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