Struct syntex_syntax::attr::Stability [] [src]

pub struct Stability {
    pub level: StabilityLevel,
    pub feature: InternedString,
    pub depr: Option<Deprecation>,
}

Represents the #[stable], #[unstable] and #[rustc_deprecated] attributes.

Fields

level
feature
depr

Trait Implementations

Derived Implementations

impl Hash for Stability

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

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

impl Eq for Stability

impl PartialEq for Stability

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

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

impl Debug for Stability

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

impl Clone for Stability

fn clone(&self) -> Stability

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

impl Decodable for Stability

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

impl Encodable for Stability

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