pub struct TypeTuple {
pub docs: Option<Docs>,
pub elements: List<TypeExpr>,
}
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 Freeze for TypeTuple
impl RefUnwindSafe for TypeTuple
impl Send for TypeTuple
impl Sync for TypeTuple
impl Unpin for TypeTuple
impl UnwindSafe for TypeTuple
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