[−][src]Enum cranelift_codegen_meta::cdsl::type_inference::Constraint
Variants
Constraint specifying that a type var tv1 must be wider than or equal to type var tv2 at runtime. This requires that:
- They have the same number of lanes
- In a lane tv1 has at least as many bits as tv2.
Constraint specifying that two derived type vars must have the same runtime type.
Constraint specifying that a type var must belong to some typeset.
Methods
impl Constraint
[src]
fn translate_with<F: Fn(&TypeVar) -> TypeVar>(&self, func: F) -> Constraint
[src]
fn translate_with_map(
&self,
original_to_own_typevar: &HashMap<&TypeVar, TypeVar>
) -> Constraint
[src]
&self,
original_to_own_typevar: &HashMap<&TypeVar, TypeVar>
) -> Constraint
Creates a new constraint by replacing type vars by their hashmap equivalent.
fn translate_with_env(&self, type_env: &TypeEnvironment) -> Constraint
[src]
Creates a new constraint by replacing type vars by their canonical equivalent.
fn is_trivial(&self) -> bool
[src]
fn is_concrete(&self) -> bool
[src]
Returns true iff all the referenced type vars are singletons.
fn typevar_args(&self) -> Vec<&TypeVar>
[src]
Trait Implementations
impl Debug for Constraint
[src]
impl Eq for Constraint
[src]
impl Hash for Constraint
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Constraint> for Constraint
[src]
fn eq(&self, other: &Constraint) -> bool
[src]
fn ne(&self, other: &Constraint) -> bool
[src]
impl StructuralEq for Constraint
[src]
impl StructuralPartialEq for Constraint
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Constraint
impl !Send for Constraint
impl !Sync for Constraint
impl Unpin for Constraint
impl !UnwindSafe for Constraint
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,
fn borrow_mut(&mut self) -> &mut T
[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, 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.
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>,