pub struct TypeArray {
pub docs: Option<Docs>,
pub item: &'static TypeExpr,
}
Expand description
A TypeScript array type.
In TypeScript, an array is distinct from a tuple by the fact that it may have any length and every element has the same type (although that type may be a union so the elements may have different runtime types). Values of both of these types are encoded as arrays in JSON.
Fields§
§docs: Option<Docs>
The documentation for this array.
item: &'static TypeExpr
The type of items of this array.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeArray
impl RefUnwindSafe for TypeArray
impl Send for TypeArray
impl Sync for TypeArray
impl Unpin for TypeArray
impl UnwindSafe for TypeArray
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