pub enum GenericArgumentHead {
Type(TypeHead),
Impl(ImplHead),
Const,
}
Expand description
Head of a generic argument. A non-param non-variable generic argument has a head, which represents the kind of the root node in its tree. This is used for caching queries for fast lookups when the generic argument is not completely inferred yet.
Variants§
Trait Implementations§
source§impl Clone for GenericArgumentHead
impl Clone for GenericArgumentHead
source§fn clone(&self) -> GenericArgumentHead
fn clone(&self) -> GenericArgumentHead
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 GenericArgumentHead
impl Debug for GenericArgumentHead
source§impl Hash for GenericArgumentHead
impl Hash for GenericArgumentHead
source§impl PartialEq for GenericArgumentHead
impl PartialEq for GenericArgumentHead
source§fn eq(&self, other: &GenericArgumentHead) -> bool
fn eq(&self, other: &GenericArgumentHead) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for GenericArgumentHead
impl StructuralEq for GenericArgumentHead
impl StructuralPartialEq for GenericArgumentHead
Auto Trait Implementations§
impl RefUnwindSafe for GenericArgumentHead
impl Send for GenericArgumentHead
impl Sync for GenericArgumentHead
impl Unpin for GenericArgumentHead
impl UnwindSafe for GenericArgumentHead
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.