Struct pdb::ConstantSymbol
source · [−]pub struct ConstantSymbol<'t> {
pub managed: bool,
pub type_index: TypeIndex,
pub value: Variant,
pub name: RawString<'t>,
}
Expand description
A constant value.
Symbol kind S_CONSTANT
, or S_CONSTANT_ST
.
Fields
managed: bool
Whether this constant has metadata type information.
type_index: TypeIndex
The type of this constant or metadata token.
value: Variant
The value of this constant.
name: RawString<'t>
Name of the constant.
Trait Implementations
sourceimpl<'t> Clone for ConstantSymbol<'t>
impl<'t> Clone for ConstantSymbol<'t>
sourcefn clone(&self) -> ConstantSymbol<'t>
fn clone(&self) -> ConstantSymbol<'t>
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<'t> Debug for ConstantSymbol<'t>
impl<'t> Debug for ConstantSymbol<'t>
sourceimpl<'t> PartialEq<ConstantSymbol<'t>> for ConstantSymbol<'t>
impl<'t> PartialEq<ConstantSymbol<'t>> for ConstantSymbol<'t>
sourcefn eq(&self, other: &ConstantSymbol<'t>) -> bool
fn eq(&self, other: &ConstantSymbol<'t>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ConstantSymbol<'t>) -> bool
fn ne(&self, other: &ConstantSymbol<'t>) -> bool
This method tests for !=
.
sourceimpl<'t> TryFromCtx<'t, u16, [u8]> for ConstantSymbol<'t>
impl<'t> TryFromCtx<'t, u16, [u8]> for ConstantSymbol<'t>
impl<'t> Copy for ConstantSymbol<'t>
impl<'t> Eq for ConstantSymbol<'t>
impl<'t> StructuralEq for ConstantSymbol<'t>
impl<'t> StructuralPartialEq for ConstantSymbol<'t>
Auto Trait Implementations
impl<'t> RefUnwindSafe for ConstantSymbol<'t>
impl<'t> Send for ConstantSymbol<'t>
impl<'t> Sync for ConstantSymbol<'t>
impl<'t> Unpin for ConstantSymbol<'t>
impl<'t> UnwindSafe for ConstantSymbol<'t>
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