pub enum Ty {
Int,
Bool,
Text,
Fix,
Action,
List(Box<Ty>),
Record(BTreeMap<String, Ty>),
}Expand description
The v0.1 type language.
Variants§
Int
Bool
Text
Fix
Deterministic fixed-point: an i64 counting millionths (scale
FIX_SCALE). The honest float — exact, total, identical on every
host, no NaN, no rounding modes. Fix(1_500_000) is 1.5.
Action
An effect request value (see [Action]); opaque to programs.
List(Box<Ty>)
Record(BTreeMap<String, Ty>)
Fields are kept sorted by name — the canonical order.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ty
impl<'de> Deserialize<'de> for Ty
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Ty
impl StructuralPartialEq for Ty
Auto Trait Implementations§
impl Freeze for Ty
impl RefUnwindSafe for Ty
impl Send for Ty
impl Sync for Ty
impl Unpin for Ty
impl UnsafeUnpin for Ty
impl UnwindSafe for Ty
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more