pub enum MethodAttribute {
Shared(SharedAttribute),
Code {
attr_name_idx: u16,
code_attr: CodeAttribute,
},
Exceptions {
attr_name_idx: u16,
exception_idx_table: Vec<u16>,
},
RuntimeVisibleParameterAnnotations {
attr_name_idx: u16,
annotations: Vec<ParameterAnnotations>,
},
RuntimeInvisibleParameterAnnotations {
attr_name_idx: u16,
annotations: Vec<ParameterAnnotations>,
},
AnnotationsDefault {
attr_name_idx: u16,
},
MethodParameters {
attr_name_idx: u16,
params: Vec<MethodParameterEntry>,
},
}Expand description
https://docs.oracle.com/javase/specs/jvms/se25/html/jvms-4.html#jvms-4.7
Variants§
Code
Exceptions
RuntimeVisibleParameterAnnotations
RuntimeInvisibleParameterAnnotations
AnnotationsDefault
MethodParameters
Implementations§
Source§impl MethodAttribute
impl MethodAttribute
pub fn kind(&self) -> AttributeKind
Trait Implementations§
Source§impl Clone for MethodAttribute
impl Clone for MethodAttribute
Source§impl Debug for MethodAttribute
impl Debug for MethodAttribute
impl Eq for MethodAttribute
Source§impl PartialEq for MethodAttribute
impl PartialEq for MethodAttribute
impl StructuralPartialEq for MethodAttribute
Auto Trait Implementations§
impl Freeze for MethodAttribute
impl RefUnwindSafe for MethodAttribute
impl Send for MethodAttribute
impl Sync for MethodAttribute
impl Unpin for MethodAttribute
impl UnsafeUnpin for MethodAttribute
impl UnwindSafe for MethodAttribute
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