Enum classfmt::attribute::Attribute[][src]

pub enum Attribute {
    ConstantValue {
        attribute_name_index: u16,
        attribute_length: u32,
        constantvalue_index: u16,
    },
    Code {
        attribute_name_index: u16,
        attribute_length: u32,
        max_stack: u16,
        max_locals: u16,
        code_length: u32,
        code: Vec<Instruction>,
        exception_table_length: u16,
        exception_table: Vec<ExceptionTableEntry>,
        attributes_count: u16,
        attributes: Vec<Attribute>,
    },
    InnerClasses {
        attribute_name_index: u16,
        attribute_length: u32,
        number_of_classes: u16,
        classes: Vec<InnerClassAttribute>,
    },
    SourceFile {
        attribute_name_index: u16,
        attribute_length: u32,
        sourcefile_index: u16,
    },
    LineNumberTable {
        attribute_name_index: u16,
        attribute_length: u32,
        line_number_table_length: u16,
        line_number_table: Vec<LineNumberTableEntry>,
    },
    BootstrapMethods {
        attribute_name_index: u16,
        attribute_length: u32,
        num_bootstrap_methods: u16,
        bootstrap_methods: Vec<BootstrapMethodAttribute>,
    },
    MethodParameters {
        attribute_name_index: u16,
        attribute_length: u32,
        parameters_count: u8,
        parameters: Vec<ParameterAttribute>,
    },
    NestMembers {
        attribute_name_index: u16,
        attribute_length: u32,
        number_of_classes: u16,
        classes: Vec<u16>,
    },
}

Variants

ConstantValue
Show fields

Fields of ConstantValue

attribute_name_index: u16attribute_length: u32constantvalue_index: u16
Code
Show fields

Fields of Code

attribute_name_index: u16attribute_length: u32max_stack: u16max_locals: u16code_length: u32code: Vec<Instruction>exception_table_length: u16exception_table: Vec<ExceptionTableEntry>attributes_count: u16attributes: Vec<Attribute>
InnerClasses
Show fields

Fields of InnerClasses

attribute_name_index: u16attribute_length: u32number_of_classes: u16classes: Vec<InnerClassAttribute>
SourceFile
Show fields

Fields of SourceFile

attribute_name_index: u16attribute_length: u32sourcefile_index: u16
LineNumberTable
Show fields

Fields of LineNumberTable

attribute_name_index: u16attribute_length: u32line_number_table_length: u16line_number_table: Vec<LineNumberTableEntry>
BootstrapMethods
Show fields

Fields of BootstrapMethods

attribute_name_index: u16attribute_length: u32num_bootstrap_methods: u16bootstrap_methods: Vec<BootstrapMethodAttribute>
MethodParameters
Show fields

Fields of MethodParameters

attribute_name_index: u16attribute_length: u32parameters_count: u8parameters: Vec<ParameterAttribute>
NestMembers
Show fields

Fields of NestMembers

attribute_name_index: u16attribute_length: u32number_of_classes: u16classes: Vec<u16>

Trait Implementations

impl Debug for Attribute[src]

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

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

Performs the conversion.

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.

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

Performs the conversion.