Struct ra_ap_hir_def::data::FunctionData [−][src]
pub struct FunctionData { pub name: Name, pub params: Vec<Interned<TypeRef>>, pub ret_type: Interned<TypeRef>, pub async_ret_type: Option<Interned<TypeRef>>, pub attrs: Attrs, pub visibility: RawVisibility, pub abi: Option<Interned<str>>, // some fields omitted }
Fields
name: Name
params: Vec<Interned<TypeRef>>
ret_type: Interned<TypeRef>
async_ret_type: Option<Interned<TypeRef>>
attrs: Attrs
visibility: RawVisibility
abi: Option<Interned<str>>
Implementations
True if the first param is self
. This is relevant to decide whether this
can be called as a method.
Trait Implementations
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 FunctionData
impl Send for FunctionData
impl Sync for FunctionData
impl Unpin for FunctionData
impl UnwindSafe for FunctionData
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.