pub struct EnclosingMethodAttribute {
pub class_index: u16,
pub method_index: u16,
}Expand description
The EnclosingMethod payload; a zero method index denotes no specific method.
Fields§
§class_index: u16Enclosing class index.
method_index: u16Name-and-type index, or zero.
Implementations§
Source§impl EnclosingMethodAttribute
impl EnclosingMethodAttribute
Sourcepub fn decode(reader: &mut ByteReader<'_>) -> Result<Self, AttributeError>
pub fn decode(reader: &mut ByteReader<'_>) -> Result<Self, AttributeError>
Decode the two unresolved indices.
Trait Implementations§
Source§impl Clone for EnclosingMethodAttribute
impl Clone for EnclosingMethodAttribute
Source§fn clone(&self) -> EnclosingMethodAttribute
fn clone(&self) -> EnclosingMethodAttribute
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 moreimpl Copy for EnclosingMethodAttribute
Source§impl Debug for EnclosingMethodAttribute
impl Debug for EnclosingMethodAttribute
impl Eq for EnclosingMethodAttribute
Source§impl PartialEq for EnclosingMethodAttribute
impl PartialEq for EnclosingMethodAttribute
impl StructuralPartialEq for EnclosingMethodAttribute
Auto Trait Implementations§
impl Freeze for EnclosingMethodAttribute
impl RefUnwindSafe for EnclosingMethodAttribute
impl Send for EnclosingMethodAttribute
impl Sync for EnclosingMethodAttribute
impl Unpin for EnclosingMethodAttribute
impl UnsafeUnpin for EnclosingMethodAttribute
impl UnwindSafe for EnclosingMethodAttribute
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