pub enum ConstantEntry {
Show 17 variants Class(ConstantClass), Field(ConstantField), Method(ConstantMethod), InterfaceMethod(ConstantInterfaceMethod), String(ConstantString), Integer(ConstantInteger), Float(ConstantFloat), Long(ConstantLong), Double(ConstantDouble), NameAndType(ConstantNameAndType), Utf8(ConstantUtf8), MethodHandle(ConstantMethodHandle), MethodType(ConstantMethodType), Dynamic(ConstantDynamic), InvokeDynamic(ConstantInvokeDynamic), Package(ConstantPackage), Reserved,
}

Variants§

Implementations§

source§

impl ConstantEntry

source

pub fn as_class_mut(&mut self) -> Option<&mut ConstantClass>

Optionally returns mutable references to the inner fields if this is a ConstantEntry::Class, otherwise None

source

pub fn as_class(&self) -> Option<&ConstantClass>

Optionally returns references to the inner fields if this is a ConstantEntry::Class, otherwise None

source

pub fn into_class(self) -> Result<ConstantClass, Self>

Returns the inner fields if this is a ConstantEntry::Class, otherwise returns back the enum in the Err case of the result

source

pub fn as_field_mut(&mut self) -> Option<&mut ConstantField>

Optionally returns mutable references to the inner fields if this is a ConstantEntry::Field, otherwise None

source

pub fn as_field(&self) -> Option<&ConstantField>

Optionally returns references to the inner fields if this is a ConstantEntry::Field, otherwise None

source

pub fn into_field(self) -> Result<ConstantField, Self>

Returns the inner fields if this is a ConstantEntry::Field, otherwise returns back the enum in the Err case of the result

source

pub fn as_method_mut(&mut self) -> Option<&mut ConstantMethod>

Optionally returns mutable references to the inner fields if this is a ConstantEntry::Method, otherwise None

source

pub fn as_method(&self) -> Option<&ConstantMethod>

Optionally returns references to the inner fields if this is a ConstantEntry::Method, otherwise None

source

pub fn into_method(self) -> Result<ConstantMethod, Self>

Returns the inner fields if this is a ConstantEntry::Method, otherwise returns back the enum in the Err case of the result

source

pub fn as_interface_method_mut( &mut self ) -> Option<&mut ConstantInterfaceMethod>

Optionally returns mutable references to the inner fields if this is a ConstantEntry::InterfaceMethod, otherwise None

source

pub fn as_interface_method(&self) -> Option<&ConstantInterfaceMethod>

Optionally returns references to the inner fields if this is a ConstantEntry::InterfaceMethod, otherwise None

source

pub fn into_interface_method(self) -> Result<ConstantInterfaceMethod, Self>

Returns the inner fields if this is a ConstantEntry::InterfaceMethod, otherwise returns back the enum in the Err case of the result

source

pub fn as_string_mut(&mut self) -> Option<&mut ConstantString>

Optionally returns mutable references to the inner fields if this is a ConstantEntry::String, otherwise None

source

pub fn as_string(&self) -> Option<&ConstantString>

Optionally returns references to the inner fields if this is a ConstantEntry::String, otherwise None

source

pub fn into_string(self) -> Result<ConstantString, Self>

Returns the inner fields if this is a ConstantEntry::String, otherwise returns back the enum in the Err case of the result

source

pub fn as_integer_mut(&mut self) -> Option<&mut ConstantInteger>

Optionally returns mutable references to the inner fields if this is a ConstantEntry::Integer, otherwise None

source

pub fn as_integer(&self) -> Option<&ConstantInteger>

Optionally returns references to the inner fields if this is a ConstantEntry::Integer, otherwise None

source

pub fn into_integer(self) -> Result<ConstantInteger, Self>

Returns the inner fields if this is a ConstantEntry::Integer, otherwise returns back the enum in the Err case of the result

source

pub fn as_float_mut(&mut self) -> Option<&mut ConstantFloat>

Optionally returns mutable references to the inner fields if this is a ConstantEntry::Float, otherwise None

source

pub fn as_float(&self) -> Option<&ConstantFloat>

Optionally returns references to the inner fields if this is a ConstantEntry::Float, otherwise None

source

pub fn into_float(self) -> Result<ConstantFloat, Self>

Returns the inner fields if this is a ConstantEntry::Float, otherwise returns back the enum in the Err case of the result

source

pub fn as_long_mut(&mut self) -> Option<&mut ConstantLong>

Optionally returns mutable references to the inner fields if this is a ConstantEntry::Long, otherwise None

source

pub fn as_long(&self) -> Option<&ConstantLong>

Optionally returns references to the inner fields if this is a ConstantEntry::Long, otherwise None

source

pub fn into_long(self) -> Result<ConstantLong, Self>

Returns the inner fields if this is a ConstantEntry::Long, otherwise returns back the enum in the Err case of the result

source

