Enum cpp_demangle::ast::ExprPrimary
source · pub enum ExprPrimary {
Literal(TypeHandle, usize, usize),
External(MangledName),
}
Expand description
The <expr-primary>
production.
<expr-primary> ::= L <type> <value number> E # integer literal
::= L <type> <value float> E # floating literal
::= L <string type> E # string literal
::= L <nullptr type> E # nullptr literal (i.e., "LDnE")
::= L <pointer type> 0 E # null pointer template argument
::= L <type> <real-part float> _ <imag-part float> E # complex floating point literal (C 2000)
::= L <mangled-name> E # external name
Variants§
Trait Implementations§
source§impl Clone for ExprPrimary
impl Clone for ExprPrimary
source§fn clone(&self) -> ExprPrimary
fn clone(&self) -> ExprPrimary
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 ExprPrimary
impl Debug for ExprPrimary
source§impl PartialEq<ExprPrimary> for ExprPrimary
impl PartialEq<ExprPrimary> for ExprPrimary
source§fn eq(&self, other: &ExprPrimary) -> bool
fn eq(&self, other: &ExprPrimary) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ExprPrimary
impl StructuralEq for ExprPrimary
impl StructuralPartialEq for ExprPrimary
Auto Trait Implementations§
impl RefUnwindSafe for ExprPrimary
impl Send for ExprPrimary
impl Sync for ExprPrimary
impl Unpin for ExprPrimary
impl UnwindSafe for ExprPrimary
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