Enum rustc::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: Decoder>(__arg_0: &mut __D) -> Result<ClosureKind, Error>

impl Encodable for ClosureKind

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

impl Debug for ClosureKind

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

impl Eq for ClosureKind

fn assert_receiver_is_total_eq(&self)

impl PartialEq for ClosureKind

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

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

impl Copy for ClosureKind

impl Clone for ClosureKind

fn clone(&self) -> ClosureKind

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