Enum java_asm::jvms::element::Const

source ·
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

Fields

§name_index: u16
§

Field

Fields

§class_index: u16
§name_and_type_index: u16
§

Method

Fields

§class_index: u16
§name_and_type_index: u16
§

InterfaceMethod

Fields

§class_index: u16
§name_and_type_index: u16
§

String

Fields

§string_index: u16
§

Integer

Fields

§bytes: u32
§

Float

Fields

§bytes: u32
§

Long

Fields

§high_bytes: u32
§low_bytes: u32
§

Double

Fields

§high_bytes: u32
§low_bytes: u32
§

NameAndType

Fields

§name_index: u16
§descriptor_index: u16
§

Utf8

Fields

§length: u16
§bytes: Vec<u8>
§

MethodHandle

Fields

§reference_kind: u8
§reference_index: u16
§

MethodType

Fields

§descriptor_index: u16
§

Dynamic

Fields

§bootstrap_method_attr_index: u16
§name_and_type_index: u16
§

InvokeDynamic

Fields

§bootstrap_method_attr_index: u16
§name_and_type_index: u16
§

Module

Fields

§name_index: u16
§

Package

Fields

§name_index: u16

Trait Implementations§

source§

impl Clone for Const

source§

fn clone(&self) -> Const

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Const

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl IntoWriteContext<Const> for Const

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.