Enum syntex_syntax::feature_gate::AttributeGate [] [src]

pub enum AttributeGate {
    Gated(&'static str, &'static str, fn(&Features) -> bool),
    Ungated,
}

Variants

Gated(&'static str, &'static str, fn(&Features) -> bool)

Is gated by a given feature gate, reason and function to check if enabled

Ungated

Ungated attribute, can be used on all release channels

Trait Implementations

impl Debug for AttributeGate
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.