[][src]Struct rustc_ap_rustc_attr::ConstStability

pub struct ConstStability {
    pub level: StabilityLevel,
    pub feature: Symbol,
    pub promotable: bool,
    pub allow_const_fn_ptr: bool,
}

Represents the #[rustc_const_unstable] and #[rustc_const_stable] attributes.

Fields

level: StabilityLevelfeature: Symbolpromotable: bool

whether the function has a #[rustc_promotable] attribute

allow_const_fn_ptr: bool

whether the function has a #[rustc_allow_const_fn_ptr] attribute

Trait Implementations

impl Clone for ConstStability[src]

impl Copy for ConstStability[src]

impl Debug for ConstStability[src]

impl Decodable for ConstStability[src]

impl Encodable for ConstStability[src]

impl Eq for ConstStability[src]

impl Hash for ConstStability[src]

impl<__CTX> HashStable<__CTX> for ConstStability where
    __CTX: HashStableContext
[src]

impl PartialEq<ConstStability> for ConstStability[src]

impl StructuralEq for ConstStability[src]

impl StructuralPartialEq for ConstStability[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

impl<T> Decodable for T where
    T: UseSpecializedDecodable
[src]

impl<T> Encodable for T where
    T: UseSpecializedEncodable + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeResult<T> for T[src]

type Error = !

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<E> SpecializationError for E[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.