Enum rustc::infer::canonical::CanonicalTyVarKind [−][src]
pub enum CanonicalTyVarKind {
General,
Int,
Float,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Rust actually has more than one category of type variables; notably, the type variables we create for literals (e.g., 22 or 22.) can only be instantiated with integral/float types (e.g., usize or f32). In order to faithfully reproduce a type, we need to know what set of types a given type variable can be unified with.
Variants
General🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
General type variable ?T that can be unified with arbitrary types.
Int🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Integral type variable ?I (that can only be unified with integral types).
Float🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Floating-point type variable ?F (that can only be unified with float types).
Trait Implementations
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for CanonicalTyVarKind[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for CanonicalTyVarKindfn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)[src]
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Copy for CanonicalTyVarKind[src]
impl Copy for CanonicalTyVarKindimpl Clone for CanonicalTyVarKind[src]
impl Clone for CanonicalTyVarKindfn clone(&self) -> CanonicalTyVarKind[src]
fn clone(&self) -> CanonicalTyVarKindReturns 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)Performs copy-assignment from source. Read more
impl Debug for CanonicalTyVarKind[src]
impl Debug for CanonicalTyVarKindfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for CanonicalTyVarKind[src]
impl PartialEq for CanonicalTyVarKindfn eq(&self, other: &CanonicalTyVarKind) -> bool[src]
fn eq(&self, other: &CanonicalTyVarKind) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for CanonicalTyVarKind[src]
impl Eq for CanonicalTyVarKindfn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl Hash for CanonicalTyVarKind[src]
impl Hash for CanonicalTyVarKindfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Decodable for CanonicalTyVarKind[src]
impl Decodable for CanonicalTyVarKindfn decode<__D: Decoder>(d: &mut __D) -> Result<CanonicalTyVarKind, __D::Error>[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<CanonicalTyVarKind, __D::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Encodable for CanonicalTyVarKind[src]
impl Encodable for CanonicalTyVarKindAuto Trait Implementations
impl Send for CanonicalTyVarKind
impl Send for CanonicalTyVarKindimpl Sync for CanonicalTyVarKind
impl Sync for CanonicalTyVarKind