pub enum Constant {
Show 16 variants
Utf8(Vec<u8>),
Integer(u32),
Float(u32),
Long(u64),
Double(u64),
Class(ConstantPoolIndex),
FieldRef {
class_index: ConstantPoolIndex,
name_and_type_index: ConstantPoolIndex,
},
MethodRef {
class_index: ConstantPoolIndex,
name_and_type_index: ConstantPoolIndex,
},
InterfaceMethodRef {
class_index: ConstantPoolIndex,
name_and_type_index: ConstantPoolIndex,
},
String(ConstantPoolIndex),
NameAndType {
name_index: ConstantPoolIndex,
descriptor_index: ConstantPoolIndex,
},
MethodHandle {
reference_kind: ReferenceKind,
reference_index: ConstantPoolIndex,
},
MethodType(ConstantPoolIndex),
InvokeDynamic {
bootstrap_method_attr_index: ConstantPoolIndex,
name_and_type_index: ConstantPoolIndex,
},
Unknown(u8),
Placeholder,
}Variants§
Utf8(Vec<u8>)
Integer(u32)
Float(u32)
Long(u64)
Double(u64)
Class(ConstantPoolIndex)
FieldRef
MethodRef
InterfaceMethodRef
String(ConstantPoolIndex)
NameAndType
MethodHandle
MethodType(ConstantPoolIndex)
InvokeDynamic
Unknown(u8)
Placeholder
Implementations§
Trait Implementations§
impl StructuralPartialEq for Constant
Auto Trait Implementations§
impl Freeze for Constant
impl RefUnwindSafe for Constant
impl Send for Constant
impl Sync for Constant
impl Unpin for Constant
impl UnwindSafe for Constant
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