Struct typescript_type_def::type_expr::TypeUnion [−][src]
Expand description
A TypeScript union type.
Fields
docs: Option<Docs>
The documentation for this union.
members: List<TypeExpr>
The types that comprise this union.
If the members are empty, this type describes the vacuous union type
which is equivalent to never
. If the members contain only one type,
this type is equivalent to that type.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TypeUnion
impl UnwindSafe for TypeUnion
Blanket Implementations
Mutably borrows from an owned value. Read more