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
Trait Implementations§
Source§impl Clone for MethodAttribute
impl Clone for MethodAttribute
Source§fn clone(&self) -> MethodAttribute
fn clone(&self) -> MethodAttribute
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MethodAttribute
impl Debug for MethodAttribute
impl Eq for MethodAttribute
Source§impl PartialEq for MethodAttribute
impl PartialEq for MethodAttribute
Source§fn eq(&self, other: &MethodAttribute) -> bool
fn eq(&self, other: &MethodAttribute) -> bool
Tests for
self and other values to be equal, and is used by ==.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