[−][src]Enum rustc_ast::ast::ParamKindOrd

pub enum ParamKindOrd {
    Lifetime,
    Type,
    Const {
        unordered: bool,
    },
}

Specifies the enforced ordering for generic parameters. In the future, if we wanted to relax this order, we could override PartialEq and PartialOrd, to allow the kinds to be unordered.

Variants

Lifetime
Type
Const

Fields of Const

unordered: bool

Trait Implementations

impl Clone for ParamKindOrd[src]

impl Copy for ParamKindOrd[src]

impl Display for ParamKindOrd[src]

impl Eq for ParamKindOrd[src]

impl Hash for ParamKindOrd[src]

impl Ord for ParamKindOrd[src]

impl PartialEq<ParamKindOrd> for ParamKindOrd[src]

impl PartialOrd<ParamKindOrd> for ParamKindOrd[src]

Auto Trait Implementations

impl RefUnwindSafe for ParamKindOrd

impl Send for ParamKindOrd

impl Sync for ParamKindOrd

impl Unpin for ParamKindOrd

impl UnwindSafe for ParamKindOrd

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<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized, 
[src]

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.