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

pub enum AttributeGate {
    Gated(&'static str, &'static str),
    Ungated,
}

Variants

Gated(&'static str, &'static str)

Is gated by a given feature gate and reason

Ungated

Ungated attribute, can be used on all release channels

Trait Implementations

impl Debug for AttributeGate
[src]

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

Formats the value using the given formatter.

impl Clone for AttributeGate
[src]

fn clone(&self) -> AttributeGate

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for AttributeGate
[src]

impl PartialEq for AttributeGate
[src]

fn eq(&self, __arg_0: &AttributeGate) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &AttributeGate) -> bool

This method tests for !=.