Struct typescript_type_def::type_expr::TypeTuple
source · 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 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