Struct typescript_type_def::type_expr::TypeArray
source · [−]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 RefUnwindSafe for TypeArray
impl Send for TypeArray
impl Sync for TypeArray
impl Unpin for TypeArray
impl UnwindSafe for TypeArray
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more