#[repr(u8)]pub enum SimplifiedSelfKind {
Show 20 variants
Adt = 0,
Bool = 1,
Char = 2,
Int = 3,
Uint = 4,
Float = 5,
Str = 6,
Slice = 7,
Array = 8,
Tuple = 9,
RefShared = 10,
RefMut = 11,
PtrConst = 12,
PtrMut = 13,
FnPtr = 14,
Dynamic = 15,
Never = 16,
Param = 17,
Unit = 18,
Other = 19,
}Expand description
Coarse head-constructor discriminator for ImplEntry.self_ty (1 byte).
Crucially preserves exact type constructors without peel_refs:
&T (RefShared), &mut T (RefMut), blanket T (Param), tuples, and fn pointers
each occupy their own distinct bucket so IndexReader can binary-search impls in O(log N).
Variants§
Adt = 0
Bool = 1
Char = 2
Int = 3
Uint = 4
Float = 5
Str = 6
Slice = 7
Array = 8
Tuple = 9
RefMut = 11
PtrConst = 12
PtrMut = 13
FnPtr = 14
Dynamic = 15
Never = 16
Param = 17
Unit = 18
Other = 19
Implementations§
Trait Implementations§
Source§impl Clone for SimplifiedSelfKind
impl Clone for SimplifiedSelfKind
impl Copy for SimplifiedSelfKind
Source§impl Debug for SimplifiedSelfKind
impl Debug for SimplifiedSelfKind
impl Eq for SimplifiedSelfKind
Source§impl Hash for SimplifiedSelfKind
impl Hash for SimplifiedSelfKind
Source§impl Ord for SimplifiedSelfKind
impl Ord for SimplifiedSelfKind
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 SimplifiedSelfKind
impl PartialEq for SimplifiedSelfKind
Source§impl PartialOrd for SimplifiedSelfKind
impl PartialOrd for SimplifiedSelfKind
impl StructuralPartialEq for SimplifiedSelfKind
Auto Trait Implementations§
impl Forget for SimplifiedSelfKind
impl Freeze for SimplifiedSelfKind
impl Move for SimplifiedSelfKind
impl RefUnwindSafe for SimplifiedSelfKind
impl Send for SimplifiedSelfKind
impl Sync for SimplifiedSelfKind
impl Unpin for SimplifiedSelfKind
impl UnsafeUnpin for SimplifiedSelfKind
impl UnwindSafe for SimplifiedSelfKind
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