pub enum ConstantPoolEntry {
Show 17 variants
Utf8(Utf8Info),
Integer(IntegerInfo),
Float(FloatInfo),
Long(LongInfo),
Double(DoubleInfo),
Class(ClassInfo),
String(StringInfo),
Fieldref(FieldrefInfo),
Methodref(MethodrefInfo),
InterfaceMethodref(InterfaceMethodrefInfo),
NameAndType(NameAndTypeInfo),
MethodHandle(MethodHandleInfo),
MethodType(MethodTypeInfo),
Dynamic(DynamicInfo),
InvokeDynamic(InvokeDynamicInfo),
Module(ModuleInfo),
Package(PackageInfo),
}Expand description
A constant pool entry. Index 0 is unused; entries are 1-indexed. Long and Double entries occupy two slots.
Variants§
Utf8(Utf8Info)
Integer(IntegerInfo)
Float(FloatInfo)
Long(LongInfo)
Double(DoubleInfo)
Class(ClassInfo)
String(StringInfo)
Fieldref(FieldrefInfo)
Methodref(MethodrefInfo)
InterfaceMethodref(InterfaceMethodrefInfo)
NameAndType(NameAndTypeInfo)
MethodHandle(MethodHandleInfo)
MethodType(MethodTypeInfo)
Dynamic(DynamicInfo)
InvokeDynamic(InvokeDynamicInfo)
Module(ModuleInfo)
Package(PackageInfo)
Implementations§
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 moreAuto 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