Enum classfmt::constant_pool::Constant [−][src]
pub enum Constant<'c> {}Show variants
Class { tag: ConstantTag, name_index: u16, }, Fieldref { tag: ConstantTag, class_index: u16, name_and_type_index: u16, }, Methodref { tag: ConstantTag, class_index: u16, name_and_type_index: u16, }, InterfaceMethodref { tag: ConstantTag, class_index: u16, name_and_type_index: u16, }, String { tag: ConstantTag, string_index: u16, }, Integer { tag: ConstantTag, value: i32, }, Float { tag: ConstantTag, bytes: &'c [u8], }, Long { tag: ConstantTag, high_bytes: u32, low_bytes: u32, }, Double { tag: ConstantTag, high_bytes: u32, low_bytes: u32, }, NameAndType { tag: ConstantTag, name_index: u16, descriptor_index: u16, }, Utf8 { tag: ConstantTag, length: u16, bytes: &'c [u8], }, MethodHandle { tag: ConstantTag, reference_kind: ReferenceKind, reference_index: u16, }, MethodType { tag: ConstantTag, descriptor_index: u16, }, InvokeDynamic { tag: ConstantTag, bootstrap_method_attr_index: u16, name_index: u16, },
Expand description
Represents a constant pool element
See https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4 for more info
Variants
Show fields
Fields of Class
tag: ConstantTag
name_index: u16
Show fields
Fields of Fieldref
Show fields
Fields of Methodref
Show fields
Fields of InterfaceMethodref
Show fields
Fields of String
tag: ConstantTag
string_index: u16
Show fields
Fields of Integer
tag: ConstantTag
value: i32
Show fields
Fields of Float
tag: ConstantTag
bytes: &'c [u8]
Show fields
Fields of Long
Show fields
Fields of Double
Show fields
Fields of NameAndType
Show fields
Fields of Utf8
Show fields
Fields of MethodHandle
Show fields
Fields of MethodType
tag: ConstantTag
descriptor_index: u16