Enum cpp_demangle::ast::MangledName
source · [−]pub enum MangledName {
Encoding(Encoding, Vec<CloneSuffix>),
BlockInvoke(Encoding, Option<isize>),
Type(TypeHandle),
GlobalCtorDtor(GlobalCtorDtor),
}
Expand description
The root AST node, and starting production.
<mangled-name> ::= _Z <encoding> [<clone-suffix>]*
::= ___Z <encoding> <block_invoke>
::= <type>
<block_invoke> ::= _block_invoke
::= _block_invoke<decimal-digit>+
::= _block_invoke_<decimal-digit>+
Variants
Encoding(Encoding, Vec<CloneSuffix>)
The encoding of the mangled symbol name.
BlockInvoke(Encoding, Option<isize>)
The encoding of the mangled symbol name.
Type(TypeHandle)
A top-level type. Technically not allowed by the standard, however in practice this can happen, and is tested for by libiberty.
GlobalCtorDtor(GlobalCtorDtor)
A global constructor or destructor. This is another de facto standard
extension (I think originally from g++
?) that is not actually part of
the standard proper.
Trait Implementations
sourceimpl Clone for MangledName
impl Clone for MangledName
sourcefn clone(&self) -> MangledName
fn clone(&self) -> MangledName
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 MangledName
impl Debug for MangledName
sourceimpl PartialEq<MangledName> for MangledName
impl PartialEq<MangledName> for MangledName
sourcefn eq(&self, other: &MangledName) -> bool
fn eq(&self, other: &MangledName) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MangledName) -> bool
fn ne(&self, other: &MangledName) -> bool
This method tests for !=
.
impl Eq for MangledName
impl StructuralEq for MangledName
impl StructuralPartialEq for MangledName
Auto Trait Implementations
impl RefUnwindSafe for MangledName
impl Send for MangledName
impl Sync for MangledName
impl Unpin for MangledName
impl UnwindSafe for MangledName
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more