pub enum TypeAnnotationTarget {
TypeParameter {
index: u8,
},
Supertype {
index: u16,
},
TypeParameterBound {
parameter_index: u8,
bound_index: u8,
},
Empty,
FormalParameter {
index: u8,
},
Throws {
index: u16,
},
LocalVariable {
table: Vec<LocalVariableTarget>,
},
Catch {
exception_table_index: u16,
},
Offset {
offset: u16,
},
TypeArgument {
offset: u16,
argument_index: u8,
},
}Expand description
The complete target-specific union from JVMS target_info.
Variants§
TypeParameter
Class or method type parameter.
Supertype
Supertype, including 65535 for the superclass.
TypeParameterBound
Bound of a class or method type parameter.
Empty
Field, return type, or receiver target, whose union member is empty.
FormalParameter
Formal method parameter.
Throws
throws clause entry.
LocalVariable
Local-variable table target, preserving table order and overlaps.
Fields
§
table: Vec<LocalVariableTarget>Ordered local-variable target table.
Catch
Exception-table entry.
Offset
instanceof, new, method reference, or constructor reference instruction.
TypeArgument
Cast/invocation/reference type argument.
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 (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 TypeAnnotationTarget
impl Debug for TypeAnnotationTarget
impl Eq for TypeAnnotationTarget
Source§impl PartialEq for TypeAnnotationTarget
impl PartialEq for TypeAnnotationTarget
impl StructuralPartialEq for TypeAnnotationTarget
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