Enum chalk_ir::VariableKind [−][src]
pub enum VariableKind<I: Interner> { Ty(TyVariableKind), Lifetime, Const(Ty<I>), }
Expand description
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]
impl<I: Interner> CastTo<VariableKind<I>> for VariableKind<I>
[src]fn cast_to(
self,
_interner: &<VariableKind<I> as HasInterner>::Interner
) -> VariableKind<I>
[src]
fn cast_to(
self,
_interner: &<VariableKind<I> as HasInterner>::Interner
) -> VariableKind<I>
[src]Cast a value to type T
.
impl<I: Clone + Interner> Clone for VariableKind<I>
[src]
impl<I: Clone + Interner> Clone for VariableKind<I>
[src]fn clone(&self) -> VariableKind<I>
[src]
fn clone(&self) -> VariableKind<I>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<I: Interner> Debug for VariableKind<I>
[src]
impl<I: Interner> Debug for VariableKind<I>
[src]impl<I: Interner> HasInterner for VariableKind<I>
[src]
impl<I: Interner> HasInterner for VariableKind<I>
[src]type Interner = I
type Interner = I
The interner associated with the type.
impl<I: Hash + Interner> Hash for VariableKind<I>
[src]
impl<I: Hash + Interner> Hash for VariableKind<I>
[src]impl<I: PartialEq + Interner> PartialEq<VariableKind<I>> for VariableKind<I>
[src]
impl<I: PartialEq + Interner> PartialEq<VariableKind<I>> for VariableKind<I>
[src]fn eq(&self, other: &VariableKind<I>) -> bool
[src]
fn eq(&self, other: &VariableKind<I>) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &VariableKind<I>) -> bool
[src]
fn ne(&self, other: &VariableKind<I>) -> bool
[src]This method tests for !=
.
impl<I: Interner> Zip<I> for VariableKind<I>
[src]
impl<I: Interner> Zip<I> for VariableKind<I>
[src]impl<I: Interner> Copy for VariableKind<I> where
I::InternedType: Copy,
[src]
I::InternedType: Copy,
impl<I: Eq + Interner> Eq for VariableKind<I>
[src]
impl<I: Interner> StructuralEq for VariableKind<I>
[src]
impl<I: Interner> StructuralPartialEq 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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Cast for T
[src]
impl<T> Cast for T
[src]fn cast<U>(self, interner: &U::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
[src]
fn cast<U>(self, interner: &U::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
[src]Cast a value to type U
using CastTo
.
impl<T, I> CouldMatch<T> for T where
T: Zip<I> + HasInterner<Interner = I> + ?Sized,
I: Interner,
[src]
impl<T, I> CouldMatch<T> for T where
T: Zip<I> + HasInterner<Interner = I> + ?Sized,
I: Interner,
[src]pub fn could_match(&Self, &I, &dyn UnificationDatabase<I>, &T) -> bool
[src]
pub fn could_match(&Self, &I, &dyn UnificationDatabase<I>, &T) -> bool
[src]Checks whether self
and other
could possibly match.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more