[][src]Struct ra_ap_hir_ty::method_resolution::InherentImpls

pub struct InherentImpls { /* fields omitted */ }

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

impl InherentImpls[src]

pub fn for_self_ty(&self, self_ty: &Ty) -> &[ImplId][src]

pub fn all_impls(&self) -> impl Iterator<Item = ImplId> + '_[src]

Trait Implementations

impl Debug for InherentImpls[src]

impl Eq for InherentImpls[src]

impl PartialEq<InherentImpls> for InherentImpls[src]

impl StructuralEq for InherentImpls[src]

impl StructuralPartialEq for InherentImpls[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Cast for T[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.