Enum ezno_parser::types::type_annotations::TypeCondition
source · pub enum TypeCondition {
Extends {
ty: Box<TypeAnnotation>,
extends: Box<TypeAnnotation>,
position: Span,
},
Is {
ty: Box<TypeAnnotation>,
is: Box<TypeAnnotation>,
position: Span,
},
}
Expand description
Condition in a TypeAnnotation::Conditional
Variants§
Trait Implementations§
source§impl Clone for TypeCondition
impl Clone for TypeCondition
source§fn clone(&self) -> TypeCondition
fn clone(&self) -> TypeCondition
Returns a copy 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 moresource§impl Debug for TypeCondition
impl Debug for TypeCondition
source§impl PartialEq<TypeCondition> for TypeCondition
impl PartialEq<TypeCondition> for TypeCondition
source§fn eq(&self, other: &TypeCondition) -> bool
fn eq(&self, other: &TypeCondition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SelfRustTokenize for TypeCondition
impl SelfRustTokenize for TypeCondition
fn append_to_token_stream(&self, token_stream: &mut TokenStream)
source§fn to_tokens(&self) -> TokenStream
fn to_tokens(&self) -> TokenStream
Returns the tokens used to construct self
impl Eq for TypeCondition
impl StructuralEq for TypeCondition
impl StructuralPartialEq for TypeCondition
Auto Trait Implementations§
impl RefUnwindSafe for TypeCondition
impl Send for TypeCondition
impl Sync for TypeCondition
impl Unpin for TypeCondition
impl UnwindSafe for TypeCondition
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