pub enum CppComparableSlot {
Shape(CppComparableParameter),
Ellipsis,
Unstructured,
}Expand description
One callable parameter’s comparable shape.
CppParameterType above answers “which type is written here” for a
structured model and deliberately records no cv-qualifiers, so it reports
the same value for f(char *) and f(const char *). Deciding whether two
callable declarations declare one function needs the opposite trade: every
cv-qualifier that C++ counts as part of the parameter type must survive,
while the two declarations may spell the same type through different
qualifications. This slot carries that comparand.
The result is index-parallel with cpp_callable_parameter_type_identities
and with the rendered parameter spellings of the same callable.
Variants§
Shape(CppComparableParameter)
A declared parameter reduced to its comparable shape.
Ellipsis
A ... pack, which declares no parameter type at all.
Unstructured
A parameter with no comparable reduction, such as a macro-obscured,
decltype-computed, or function-pointer parameter.
Trait Implementations§
Source§impl Clone for CppComparableSlot
impl Clone for CppComparableSlot
Source§fn clone(&self) -> CppComparableSlot
fn clone(&self) -> CppComparableSlot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CppComparableSlot
impl Debug for CppComparableSlot
impl Eq for CppComparableSlot
Source§impl PartialEq for CppComparableSlot
impl PartialEq for CppComparableSlot
impl StructuralPartialEq for CppComparableSlot
Auto Trait Implementations§
impl Freeze for CppComparableSlot
impl RefUnwindSafe for CppComparableSlot
impl Send for CppComparableSlot
impl Sync for CppComparableSlot
impl Unpin for CppComparableSlot
impl UnsafeUnpin for CppComparableSlot
impl UnwindSafe for CppComparableSlot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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