Enum noak::writer::cpool::Item

source ·
pub enum Item {
Show 17 variants Class(Class), FieldRef(FieldRef), MethodRef(MethodRef), InterfaceMethodRef(InterfaceMethodRef), String(String), Integer(Integer), Long(Long), Float(Float), Double(Double), NameAndType(NameAndType), Utf8(Utf8), MethodHandle(MethodHandle), MethodType(MethodType), Dynamic(Dynamic), InvokeDynamic(InvokeDynamic), Module(Module), Package(Package),
}

Variants§

§

Class(Class)

§

FieldRef(FieldRef)

§

MethodRef(MethodRef)

§

InterfaceMethodRef(InterfaceMethodRef)

§

String(String)

§

Integer(Integer)

§

Long(Long)

§

Float(Float)

§

Double(Double)

§

NameAndType(NameAndType)

§

Utf8(Utf8)

§

MethodHandle(MethodHandle)

§

MethodType(MethodType)

§

Dynamic(Dynamic)

§

InvokeDynamic(InvokeDynamic)

§

Module(Module)

§

Package(Package)

Trait Implementations§

source§

impl Clone for Item

source§

fn clone(&self) -> Item

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 Item

source§

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

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

impl From<Class> for Item

source§

fn from(item: Class) -> Item

Converts to this type from the input type.
source§

impl From<Double> for Item

source§

fn from(item: Double) -> Item

Converts to this type from the input type.
source§

impl From<Dynamic> for Item

source§

fn from(item: Dynamic) -> Item

Converts to this type from the input type.
source§

impl From<FieldRef> for Item

source§

fn from(item: FieldRef) -> Item

Converts to this type from the input type.
source§

impl From<Float> for Item

source§

fn from(item: Float) -> Item

Converts to this type from the input type.
source§

impl From<Integer> for Item

source§

fn from(item: Integer) -> Item

Converts to this type from the input type.
source§

impl From<InterfaceMethodRef> for Item

source§

fn from(item: InterfaceMethodRef) -> Item

Converts to this type from the input type.
source§

impl From<InvokeDynamic> for Item

source§

fn from(item: InvokeDynamic) -> Item

Converts to this type from the input type.
source§

impl From<Long> for Item

source§

fn from(item: Long) -> Item

Converts to this type from the input type.
source§

impl From<MethodHandle> for Item

source§

fn from(item: MethodHandle) -> Item

Converts to this type from the input type.
source§

impl From<MethodRef> for Item

source§

fn from(item: MethodRef) -> Item

Converts to this type from the input type.
source§

impl From<MethodType> for Item

source§

fn from(item: MethodType) -> Item

Converts to this type from the input type.
source§

impl From<Module> for Item

source§

fn from(item: Module) -> Item

Converts to this type from the input type.
source§

impl From<NameAndType> for Item

source§

fn from(item: NameAndType) -> Item

Converts to this type from the input type.
source§

impl From<Package> for Item

source§

fn from(item: Package) -> Item

Converts to this type from the input type.
source§

impl From<String> for Item

source§

fn from(item: String) -> Item

Converts to this type from the input type.
source§

impl From<Utf8> for Item

source§

fn from(item: Utf8) -> Item

Converts to this type from the input type.
source§

impl Hash for Item

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<Name, Descriptor> Insertable<Item> for (Name, Descriptor)
where Name: Insertable<Utf8>, Descriptor: Insertable<Utf8>,

source§

impl<I: Insertable<Class>> Insertable<Item> for ClassInserter<I>

source§

impl<I: Insertable<NameAndType>> Insertable<Item> for DynamicInserter<I>

source§

impl<Class, Nat> Insertable<Item> for FieldRefInserter<Class, Nat>
where Class: Insertable<Class>, Nat: Insertable<NameAndType>,

source§

impl Insertable<Item> for Index<Item>

source§

impl<Class, Nat> Insertable<Item> for InterfaceMethodRefInserter<Class, Nat>
where Class: Insertable<Class>, Nat: Insertable<NameAndType>,

source§

impl<I: Insertable<NameAndType>> Insertable<Item> for InvokeDynamicInserter<I>

source§

impl<I: Insertable<Item>> Insertable<Item> for MethodHandleInserter<I>

source§

impl<Class, Nat> Insertable<Item> for MethodRefInserter<Class, Nat>
where Class: Insertable<Class>, Nat: Insertable<NameAndType>,

source§

impl<I: Insertable<Utf8>> Insertable<Item> for MethodTypeInserter<I>

source§

impl<I: Insertable<Utf8>> Insertable<Item> for ModuleInserter<I>

source§

impl<I: Insertable<Utf8>> Insertable<Item> for PackageInserter<I>

source§

impl<I: Insertable<String>> Insertable<Item> for StringInserter<I>

source§

impl<I: Insertable<Utf8>> Insertable<Item> for Utf8Inserter<I>

source§

impl Insertable<Item> for f32

source§

impl Insertable<Item> for f64

source§

impl Insertable<Item> for i32

source§

impl Insertable<Item> for i64

source§

impl PartialEq for Item

source§

fn eq(&self, other: &Item) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for Item

source§

impl StructuralPartialEq for Item

Auto Trait Implementations§

§

impl Freeze for Item

§

impl RefUnwindSafe for Item

§

impl Send for Item

§

impl Sync for Item

§

impl Unpin for Item

§

impl UnwindSafe for Item

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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,

§

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>,

§

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>,

§

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.