#[non_exhaustive]pub enum TypeAnnotationContext {
Field,
Key,
Choice,
InterfaceMethod,
Function,
}Expand description
The declaration context whose type annotation was malformed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for TypeAnnotationContext
impl Clone for TypeAnnotationContext
Source§fn clone(&self) -> TypeAnnotationContext
fn clone(&self) -> TypeAnnotationContext
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 moreimpl Copy for TypeAnnotationContext
Source§impl Debug for TypeAnnotationContext
impl Debug for TypeAnnotationContext
impl Eq for TypeAnnotationContext
Source§impl PartialEq for TypeAnnotationContext
impl PartialEq for TypeAnnotationContext
Source§fn eq(&self, other: &TypeAnnotationContext) -> bool
fn eq(&self, other: &TypeAnnotationContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TypeAnnotationContext
Auto Trait Implementations§
impl Freeze for TypeAnnotationContext
impl RefUnwindSafe for TypeAnnotationContext
impl Send for TypeAnnotationContext
impl Sync for TypeAnnotationContext
impl Unpin for TypeAnnotationContext
impl UnsafeUnpin for TypeAnnotationContext
impl UnwindSafe for TypeAnnotationContext
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