pub enum TypeAnnotationTarget {
TypeParameter {
type_parameter_index: u8,
},
SuperType {
super_type_index: u16,
},
TypeParameterBound {
type_parameter_index: u8,
bound_index: u8,
},
Empty,
FormalParameter {
formal_parameter_index: u8,
},
Throws {
throws_type_index: u16,
},
LocalVar {
table: Vec<LocalVarTargetEntry>,
},
Catch {
exception_table_index: u16,
},
Offset {
offset: u16,
},
TypeArgument {
offset: u16,
type_argument_index: u8,
},
}Expand description
Target type for a type annotation (JVMS 4.7.20).
Variants§
TypeParameter
SuperType
TypeParameterBound
Empty
FormalParameter
Throws
LocalVar
Fields
§
table: Vec<LocalVarTargetEntry>Catch
Offset
TypeArgument
Trait Implementations§
Source§impl Clone for TypeAnnotationTarget
impl Clone for TypeAnnotationTarget
Source§fn clone(&self) -> TypeAnnotationTarget
fn clone(&self) -> TypeAnnotationTarget
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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