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

pub enum ClosureKind {
    FnClosureKind,
    FnMutClosureKind,
    FnOnceClosureKind,
}

Variants

FnClosureKind
FnMutClosureKind
FnOnceClosureKind

Methods

impl ClosureKind

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

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 as Decoder>::Error> where __D: Decoder

impl Encodable for ClosureKind

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

impl Debug for ClosureKind

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

impl Eq for ClosureKind

fn assert_receiver_is_total_eq(&self)

impl PartialEq<ClosureKind> for ClosureKind

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

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

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

impl Copy for ClosureKind

impl Clone for ClosureKind

fn clone(&self) -> ClosureKind

fn clone_from(&mut self, &ClosureKind)