pub struct TypeAnnotation {
pub target: TypeAnnotationTarget,
pub target_path: TypePath,
pub type_index: CpIndex,
pub element_value_pairs: Vec<ElementValuePair>,
}Expand description
An annotation attached to a use of a type.
See JVMS §4.7.20.
Fields§
§target: TypeAnnotationTarget§target_path: TypePath§type_index: CpIndex§element_value_pairs: Vec<ElementValuePair>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeAnnotation
impl RefUnwindSafe for TypeAnnotation
impl Send for TypeAnnotation
impl Sync for TypeAnnotation
impl Unpin for TypeAnnotation
impl UnsafeUnpin for TypeAnnotation
impl UnwindSafe for TypeAnnotation
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