Enum jni::signature::ReturnType
source · pub enum ReturnType {
Primitive(Primitive),
Object,
Array,
}
Expand description
Enum representing any java type that may be used as a return value
This type intentionally avoids capturing any heap allocated types (to avoid
allocations while making JNI method calls) and so it doesn’t fully qualify
the object or array types with a String like JavaType::Object
does.
Variants§
Trait Implementations§
source§impl Clone for ReturnType
impl Clone for ReturnType
source§fn clone(&self) -> ReturnType
fn clone(&self) -> ReturnType
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 ReturnType
impl Debug for ReturnType
source§impl Display for ReturnType
impl Display for ReturnType
source§impl FromStr for ReturnType
impl FromStr for ReturnType
source§impl PartialEq<ReturnType> for ReturnType
impl PartialEq<ReturnType> for ReturnType
source§fn eq(&self, other: &ReturnType) -> bool
fn eq(&self, other: &ReturnType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.