Enum ezno_parser::expressions::SpecialOperators
source · pub enum SpecialOperators {
AsExpression {
value: Box<Expression>,
as_keyword: Keyword<As>,
type_annotation: Box<TypeAnnotation>,
},
SatisfiesExpression {
value: Box<Expression>,
satisfies_keyword: Keyword<Satisfies>,
type_annotation: Box<TypeAnnotation>,
},
InExpression {
lhs: InExpressionLHS,
rhs: Box<Expression>,
},
InstanceOfExpression {
lhs: Box<Expression>,
rhs: Box<Expression>,
},
IsExpression {
value: Box<Expression>,
is_keyword: Keyword<Is>,
type_annotation: Box<TypeAnnotation>,
},
}
Expand description
Binary operations whose RHS are types rather than Expressions
Variants§
AsExpression
TS Only
SatisfiesExpression
TS Only
InExpression
InstanceOfExpression
IsExpression
Trait Implementations§
source§impl Clone for SpecialOperators
impl Clone for SpecialOperators
source§fn clone(&self) -> SpecialOperators
fn clone(&self) -> SpecialOperators
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 SpecialOperators
impl Debug for SpecialOperators
source§impl PartialEq for SpecialOperators
impl PartialEq for SpecialOperators
source§impl SelfRustTokenize for SpecialOperators
impl SelfRustTokenize for SpecialOperators
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
source§impl Serialize for SpecialOperators
impl Serialize for SpecialOperators
source§impl Visitable for SpecialOperators
impl Visitable for SpecialOperators
fn visit<TData>( &self, visitors: &mut (impl VisitorReceiver<TData> + ?Sized), data: &mut TData, settings: &VisitSettings, chain: &mut Annex<'_, Chain> )
fn visit_mut<TData>( &mut self, visitors: &mut (impl VisitorMutReceiver<TData> + ?Sized), data: &mut TData, settings: &VisitSettings, chain: &mut Annex<'_, Chain> )
Auto Trait Implementations§
impl RefUnwindSafe for SpecialOperators
impl Send for SpecialOperators
impl Sync for SpecialOperators
impl Unpin for SpecialOperators
impl UnwindSafe for SpecialOperators
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