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

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

impl Encodable for ClosureKind

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

impl Debug for ClosureKind

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

impl Eq for ClosureKind

impl PartialEq 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 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)