pub enum Constant {
Show 18 variants
Class {
name_index: u16,
},
Double(f64),
Dynamic {
bootstrap_method_attr_index: u16,
name_and_type_index: u16,
},
Fieldref {
class_index: u16,
name_and_type_index: u16,
},
Float(f32),
Integer(i32),
InterfaceMethodref {
class_index: u16,
name_and_type_index: u16,
},
Invalid,
InvokeDynamic {
bootstrap_method_attr_index: u16,
name_and_type_index: u16,
},
Long(i64),
MethodHandle {
reference_kind: u8,
reference_index: u16,
},
Methodref {
class_index: u16,
name_and_type_index: u16,
},
MethodType {
descriptor_index: u16,
},
Module {
name_index: u16,
},
NameAndType {
name_index: u16,
descriptor_index: u16,
},
Package {
name_index: u16,
},
String {
string_index: u16,
},
Utf8(String),
}Variants§
Class
Double(f64)
Dynamic
Fieldref
Float(f32)
Integer(i32)
InterfaceMethodref
Invalid
Used for the first entry, and the second entry of doubles and longs.
InvokeDynamic
Long(i64)
MethodHandle
Methodref
MethodType
Module
NameAndType
Package
String
Utf8(String)
Trait Implementations§
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