pub enum ConstantPoolInfo<'a> {
Show 14 variants
Utf8 {
bytes: Cesu8Bytes<'a>,
},
Integer {
value: i32,
},
Float {
value: f32,
},
Long {
value: i64,
},
Double {
value: f64,
},
Class {
name_index: CpIndex,
},
String {
string_index: CpIndex,
},
FieldRef {
class_index: CpIndex,
name_and_type_index: CpIndex,
},
MethodRef {
class_index: CpIndex,
name_and_type_index: CpIndex,
},
InterfaceMethodRef {
class_index: CpIndex,
name_and_type_index: CpIndex,
},
NameAndType {
name_index: CpIndex,
descriptor_index: CpIndex,
},
MethodHandle {
reference_kind: ReferenceKind,
reference_index: CpIndex,
},
MethodType {
descriptor_index: CpIndex,
},
InvokeDynamic {
bootstrap_method_attr_index: u16,
name_and_type_index: CpIndex,
},
}Expand description
A single constant pool entry.
See JVMS §4.4.
Variants§
Utf8
Fields
§
bytes: Cesu8Bytes<'a>Integer
Float
Long
Double
Class
String
FieldRef
MethodRef
InterfaceMethodRef
NameAndType
MethodHandle
MethodType
InvokeDynamic
Implementations§
Source§impl<'a> ConstantPoolInfo<'a>
impl<'a> ConstantPoolInfo<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ConstantPoolInfo<'a>
impl<'a> RefUnwindSafe for ConstantPoolInfo<'a>
impl<'a> Send for ConstantPoolInfo<'a>
impl<'a> Sync for ConstantPoolInfo<'a>
impl<'a> Unpin for ConstantPoolInfo<'a>
impl<'a> UnsafeUnpin for ConstantPoolInfo<'a>
impl<'a> UnwindSafe for ConstantPoolInfo<'a>
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