pub struct TypeParamInfo {
pub name: Atom,
pub constraint: Option<TypeId>,
pub default: Option<TypeId>,
pub is_const: bool,
}Expand description
Type parameter information
Fields§
§name: Atom§constraint: Option<TypeId>§default: Option<TypeId>§is_const: boolWhether this is a const type parameter (TS 5.0+) Const type parameters preserve literal types and infer readonly modifiers
Trait Implementations§
Source§impl Clone for TypeParamInfo
impl Clone for TypeParamInfo
Source§fn clone(&self) -> TypeParamInfo
fn clone(&self) -> TypeParamInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeParamInfo
impl Debug for TypeParamInfo
Source§impl Hash for TypeParamInfo
impl Hash for TypeParamInfo
Source§impl PartialEq for TypeParamInfo
impl PartialEq for TypeParamInfo
impl Eq for TypeParamInfo
impl StructuralPartialEq for TypeParamInfo
Auto Trait Implementations§
impl Freeze for TypeParamInfo
impl RefUnwindSafe for TypeParamInfo
impl Send for TypeParamInfo
impl Sync for TypeParamInfo
impl Unpin for TypeParamInfo
impl UnsafeUnpin for TypeParamInfo
impl UnwindSafe for TypeParamInfo
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.