pub enum ShellType {
String,
Integer,
Boolean,
Array(Box<ShellType>),
AssocArray {
key: Box<ShellType>,
value: Box<ShellType>,
},
FileDescriptor,
ExitCode,
Signal,
TypeVar(u32),
Union(Vec<ShellType>),
}Expand description
Shell-specific type system for contracts
Variants§
String
Primitive types
Integer
Boolean
Array(Box<ShellType>)
Compound types
AssocArray
FileDescriptor
Shell-specific types
ExitCode
Signal
TypeVar(u32)
Type variables for inference
Union(Vec<ShellType>)
Union types for shell’s dynamic nature
Implementations§
Trait Implementations§
impl Eq for ShellType
impl StructuralPartialEq for ShellType
Auto Trait Implementations§
impl Freeze for ShellType
impl RefUnwindSafe for ShellType
impl Send for ShellType
impl Sync for ShellType
impl Unpin for ShellType
impl UnwindSafe for ShellType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.