Struct ra_ap_hir_def::item_tree::TypeAlias [−][src]
pub struct TypeAlias { pub name: Name, pub visibility: RawVisibilityId, pub bounds: Box<[Interned<TypeBound>]>, pub generic_params: Interned<GenericParams>, pub type_ref: Option<Interned<TypeRef>>, pub is_extern: bool, pub ast_id: FileAstId<TypeAlias>, }
Fields
name: Name
visibility: RawVisibilityId
bounds: Box<[Interned<TypeBound>]>
Bounds on the type alias itself. Only valid in trait declarations, eg. type Assoc: Copy;
.
generic_params: Interned<GenericParams>
type_ref: Option<Interned<TypeRef>>
is_extern: bool
ast_id: FileAstId<TypeAlias>
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 TypeAlias
impl UnwindSafe for TypeAlias
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.