[−][src]Struct syntax::parse::GatedSpans
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]
fn default() -> GatedSpans
[src]
Auto Trait Implementations
impl !Send for GatedSpans
impl Unpin for GatedSpans
impl !Sync for GatedSpans
impl UnwindSafe for GatedSpans
impl !RefUnwindSafe for GatedSpans
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
[src]
impl<E> SpecializationError for E
[src]
default fn not_found<S, T>(
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
[src]
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,