Struct typescript_type_def::type_expr::TypeUnion
source · pub struct TypeUnion {
pub docs: Option<Docs>,
pub members: List<TypeExpr>,
}
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 Send for TypeUnion
impl Sync for TypeUnion
impl Unpin for TypeUnion
impl UnwindSafe for TypeUnion
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