pub enum TypeCondition {
Extends {
type: Box<TypeReference>,
extends: Box<TypeReference>,
position: Span,
},
Is {
type: Box<TypeReference>,
is: Box<TypeReference>,
position: Span,
},
}
Expand description
Condition in a TypeReference::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