pub enum PrimitiveArrayType {
Boolean,
Char,
Float,
Double,
Byte,
Short,
Int,
Long,
}
Variants§
Implementations§
Source§impl PrimitiveArrayType
impl PrimitiveArrayType
pub fn java_type_name(&self) -> &'static str
Sourcepub fn type_code(&self) -> u8
pub fn type_code(&self) -> u8
Returns the hprof type code for the array type
See https://github.com/openjdk/jdk/blob/08822b4e0526fe001c39fe08e241b849eddf481d/src/hotspot/share/services/heapDumper.cpp#L279
Sourcepub fn from_type_code(type_byte: u8) -> Option<PrimitiveArrayType>
pub fn from_type_code(type_byte: u8) -> Option<PrimitiveArrayType>
Returns the type for the type code, or None if the code is unknown.
See https://github.com/openjdk/jdk/blob/08822b4e0526fe001c39fe08e241b849eddf481d/src/hotspot/share/services/heapDumper.cpp#L279
Trait Implementations§
Source§impl Clone for PrimitiveArrayType
impl Clone for PrimitiveArrayType
Source§fn clone(&self) -> PrimitiveArrayType
fn clone(&self) -> PrimitiveArrayType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PrimitiveArrayType
impl Debug for PrimitiveArrayType
Source§impl Hash for PrimitiveArrayType
impl Hash for PrimitiveArrayType
Source§impl PartialEq for PrimitiveArrayType
impl PartialEq for PrimitiveArrayType
impl Copy for PrimitiveArrayType
impl Eq for PrimitiveArrayType
impl StructuralPartialEq for PrimitiveArrayType
Auto Trait Implementations§
impl Freeze for PrimitiveArrayType
impl RefUnwindSafe for PrimitiveArrayType
impl Send for PrimitiveArrayType
impl Sync for PrimitiveArrayType
impl Unpin for PrimitiveArrayType
impl UnwindSafe for PrimitiveArrayType
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