pub enum TargetInfo {
TypeParameter {
type_parameter_index: u8,
},
Supertype {
supertype_index: u16,
},
TypeParameterBound {
type_parameter_index: u8,
bound_index: u8,
},
Empty,
MethodFormalParameter {
formal_parameter_index: u8,
},
Throws {
throws_type_index: u16,
},
LocalVar {
localvar_table: Vec<LocalVarEntry>,
},
Catch {
exception_table_index: u16,
},
Offset {
offset: u16,
},
TypeArgument {
offset: u16,
type_argument_index: u8,
},
}Expand description
Target information for a type annotation, identifying where the type is used.
Variants§
TypeParameter
Supertype
TypeParameterBound
Empty
MethodFormalParameter
Throws
LocalVar
Fields
§
localvar_table: Vec<LocalVarEntry>Catch
Offset
TypeArgument
Trait Implementations§
Source§impl Clone for TargetInfo
impl Clone for TargetInfo
Source§fn clone(&self) -> TargetInfo
fn clone(&self) -> TargetInfo
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 TargetInfo
impl Debug for TargetInfo
impl Eq for TargetInfo
Source§impl PartialEq for TargetInfo
impl PartialEq for TargetInfo
Source§fn eq(&self, other: &TargetInfo) -> bool
fn eq(&self, other: &TargetInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TargetInfo
Auto Trait Implementations§
impl Freeze for TargetInfo
impl RefUnwindSafe for TargetInfo
impl Send for TargetInfo
impl Sync for TargetInfo
impl Unpin for TargetInfo
impl UnsafeUnpin for TargetInfo
impl UnwindSafe for TargetInfo
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