pub enum Attribute {
Show 27 variants
AnnotationDefault(ElementValue),
BootstrapMethods(Vec<BootstrapMethod>),
Code {
max_stack: u16,
max_locals: u16,
instructions: Vec<Option<Instruction>>,
exceptions: Vec<Exception>,
attributes: Vec<Attribute>,
},
ConstantValue(u16),
Deprecated,
EnclosingMethod {
class_index: u16,
method_index: u16,
},
Exceptions(Vec<u16>),
InnerClasses(Vec<InnerClass>),
LineNumberTable(Vec<LineNumber>),
LocalVariableTable(Vec<LocalVariable>),
LocalVariableTypeTable(Vec<LocalVariableType>),
MethodParameters(Vec<MethodParameter>),
Module {
name: u16,
flags: AccessFlags,
version: u16,
requires: Vec<Requirement>,
exports: Vec<Export>,
opens: Vec<Opening>,
uses: Vec<u16>,
provides: Vec<Provider>,
},
ModuleMainClass(u16),
ModulePackages(Vec<u16>),
RuntimeVisibleAnnotations(Vec<Annotation>),
RuntimeInvisibleAnnotations(Vec<Annotation>),
RuntimeVisibleParameterAnnotations(Vec<Vec<Annotation>>),
RuntimeInvisibleParameterAnnotations(Vec<Vec<Annotation>>),
RuntimeVisibleTypeAnnotations(Vec<TypeAnnotation>),
RuntimeInvisibleTypeAnnotations(Vec<TypeAnnotation>),
Signature(u16),
Synthetic,
SourceFile(u16),
SourceDebugExtension(String),
StackMapTable(Vec<StackMapFrame>),
Unknown(u16, Vec<u8>),
}
Expand description
An Attribute.
Variants§
AnnotationDefault(ElementValue)
BootstrapMethods(Vec<BootstrapMethod>)
Code
Fields
§
instructions: Vec<Option<Instruction>>
ConstantValue(u16)
Deprecated
EnclosingMethod
Exceptions(Vec<u16>)
InnerClasses(Vec<InnerClass>)
LineNumberTable(Vec<LineNumber>)
LocalVariableTable(Vec<LocalVariable>)
LocalVariableTypeTable(Vec<LocalVariableType>)
MethodParameters(Vec<MethodParameter>)
Module
ModuleMainClass(u16)
ModulePackages(Vec<u16>)
RuntimeVisibleAnnotations(Vec<Annotation>)
RuntimeInvisibleAnnotations(Vec<Annotation>)
RuntimeVisibleParameterAnnotations(Vec<Vec<Annotation>>)
RuntimeInvisibleParameterAnnotations(Vec<Vec<Annotation>>)
RuntimeVisibleTypeAnnotations(Vec<TypeAnnotation>)
RuntimeInvisibleTypeAnnotations(Vec<TypeAnnotation>)
Signature(u16)
Synthetic
SourceFile(u16)
SourceDebugExtension(String)
StackMapTable(Vec<StackMapFrame>)
Unknown(u16, Vec<u8>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more