pub struct AnnotationsAttribute {
pub annotations: Vec<Annotation>,
}Expand description
An ordered RuntimeVisibleAnnotations or RuntimeInvisibleAnnotations payload.
Fields§
§annotations: Vec<Annotation>Annotations in declaration order.
Implementations§
Source§impl AnnotationsAttribute
impl AnnotationsAttribute
Sourcepub fn decode(
reader: &mut ByteReader<'_>,
nesting_budget: usize,
) -> Result<Self, AttributeError>
pub fn decode( reader: &mut ByteReader<'_>, nesting_budget: usize, ) -> Result<Self, AttributeError>
Decode a declaration-annotation payload under the supplied nesting budget.
Trait Implementations§
Source§impl Clone for AnnotationsAttribute
impl Clone for AnnotationsAttribute
Source§fn clone(&self) -> AnnotationsAttribute
fn clone(&self) -> AnnotationsAttribute
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 AnnotationsAttribute
impl Debug for AnnotationsAttribute
impl Eq for AnnotationsAttribute
Source§impl PartialEq for AnnotationsAttribute
impl PartialEq for AnnotationsAttribute
impl StructuralPartialEq for AnnotationsAttribute
Auto Trait Implementations§
impl Freeze for AnnotationsAttribute
impl RefUnwindSafe for AnnotationsAttribute
impl Send for AnnotationsAttribute
impl Sync for AnnotationsAttribute
impl Unpin for AnnotationsAttribute
impl UnsafeUnpin for AnnotationsAttribute
impl UnwindSafe for AnnotationsAttribute
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