pub trait Desc<'a, T> {
    fn lookup(self, _: &JNIEnv<'a>) -> Result<T>;
}
Expand description

Trait for things that can be looked up through the JNI via a descriptor. This will be something like the fully-qualified class name java/lang/String or a tuple containing a class descriptor, method name, and method signature. For convenience, this is also implemented for the concrete types themselves in addition to their descriptors.

Required methods

Look up the concrete type from the JVM.

Implementations on Foreign Types

Implementors

This conversion assumes that the GlobalRef is a pointer to a class object.

This conversion assumes that the AutoLocal is a pointer to a class object.