pub struct Alternative<'tree> {
pub span: Span,
pub binds: Option<LocalBinds<'tree>>,
pub match: Vec<Match<'tree>>,
pub pattern: Option<AlternativePattern<'tree>>,
pub patterns: Option<Patterns<'tree>>,
}Fields§
§span: Span§binds: Option<LocalBinds<'tree>>§match: Vec<Match<'tree>>§pattern: Option<AlternativePattern<'tree>>§patterns: Option<Patterns<'tree>>Trait Implementations§
Source§impl<'tree> Clone for Alternative<'tree>
impl<'tree> Clone for Alternative<'tree>
Source§fn clone(&self) -> Alternative<'tree>
fn clone(&self) -> Alternative<'tree>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'tree> Debug for Alternative<'tree>
impl<'tree> Debug for Alternative<'tree>
impl<'tree> Eq for Alternative<'tree>
Source§impl<'tree> FromNode<'tree> for Alternative<'tree>
impl<'tree> FromNode<'tree> for Alternative<'tree>
Source§impl<'tree> PartialEq for Alternative<'tree>
impl<'tree> PartialEq for Alternative<'tree>
Source§impl Spanned for Alternative<'_>
impl Spanned for Alternative<'_>
impl<'tree> StructuralPartialEq for Alternative<'tree>
Auto Trait Implementations§
impl<'tree> Freeze for Alternative<'tree>
impl<'tree> RefUnwindSafe for Alternative<'tree>
impl<'tree> Send for Alternative<'tree>
impl<'tree> Sync for Alternative<'tree>
impl<'tree> Unpin for Alternative<'tree>
impl<'tree> UnsafeUnpin for Alternative<'tree>
impl<'tree> UnwindSafe for Alternative<'tree>
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