Enum rustc_lint::middle::ty::ClosureKindUnstable [-] [+] [src]

pub enum ClosureKind {
    FnClosureKind,
    FnMutClosureKind,
    FnOnceClosureKind,
}

Variants

FnClosureKind
FnMutClosureKind
FnOnceClosureKind

Methods

impl ClosureKind

fn trait_did(&self, cx: &ctxt) -> DefId

fn extends(self, other: ClosureKind) -> bool

True if this a type that impls this closure kind must also implement other.

Trait Implementations

impl<'tcx> Repr<'tcx> for ClosureKind

fn repr(&self, &ctxt) -> String

Derived Implementations

impl Decodable for ClosureKind

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

impl Encodable for ClosureKind

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

impl Debug for ClosureKind

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

impl Eq for ClosureKind

impl PartialEq<ClosureKind> for ClosureKind

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

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

impl Ord for ClosureKind

fn cmp(&self, __arg_0: &ClosureKind) -> Ordering

impl PartialOrd<ClosureKind> for ClosureKind

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

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

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

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

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

impl Copy for ClosureKind

impl Clone for ClosureKind

fn clone(&self) -> ClosureKind

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