pub struct MethodParameter {
pub name_index: Option<CpIndex>,
pub access_flags: MethodParameterAccessFlags,
}Expand description
One entry of a MethodParameters attribute.
See JVMS §4.7.24.
Fields§
§name_index: Option<CpIndex>§access_flags: MethodParameterAccessFlagsImplementations§
Source§impl MethodParameter
impl MethodParameter
Sourcepub fn try_read(
constant_pool: &ConstantPool<'_>,
cursor: &mut Cursor<'_>,
) -> Result<Self>
pub fn try_read( constant_pool: &ConstantPool<'_>, cursor: &mut Cursor<'_>, ) -> Result<Self>
Reads one entry; an unnamed parameter has a name index of 0.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MethodParameter
impl RefUnwindSafe for MethodParameter
impl Send for MethodParameter
impl Sync for MethodParameter
impl Unpin for MethodParameter
impl UnsafeUnpin for MethodParameter
impl UnwindSafe for MethodParameter
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