Enum kailua_types::ty::Strings
[−]
[src]
pub enum Strings { One(Str), Some(BTreeSet<Str>), All, }
String types.
Variants
One(Str)
A single string literal.
Some(BTreeSet<Str>)
Multiple string literals.
All
Any string.
Trait Implementations
impl Clone for Strings
[src]
fn clone(&self) -> Strings
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 Strings
[src]
type Output = Strings
A type of the resulting type.
fn union(
&self,
other: &Strings,
explicit: bool,
_ctx: &mut TypeContext
) -> TypeResult<Strings>
&self,
other: &Strings,
explicit: bool,
_ctx: &mut TypeContext
) -> TypeResult<Strings>
Calculates a union type of self
and other
, explicitly or implicitly. Read more
impl Lattice for Strings
[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 Strings
[src]
fn eq(&self, other: &Strings) -> 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 !=
.