AttributeInfoKind

Enum AttributeInfoKind 

Source
pub enum AttributeInfoKind {
Show 20 variants ConstantValue { constantvalue_index: u16, }, Code { max_stack: u16, max_locals: u16, code_length: u32, code: Vec<Opcode>, exception_table_length: u16, exception_table: Vec<ExceptionTable>, attributes_count: u16, attributes: Vec<AttributeInfo>, }, StackMapTable { number_of_entries: u16, entries: Vec<StackMapFrame>, }, Exceptions { number_of_exceptions: u16, exception_index_table: Vec<u16>, }, InnerClasses { number_of_classes: u16, classes: Vec<InnerClass>, }, EnclosingMethod { class_index: u16, method_index: u16, }, Synthetic { attribute_name_index: u16, attribute_length: u32, }, Signature { signature_index: u16, }, SourceFile { sourcefile_index: u16, }, SourceDebugExtension { debug_extension: Vec<u8>, }, LineNumberTable { line_number_table_length: u16, line_number_table: Vec<LineNumberTable>, }, LocalVariableTable { local_variable_table_length: u16, local_variable_table: Vec<LocalVariableTable>, }, LocalVariableTypeTable { local_variable_type_table_length: u16, local_variable_type_table: Vec<LocalVariableTypeTable>, }, Deprecated, RuntimeVisibleAnnotations { num_annotations: u16, annotations: Vec<Annotation>, }, RuntimeInvisibleAnnotations { num_annotations: u16, annotations: Vec<Annotation>, }, RuntimeVisibleParameterAnnotations { num_parameters: u8, parameter_annotations: Vec<ParameterAnnotation>, }, RuntimeInvisibleParameterAnnotations { num_parameters: u8, parameter_annotations: Vec<ParameterAnnotation>, }, AnnotationDefault { default_value: ElementValue, }, BootstrapMethods { num_bootstrap_methods: u16, bootstrap_methods: Vec<BootstrapMethod>, },
}

Variants§

§

ConstantValue

Fields

§constantvalue_index: u16
§

Code

Fields

§max_stack: u16
§max_locals: u16
§code_length: u32
§code: Vec<Opcode>
§exception_table_length: u16
§exception_table: Vec<ExceptionTable>
§attributes_count: u16
§attributes: Vec<AttributeInfo>
§

StackMapTable

Fields

§number_of_entries: u16
§

Exceptions

Fields

§number_of_exceptions: u16
§exception_index_table: Vec<u16>
§

InnerClasses

Fields

§number_of_classes: u16
§classes: Vec<InnerClass>
§

EnclosingMethod

Fields

§class_index: u16
§method_index: u16
§

Synthetic

Fields

§attribute_name_index: u16
§attribute_length: u32
§

Signature

Fields

§signature_index: u16
§

SourceFile

Fields

§sourcefile_index: u16
§

SourceDebugExtension

Fields

§debug_extension: Vec<u8>
§

LineNumberTable

Fields

§line_number_table_length: u16
§line_number_table: Vec<LineNumberTable>
§

LocalVariableTable

Fields

§local_variable_table_length: u16
§local_variable_table: Vec<LocalVariableTable>
§

LocalVariableTypeTable

Fields

§local_variable_type_table_length: u16
§local_variable_type_table: Vec<LocalVariableTypeTable>
§

Deprecated

§

RuntimeVisibleAnnotations

Fields

§num_annotations: u16
§annotations: Vec<Annotation>
§

RuntimeInvisibleAnnotations

Fields

§num_annotations: u16
§annotations: Vec<Annotation>
§

RuntimeVisibleParameterAnnotations

Fields

§num_parameters: u8
§parameter_annotations: Vec<ParameterAnnotation>
§

RuntimeInvisibleParameterAnnotations

Fields

§num_parameters: u8
§parameter_annotations: Vec<ParameterAnnotation>
§

AnnotationDefault

Fields

§default_value: ElementValue
§

BootstrapMethods

Fields

§num_bootstrap_methods: u16
§bootstrap_methods: Vec<BootstrapMethod>

Trait Implementations§

Source§

impl Clone for AttributeInfoKind

Source§

fn clone(&self) -> AttributeInfoKind

Returns a duplicate of the value. Read more
1.0.0§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for AttributeInfoKind

Source§

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

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

impl PartialEq for AttributeInfoKind

Source§

fn eq(&self, other: &AttributeInfoKind) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl ToJvmBytecode for AttributeInfoKind

Source§

impl StructuralPartialEq for AttributeInfoKind

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

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

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

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

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

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

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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.
§

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

Performs the conversion.