pub struct TypeAnnotationsAttribute {
pub annotations: Vec<TypeAnnotation>,
}Expand description
An ordered runtime-visible or runtime-invisible type-annotation payload.
Fields§
§annotations: Vec<TypeAnnotation>Type annotations in encoded order.
Implementations§
Source§impl TypeAnnotationsAttribute
impl TypeAnnotationsAttribute
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 all target unions and paths under the supplied nesting budget.
Trait Implementations§
Source§impl Clone for TypeAnnotationsAttribute
impl Clone for TypeAnnotationsAttribute
Source§fn clone(&self) -> TypeAnnotationsAttribute
fn clone(&self) -> TypeAnnotationsAttribute
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 TypeAnnotationsAttribute
impl Debug for TypeAnnotationsAttribute
impl Eq for TypeAnnotationsAttribute
Source§impl PartialEq for TypeAnnotationsAttribute
impl PartialEq for TypeAnnotationsAttribute
impl StructuralPartialEq for TypeAnnotationsAttribute
Auto Trait Implementations§
impl Freeze for TypeAnnotationsAttribute
impl RefUnwindSafe for TypeAnnotationsAttribute
impl Send for TypeAnnotationsAttribute
impl Sync for TypeAnnotationsAttribute
impl Unpin for TypeAnnotationsAttribute
impl UnsafeUnpin for TypeAnnotationsAttribute
impl UnwindSafe for TypeAnnotationsAttribute
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