pub enum PrimaryType<'tree> {
Show 20 variants
ArrayType(Box<ArrayType<'tree>>),
ConditionalType(Box<ConditionalType<'tree>>),
Const(Span),
ExistentialType(Box<ExistentialType<'tree>>),
FlowMaybeType(Box<FlowMaybeType<'tree>>),
GenericType(Box<GenericType<'tree>>),
IndexTypeQuery(Box<IndexTypeQuery<'tree>>),
IntersectionType(Box<IntersectionType<'tree>>),
LiteralType(Box<LiteralType<'tree>>),
LookupType(Box<LookupType<'tree>>),
NestedTypeIdentifier(Box<NestedTypeIdentifier<'tree>>),
ObjectType(Box<ObjectType<'tree>>),
ParenthesizedType(Box<ParenthesizedType<'tree>>),
PredefinedType(Box<PredefinedType<'tree>>),
TemplateLiteralType(Box<TemplateLiteralType<'tree>>),
ThisType(Box<ThisType<'tree>>),
TupleType(Box<TupleType<'tree>>),
TypeIdentifier(Box<TypeIdentifier<'tree>>),
TypeQuery(Box<TypeQuery<'tree>>),
UnionType(Box<UnionType<'tree>>),
}Variants§
ArrayType(Box<ArrayType<'tree>>)
ConditionalType(Box<ConditionalType<'tree>>)
Const(Span)
ExistentialType(Box<ExistentialType<'tree>>)
FlowMaybeType(Box<FlowMaybeType<'tree>>)
GenericType(Box<GenericType<'tree>>)
IndexTypeQuery(Box<IndexTypeQuery<'tree>>)
IntersectionType(Box<IntersectionType<'tree>>)
LiteralType(Box<LiteralType<'tree>>)
LookupType(Box<LookupType<'tree>>)
NestedTypeIdentifier(Box<NestedTypeIdentifier<'tree>>)
ObjectType(Box<ObjectType<'tree>>)
ParenthesizedType(Box<ParenthesizedType<'tree>>)
PredefinedType(Box<PredefinedType<'tree>>)
TemplateLiteralType(Box<TemplateLiteralType<'tree>>)
ThisType(Box<ThisType<'tree>>)
TupleType(Box<TupleType<'tree>>)
TypeIdentifier(Box<TypeIdentifier<'tree>>)
TypeQuery(Box<TypeQuery<'tree>>)
UnionType(Box<UnionType<'tree>>)
Trait Implementations§
Source§impl<'tree> Clone for PrimaryType<'tree>
impl<'tree> Clone for PrimaryType<'tree>
Source§fn clone(&self) -> PrimaryType<'tree>
fn clone(&self) -> PrimaryType<'tree>
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<'tree> Debug for PrimaryType<'tree>
impl<'tree> Debug for PrimaryType<'tree>
impl<'tree> Eq for PrimaryType<'tree>
Source§impl<'tree> FromNode<'tree> for PrimaryType<'tree>
impl<'tree> FromNode<'tree> for PrimaryType<'tree>
Source§impl<'tree> PartialEq for PrimaryType<'tree>
impl<'tree> PartialEq for PrimaryType<'tree>
Source§impl Spanned for PrimaryType<'_>
impl Spanned for PrimaryType<'_>
impl<'tree> StructuralPartialEq for PrimaryType<'tree>
Auto Trait Implementations§
impl<'tree> Freeze for PrimaryType<'tree>
impl<'tree> RefUnwindSafe for PrimaryType<'tree>
impl<'tree> Send for PrimaryType<'tree>
impl<'tree> Sync for PrimaryType<'tree>
impl<'tree> Unpin for PrimaryType<'tree>
impl<'tree> UnsafeUnpin for PrimaryType<'tree>
impl<'tree> UnwindSafe for PrimaryType<'tree>
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