Enum typescript_type_def::type_expr::TypeExpr [−][src]
pub enum TypeExpr {
Ref(&'static TypeInfo),
Name(TypeName),
String(TypeString),
Tuple(TypeTuple),
Object(TypeObject),
Array(TypeArray),
Union(TypeUnion),
Intersection(TypeIntersection),
}
Expand description
A TypeScript type expression.
This type is not intended to cover all possible TypeScript type syntax,
only that which is needed by the types defined in this crate and as produced
by #[derive(TypeDef)]
.
Variants
A reference to another type.
Tuple Fields of Ref
0: &'static TypeInfo
A reference to a bare type name which should already be defined.
Tuple Fields of Name
0: TypeName
A type-level string literal.
Tuple Fields of String
0: TypeString
A tuple type.
Tuple Fields of Tuple
0: TypeTuple
An object type.
Tuple Fields of Object
0: TypeObject
An array type.
Tuple Fields of Array
0: TypeArray
A union type.
Tuple Fields of Union
0: TypeUnion
An intersection type.
Tuple Fields of Intersection
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TypeExpr
impl UnwindSafe for TypeExpr
Blanket Implementations
Mutably borrows from an owned value. Read more