pub enum AsyncIterableTypeKind {
Union(Vec<TypeId>),
Object(ObjectShapeId),
Readonly(TypeId),
NotAsyncIterable,
}Expand description
Classification for async iterable type checking.
Variants§
Union(Vec<TypeId>)
Union type - all members must be async iterable
Object(ObjectShapeId)
Object type - check for [Symbol.asyncIterator] method
Readonly(TypeId)
Readonly wrapper - check inner type
NotAsyncIterable
Not async iterable
Trait Implementations§
Source§impl Clone for AsyncIterableTypeKind
impl Clone for AsyncIterableTypeKind
Source§fn clone(&self) -> AsyncIterableTypeKind
fn clone(&self) -> AsyncIterableTypeKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AsyncIterableTypeKind
impl RefUnwindSafe for AsyncIterableTypeKind
impl Send for AsyncIterableTypeKind
impl Sync for AsyncIterableTypeKind
impl Unpin for AsyncIterableTypeKind
impl UnsafeUnpin for AsyncIterableTypeKind
impl UnwindSafe for AsyncIterableTypeKind
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