Struct ra_ap_hir_def::item_tree::Function [−][src]
pub struct Function { pub name: Name, pub visibility: RawVisibilityId, pub generic_params: Interned<GenericParams>, pub abi: Option<Interned<str>>, pub params: IdRange<Param>, pub ret_type: Interned<TypeRef>, pub async_ret_type: Option<Interned<TypeRef>>, pub ast_id: FileAstId<Fn>, // some fields omitted }
Fields
name: Name
visibility: RawVisibilityId
generic_params: Interned<GenericParams>
abi: Option<Interned<str>>
params: IdRange<Param>
ret_type: Interned<TypeRef>
async_ret_type: Option<Interned<TypeRef>>
ast_id: FileAstId<Fn>
Trait Implementations
Looks up an instance of Self
in an item tree.
Downcasts a ModItem
to a FileItemTreeId
specific to this type.
Upcasts a FileItemTreeId
to a generic ModItem
.
Auto Trait Implementations
impl RefUnwindSafe for Function
impl UnwindSafe for Function
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.