#[repr(u8)]pub enum ElementKind {
Show 13 variants
Byte = 66,
Char = 67,
Double = 68,
Float = 70,
Int = 73,
Long = 74,
Short = 83,
Boolean = 90,
String = 115,
EnumClass = 101,
Class = 99,
AnnotationInterface = 64,
ArrayType = 91,
}Expand description
Tag identifying the type of an element value in an annotation.
https://docs.oracle.com/javase/specs/jvms/se25/html/jvms-4.html#jvms-4.7.16.1
Variants§
Byte = 66
Char = 67
Double = 68
Float = 70
Int = 73
Long = 74
Short = 83
Boolean = 90
String = 115
EnumClass = 101
Class = 99
AnnotationInterface = 64
ArrayType = 91
Trait Implementations§
Source§impl Clone for ElementKind
impl Clone for ElementKind
Source§impl Debug for ElementKind
impl Debug for ElementKind
impl Eq for ElementKind
Source§impl PartialEq for ElementKind
impl PartialEq for ElementKind
impl StructuralPartialEq for ElementKind
Source§impl TryFrom<u8> for ElementKind
impl TryFrom<u8> for ElementKind
Source§type Error = TryFromPrimitiveError<ElementKind>
type Error = TryFromPrimitiveError<ElementKind>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ElementKind
impl TryFromPrimitive for ElementKind
const NAME: &'static str = "ElementKind"
type Primitive = u8
type Error = TryFromPrimitiveError<ElementKind>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for ElementKind
impl RefUnwindSafe for ElementKind
impl Send for ElementKind
impl Sync for ElementKind
impl Unpin for ElementKind
impl UnsafeUnpin for ElementKind
impl UnwindSafe for ElementKind
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