Struct typescript_type_def::type_expr::TypeName
source · [−]Expand description
A reference to a built-in TypeScript type, analogous to a Rust path with optional generics.
Fields
path: List<Ident>
The namespace path for this type.
name: Ident
The name of this type.
generic_args: List<TypeExpr>
The generic arguments for this type.
If empty, the type does not have generics.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TypeName
impl Send for TypeName
impl Sync for TypeName
impl Unpin for TypeName
impl UnwindSafe for TypeName
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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