pub enum Const {
Show 18 variants
Invalid,
Class {
name_index: u16,
},
Field {
class_index: u16,
name_and_type_index: u16,
},
Method {
class_index: u16,
name_and_type_index: u16,
},
InterfaceMethod {
class_index: u16,
name_and_type_index: u16,
},
String {
string_index: u16,
},
Integer {
bytes: u32,
},
Float {
bytes: u32,
},
Long {
high_bytes: u32,
low_bytes: u32,
},
Double {
high_bytes: u32,
low_bytes: u32,
},
NameAndType {
name_index: u16,
descriptor_index: u16,
},
Utf8 {
length: u16,
bytes: Vec<u8>,
},
MethodHandle {
reference_kind: u8,
reference_index: u16,
},
MethodType {
descriptor_index: u16,
},
Dynamic {
bootstrap_method_attr_index: u16,
name_and_type_index: u16,
},
InvokeDynamic {
bootstrap_method_attr_index: u16,
name_and_type_index: u16,
},
Module {
name_index: u16,
},
Package {
name_index: u16,
},
}Variants§
Invalid
Class
Field
Method
InterfaceMethod
String
Integer
Float
Long
Double
NameAndType
Utf8
MethodHandle
MethodType
Dynamic
InvokeDynamic
Module
Package
Trait Implementations§
source§impl IntoWriteContext<Const> for Const
impl IntoWriteContext<Const> for Const
fn into_context(context: &mut WriteContext, into: Const)
Auto Trait Implementations§
impl Freeze for Const
impl RefUnwindSafe for Const
impl Send for Const
impl Sync for Const
impl Unpin for Const
impl UnwindSafe for Const
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