Struct typescript_type_def::type_expr::TypeName
source · pub struct TypeName {
pub path: List<Ident>,
pub name: Ident,
pub generic_args: List<TypeExpr>,
}
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 Freeze for TypeName
impl RefUnwindSafe for TypeName
impl Send for TypeName
impl Sync for TypeName
impl Unpin for TypeName
impl UnwindSafe for TypeName
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)