Enum cpp_demangle::ast::OperatorName
source · 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<OperatorName> for OperatorName
impl PartialEq<OperatorName> for OperatorName
source§fn eq(&self, other: &OperatorName) -> bool
fn eq(&self, other: &OperatorName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for OperatorName
impl StructuralEq for OperatorName
impl StructuralPartialEq for OperatorName
Auto Trait Implementations§
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