[−][src]Struct ra_ap_hir_ty::method_resolution::TraitImpls
Trait impls defined or available in some crate.
Implementations
impl TraitImpls
[src]
pub fn for_trait(&self, trait_: TraitId) -> impl Iterator<Item = ImplId> + '_
[src]
Queries all impls of the given trait.
pub fn for_trait_and_self_ty(
&self,
trait_: TraitId,
self_ty: TyFingerprint
) -> impl Iterator<Item = ImplId> + '_
[src]
&self,
trait_: TraitId,
self_ty: TyFingerprint
) -> impl Iterator<Item = ImplId> + '_
Queries all impls of trait_
that may apply to self_ty
.
pub fn all_impls(&self) -> impl Iterator<Item = ImplId> + '_
[src]
Trait Implementations
impl Debug for TraitImpls
[src]
impl Eq for TraitImpls
[src]
impl PartialEq<TraitImpls> for TraitImpls
[src]
fn eq(&self, other: &TraitImpls) -> bool
[src]
fn ne(&self, other: &TraitImpls) -> bool
[src]
impl StructuralEq for TraitImpls
[src]
impl StructuralPartialEq for TraitImpls
[src]
Auto Trait Implementations
impl RefUnwindSafe for TraitImpls
impl Send for TraitImpls
impl Sync for TraitImpls
impl Unpin for TraitImpls
impl UnwindSafe for TraitImpls
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Cast for T
[src]
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
[src]
Self: CastTo<U>,
U: HasInterner,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,