Enum ra_ap_hir::DefWithBody [−][src]
Expand description
The defs which have a body.
Variants
Function(Function)
Tuple Fields of Function
0: Function
Static(Static)
Tuple Fields of Static
0: Static
Const(Const)
Tuple Fields of Const
0: Const
Implementations
Returns the type this def’s body has to evaluate to.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DefWithBody
impl Send for DefWithBody
impl Sync for DefWithBody
impl Unpin for DefWithBody
impl UnwindSafe for DefWithBody
Blanket Implementations
Mutably borrows from an owned value. Read more
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U
using CastTo
.
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more