Enum rustc::middle::ty::ClosureKind
[−]
[src]
pub enum ClosureKind {
FnClosureKind,
FnMutClosureKind,
FnOnceClosureKind,
}Unstable
Variants
FnClosureKind | Unstable |
FnMutClosureKind | Unstable |
FnOnceClosureKind | Unstable |
Methods
impl ClosureKind
fn trait_did(&self, cx: &ctxt) -> DefId
Unstable
fn extends(self, other: ClosureKind) -> bool
Unstable
True if this a type that impls this closure kind
must also implement other.