[−][src]Enum chalk_ir::ParameterKind
Variants
Methods
impl<I: Interner> ParameterKind<Ty<I>, Lifetime<I>>
[src]
pub fn inner_debug(&self) -> ParameterDataInnerDebug<I>
[src]
impl<T> ParameterKind<T>
[src]
pub fn into_inner(self) -> T
[src]
pub fn map<OP, U>(self, op: OP) -> ParameterKind<U> where
OP: FnOnce(T) -> U,
[src]
OP: FnOnce(T) -> U,
pub fn map_ref<OP, U>(&self, op: OP) -> ParameterKind<U> where
OP: FnOnce(&T) -> U,
[src]
OP: FnOnce(&T) -> U,
impl<T, L> ParameterKind<T, L>
[src]
pub fn assert_ty_ref(&self) -> &T
[src]
pub fn assert_lifetime_ref(&self) -> &L
[src]
pub fn as_ref(&self) -> ParameterKind<&T, &L>
[src]
pub fn is_ty(&self) -> bool
[src]
pub fn ty(self) -> Option<T>
[src]
pub fn lifetime(self) -> Option<L>
[src]
impl<I: Interner> ParameterKind<Ty<I>, Lifetime<I>>
[src]
Trait Implementations
impl<T: Clone, L: Clone> Clone for ParameterKind<T, L>
[src]
fn clone(&self) -> ParameterKind<T, L>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Copy, L: Copy> Copy for ParameterKind<T, L>
[src]
impl<T: Debug, L: Debug> Debug for ParameterKind<T, L>
[src]
impl<T: Eq, L: Eq> Eq for ParameterKind<T, L>
[src]
impl<I: Interner, TI: TargetInterner<I>, T, L> Fold<I, TI> for ParameterKind<T, L> where
T: Fold<I, TI>,
L: Fold<I, TI>,
[src]
T: Fold<I, TI>,
L: Fold<I, TI>,
type Result = ParameterKind<T::Result, L::Result>
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
). Read more
fn fold_with<'i>(
&self,
folder: &mut dyn Folder<'i, I, TI>,
outer_binder: DebruijnIndex
) -> Fallible<Self::Result> where
I: 'i,
TI: 'i,
[src]
&self,
folder: &mut dyn Folder<'i, I, TI>,
outer_binder: DebruijnIndex
) -> Fallible<Self::Result> where
I: 'i,
TI: 'i,
impl<T: Hash, L: Hash> Hash for ParameterKind<T, L>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: Ord, L: Ord> Ord for ParameterKind<T, L>
[src]
fn cmp(&self, other: &ParameterKind<T, L>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T: PartialEq, L: PartialEq> PartialEq<ParameterKind<T, L>> for ParameterKind<T, L>
[src]
fn eq(&self, other: &ParameterKind<T, L>) -> bool
[src]
fn ne(&self, other: &ParameterKind<T, L>) -> bool
[src]
impl<T: PartialOrd, L: PartialOrd> PartialOrd<ParameterKind<T, L>> for ParameterKind<T, L>
[src]
fn partial_cmp(&self, other: &ParameterKind<T, L>) -> Option<Ordering>
[src]
fn lt(&self, other: &ParameterKind<T, L>) -> bool
[src]
fn le(&self, other: &ParameterKind<T, L>) -> bool
[src]
fn gt(&self, other: &ParameterKind<T, L>) -> bool
[src]
fn ge(&self, other: &ParameterKind<T, L>) -> bool
[src]
impl<T, L> StructuralEq for ParameterKind<T, L>
[src]
impl<T, L> StructuralPartialEq for ParameterKind<T, L>
[src]
impl<I: Interner, T, L> Visit<I> for ParameterKind<T, L> where
T: Visit<I>,
L: Visit<I>,
[src]
T: Visit<I>,
L: Visit<I>,
fn visit_with<'i, R: VisitResult>(
&self,
visitor: &mut dyn Visitor<'i, I, Result = R>,
outer_binder: DebruijnIndex
) -> R where
I: 'i,
[src]
&self,
visitor: &mut dyn Visitor<'i, I, Result = R>,
outer_binder: DebruijnIndex
) -> R where
I: 'i,
impl<T: Zip<I>, L: Zip<I>, I: Interner> Zip<I> for ParameterKind<T, L>
[src]
Auto Trait Implementations
impl<T, L> RefUnwindSafe for ParameterKind<T, L> where
L: RefUnwindSafe,
T: RefUnwindSafe,
L: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, L> Send for ParameterKind<T, L> where
L: Send,
T: Send,
L: Send,
T: Send,
impl<T, L> Sync for ParameterKind<T, L> where
L: Sync,
T: Sync,
L: Sync,
T: Sync,
impl<T, L> Unpin for ParameterKind<T, L> where
L: Unpin,
T: Unpin,
L: Unpin,
T: Unpin,
impl<T, L> UnwindSafe for ParameterKind<T, L> where
L: UnwindSafe,
T: UnwindSafe,
L: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Cast for T
[src]
fn cast<U>(self, interner: &U::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
[src]
Self: CastTo<U>,
U: HasInterner,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, I> Shift<I> for T where
I: Interner,
T: Fold<I, I>,
[src]
I: Interner,
T: Fold<I, I>,
fn shifted_in(&Self, &I) -> <T as Fold<I, I>>::Result
[src]
fn shifted_in_from(&Self, &I, DebruijnIndex) -> <T as Fold<I, I>>::Result
[src]
fn shifted_out_to(
&Self,
&I,
DebruijnIndex
) -> Result<<T as Fold<I, I>>::Result, NoSolution>
[src]
&Self,
&I,
DebruijnIndex
) -> Result<<T as Fold<I, I>>::Result, NoSolution>
fn shifted_out(&Self, &I) -> Result<<T as Fold<I, I>>::Result, NoSolution>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, I> VisitExt<I> for T where
I: Interner,
T: Visit<I>,
[src]
I: Interner,
T: Visit<I>,