pub struct IndexAttribute {
pub index: u16,
}Expand description
A standard attribute whose payload is exactly one unresolved constant-pool index.
This represents ConstantValue, Signature, SourceFile, NestHost, and
ModuleMainClass metadata.
Fields§
§index: u16The unresolved constant-pool index.
Implementations§
Source§impl IndexAttribute
impl IndexAttribute
Sourcepub fn decode(reader: &mut ByteReader<'_>) -> Result<Self, AttributeError>
pub fn decode(reader: &mut ByteReader<'_>) -> Result<Self, AttributeError>
Decode the exact two-byte payload.
Trait Implementations§
Source§impl Clone for IndexAttribute
impl Clone for IndexAttribute
Source§fn clone(&self) -> IndexAttribute
fn clone(&self) -> IndexAttribute
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 IndexAttribute
Source§impl Debug for IndexAttribute
impl Debug for IndexAttribute
impl Eq for IndexAttribute
Source§impl PartialEq for IndexAttribute
impl PartialEq for IndexAttribute
impl StructuralPartialEq for IndexAttribute
Auto Trait Implementations§
impl Freeze for IndexAttribute
impl RefUnwindSafe for IndexAttribute
impl Send for IndexAttribute
impl Sync for IndexAttribute
impl Unpin for IndexAttribute
impl UnsafeUnpin for IndexAttribute
impl UnwindSafe for IndexAttribute
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