Struct gluon_base::ast::Alternative [−][src]
pub struct Alternative<Id> { pub pattern: SpannedPattern<Id>, pub expr: SpannedExpr<Id>, }
Fields
pattern: SpannedPattern<Id>
expr: SpannedExpr<Id>
Trait Implementations
impl<Id: Clone> Clone for Alternative<Id>
[src]
impl<Id: Clone> Clone for Alternative<Id>
fn clone(&self) -> Alternative<Id>
[src]
fn clone(&self) -> Alternative<Id>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<Id: PartialEq> PartialEq for Alternative<Id>
[src]
impl<Id: PartialEq> PartialEq for Alternative<Id>
fn eq(&self, other: &Alternative<Id>) -> bool
[src]
fn eq(&self, other: &Alternative<Id>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Alternative<Id>) -> bool
[src]
fn ne(&self, other: &Alternative<Id>) -> bool
This method tests for !=
.
impl<Id: Debug> Debug for Alternative<Id>
[src]
impl<Id: Debug> Debug for Alternative<Id>
Auto Trait Implementations
impl<Id> Send for Alternative<Id> where
Id: Send + Sync,
impl<Id> Send for Alternative<Id> where
Id: Send + Sync,
impl<Id> Sync for Alternative<Id> where
Id: Send + Sync,
impl<Id> Sync for Alternative<Id> where
Id: Send + Sync,