[][src]Enum pclass_parser::classfile::constant_pool::Type

pub enum Type {
    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

Fields of Class

name_index: u16
FieldRef

Fields of FieldRef

class_index: u16name_and_type_index: u16
MethodRef

Fields of MethodRef

class_index: u16name_and_type_index: u16
InterfaceMethodRef

Fields of InterfaceMethodRef

class_index: u16name_and_type_index: u16
String

Fields of String

string_index: u16
Integer

Fields of Integer

v: [u8; 4]
Float

Fields of Float

v: [u8; 4]
Long

Fields of Long

v: [u8; 8]
Double

Fields of Double

v: [u8; 8]
NameAndType

Fields of NameAndType

name_index: u16desc_index: u16
Utf8

Fields of Utf8

bytes: BytesRef
MethodHandle

Fields of MethodHandle

ref_kind: u8ref_index: u16
MethodType

Fields of MethodType

desc_index: u16
InvokeDynamic

Fields of InvokeDynamic

bootstrap_method_attr_index: u16name_and_type_index: u16
Unknown

Implementations

impl Type[src]

pub fn as_cp_item<'a, 'b>(
    &'a self,
    cp: &'b ConstantPool
) -> ConstantPoolItem<'a, 'b>
[src]

Trait Implementations

impl Clone for Type[src]

impl Debug for Type[src]

Auto Trait Implementations

impl RefUnwindSafe for Type

impl Send for Type

impl Sync for Type

impl Unpin for Type

impl UnwindSafe for Type

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.