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
sourceimpl Clone for OperatorName
impl Clone for OperatorName
sourcefn clone(&self) -> OperatorName
fn clone(&self) -> OperatorName
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OperatorName
impl Debug for OperatorName
sourceimpl PartialEq<OperatorName> for OperatorName
impl PartialEq<OperatorName> for OperatorName
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &OperatorName) -> bool
fn ne(&self, other: &OperatorName) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more