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
Literal(TypeHandle, usize, usize)
A type literal.
External(MangledName)
An external name.
Trait Implementations
sourceimpl Clone for ExprPrimary
impl Clone for ExprPrimary
sourcefn clone(&self) -> ExprPrimary
fn clone(&self) -> ExprPrimary
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 ExprPrimary
impl Debug for ExprPrimary
sourceimpl PartialEq<ExprPrimary> for ExprPrimary
impl PartialEq<ExprPrimary> for ExprPrimary
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ExprPrimary) -> bool
fn ne(&self, other: &ExprPrimary) -> bool
This method tests for !=
.
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
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