Enum chalk_ir::VariableKind [−][src]
The “kind” of variable. Type, lifetime or constant.
Variants
Ty(TyVariableKind)
Const(Ty<I>)
Trait Implementations
impl<I: Interner> CastTo<VariableKind<I>> for VariableKind<I>
[src]
fn cast_to(
self,
_interner: &<VariableKind<I> as HasInterner>::Interner
) -> VariableKind<I>
[src]
self,
_interner: &<VariableKind<I> as HasInterner>::Interner
) -> VariableKind<I>
impl<I: Clone + Interner> Clone for VariableKind<I>
[src]
fn clone(&self) -> VariableKind<I>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<I: Interner> Copy for VariableKind<I> where
I::InternedType: Copy,
[src]
I::InternedType: Copy,
impl<I: Interner> Debug for VariableKind<I>
[src]
impl<I: Eq + Interner> Eq for VariableKind<I>
[src]
impl<I: Interner> HasInterner for VariableKind<I>
[src]
type Interner = I
The interner associated with the type.
impl<I: Hash + Interner> Hash for VariableKind<I>
[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<I: PartialEq + Interner> PartialEq<VariableKind<I>> for VariableKind<I>
[src]
fn eq(&self, other: &VariableKind<I>) -> bool
[src]
fn ne(&self, other: &VariableKind<I>) -> bool
[src]
impl<I: Interner> StructuralEq for VariableKind<I>
[src]
impl<I: Interner> StructuralPartialEq for VariableKind<I>
[src]
impl<I: Interner> Zip<I> for VariableKind<I>
[src]
Auto Trait Implementations
impl<I> RefUnwindSafe for VariableKind<I> where
<I as Interner>::InternedType: RefUnwindSafe,
<I as Interner>::InternedType: RefUnwindSafe,
impl<I> Send for VariableKind<I> where
<I as Interner>::InternedType: Send,
<I as Interner>::InternedType: Send,
impl<I> Sync for VariableKind<I> where
<I as Interner>::InternedType: Sync,
<I as Interner>::InternedType: Sync,
impl<I> Unpin for VariableKind<I> where
<I as Interner>::InternedType: Unpin,
<I as Interner>::InternedType: Unpin,
impl<I> UnwindSafe for VariableKind<I> where
<I as Interner>::InternedType: UnwindSafe,
<I as Interner>::InternedType: 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,
pub 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, I> CouldMatch<T> for T where
T: Zip<I> + HasInterner<Interner = I> + ?Sized,
I: Interner,
[src]
T: Zip<I> + HasInterner<Interner = I> + ?Sized,
I: Interner,
pub fn could_match(&Self, &I, &dyn UnificationDatabase<I>, &T) -> bool
[src]
impl<T> From<T> for T
[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>,