pub enum AliasConstKind {
Projection {
def_id: DefId,
},
Inherent {
def_id: DefId,
},
Free {
def_id: DefId,
},
Anon {
def_id: DefId,
},
}Expand description
Mirrors [rustc_middle::ty::AliasConstKind].
Variants§
Projection
Fields
§
def_id: DefIdInherent
Fields
§
def_id: DefIdFree
Fields
§
def_id: DefIdAnon
Fields
§
def_id: DefIdImplementations§
Source§impl AliasConstKind
impl AliasConstKind
pub fn to_rustc_kind<'tcx>(self) -> AliasConstKind<'tcx>
Trait Implementations§
Source§impl Clone for AliasConstKind
impl Clone for AliasConstKind
Source§fn clone(&self) -> AliasConstKind
fn clone(&self) -> AliasConstKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AliasConstKind
Source§impl Debug for AliasConstKind
impl Debug for AliasConstKind
Source§impl<'tcx, __D: TyDecoder<'tcx>> Decodable<__D> for AliasConstKind
impl<'tcx, __D: TyDecoder<'tcx>> Decodable<__D> for AliasConstKind
Source§impl<'tcx, __E: TyEncoder<'tcx>> Encodable<__E> for AliasConstKind
impl<'tcx, __E: TyEncoder<'tcx>> Encodable<__E> for AliasConstKind
impl Eq for AliasConstKind
Source§impl Hash for AliasConstKind
impl Hash for AliasConstKind
Source§impl PartialEq for AliasConstKind
impl PartialEq for AliasConstKind
impl StructuralPartialEq for AliasConstKind
Auto Trait Implementations§
impl DynSend for AliasConstKind
impl DynSync for AliasConstKind
impl Freeze for AliasConstKind
impl RefUnwindSafe for AliasConstKind
impl Send for AliasConstKind
impl Sync for AliasConstKind
impl Unpin for AliasConstKind
impl UnsafeUnpin for AliasConstKind
impl UnwindSafe for AliasConstKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more