pub fn as_double_mut(&mut self) -> Option<&mut ConstantDouble>

Optionally returns mutable references to the inner fields if this is a ConstantEntry::Double, otherwise None

source

pub fn as_double(&self) -> Option<&ConstantDouble>

Optionally returns references to the inner fields if this is a ConstantEntry::Double, otherwise None

source

pub fn into_double(self) -> Result<ConstantDouble, Self>

Returns the inner fields if this is a ConstantEntry::Double, otherwise returns back the enum in the Err case of the result

source

pub fn as_name_and_type_mut(&mut self) -> Option<&mut ConstantNameAndType>

Optionally returns mutable references to the inner fields if this is a ConstantEntry::NameAndType, otherwise None

source

pub fn as_name_and_type(&self) -> Option<&ConstantNameAndType>

Optionally returns references to the inner fields if this is a ConstantEntry::NameAndType, otherwise None

source

pub fn into_name_and_type(self) -> Result<ConstantNameAndType, Self>

Returns the inner fields if this is a ConstantEntry::NameAndType, otherwise returns back the enum in the Err case of the result

source

pub fn as_utf8_mut(&mut self) -> Option<&mut ConstantUtf8>

Optionally returns mutable references to the inner fields if this is a ConstantEntry::Utf8, otherwise None

source

pub fn as_utf8(&self) -> Option<&ConstantUtf8>

Optionally returns references to the inner fields if this is a ConstantEntry::Utf8, otherwise None

source

pub fn into_utf8(self) -> Result<ConstantUtf8, Self>

Returns the inner fields if this is a ConstantEntry::Utf8, otherwise returns back the enum in the Err case of the result

source

pub fn as_method_handle_mut(&mut self) -> Option<&mut ConstantMethodHandle>

Optionally returns mutable references to the inner fields if this is a ConstantEntry::MethodHandle, otherwise None

source

pub fn as_method_handle(&self) -> Option<&ConstantMethodHandle>

Optionally returns references to the inner fields if this is a ConstantEntry::MethodHandle, otherwise None

source

pub fn into_method_handle(self) -> Result<ConstantMethodHandle, Self>

Returns the inner fields if this is a ConstantEntry::MethodHandle, otherwise returns back the enum in the Err case of the result

source

pub fn as_method_type_mut(&mut self) -> Option<&mut ConstantMethodType>

Optionally returns mutable references to the inner fields if this is a ConstantEntry::MethodType, otherwise None

source

pub fn as_method_type(&self) -> Option<&ConstantMethodType>

Optionally returns references to the inner fields if this is a ConstantEntry::MethodType, otherwise None

source

pub fn into_method_type(self) -> Result<ConstantMethodType, Self>

Returns the inner fields if this is a ConstantEntry::MethodType, otherwise returns back the enum in the Err case of the result

source

pub fn as_dynamic_mut(&mut self) -> Option<&mut ConstantDynamic>

Optionally returns mutable references to the inner fields if this is a ConstantEntry::Dynamic, otherwise None

source

pub fn as_dynamic(&self) -> Option<&ConstantDynamic>

Optionally returns references to the inner fields if this is a ConstantEntry::Dynamic, otherwise None

source

pub fn into_dynamic(self) -> Result<ConstantDynamic, Self>

Returns the inner fields if this is a ConstantEntry::Dynamic, otherwise returns back the enum in the Err case of the result

source

pub fn as_invoke_dynamic_mut(&mut self) -> Option<&mut ConstantInvokeDynamic>

Optionally returns mutable references to the inner fields if this is a ConstantEntry::InvokeDynamic, otherwise None

source

pub fn as_invoke_dynamic(&self) -> Option<&ConstantInvokeDynamic>

Optionally returns references to the inner fields if this is a ConstantEntry::InvokeDynamic, otherwise None

source

pub fn into_invoke_dynamic(self) -> Result<ConstantInvokeDynamic, Self>

Returns the inner fields if this is a ConstantEntry::InvokeDynamic, otherwise returns back the enum in the Err case of the result

source

pub fn as_package_mut(&mut self) -> Option<&mut ConstantPackage>

Optionally returns mutable references to the inner fields if this is a ConstantEntry::Package, otherwise None

source

pub fn as_package(&self) -> Option<&ConstantPackage>

Optionally returns references to the inner fields if this is a ConstantEntry::Package, otherwise None

source

pub fn into_package(self) -> Result<ConstantPackage, Self>

Returns the inner fields if this is a ConstantEntry::Package, otherwise returns back the enum in the Err case of the result

source

pub fn is_reserved(&self) -> bool

Returns true if this is a ConstantEntry::Reserved, otherwise false

Trait Implementations§

source§

impl Clone for ConstantEntry

source§

fn clone(&self) -> ConstantEntry

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 ConstantEntry

source§

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

Formats the value using the given formatter. Read more
source§

impl Resolvable<ConstantEntry> for Addressed<ConstantEntry>

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.