Enum rustc_ast_lowering::FnDeclKind
source · pub(crate) enum FnDeclKind {
Fn,
Inherent,
ExternFn,
Closure,
Pointer,
Trait,
Impl,
}
Variants§
Implementations§
source§impl FnDeclKind
impl FnDeclKind
pub(crate) fn param_impl_trait_allowed(&self) -> bool
pub(crate) fn return_impl_trait_allowed(&self, tcx: TyCtxt<'_>) -> bool
pub(crate) fn async_fn_allowed(&self, tcx: TyCtxt<'_>) -> bool
Trait Implementations§
source§impl Debug for FnDeclKind
impl Debug for FnDeclKind
source§impl PartialEq<FnDeclKind> for FnDeclKind
impl PartialEq<FnDeclKind> for FnDeclKind
source§fn eq(&self, other: &FnDeclKind) -> bool
fn eq(&self, other: &FnDeclKind) -> bool
impl Eq for FnDeclKind
impl StructuralEq for FnDeclKind
impl StructuralPartialEq for FnDeclKind
Auto Trait Implementations§
impl RefUnwindSafe for FnDeclKind
impl Send for FnDeclKind
impl Sync for FnDeclKind
impl Unpin for FnDeclKind
impl UnwindSafe for FnDeclKind
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Fn
: 0 bytesInherent
: 0 bytesExternFn
: 0 bytesClosure
: 0 bytesPointer
: 0 bytesTrait
: 0 bytesImpl
: 0 bytes