Enum syntex_syntax::attr::StabilityLevel [] [src]

pub enum StabilityLevel {
    Unstable {
        reason: Option<InternedString>,
        issue: u32,
    },
    Stable {
        since: InternedString,
    },
}

The available stability levels.

Variants

Unstable

Fields

reason
issue
Stable

Fields

since

Methods

impl StabilityLevel

fn is_unstable(&self) -> bool

fn is_stable(&self) -> bool

Trait Implementations

Derived Implementations

impl Hash for StabilityLevel

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for StabilityLevel

impl Debug for StabilityLevel

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

impl Clone for StabilityLevel

fn clone(&self) -> StabilityLevel

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

impl PartialOrd for StabilityLevel

fn partial_cmp(&self, __arg_0: &StabilityLevel) -> Option<Ordering>

fn lt(&self, __arg_0: &StabilityLevel) -> bool

fn le(&self, __arg_0: &StabilityLevel) -> bool

fn gt(&self, __arg_0: &StabilityLevel) -> bool

fn ge(&self, __arg_0: &StabilityLevel) -> bool

impl PartialEq for StabilityLevel

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

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

impl Decodable for StabilityLevel

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<StabilityLevel, __D::Error>

impl Encodable for StabilityLevel

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>