Enum TargetType

Source
pub enum TargetType {
Show 22 variants TypeParameterClass(u8), TypeParameterMethod(u8), SuperType(u16), TypeParameterBoundClass { type_parameter: u8, bound_index: u8, }, TypeParameterBoundMethod { type_parameter: u8, bound_index: u8, }, EmptyField, EmptyReturn, EmptyReceiver, FormalParameter(u8), Throws(u16), LocalVariable(Vec<LocalVariableTarget>), ResourceVariable(Vec<LocalVariableTarget>), Catch(u16), OffsetInstanceOf(u16), OffsetNew(u16), OffsetNewRef(u16), OffsetRef(u16), TypeArgumentCast { offset: u16, type_argument: u8, }, TypeArgumentMethod { offset: u16, type_argument: u8, }, TypeArgumentConstructor { offset: u16, type_argument: u8, }, TypeArgumentNewRef { offset: u16, type_argument: u8, }, TypeArgumentRef { offset: u16, type_argument: u8, },
}

Variants§

§

TypeParameterClass(u8)

Indicates that an annotation is present on the type parameter of a class. The index of the type parameter.

§

TypeParameterMethod(u8)

Indicates that an annotation is present on the type parameter of a method. The index of the type parameter.

§

SuperType(u16)

Indicates that an annotation is present on the implements or extends clause of a class. The index of the super type, 0xFFFF is the extends clause.

§

TypeParameterBoundClass

Indicates that an annotation is present on a bound of a type parameter of a class.

Fields

§type_parameter: u8

The index of the type parameter.

§bound_index: u8

The index of the bound.

§

TypeParameterBoundMethod

Indicates that an annotation is present on a bound of a type parameter of a method.

Fields

§type_parameter: u8

The index of the type parameter.

§bound_index: u8

The index of the bound.

§

EmptyField

Indicates that an annotation is present on the type of a field declaration.

§

EmptyReturn

Indicates that an annotation is present on the return type of a method or the type of a newly constructed object.

§

EmptyReceiver

Indicates that an annotation is present on the receiver type of a method.

§

FormalParameter(u8)

Indicates that an annotation is present on the type in a formal parameter declaration. The index of the formal parameter.

§

Throws(u16)

Indicates that an annotation is present on the type in a throws clause. The index into the table of the Exceptions attribute of the method.

§

LocalVariable(Vec<LocalVariableTarget>)

Indicates that an annotation is present on the type in a local variable declaration.

§

ResourceVariable(Vec<LocalVariableTarget>)

Indicates that an annotation is present on the type in a local variable declaration.

§

Catch(u16)

Indicates that an annotation is present on the type in an exception parameter declaration.

§

OffsetInstanceOf(u16)

Indicates that an annotation is present on the type in an instanceof expression.

§

OffsetNew(u16)

Indicates that an annotation is present on the type in a new expression.

§

OffsetNewRef(u16)

Indicates that an annotation is present on the type before the ::new of a method reference expression.

§

OffsetRef(u16)

Indicates that an annotation is present on the type before the ::name of a method reference expression.

§

TypeArgumentCast

Indicates that an annotation is present on the type of a cast expression.

Fields

§offset: u16
§type_argument: u8
§

TypeArgumentMethod

Indicates that an annotation is present on the type of a method call expression.

Fields

§offset: u16
§type_argument: u8
§

TypeArgumentConstructor

Indicates that an annotation is present on the type of a new expression.

Fields

§offset: u16
§type_argument: u8
§

TypeArgumentNewRef

Indicates that an annotation is present on the type of a ::new expression.

Fields

§offset: u16
§type_argument: u8
§

TypeArgumentRef

Indicates that an annotation is present on the type of a ::name expression.

Fields

§offset: u16
§type_argument: u8

Trait Implementations§

Source§

impl Debug for TargetType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.