pub enum OperatorName {
Simple(SimpleOperatorName),
Cast(TypeHandle),
Conversion(TypeHandle),
Literal(SourceName),
VendorExtension(u8, SourceName),
}
Expand description
The <operator-name>
production.
<operator-name> ::= <simple-operator-name>
::= cv <type> # (cast)
::= li <source-name> # operator ""
::= v <digit> <source-name> # vendor extended operator
Variants§
Simple(SimpleOperatorName)
A simple operator name.
Cast(TypeHandle)
A type cast.
Conversion(TypeHandle)
A type conversion.
Literal(SourceName)
Operator literal, ie operator ""
.
VendorExtension(u8, SourceName)
A non-standard, vendor extension operator.
Trait Implementations§
Source§impl Clone for OperatorName
impl Clone for OperatorName
Source§fn clone(&self) -> OperatorName
fn clone(&self) -> OperatorName
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 OperatorName
impl Debug for OperatorName
Source§impl PartialEq for OperatorName
impl PartialEq for OperatorName
impl Eq for OperatorName
impl StructuralPartialEq for OperatorName
Auto Trait Implementations§
impl Freeze for OperatorName
impl RefUnwindSafe for OperatorName
impl Send for OperatorName
impl Sync for OperatorName
impl Unpin for OperatorName
impl UnwindSafe for OperatorName
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