pub enum TypeAnnotationTarget {
TypeParameter {
type_parameter_index: u8,
},
SuperType {
supertype_index: u16,
},
TypeParameterBound {
type_parameter_index: u8,
bound_index: u8,
},
Empty,
FormalParameter {
formal_parameter_index: u8,
},
Throws {
throws_type_index: u16,
},
LocalVar {
table: Vec<LocalVarTarget>,
},
Catch {
exception_table_index: u16,
},
Offset {
offset: u16,
},
TypeArgument {
offset: u16,
type_argument_index: u8,
},
}Expand description
What a TypeAnnotation is attached to.
See JVMS §4.7.20.1.
Variants§
TypeParameter
SuperType
TypeParameterBound
Empty
FormalParameter
Throws
LocalVar
Fields
§
table: Vec<LocalVarTarget>Catch
Offset
TypeArgument
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeAnnotationTarget
impl RefUnwindSafe for TypeAnnotationTarget
impl Send for TypeAnnotationTarget
impl Sync for TypeAnnotationTarget
impl Unpin for TypeAnnotationTarget
impl UnsafeUnpin for TypeAnnotationTarget
impl UnwindSafe for TypeAnnotationTarget
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