pub enum ImplTargetKey {
Unknown,
Adt(GlobalDefId),
Prim(PrimTy),
Slice,
Array,
Tuple(u16),
Ref {
is_mut: bool,
},
Ptr {
is_mut: bool,
},
FnPtr {
arity: u16,
},
Dyn(GlobalDefId),
Never,
Param,
}Expand description
Canonical simplified self-type head of an impl block (matches .ridx v5 SimplifiedType buckets).
Variants§
Unknown
Adt(GlobalDefId)
struct, enum, or union identified by compiler or LOCAL_OVERLAY GlobalDefId.
Prim(PrimTy)
Builtin primitive (u32, str, bool, …).
Slice
[T] slice type.
Array
[T; N] fixed-size array type.
Tuple(u16)
(T0, T1, ...) tuple of the given arity (0 for unit ()).
Ref
&T (is_mut = false) or &mut T (is_mut = true).
Ptr
*const T (is_mut = false) or *mut T (is_mut = true).
FnPtr
fn(A, B) -> R function pointer of the given parameter count.
Dyn(GlobalDefId)
dyn Trait + ... trait object keyed by principal trait GlobalDefId.
Never
! never type.
Param
Blanket generic parameter self type (impl<T> Trait for T).
Trait Implementations§
Source§impl Clone for ImplTargetKey
impl Clone for ImplTargetKey
impl Copy for ImplTargetKey
Source§impl Debug for ImplTargetKey
impl Debug for ImplTargetKey
Source§impl Default for ImplTargetKey
impl Default for ImplTargetKey
impl Eq for ImplTargetKey
Source§impl Hash for ImplTargetKey
impl Hash for ImplTargetKey
Source§impl Ord for ImplTargetKey
impl Ord for ImplTargetKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ImplTargetKey
impl PartialEq for ImplTargetKey
Source§impl PartialOrd for ImplTargetKey
impl PartialOrd for ImplTargetKey
impl StructuralPartialEq for ImplTargetKey
Auto Trait Implementations§
impl Forget for ImplTargetKey
impl Freeze for ImplTargetKey
impl Move for ImplTargetKey
impl RefUnwindSafe for ImplTargetKey
impl Send for ImplTargetKey
impl Sync for ImplTargetKey
impl Unpin for ImplTargetKey
impl UnsafeUnpin for ImplTargetKey
impl UnwindSafe for ImplTargetKey
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