Struct kailua_types::ty::RVar
[−]
[src]
pub struct RVar(_);
Row variables generated by TypeContext
.
A row variable #0 (RVar::empty()
) denotes a special, inextensible "empty" row variable.
This cannot occur from unification, but is required to handle subtyping between
records and non-records, which effectively disables any further record extension.
Methods
impl RVar
[src]
Trait Implementations
impl Clone for RVar
[src]
fn clone(&self) -> RVar
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for RVar
[src]
fn eq(&self, __arg_0: &RVar) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RVar) -> bool
This method tests for !=
.
impl Eq for RVar
[src]
impl Hash for RVar
[src]
fn hash<__H: Hasher>(&self, __arg_0: &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
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for RVar
[src]
In the debugging output the row variable is denoted <row #rvar>
,
or ...rvar
in the record types.
impl Lattice for RVar
[src]
fn assert_sub(&self, other: &Self, ctx: &mut TypeContext) -> TypeResult<()>
Asserts that self
is a consistent subtype of other
under the type context.
fn assert_eq(&self, other: &Self, ctx: &mut TypeContext) -> TypeResult<()>
Asserts that self
is a consistent type equal to other
under the type context.