[][src]Enum chalk_ir::TyKind

pub enum TyKind {
    General,
    Integer,
    Float,
}

Represents some extra knowledge we may have about the type variable.

This example is not tested
let x: &[u32];
let i = 1;
x[i]

In this example, i is known to be some type of integer. We can infer that it is usize because that is the only integer type that slices have an Index impl for. i would have a TyKind of Integer to guide the inference process.

Variants

General
Integer
Float

Trait Implementations

impl Clone for TyKind[src]

impl Copy for TyKind[src]

impl Debug for TyKind[src]

impl Eq for TyKind[src]

impl Hash for TyKind[src]

impl PartialEq<TyKind> for TyKind[src]

impl StructuralEq for TyKind[src]

impl StructuralPartialEq for TyKind[src]

Auto Trait Implementations

impl RefUnwindSafe for TyKind

impl Send for TyKind

impl Sync for TyKind

impl Unpin for TyKind

impl UnwindSafe for TyKind

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Cast for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.