Enum rustc_ast_lowering::FnDeclKind
source · pub(crate) enum FnDeclKind {
Fn,
Inherent,
ExternFn,
Closure,
Pointer,
Trait,
Impl,
}
Variants
Fn
Inherent
ExternFn
Closure
Pointer
Trait
Impl
Implementations
sourceimpl FnDeclKind
impl FnDeclKind
pub(crate) fn impl_trait_return_allowed(&self, tcx: TyCtxt<'_>) -> bool
pub(crate) fn impl_trait_in_trait_allowed(&self, tcx: TyCtxt<'_>) -> bool
Trait Implementations
sourceimpl Debug for FnDeclKind
impl Debug for FnDeclKind
sourceimpl PartialEq<FnDeclKind> for FnDeclKind
impl PartialEq<FnDeclKind> for FnDeclKind
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
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