Enum typescript_type_def::type_expr::TypeExpr [−][src]
pub enum TypeExpr { Ref(&'static TypeInfo), Name(TypeName), String(TypeString), Tuple(Tuple), Object(Object), Array(Array), Union(Union), Intersection(Intersection), }
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
Ref(&'static TypeInfo)
A reference to another type’s type information.
Name(TypeName)
A reference to a bare type name which should already be defined.
String(TypeString)
A type-level string literal.
Tuple(Tuple)
A tuple type.
Object(Object)
An object type.
Array(Array)
An array type.
Union(Union)
A union type.
Intersection(Intersection)
An intersection type.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TypeExpr
impl UnwindSafe for TypeExpr
Blanket Implementations
Mutably borrows from an owned value. Read more