pub enum TypeHint {
Show 16 variants
Record(Option<Vec<(String, TypeHint)>>),
Tuple(Option<Vec<TypeHint>>),
Flag(Option<Vec<String>>),
Str,
Number,
List(Option<Box<TypeHint>>),
Boolean,
Option(Option<Box<TypeHint>>),
Enum(Option<Vec<String>>),
Char,
Result {
ok: Option<Box<TypeHint>>,
err: Option<Box<TypeHint>>,
},
Resource,
Variant(Option<Vec<(String, Option<TypeHint>)>>),
Unknown,
Ambiguous {
possibilities: Vec<TypeHint>,
},
Range,
}Variants§
Record(Option<Vec<(String, TypeHint)>>)
Tuple(Option<Vec<TypeHint>>)
Flag(Option<Vec<String>>)
Str
Number
List(Option<Box<TypeHint>>)
Boolean
Option(Option<Box<TypeHint>>)
Enum(Option<Vec<String>>)
Char
Result
Resource
Variant(Option<Vec<(String, Option<TypeHint>)>>)
Unknown
Ambiguous
Range
Implementations§
Trait Implementations§
impl StructuralPartialEq for TypeHint
Auto Trait Implementations§
impl Freeze for TypeHint
impl RefUnwindSafe for TypeHint
impl Send for TypeHint
impl Sync for TypeHint
impl Unpin for TypeHint
impl UnsafeUnpin for TypeHint
impl UnwindSafe for TypeHint
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