Struct gluon_base::ast::Alternative
source · pub struct Alternative<'ast, Id> {
pub pattern: SpannedPattern<'ast, Id>,
pub expr: SpannedExpr<'ast, Id>,
}
Fields§
§pattern: SpannedPattern<'ast, Id>
§expr: SpannedExpr<'ast, Id>
Trait Implementations§
source§impl<'ast, Id> AstAlloc<'ast, Id> for Alternative<'ast, Id>
impl<'ast, Id> AstAlloc<'ast, Id> for Alternative<'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 Alternative<'ast, Id>
impl<'ast, Id> AstClone<'ast, Id> for Alternative<'ast, Id>
source§impl<'ast, Id: Debug> Debug for Alternative<'ast, Id>
impl<'ast, Id: Debug> Debug for Alternative<'ast, Id>
source§impl<'ast, Id: PartialEq> PartialEq for Alternative<'ast, Id>
impl<'ast, Id: PartialEq> PartialEq for Alternative<'ast, Id>
source§fn eq(&self, other: &Alternative<'ast, Id>) -> bool
fn eq(&self, other: &Alternative<'ast, Id>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'ast, Id: Eq> Eq for Alternative<'ast, Id>
impl<'ast, Id> StructuralEq for Alternative<'ast, Id>
impl<'ast, Id> StructuralPartialEq for Alternative<'ast, Id>
Auto Trait Implementations§
impl<'ast, Id> RefUnwindSafe for Alternative<'ast, Id>where
Id: RefUnwindSafe,
impl<'ast, Id> Send for Alternative<'ast, Id>
impl<'ast, Id> Sync for Alternative<'ast, Id>
impl<'ast, Id> Unpin for Alternative<'ast, Id>where
Id: Unpin,
impl<'ast, Id> !UnwindSafe for Alternative<'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