pub enum Type {
}
Expand description
The type of a Ryan value.
Variants§
Any
Any type. Matches anything.
Null
The null
type. Matches only null
.
Bool
A boolean.
Integer
An integer.
Float
A float.
Text
Some text.
List(Box<Type>)
A list where all elements are of the same type.
Dictionary(Box<Type>)
A dictionary where all the values are of the same type.
Tuple(Vec<Type>)
A list of given length where each element has a specific type.
Record(IndexMap<String, Type>)
A map where the given keys correspond to values of the given types.
StrictRecord(IndexMap<String, Type>)
A map containing only the given keys corresponding to values of the given types.
Or(Vec<Type>)
A value that can be of any of the values in a list.
Opaque(String)
A type which cannot be inspected. This variant cannot be created directly from Ryan code.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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