pub enum ConstantRef<'a> {
Show 18 variants
Unusable,
Utf8(&'a str),
Integer(i32),
Float(f32),
Long(i64),
Double(f64),
Class {
name: ConstantPoolIndex,
},
String {
value: ConstantPoolIndex,
},
FieldReference {
class: ConstantPoolIndex,
name_and_type: ConstantPoolIndex,
},
MethodReference {
class: ConstantPoolIndex,
name_and_type: ConstantPoolIndex,
},
InterfaceMethodReference {
class: ConstantPoolIndex,
name_and_type: ConstantPoolIndex,
},
NameAndType {
name: ConstantPoolIndex,
descriptor: ConstantPoolIndex,
},
MethodHandle {
reference_kind: u8,
reference: ConstantPoolIndex,
},
MethodType {
descriptor: ConstantPoolIndex,
},
Dynamic {
bootstrap_method: u16,
name_and_type: ConstantPoolIndex,
},
InvokeDynamic {
bootstrap_method: u16,
name_and_type: ConstantPoolIndex,
},
Module {
name: ConstantPoolIndex,
},
Package {
name: ConstantPoolIndex,
},
}Variants§
Unusable
Utf8(&'a str)
Integer(i32)
Float(f32)
Long(i64)
Double(f64)
Class
Fields
§
name: ConstantPoolIndexString
Fields
§
value: ConstantPoolIndexFieldReference
MethodReference
InterfaceMethodReference
NameAndType
MethodHandle
MethodType
Fields
§
descriptor: ConstantPoolIndexDynamic
InvokeDynamic
Module
Fields
§
name: ConstantPoolIndexPackage
Fields
§
name: ConstantPoolIndexTrait Implementations§
Source§impl<'a> Clone for ConstantRef<'a>
impl<'a> Clone for ConstantRef<'a>
Source§fn clone(&self) -> ConstantRef<'a>
fn clone(&self) -> ConstantRef<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ConstantRef<'a>
Source§impl<'a> Debug for ConstantRef<'a>
impl<'a> Debug for ConstantRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConstantRef<'a>
impl<'a> RefUnwindSafe for ConstantRef<'a>
impl<'a> Send for ConstantRef<'a>
impl<'a> Sync for ConstantRef<'a>
impl<'a> Unpin for ConstantRef<'a>
impl<'a> UnsafeUnpin for ConstantRef<'a>
impl<'a> UnwindSafe for ConstantRef<'a>
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