Struct ra_ap_hir_ty::TraitRef [−][src]
A trait with type parameters. This includes the Self
, so this represents a concrete type implementing the trait.
Fields
trait_id: ChalkTraitId
substitution: Substitution
Implementations
impl TraitRef
[src]
pub fn self_type_parameter(&self) -> &Ty
[src]
pub fn hir_trait_id(&self) -> TraitId
[src]
Trait Implementations
impl CastTo<DomainGoal> for TraitRef
[src]
fn cast_to(self, interner: &Interner) -> DomainGoal
[src]
impl CastTo<WhereClause> for TraitRef
[src]
fn cast_to(self, _interner: &Interner) -> WhereClause
[src]
impl Clone for TraitRef
[src]
impl Debug for TraitRef
[src]
impl Eq for TraitRef
[src]
impl Hash for TraitRef
[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 HirDisplay for TraitRef
[src]
fn hir_fmt(&self, f: &mut HirFormatter<'_>) -> Result<(), HirDisplayError>
[src]
fn into_displayable<'a>(
&'a self,
db: &'a dyn HirDatabase,
max_size: Option<usize>,
omit_verbose_types: bool,
display_target: DisplayTarget
) -> HirDisplayWrapper<'a, Self> where
Self: Sized,
[src]
&'a self,
db: &'a dyn HirDatabase,
max_size: Option<usize>,
omit_verbose_types: bool,
display_target: DisplayTarget
) -> HirDisplayWrapper<'a, Self> where
Self: Sized,
fn display<'a>(&'a self, db: &'a dyn HirDatabase) -> HirDisplayWrapper<'a, Self> where
Self: Sized,
[src]
Self: Sized,
fn display_truncated<'a>(
&'a self,
db: &'a dyn HirDatabase,
max_size: Option<usize>
) -> HirDisplayWrapper<'a, Self> where
Self: Sized,
[src]
&'a self,
db: &'a dyn HirDatabase,
max_size: Option<usize>
) -> HirDisplayWrapper<'a, Self> where
Self: Sized,
fn display_source_code<'a>(
&'a self,
db: &'a dyn HirDatabase,
module_id: ModuleId
) -> Result<String, DisplaySourceCodeError>
[src]
&'a self,
db: &'a dyn HirDatabase,
module_id: ModuleId
) -> Result<String, DisplaySourceCodeError>
fn display_test<'a>(
&'a self,
db: &'a dyn HirDatabase
) -> HirDisplayWrapper<'a, Self> where
Self: Sized,
[src]
&'a self,
db: &'a dyn HirDatabase
) -> HirDisplayWrapper<'a, Self> where
Self: Sized,
impl PartialEq<TraitRef> for TraitRef
[src]
impl StructuralEq for TraitRef
[src]
impl StructuralPartialEq for TraitRef
[src]
impl TypeWalk for TraitRef
[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 TraitRef
impl Send for TraitRef
impl Sync for TraitRef
impl Unpin for TraitRef
impl UnwindSafe for TraitRef
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>,