Enum Type

Source
pub enum Type {
Show 24 variants ConstantValue { constant_value_index: U2, }, Code(Code), StackMapTable { entries: Vec<StackMapFrame>, }, Exceptions { exceptions: Vec<U2>, }, InnerClasses { classes: Vec<InnerClass>, }, EnclosingMethod { em: EnclosingMethod, }, Synthetic, Signature { signature_index: U2, }, SourceFile { source_file_index: U2, }, SourceDebugExtension { debug_extension: BytesRef, }, LineNumberTable { tables: Vec<LineNumber>, }, LocalVariableTable { tables: Vec<LocalVariable>, }, LocalVariableTypeTable { tables: Vec<LocalVariable>, }, Deprecated, RuntimeVisibleAnnotations { raw: BytesRef, annotations: Vec<AnnotationEntry>, }, RuntimeInvisibleAnnotations { raw: BytesRef, annotations: Vec<AnnotationEntry>, }, RuntimeVisibleParameterAnnotations { raw: BytesRef, annotations: Vec<AnnotationEntry>, }, RuntimeInvisibleParameterAnnotations { raw: BytesRef, annotations: Vec<AnnotationEntry>, }, RuntimeVisibleTypeAnnotations { raw: BytesRef, annotations: Vec<TypeAnnotation>, }, RuntimeInvisibleTypeAnnotations { raw: BytesRef, annotations: Vec<TypeAnnotation>, }, AnnotationDefault { raw: BytesRef, default_value: ElementValueType, }, BootstrapMethods { n: U2, methods: Vec<BootstrapMethod>, }, MethodParameters { parameters: Vec<MethodParameter>, }, Unknown,
}

Variants§

§

ConstantValue

Fields

§constant_value_index: U2
§

Code(Code)

§

StackMapTable

Fields

§

Exceptions

Fields

§exceptions: Vec<U2>
§

InnerClasses

Fields

§classes: Vec<InnerClass>
§

EnclosingMethod

§

Synthetic

§

Signature

Fields

§signature_index: U2
§

SourceFile

Fields

§source_file_index: U2
§

SourceDebugExtension

Fields

§debug_extension: BytesRef
§

LineNumberTable

Fields

§tables: Vec<LineNumber>
§

LocalVariableTable

Fields

§

LocalVariableTypeTable

Fields

§

Deprecated

§

RuntimeVisibleAnnotations

Fields

§annotations: Vec<AnnotationEntry>
§

RuntimeInvisibleAnnotations

Fields

§annotations: Vec<AnnotationEntry>
§

RuntimeVisibleParameterAnnotations

Fields

§annotations: Vec<AnnotationEntry>
§

RuntimeInvisibleParameterAnnotations

Fields

§annotations: Vec<AnnotationEntry>
§

RuntimeVisibleTypeAnnotations

Fields

§annotations: Vec<TypeAnnotation>
§

RuntimeInvisibleTypeAnnotations

Fields

§annotations: Vec<TypeAnnotation>
§

AnnotationDefault

Fields

§default_value: ElementValueType
§

BootstrapMethods

Fields

§n: U2
§

MethodParameters

Fields

§parameters: Vec<MethodParameter>
§

Unknown

Trait Implementations§

Source§

impl Clone for Type

Source§

fn clone(&self) -> Type

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Type

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Type

§

impl RefUnwindSafe for Type

§

impl Send for Type

§

impl Sync for Type

§

impl Unpin for Type

§

impl UnwindSafe for Type

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.