pub enum ReferenceType {
Exact(ClassName),
Array(TypeDescriptor),
Null,
Unknown,
}Expand description
Inferred state for a JVM reference value.
Self::Unknown is reserved for values whose class bytes do not supply
enough information to establish a reference type.
Variants§
Exact(ClassName)
A reference whose bytecode supplies this static class type.
This is not a claim about the object’s exact runtime subclass. For
example, an Object-returning method still has this static type when
its implementation happens to return a String.
Array(TypeDescriptor)
A reference known to be an array of the described type.
Null
The JVM null value.
Unknown
A reference whose precise type could not be preserved.
Implementations§
Trait Implementations§
Source§impl Clone for ReferenceType
impl Clone for ReferenceType
Source§impl Debug for ReferenceType
impl Debug for ReferenceType
impl Eq for ReferenceType
Source§impl Hash for ReferenceType
impl Hash for ReferenceType
Source§impl PartialEq for ReferenceType
impl PartialEq for ReferenceType
impl StructuralPartialEq for ReferenceType
Auto Trait Implementations§
impl Forget for ReferenceType
impl Freeze for ReferenceType
impl Move for ReferenceType
impl RefUnwindSafe for ReferenceType
impl Send for ReferenceType
impl Sync for ReferenceType
impl Unpin for ReferenceType
impl UnsafeUnpin for ReferenceType
impl UnwindSafe for ReferenceType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.