Enum kailua_types::ty::Numbers
[−]
[src]
pub enum Numbers { One(i32), Some(BTreeSet<i32>), Int, All, }
Number types.
Variants
One(i32)
A single integer literal.
Some(BTreeSet<i32>)
Multiple integer literals.
Int
Any integer.
All
Any number.
Trait Implementations
impl Clone for Numbers
[src]
fn clone(&self) -> Numbers
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 Union for Numbers
[src]
type Output = Numbers
A type of the resulting type.
fn union(
&self,
other: &Numbers,
explicit: bool,
_ctx: &mut TypeContext
) -> TypeResult<Numbers>
&self,
other: &Numbers,
explicit: bool,
_ctx: &mut TypeContext
) -> TypeResult<Numbers>
Calculates a union type of self
and other
, explicitly or implicitly. Read more
impl Lattice for Numbers
[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.
impl PartialEq for Numbers
[src]
fn eq(&self, other: &Numbers) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.