Enum Attribute

Source
pub enum Attribute {
Show 31 variants Custom(Vec<u8>), ConstantValue { constantvalue_index: u16, }, Code { max_stack: u16, max_locals: u16, code_length: u32, code: Vec<u8>, 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<InnerClassInfo>, }, EnclosingMethod { class_index: u16, method_index: u16, }, Synthetic, Signature { signature_index: u16, }, SourceFile { sourcefile_index: u16, }, SourceDebugExtension { debug_extension: Vec<u8>, }, LineNumberTable { line_number_table_length: u16, line_number_table: Vec<LineNumberTableInfo>, }, LocalVariableTable { local_variable_table_length: u16, local_variable_table: Vec<LocalVariableTableInfo>, }, LocalVariableTypeTable { local_variable_type_table_length: u16, local_variable_table: Vec<LocalVariableTypeTableInfo>, }, Deprecated, RuntimeVisibleAnnotations { num_annotations: u16, annotations: Vec<AnnotationInfo>, }, RuntimeInvisibleAnnotations { num_annotations: u16, annotations: Vec<AnnotationInfo>, }, RuntimeVisibleParameterAnnotations { num_parameters: u8, parameter_annotations: Vec<ParameterAnnotationInfo>, }, RuntimeInvisibleParameterAnnotations { num_parameters: u8, parameter_annotations: Vec<ParameterAnnotationInfo>, }, RuntimeVisibleTypeAnnotations { num_parameters: u16, annotations: Vec<TypeAnnotation>, }, RuntimeInvisibleTypeAnnotations { num_parameters: u16, annotations: Vec<TypeAnnotation>, }, AnnotationDefault { default_value: AnnotationElementValueInfo, }, BootstrapMethods { num_bootstrap_methods: u16, bootstrap_methods: Vec<BootstrapMethod>, }, MethodParameters { parameters_count: u8, parameters: Vec<MethodParameter>, }, Module {
Show 13 fields module_name_index: u16, module_flags: u16, module_version_index: u16, requires_count: u16, requires: Vec<ModuleRequires>, exports_count: u16, exports: Vec<ModuleExports>, opens_count: u16, opens: Vec<ModuleOpens>, uses_count: u16, uses_index: Vec<u16>, provides_count: u16, provides: Vec<ModuleProvides>,
}, ModulePackages { package_count: u16, package_index: Vec<u16>, }, ModuleMainClass { main_class_index: u16, }, NestHost { host_class_index: u16, }, NestMembers { number_of_classes: u16, classes: Vec<u16>, }, Record { components_count: u16, components: Vec<RecordComponentInfo>, }, PermittedSubclasses { number_of_classes: u16, classes: Vec<u16>, },
}

Variants§

§

Custom(Vec<u8>)

§

ConstantValue

Fields

§constantvalue_index: u16
§

Code

Fields

§max_stack: u16
§max_locals: u16
§code_length: u32
§code: Vec<u8>
§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
§

EnclosingMethod

Fields

§class_index: u16
§method_index: u16
§

Synthetic

§

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

LocalVariableTable

Fields

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

LocalVariableTypeTable

Fields

§local_variable_type_table_length: u16
§local_variable_table: Vec<LocalVariableTypeTableInfo>
§

Deprecated

§

RuntimeVisibleAnnotations

Fields

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

RuntimeInvisibleAnnotations

Fields

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

RuntimeVisibleParameterAnnotations

Fields

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

RuntimeInvisibleParameterAnnotations

Fields

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

RuntimeVisibleTypeAnnotations

Fields

§num_parameters: u16
§annotations: Vec<TypeAnnotation>
§

RuntimeInvisibleTypeAnnotations

Fields

§num_parameters: u16
§annotations: Vec<TypeAnnotation>
§

AnnotationDefault

Fields

§

BootstrapMethods

Fields

§num_bootstrap_methods: u16
§bootstrap_methods: Vec<BootstrapMethod>
§

MethodParameters

Fields

§parameters_count: u8
§parameters: Vec<MethodParameter>
§

Module

Fields

§module_name_index: u16
§module_flags: u16
§module_version_index: u16
§requires_count: u16
§exports_count: u16
§opens_count: u16
§uses_count: u16
§uses_index: Vec<u16>
§provides_count: u16
§

ModulePackages

Fields

§package_count: u16
§package_index: Vec<u16>
§

ModuleMainClass

Fields

§main_class_index: u16
§

NestHost

Fields

§host_class_index: u16
§

NestMembers

Fields

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

Record

Fields

§components_count: u16
§

PermittedSubclasses

Fields

§number_of_classes: u16
§classes: Vec<u16>

Trait Implementations§

Source§

impl Clone for Attribute

Source§

fn clone(&self) -> Attribute

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 Attribute

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

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
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,

Source§

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>,

Source§

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>,

Source§

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.