pub enum PrimitiveType {
Boolean,
Byte,
Char,
Short,
Int,
Float,
Long,
Double,
}Expand description
A JVM primitive type from a field or method descriptor.
Variants§
Boolean
The Z descriptor type.
Byte
The B descriptor type.
Char
The C descriptor type.
Short
The S descriptor type.
Int
The I descriptor type.
Float
The F descriptor type.
Long
The J descriptor type.
Double
The D descriptor type.
Implementations§
Source§impl PrimitiveType
impl PrimitiveType
Sourcepub const fn slot_width(self) -> u8
pub const fn slot_width(self) -> u8
Returns the number of JVM local-variable or operand-stack slots used.
long and double use two slots; every other primitive uses one.
Trait Implementations§
Source§impl Clone for PrimitiveType
impl Clone for PrimitiveType
impl Copy for PrimitiveType
Source§impl Debug for PrimitiveType
impl Debug for PrimitiveType
impl Eq for PrimitiveType
Source§impl Hash for PrimitiveType
impl Hash for PrimitiveType
Source§impl PartialEq for PrimitiveType
impl PartialEq for PrimitiveType
impl StructuralPartialEq for PrimitiveType
Auto Trait Implementations§
impl Forget for PrimitiveType
impl Freeze for PrimitiveType
impl Move for PrimitiveType
impl RefUnwindSafe for PrimitiveType
impl Send for PrimitiveType
impl Sync for PrimitiveType
impl Unpin for PrimitiveType
impl UnsafeUnpin for PrimitiveType
impl UnwindSafe for PrimitiveType
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.