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: boolWhether this constant has metadata type information.
type_index: TypeIndexThe type of this constant or metadata token.
value: VariantThe value of this constant.
name: RawString<'t>Name of the constant.
Trait Implementations§
Source§impl<'t> Clone for ConstantSymbol<'t>
impl<'t> Clone for ConstantSymbol<'t>
Source§fn clone(&self) -> ConstantSymbol<'t>
fn clone(&self) -> ConstantSymbol<'t>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'t> Copy for ConstantSymbol<'t>
Source§impl<'t> Debug for ConstantSymbol<'t>
impl<'t> Debug for ConstantSymbol<'t>
impl<'t> Eq for ConstantSymbol<'t>
Source§impl<'t> PartialEq for ConstantSymbol<'t>
impl<'t> PartialEq for ConstantSymbol<'t>
impl<'t> StructuralPartialEq for ConstantSymbol<'t>
Source§impl<'t> TryFromCtx<'t, u16> for ConstantSymbol<'t>
impl<'t> TryFromCtx<'t, u16> for ConstantSymbol<'t>
Auto Trait Implementations§
impl<'t> Freeze for ConstantSymbol<'t>
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> UnsafeUnpin for ConstantSymbol<'t>
impl<'t> UnwindSafe for ConstantSymbol<'t>
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