pub enum BaseType {
Nat,
Bool,
Str,
Unit,
Named(String),
Pair(Box<BaseType>, Box<BaseType>),
Sum(Box<BaseType>, Box<BaseType>),
}Expand description
A base type that can be communicated over a session.
Variants§
Nat
Natural numbers.
Bool
Booleans.
Str
Strings.
Unit
Unit type.
Named(String)
A named type.
Pair(Box<BaseType>, Box<BaseType>)
Pair type.
Sum(Box<BaseType>, Box<BaseType>)
Sum type.
Trait Implementations§
impl Eq for BaseType
impl StructuralPartialEq for BaseType
Auto Trait Implementations§
impl Freeze for BaseType
impl RefUnwindSafe for BaseType
impl Send for BaseType
impl Sync for BaseType
impl Unpin for BaseType
impl UnsafeUnpin for BaseType
impl UnwindSafe for BaseType
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