Trait rust_jni::Cast[][src]

pub trait Cast<'env, As: Cast<'env, Object<'env>>>: JavaType<__JniType = jobject> + ToJni + FromJni<'env> {
    fn cast<'a>(&'a self) -> &'a As;
}

A trait for casting Java object types to their superclasses.

Required Methods

Cast the object to itself or one of it's superclasses.

Doesn't actually convert anything, the result is just the same object interpreted as one of it's superclasses.

Implementors