pub enum DartType {
Show 17 variants
DtInt,
DtDouble,
DtBool,
DtString,
DtVoid,
DtDynamic,
DtObject,
DtNull,
DtNullable(Box<DartType>),
DtList(Box<DartType>),
DtMap(Box<DartType>, Box<DartType>),
DtSet(Box<DartType>),
DtFuture(Box<DartType>),
DtStream(Box<DartType>),
DtFunction(Vec<DartType>, Box<DartType>),
DtNamed(String),
DtGeneric(String, Vec<DartType>),
}Expand description
Dart type representation (null-safe Dart ≥ 2.12).
Variants§
DtInt
int
DtDouble
double
DtBool
bool
DtString
String
DtVoid
void
DtDynamic
dynamic
DtObject
Object
DtNull
Null
DtNullable(Box<DartType>)
T? — nullable wrapper
DtList(Box<DartType>)
List<T>
DtMap(Box<DartType>, Box<DartType>)
Map<K, V>
DtSet(Box<DartType>)
Set<T>
DtFuture(Box<DartType>)
Future<T>
DtStream(Box<DartType>)
Stream<T>
DtFunction(Vec<DartType>, Box<DartType>)
T Function(P0, P1, ...) — function type
DtNamed(String)
Named class, e.g. MyClass
DtGeneric(String, Vec<DartType>)
Generic instantiation, e.g. MyClass<int, String>
Trait Implementations§
impl Eq for DartType
impl StructuralPartialEq for DartType
Auto Trait Implementations§
impl Freeze for DartType
impl RefUnwindSafe for DartType
impl Send for DartType
impl Sync for DartType
impl Unpin for DartType
impl UnsafeUnpin for DartType
impl UnwindSafe for DartType
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