pub enum ConstantPoolEntry {
Utf8(String),
Integer(i32),
Long(i64),
Float(f32),
Double(f64),
Class {
name_index: u16,
},
StringRef {
string_index: u16,
},
Fieldref {
class_index: u16,
name_and_type_index: u16,
},
Methodref {
class_index: u16,
name_and_type_index: u16,
},
InterfaceMethodref {
class_index: u16,
name_and_type_index: u16,
},
NameAndType {
name_index: u16,
descriptor_index: u16,
},
}Expand description
An entry in the class-file constant pool.
Variants§
Utf8(String)
CONSTANT_Utf8 — string data
Integer(i32)
CONSTANT_Integer — 32-bit integer constant
Long(i64)
CONSTANT_Long — 64-bit integer constant
Float(f32)
CONSTANT_Float — 32-bit float constant
Double(f64)
CONSTANT_Double — 64-bit float constant
Class
CONSTANT_Class — reference to a class by Utf8 index
StringRef
CONSTANT_String — reference to a Utf8 string value
Fieldref
CONSTANT_Fieldref
Methodref
CONSTANT_Methodref
InterfaceMethodref
CONSTANT_InterfaceMethodref
NameAndType
CONSTANT_NameAndType
Trait Implementations§
Source§impl Clone for ConstantPoolEntry
impl Clone for ConstantPoolEntry
Source§fn clone(&self) -> ConstantPoolEntry
fn clone(&self) -> ConstantPoolEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 ConstantPoolEntry
impl Debug for ConstantPoolEntry
Source§impl PartialEq for ConstantPoolEntry
impl PartialEq for ConstantPoolEntry
impl StructuralPartialEq for ConstantPoolEntry
Auto Trait Implementations§
impl Freeze for ConstantPoolEntry
impl RefUnwindSafe for ConstantPoolEntry
impl Send for ConstantPoolEntry
impl Sync for ConstantPoolEntry
impl Unpin for ConstantPoolEntry
impl UnsafeUnpin for ConstantPoolEntry
impl UnwindSafe for ConstantPoolEntry
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