Struct ra_ap_hir_ty::method_resolution::InherentImpls
source · pub struct InherentImpls { /* private fields */ }
Expand description
Inherent impls defined in some crate.
Inherent impls can only be defined in the crate that also defines the self type of the impl (note that some primitives are considered to be defined by both libcore and liballoc).
This makes inherent impl lookup easier than trait impl lookup since we only have to consider a single crate.
Implementations§
Trait Implementations§
source§impl Debug for InherentImpls
impl Debug for InherentImpls
source§impl PartialEq<InherentImpls> for InherentImpls
impl PartialEq<InherentImpls> for InherentImpls
source§fn eq(&self, other: &InherentImpls) -> bool
fn eq(&self, other: &InherentImpls) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for InherentImpls
impl StructuralEq for InherentImpls
impl StructuralPartialEq for InherentImpls
Auto Trait Implementations§
impl RefUnwindSafe for InherentImpls
impl Send for InherentImpls
impl Sync for InherentImpls
impl Unpin for InherentImpls
impl UnwindSafe for InherentImpls
Blanket Implementations§
source§impl<T> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.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.