pub enum SpecialOperators {
Satisfies {
value: Box<Expression>,
type_annotation: Box<TypeAnnotation>,
},
In {
lhs: InExpressionLHS,
rhs: Box<Expression>,
},
InstanceOf {
lhs: Box<Expression>,
rhs: Box<Expression>,
},
Is {
value: Box<Expression>,
type_annotation: Box<TypeAnnotation>,
},
NonNullAssertion(Box<Expression>),
AsCast {
value: Box<Expression>,
rhs: TypeOrConst,
},
}
Expand description
Binary operations whose RHS are types rather than Expressions
Variants§
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, options: &VisitOptions, chain: &mut Annex<'_, Chain>, )
fn visit_mut<TData>( &mut self, visitors: &mut (impl VisitorMutReceiver<TData> + ?Sized), data: &mut TData, options: &VisitOptions, chain: &mut Annex<'_, Chain>, )
Auto Trait Implementations§
impl Freeze for SpecialOperators
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