pub enum Type<'ast> {
Simple(&'ast Token),
Name(Name<'ast>),
Union(&'ast [Type<'ast>]),
Intersection(&'ast [Type<'ast>]),
Nullable(&'ast Type<'ast>),
}Variants§
Simple(&'ast Token)
Name(Name<'ast>)
Union(&'ast [Type<'ast>])
Intersection(&'ast [Type<'ast>])
Nullable(&'ast Type<'ast>)
Trait Implementations§
impl<'ast> Copy for Type<'ast>
Auto Trait Implementations§
impl<'ast> Freeze for Type<'ast>
impl<'ast> RefUnwindSafe for Type<'ast>
impl<'ast> Send for Type<'ast>
impl<'ast> Sync for Type<'ast>
impl<'ast> Unpin for Type<'ast>
impl<'ast> UnwindSafe for Type<'ast>
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