pub enum TypeHintKind {
Named(Name),
Keyword(BuiltinType, Span),
Nullable(Box<TypeHint>),
Union(Box<[TypeHint]>),
Intersection(Box<[TypeHint]>),
}Variants§
Named(Name)
Keyword(BuiltinType, Span)
Serialises as Named — see TypeHintKind::Keyword.
Nullable(Box<TypeHint>)
Union(Box<[TypeHint]>)
Intersection(Box<[TypeHint]>)
Trait Implementations§
Source§impl Clone for TypeHintKind
impl Clone for TypeHintKind
Source§fn clone(&self) -> TypeHintKind
fn clone(&self) -> TypeHintKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TypeHintKind
impl Debug for TypeHintKind
Auto Trait Implementations§
impl Freeze for TypeHintKind
impl RefUnwindSafe for TypeHintKind
impl Send for TypeHintKind
impl Sync for TypeHintKind
impl Unpin for TypeHintKind
impl UnsafeUnpin for TypeHintKind
impl UnwindSafe for TypeHintKind
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