Struct typescript_type_def::type_expr::TypeTuple [−][src]
Expand description
A TypeScript tuple type.
In TypeScript, tuples are represented as constant-length arrays where each element can have a distinct type. Values of these types are encoded as arrays in JSON, which are expected to have a constant length.
Fields
docs: Option<Docs>
The documentation for this tuple.
elements: List<TypeExpr>
The types of the elements of this tuple.
If the elements are empty, the only valid value for this type is the
empty array []
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TypeTuple
impl UnwindSafe for TypeTuple
Blanket Implementations
Mutably borrows from an owned value. Read more