pub enum ConstantEntry {
Show 16 variants
Unused,
Utf8(String),
Integer(i32),
Float(f32),
Long(i64),
Double(f64),
Class(u16),
String(u16),
MethodRef(Reference),
FieldRef(Reference),
InterfaceMethodRef(Reference),
NameAndType(NameAndType),
Dynamic(Dynamic),
InvokeDynamic(Dynamic),
MethodHandle(MethodHandle),
MethodType(u16),
}Expand description
A single entry in the constant pool.
https://docs.oracle.com/javase/specs/jvms/se25/html/jvms-4.html#jvms-4.4-140 Each entry is as described in section column of Table 4.4-A. Constant pool tags (by section)
Variants§
Unused
Utf8(String)
Integer(i32)
Float(f32)
Long(i64)
Double(f64)
Class(u16)
String(u16)
MethodRef(Reference)
FieldRef(Reference)
InterfaceMethodRef(Reference)
NameAndType(NameAndType)
Dynamic(Dynamic)
InvokeDynamic(Dynamic)
MethodHandle(MethodHandle)
MethodType(u16)
Implementations§
Source§impl<'a> ConstantEntry
impl<'a> ConstantEntry
pub fn get_kind(&self) -> ConstantKind
Trait Implementations§
Source§impl Clone for ConstantEntry
impl Clone for ConstantEntry
Source§fn clone(&self) -> ConstantEntry
fn clone(&self) -> ConstantEntry
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 moreSource§impl Debug for ConstantEntry
impl Debug for ConstantEntry
Source§impl PartialEq for ConstantEntry
impl PartialEq for ConstantEntry
Source§fn eq(&self, other: &ConstantEntry) -> bool
fn eq(&self, other: &ConstantEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConstantEntry
Auto Trait Implementations§
impl Freeze for ConstantEntry
impl RefUnwindSafe for ConstantEntry
impl Send for ConstantEntry
impl Sync for ConstantEntry
impl Unpin for ConstantEntry
impl UnsafeUnpin for ConstantEntry
impl UnwindSafe for ConstantEntry
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