[][src]Struct syntax::parse::GatedSpans

pub struct GatedSpans {
    pub param_attrs: Lock<Vec<Span>>,
    pub let_chains: Lock<Vec<Span>>,
    pub async_closure: Lock<Vec<Span>>,
    pub yields: Lock<Vec<Span>>,
    pub or_patterns: Lock<Vec<Span>>,
}

Collected spans during parsing for places where a certain feature was used and should be feature gated accordingly in check_crate.

Fields

param_attrs: Lock<Vec<Span>>

Spans collected for gating param_attrs, e.g. fn foo(#[attr] x: u8) {}.

let_chains: Lock<Vec<Span>>

Spans collected for gating let_chains, e.g. if a && let b = c {}.

async_closure: Lock<Vec<Span>>

Spans collected for gating async_closure, e.g. async || ...

yields: Lock<Vec<Span>>

Spans collected for gating yield e? expressions (generators gate).

or_patterns: Lock<Vec<Span>>

Spans collected for gating or_patterns, e.g. Some(Foo | Bar).

Trait Implementations

impl Default for GatedSpans[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T[src]

impl<E> SpecializationError for E[src]