pub struct AssociatedTyValueId<I: Interner>(pub I::DefId);
Expand description
Identifier for an “associated type value” found in some impl.
Tuple Fields§
§0: I::DefId
Trait Implementations§
Source§impl<I: Clone + Interner> Clone for AssociatedTyValueId<I>
impl<I: Clone + Interner> Clone for AssociatedTyValueId<I>
Source§fn clone(&self) -> AssociatedTyValueId<I>
fn clone(&self) -> AssociatedTyValueId<I>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<I: Interner, TI: TargetInterner<I>> Fold<I, TI> for AssociatedTyValueId<I>
impl<I: Interner, TI: TargetInterner<I>> Fold<I, TI> for AssociatedTyValueId<I>
Source§type Result = AssociatedTyValueId<TI>
type Result = AssociatedTyValueId<TI>
The type of value that will be produced once folding is done.
Typically this is
Self
, unless Self
contains borrowed
values, in which case owned values are produced (for example,
one can fold over a &T
value where T: Fold
, in which case
you get back a T
, not a &T
).Source§fn fold_with<'i>(
&self,
_folder: &mut dyn Folder<'i, I, TI>,
_outer_binder: DebruijnIndex,
) -> Fallible<Self::Result>where
I: 'i,
TI: 'i,
fn fold_with<'i>(
&self,
_folder: &mut dyn Folder<'i, I, TI>,
_outer_binder: DebruijnIndex,
) -> Fallible<Self::Result>where
I: 'i,
TI: 'i,
Apply the given folder
folder
to self
; binders
is the
number of binders that are in scope when beginning the
folder. Typically binders
starts as 0, but is adjusted when
we encounter Binders<T>
in the IR or other similar
constructs.Source§impl<I: Ord + Interner> Ord for AssociatedTyValueId<I>
impl<I: Ord + Interner> Ord for AssociatedTyValueId<I>
Source§fn cmp(&self, other: &AssociatedTyValueId<I>) -> Ordering
fn cmp(&self, other: &AssociatedTyValueId<I>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<I: PartialOrd + Interner> PartialOrd for AssociatedTyValueId<I>where
I::DefId: PartialOrd,
impl<I: PartialOrd + Interner> PartialOrd for AssociatedTyValueId<I>where
I::DefId: PartialOrd,
impl<I: Copy + Interner> Copy for AssociatedTyValueId<I>
impl<I: Eq + Interner> Eq for AssociatedTyValueId<I>
impl<I: Interner> StructuralPartialEq for AssociatedTyValueId<I>
Auto Trait Implementations§
impl<I> Freeze for AssociatedTyValueId<I>
impl<I> RefUnwindSafe for AssociatedTyValueId<I>
impl<I> Send for AssociatedTyValueId<I>
impl<I> Sync for AssociatedTyValueId<I>
impl<I> Unpin for AssociatedTyValueId<I>
impl<I> UnwindSafe for AssociatedTyValueId<I>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Cast for T
impl<T> Cast for T
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, I> Shift<I> for T
impl<T, I> Shift<I> for T
Source§fn shifted_in(&self, interner: &I) -> <T as Fold<I>>::Result
fn shifted_in(&self, interner: &I) -> <T as Fold<I>>::Result
Shifts this term in one level of binders.
Source§fn shifted_in_from(
&self,
interner: &I,
source_binder: DebruijnIndex,
) -> <T as Fold<I>>::Result
fn shifted_in_from( &self, interner: &I, source_binder: DebruijnIndex, ) -> <T as Fold<I>>::Result
Shifts a term valid at
outer_binder
so that it is
valid at the innermost binder. See DebruijnIndex::shifted_in_from
for a detailed explanation.Source§fn shifted_out_to(
&self,
interner: &I,
target_binder: DebruijnIndex,
) -> Result<<T as Fold<I>>::Result, NoSolution>
fn shifted_out_to( &self, interner: &I, target_binder: DebruijnIndex, ) -> Result<<T as Fold<I>>::Result, NoSolution>
Shifts a term valid at the innermost binder so that it is
valid at
outer_binder
. See DebruijnIndex::shifted_out_to
for a detailed explanation.Source§fn shifted_out(
&self,
interner: &I,
) -> Result<<T as Fold<I>>::Result, NoSolution>
fn shifted_out( &self, interner: &I, ) -> Result<<T as Fold<I>>::Result, NoSolution>
Shifts this term out one level of binders.