pub struct PrimitiveArray<'a> { /* private fields */ }
Expand description
An array of JVM primitive types
(int
, long
, and so forth).
Implementations§
Source§impl<'a> PrimitiveArray<'a>
impl<'a> PrimitiveArray<'a>
pub fn obj_id(&self) -> Id
pub fn stack_trace_serial(&self) -> Serial
Sourcepub fn primitive_type(&self) -> PrimitiveArrayType
pub fn primitive_type(&self) -> PrimitiveArrayType
The type of primitive in the array.
Methods for accessing the contents of the array (ints()
, etc) return Some
for method
matching the array type and None
otherwise (e.g. if it’s a PrimitiveArrayType::Float,
PrimitiveArray::floats() will return Some
and all other accessors will return None
.
Source§impl<'a> PrimitiveArray<'a>
impl<'a> PrimitiveArray<'a>
Sourcepub fn booleans(&self) -> Option<Booleans<'_>>
pub fn booleans(&self) -> Option<Booleans<'_>>
Returns Some
if primitive_type()
returns the matching variant and None
otherwise.
Sourcepub fn chars(&self) -> Option<Chars<'_>>
pub fn chars(&self) -> Option<Chars<'_>>
Returns Some
if primitive_type()
returns the matching variant and None
otherwise.
Sourcepub fn floats(&self) -> Option<Floats<'_>>
pub fn floats(&self) -> Option<Floats<'_>>
Returns Some
if primitive_type()
returns the matching variant and None
otherwise.
Sourcepub fn doubles(&self) -> Option<Doubles<'_>>
pub fn doubles(&self) -> Option<Doubles<'_>>
Returns Some
if primitive_type()
returns the matching variant and None
otherwise.
Sourcepub fn bytes(&self) -> Option<Bytes<'_>>
pub fn bytes(&self) -> Option<Bytes<'_>>
Returns Some
if primitive_type()
returns the matching variant and None
otherwise.
Sourcepub fn shorts(&self) -> Option<Shorts<'_>>
pub fn shorts(&self) -> Option<Shorts<'_>>
Returns Some
if primitive_type()
returns the matching variant and None
otherwise.