#[repr(u8)]pub enum ConstantKind {
Show 18 variants
Unused = 0,
Utf8 = 1,
Integer = 3,
Float = 4,
Long = 5,
Double = 6,
Class = 7,
String = 8,
FieldRef = 9,
MethodRef = 10,
InterfaceMethodRef = 11,
NameAndType = 12,
MethodHandle = 15,
MethodType = 16,
Dynamic = 17,
InvokeDynamic = 18,
Module = 19,
Package = 20,
}Expand description
Tag identifying the type of a constant pool entry.
https://docs.oracle.com/javase/specs/jvms/se25/html/jvms-4.html#jvms-4.4-210 Table 4.4-B. Constant pool tags (by tag)
Variants§
Unused = 0
Utf8 = 1
Integer = 3
Float = 4
Long = 5
Double = 6
Class = 7
String = 8
FieldRef = 9
MethodRef = 10
InterfaceMethodRef = 11
NameAndType = 12
MethodHandle = 15
MethodType = 16
Dynamic = 17
InvokeDynamic = 18
Module = 19
Package = 20
Trait Implementations§
Source§impl Clone for ConstantKind
impl Clone for ConstantKind
Source§impl Debug for ConstantKind
impl Debug for ConstantKind
Source§impl Display for ConstantKind
impl Display for ConstantKind
impl Eq for ConstantKind
Source§impl PartialEq for ConstantKind
impl PartialEq for ConstantKind
impl StructuralPartialEq for ConstantKind
Source§impl TryFrom<u8> for ConstantKind
impl TryFrom<u8> for ConstantKind
Source§type Error = TryFromPrimitiveError<ConstantKind>
type Error = TryFromPrimitiveError<ConstantKind>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ConstantKind
impl TryFromPrimitive for ConstantKind
const NAME: &'static str = "ConstantKind"
type Primitive = u8
type Error = TryFromPrimitiveError<ConstantKind>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for ConstantKind
impl RefUnwindSafe for ConstantKind
impl Send for ConstantKind
impl Sync for ConstantKind
impl Unpin for ConstantKind
impl UnsafeUnpin for ConstantKind
impl UnwindSafe for ConstantKind
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