Struct ra_ap_hir_ty::Substitution[][src]

pub struct Substitution(_);

A list of substitutions for generic parameters.

Implementations

impl Substitution[src]

pub fn interned(&self) -> &[GenericArg][src]

pub fn len(&self, _: &Interner) -> usize[src]

pub fn is_empty(&self, _: &Interner) -> bool[src]

pub fn at(&self, _: &Interner, i: usize) -> &GenericArg[src]

pub fn empty(_: &Interner) -> Substitution[src]

pub fn iter(&self, _: &Interner) -> Iter<'_, GenericArg>[src]

pub fn from_iter(
    interner: &Interner,
    elements: impl IntoIterator<Item = impl CastTo<GenericArg>>
) -> Self
[src]

pub fn intern(interned: SmallVec<[GenericArg; 2]>) -> Substitution[src]

pub fn interned_mut(&mut self) -> &mut SmallVec<[GenericArg; 2]>[src]

impl Substitution[src]

pub fn single(ty: Ty) -> Substitution[src]

pub fn prefix(&self, n: usize) -> Substitution[src]

pub fn suffix(&self, n: usize) -> Substitution[src]

Trait Implementations

impl Clone for Substitution[src]

impl Debug for Substitution[src]

impl Eq for Substitution[src]

impl Hash for Substitution[src]

impl PartialEq<Substitution> for Substitution[src]

impl StructuralEq for Substitution[src]

impl StructuralPartialEq for Substitution[src]

impl TypeWalk for Substitution[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<T> CloneAny for T where
    T: Any + Clone

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> Instrument for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.