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 Clone for FnDeclKind
impl Clone for FnDeclKind
source§fn clone(&self) -> FnDeclKind
fn clone(&self) -> FnDeclKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FnDeclKind
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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