Enum rustc_typeck::hir::Ty_ [] [src]

pub enum Ty_ {
    TySlice(P<Ty>),
    TyArray(P<Ty>, BodyId),
    TyPtr(MutTy),
    TyRptr(LifetimeMutTy),
    TyBareFn(P<BareFnTy>),
    TyNever,
    TyTup(P<[P<Ty>]>),
    TyPath(QPath),
    TyTraitObject(P<[PolyTraitRef]>, Lifetime),
    TyImplTrait(P<[TyParamBound]>),
    TyTypeof(BodyId),
    TyInfer,
}
🔬 This is a nightly-only experimental API. (rustc_private)

The different kinds of types recognized by the compiler

Variants

🔬 This is a nightly-only experimental API. (rustc_private)

A variable length slice ([T])

🔬 This is a nightly-only experimental API. (rustc_private)

A fixed length array ([T; n])

🔬 This is a nightly-only experimental API. (rustc_private)

A raw pointer (*const T or *mut T)

🔬 This is a nightly-only experimental API. (rustc_private)

A reference (&'a T or &'a mut T)

🔬 This is a nightly-only experimental API. (rustc_private)

A bare function (e.g. fn(usize) -> bool)

🔬 This is a nightly-only experimental API. (rustc_private)

The never type (!)

🔬 This is a nightly-only experimental API. (rustc_private)

A tuple ((A, B, C, D,...))

🔬 This is a nightly-only experimental API. (rustc_private)

A path to a type definition (module::module::...::Type), or an associated type, e.g. <Vec<T> as Trait>::Type or <T>::Target.

Type parameters may be stored in each PathSegment.

🔬 This is a nightly-only experimental API. (rustc_private)

A trait object type Bound1 + Bound2 + Bound3 where Bound is a trait or a lifetime.

🔬 This is a nightly-only experimental API. (rustc_private)

An impl Bound1 + Bound2 + Bound3 type where Bound is a trait or a lifetime.

🔬 This is a nightly-only experimental API. (rustc_private)

Unused for now

🔬 This is a nightly-only experimental API. (rustc_private)

TyInfer means the type should be inferred instead of it having been specified. This can appear anywhere in a type.

Trait Implementations

impl Decodable for Ty_
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

impl PartialEq<Ty_> for Ty_
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Ty_
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Clone for Ty_
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Ty_
[src]

impl Debug for Ty_
[src]

Formats the value using the given formatter.

impl Encodable for Ty_
[src]

🔬 This is a nightly-only experimental API. (rustc_private)