Struct hir_def::data::TypeAliasData
source · pub struct TypeAliasData {
pub name: Name,
pub type_ref: Option<Interned<TypeRef>>,
pub visibility: RawVisibility,
pub is_extern: bool,
pub rustc_has_incoherent_inherent_impls: bool,
pub rustc_allow_incoherent_impl: bool,
pub bounds: Box<[Interned<TypeBound>]>,
}
Fields§
§name: Name
§type_ref: Option<Interned<TypeRef>>
§visibility: RawVisibility
§is_extern: bool
§rustc_has_incoherent_inherent_impls: bool
§rustc_allow_incoherent_impl: bool
§bounds: Box<[Interned<TypeBound>]>
Bounds restricting the type alias itself (eg. type Ty: Bound;
in a trait or impl).
Trait Implementations§
source§impl Clone for TypeAliasData
impl Clone for TypeAliasData
source§fn clone(&self) -> TypeAliasData
fn clone(&self) -> TypeAliasData
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 TypeAliasData
impl Debug for TypeAliasData
source§impl PartialEq for TypeAliasData
impl PartialEq for TypeAliasData
source§fn eq(&self, other: &TypeAliasData) -> bool
fn eq(&self, other: &TypeAliasData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TypeAliasData
impl StructuralPartialEq for TypeAliasData
Auto Trait Implementations§
impl Freeze for TypeAliasData
impl RefUnwindSafe for TypeAliasData
impl Send for TypeAliasData
impl Sync for TypeAliasData
impl Unpin for TypeAliasData
impl UnwindSafe for TypeAliasData
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.