Struct ra_ap_hir_ty::Substitution [−][src]
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]
interner: &Interner,
elements: impl IntoIterator<Item = impl CastTo<GenericArg>>
) -> Self
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]
fn clone(&self) -> Substitution
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Substitution
[src]
impl Eq for Substitution
[src]
impl Hash for Substitution
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Substitution> for Substitution
[src]
fn eq(&self, other: &Substitution) -> bool
[src]
fn ne(&self, other: &Substitution) -> bool
[src]
impl StructuralEq for Substitution
[src]
impl StructuralPartialEq for Substitution
[src]
impl TypeWalk for Substitution
[src]
fn walk(&self, f: &mut impl FnMut(&Ty))
[src]
fn walk_mut_binders(
&mut self,
f: &mut impl FnMut(&mut Ty, DebruijnIndex),
binders: DebruijnIndex
)
[src]
&mut self,
f: &mut impl FnMut(&mut Ty, DebruijnIndex),
binders: DebruijnIndex
)
fn walk_mut(&mut self, f: &mut impl FnMut(&mut Ty))
[src]
fn fold_binders(
self,
f: &mut impl FnMut(Ty, DebruijnIndex) -> Ty,
binders: DebruijnIndex
) -> Self where
Self: Sized,
[src]
self,
f: &mut impl FnMut(Ty, DebruijnIndex) -> Ty,
binders: DebruijnIndex
) -> Self where
Self: Sized,
fn fold(self, f: &mut impl FnMut(Ty) -> Ty) -> Self where
Self: Sized,
[src]
Self: Sized,
fn subst_bound_vars(self, substs: &Substitution) -> Self where
Self: Sized,
[src]
Self: Sized,
fn subst_bound_vars_at_depth(
self,
substs: &Substitution,
depth: DebruijnIndex
) -> Self where
Self: Sized,
[src]
self,
substs: &Substitution,
depth: DebruijnIndex
) -> Self where
Self: Sized,
fn shift_bound_vars(self, n: DebruijnIndex) -> Self where
Self: Sized,
[src]
Self: Sized,
fn shift_bound_vars_out(self, n: DebruijnIndex) -> Self where
Self: Sized + Debug,
[src]
Self: Sized + Debug,
Auto Trait Implementations
impl RefUnwindSafe for Substitution
impl Send for Substitution
impl Sync for Substitution
impl Unpin for Substitution
impl UnwindSafe for Substitution
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Cast for T
[src]
pub fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
[src]
Self: CastTo<U>,
U: HasInterner,
impl<T> CloneAny for T where
T: Any + Clone,
T: Any + Clone,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,