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.