pub enum Type {
Show 16 variants
Nop,
Class {
name_index: u16,
},
FieldRef {
class_index: u16,
name_and_type_index: u16,
},
MethodRef {
class_index: u16,
name_and_type_index: u16,
},
InterfaceMethodRef {
class_index: u16,
name_and_type_index: u16,
},
String {
string_index: u16,
},
Integer {
v: [u8; 4],
},
Float {
v: [u8; 4],
},
Long {
v: [u8; 8],
},
Double {
v: [u8; 8],
},
NameAndType {
name_index: u16,
desc_index: u16,
},
Utf8 {
bytes: BytesRef,
},
MethodHandle {
ref_kind: u8,
ref_index: u16,
},
MethodType {
desc_index: u16,
},
InvokeDynamic {
bootstrap_method_attr_index: u16,
name_and_type_index: u16,
},
Unknown,
}
Variants§
Nop
Class
FieldRef
MethodRef
InterfaceMethodRef
String
Integer
Float
Long
Double
NameAndType
Utf8
MethodHandle
MethodType
InvokeDynamic
Unknown
Implementations§
Source§impl Type
impl Type
pub fn as_cp_item<'a, 'b>( &'a self, cp: &'b ConstantPool, ) -> ConstantPoolItem<'a, 'b>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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