pub struct AnnotationElement {
pub name_index: u16,
pub value: ElementValue,
pub origin: AttributeOrigin,
}Expand description
One annotation element-name/value pair, retained in classfile order.
Fields§
§name_index: u16Constant-pool index of the element name. Duplicate indices remain distinct entries.
value: ElementValueEncoded element value.
origin: AttributeOriginSource range of the complete pair.
Trait Implementations§
Source§impl Clone for AnnotationElement
impl Clone for AnnotationElement
Source§fn clone(&self) -> AnnotationElement
fn clone(&self) -> AnnotationElement
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 AnnotationElement
impl Debug for AnnotationElement
impl Eq for AnnotationElement
Source§impl PartialEq for AnnotationElement
impl PartialEq for AnnotationElement
impl StructuralPartialEq for AnnotationElement
Auto Trait Implementations§
impl Freeze for AnnotationElement
impl RefUnwindSafe for AnnotationElement
impl Send for AnnotationElement
impl Sync for AnnotationElement
impl Unpin for AnnotationElement
impl UnsafeUnpin for AnnotationElement
impl UnwindSafe for AnnotationElement
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