[−][src]Struct swim_jvm::JEnv
Methods
impl JEnv
[src]
pub fn new(env: *mut JNIEnv) -> Self
[src]
pub fn get_version(&self) -> jint
[src]
pub fn define_class<S, O>(
&self,
name: S,
loader: O,
buf: &[u8]
) -> Result<JClass> where
S: AsRef<CStr>,
O: Into<jobject>,
[src]
&self,
name: S,
loader: O,
buf: &[u8]
) -> Result<JClass> where
S: AsRef<CStr>,
O: Into<jobject>,
pub fn find_class<S>(&self, name: S) -> Result<JClass> where
S: AsRef<CStr>,
[src]
S: AsRef<CStr>,
pub fn get_superclass<T>(&self, class: T) -> Result<JClass> where
T: TryIntoJava<jclass>,
[src]
T: TryIntoJava<jclass>,
pub fn is_assignable_from<T, U>(&self, sub: T, sup: U) -> Result<bool> where
T: TryIntoJava<jclass>,
U: TryIntoJava<jclass>,
[src]
T: TryIntoJava<jclass>,
U: TryIntoJava<jclass>,
pub fn throw<T>(&self, throwable: T) where
T: Into<jthrowable>,
[src]
T: Into<jthrowable>,
pub fn throw_new<C, S>(&self, class: C, msg: S) where
C: IntoJava<jclass>,
S: AsRef<CStr>,
[src]
C: IntoJava<jclass>,
S: AsRef<CStr>,
pub fn exception_occurred(&self) -> Option<JThrowable>
[src]
pub fn exception_describe(&self)
[src]
pub fn exception_clear(&self)
[src]
pub fn exception_check(&self) -> bool
[src]
pub fn fatal_error<S>(&self, msg: S) -> ! where
S: AsRef<CStr>,
[src]
S: AsRef<CStr>,
pub fn new_global_ref<O>(&self, obj: O) -> Result<JGlobalRef> where
O: Into<jobject>,
[src]
O: Into<jobject>,
pub unsafe fn delete_global_ref<R>(&self, gref: R) where
R: Into<jobject>,
[src]
R: Into<jobject>,
pub fn new_local_ref<O>(&self, obj: O) -> Result<JLocalRef> where
O: Into<jobject>,
[src]
O: Into<jobject>,
pub unsafe fn delete_local_ref<R>(&self, lref: R) where
R: Into<jobject>,
[src]
R: Into<jobject>,
pub fn ensure_local_capacity(&self, capacity: jint) -> Result<()>
[src]
pub fn is_same_object<O1, O2>(&self, obj1: O1, obj2: O2) -> bool where
O1: Into<jobject>,
O2: Into<jobject>,
[src]
O1: Into<jobject>,
O2: Into<jobject>,
pub fn alloc_object<C>(&self, cls: C) -> Result<JObject> where
C: TryIntoJava<jclass>,
[src]
C: TryIntoJava<jclass>,
pub fn get_object_class<O>(&self, obj: O) -> Result<JClass> where
O: Into<jobject>,
[src]
O: Into<jobject>,
pub fn is_instance_of<O, C>(&self, obj: O, cls: C) -> bool where
O: Into<jobject>,
C: Into<jclass>,
[src]
O: Into<jobject>,
C: Into<jclass>,
pub fn get_method_id<C, S, T>(&self, cls: C, name: S, sig: T) -> Result<JMethod> where
C: TryIntoJava<jclass>,
S: AsRef<CStr>,
T: AsRef<CStr>,
[src]
C: TryIntoJava<jclass>,
S: AsRef<CStr>,
T: AsRef<CStr>,
pub fn get_static_method_id<C, S, T>(
&self,
cls: C,
name: S,
sig: T
) -> Result<JMethod> where
C: TryIntoJava<jclass>,
S: AsRef<CStr>,
T: AsRef<CStr>,
[src]
&self,
cls: C,
name: S,
sig: T
) -> Result<JMethod> where
C: TryIntoJava<jclass>,
S: AsRef<CStr>,
T: AsRef<CStr>,
pub fn call_method<O, M, R>(
&self,
obj: O,
mid: M,
ret: R,
args: &[JValue]
) -> Result<JValue> where
O: Into<jobject>,
M: Into<jmethodID>,
R: AsRef<JType>,
[src]
&self,
obj: O,
mid: M,
ret: R,
args: &[JValue]
) -> Result<JValue> where
O: Into<jobject>,
M: Into<jmethodID>,
R: AsRef<JType>,
pub fn call_nonvirtual_method<O, C, M, R>(
&self,
obj: O,
cls: C,
mid: M,
ret: R,
args: &[JValue]
) -> Result<JValue> where
O: Into<jobject>,
C: Into<jclass>,
M: Into<jmethodID>,
R: AsRef<JType>,
[src]
&self,
obj: O,
cls: C,
mid: M,
ret: R,
args: &[JValue]
) -> Result<JValue> where
O: Into<jobject>,
C: Into<jclass>,
M: Into<jmethodID>,
R: AsRef<JType>,
pub fn call_static_method<C, M, R>(
&self,
cls: C,
mid: M,
ret: R,
args: &[JValue]
) -> Result<JValue> where
C: Into<jclass>,
M: Into<jmethodID>,
R: AsRef<JType>,
[src]
&self,
cls: C,
mid: M,
ret: R,
args: &[JValue]
) -> Result<JValue> where
C: Into<jclass>,
M: Into<jmethodID>,
R: AsRef<JType>,
pub fn new_object<C, M>(
&self,
cls: C,
mid: M,
args: &[JValue]
) -> Result<JObject> where
C: Into<jclass>,
M: Into<jmethodID>,
[src]
&self,
cls: C,
mid: M,
args: &[JValue]
) -> Result<JObject> where
C: Into<jclass>,
M: Into<jmethodID>,
pub fn get_field_id<C, S, T>(&self, cls: C, name: S, sig: T) -> Result<JField> where
C: TryIntoJava<jclass>,
S: AsRef<CStr>,
T: AsRef<CStr>,
[src]
C: TryIntoJava<jclass>,
S: AsRef<CStr>,
T: AsRef<CStr>,
pub fn get_field<O, F, T>(&self, obj: O, fid: F, ret: T) -> JValue where
O: Into<jobject>,
F: Into<jfieldID>,
T: AsRef<JType>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
T: AsRef<JType>,
pub fn get_boolean_field<O, F>(&self, obj: O, fid: F) -> bool where
O: Into<jobject>,
F: Into<jfieldID>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
pub fn get_byte_field<O, F>(&self, obj: O, fid: F) -> jbyte where
O: Into<jobject>,
F: Into<jfieldID>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
pub fn get_char_field<O, F>(&self, obj: O, fid: F) -> jchar where
O: Into<jobject>,
F: Into<jfieldID>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
pub fn get_short_field<O, F>(&self, obj: O, fid: F) -> jshort where
O: Into<jobject>,
F: Into<jfieldID>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
pub fn get_int_field<O, F>(&self, obj: O, fid: F) -> jint where
O: Into<jobject>,
F: Into<jfieldID>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
pub fn get_long_field<O, F>(&self, obj: O, fid: F) -> jlong where
O: Into<jobject>,
F: Into<jfieldID>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
pub fn get_float_field<O, F>(&self, obj: O, fid: F) -> jfloat where
O: Into<jobject>,
F: Into<jfieldID>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
pub fn get_double_field<O, F>(&self, obj: O, fid: F) -> jdouble where
O: Into<jobject>,
F: Into<jfieldID>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
pub fn get_object_field<O, F>(&self, obj: O, fid: F) -> JObject where
O: Into<jobject>,
F: Into<jfieldID>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
pub fn set_field<O, F, V>(&self, obj: O, fid: F, val: V) where
O: Into<jobject>,
F: Into<jfieldID>,
V: IntoJava<JValue>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
V: IntoJava<JValue>,
pub fn set_boolean_field<O, F, V>(&self, obj: O, fid: F, val: V) where
O: Into<jobject>,
F: Into<jfieldID>,
V: Into<bool>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
V: Into<bool>,
pub fn set_byte_field<O, F, V>(&self, obj: O, fid: F, val: V) where
O: Into<jobject>,
F: Into<jfieldID>,
V: Into<jbyte>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
V: Into<jbyte>,
pub fn set_char_field<O, F, V>(&self, obj: O, fid: F, val: V) where
O: Into<jobject>,
F: Into<jfieldID>,
V: Into<jchar>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
V: Into<jchar>,
pub fn set_short_field<O, F, V>(&self, obj: O, fid: F, val: V) where
O: Into<jobject>,
F: Into<jfieldID>,
V: Into<jshort>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
V: Into<jshort>,
pub fn set_int_field<O, F, V>(&self, obj: O, fid: F, val: V) where
O: Into<jobject>,
F: Into<jfieldID>,
V: Into<jint>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
V: Into<jint>,
pub fn set_long_field<O, F, V>(&self, obj: O, fid: F, val: V) where
O: Into<jobject>,
F: Into<jfieldID>,
V: Into<jlong>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
V: Into<jlong>,
pub fn set_float_field<O, F, V>(&self, obj: O, fid: F, val: V) where
O: Into<jobject>,
F: Into<jfieldID>,
V: Into<jfloat>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
V: Into<jfloat>,
pub fn set_double_field<O, F, V>(&self, obj: O, fid: F, val: V) where
O: Into<jobject>,
F: Into<jfieldID>,
V: Into<jdouble>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
V: Into<jdouble>,
pub fn set_object_field<O, F, V>(&self, obj: O, fid: F, val: V) where
O: Into<jobject>,
F: Into<jfieldID>,
V: Into<jobject>,
[src]
O: Into<jobject>,
F: Into<jfieldID>,
V: Into<jobject>,
pub fn get_static_field_id<C, S, T>(
&self,
cls: C,
name: S,
sig: T
) -> Result<JField> where
C: TryIntoJava<jclass>,
S: AsRef<CStr>,
T: AsRef<CStr>,
[src]
&self,
cls: C,
name: S,
sig: T
) -> Result<JField> where
C: TryIntoJava<jclass>,
S: AsRef<CStr>,
T: AsRef<CStr>,
pub fn get_static_field<C, F, T>(&self, cls: C, fid: F, ret: T) -> JValue where
C: Into<jclass>,
F: Into<jfieldID>,
T: AsRef<JType>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
T: AsRef<JType>,
pub fn get_static_boolean_field<C, F>(&self, cls: C, fid: F) -> bool where
C: Into<jclass>,
F: Into<jfieldID>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
pub fn get_static_byte_field<C, F>(&self, cls: C, fid: F) -> jbyte where
C: Into<jclass>,
F: Into<jfieldID>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
pub fn get_static_char_field<C, F>(&self, cls: C, fid: F) -> jchar where
C: Into<jclass>,
F: Into<jfieldID>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
pub fn get_static_short_field<C, F>(&self, cls: C, fid: F) -> jshort where
C: Into<jclass>,
F: Into<jfieldID>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
pub fn get_static_int_field<C, F>(&self, cls: C, fid: F) -> jint where
C: Into<jclass>,
F: Into<jfieldID>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
pub fn get_static_long_field<C, F>(&self, cls: C, fid: F) -> jlong where
C: Into<jclass>,
F: Into<jfieldID>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
pub fn get_static_float_field<C, F>(&self, cls: C, fid: F) -> jfloat where
C: Into<jclass>,
F: Into<jfieldID>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
pub fn get_static_double_field<C, F>(&self, cls: C, fid: F) -> jdouble where
C: Into<jclass>,
F: Into<jfieldID>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
pub fn get_static_object_field<C, F>(&self, cls: C, fid: F) -> JObject where
C: Into<jclass>,
F: Into<jfieldID>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
pub fn set_static_field<C, F, V>(&self, cls: C, fid: F, val: V) where
C: Into<jclass>,
F: Into<jfieldID>,
V: IntoJava<JValue>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
V: IntoJava<JValue>,
pub fn set_static_boolean_field<C, F, V>(&self, cls: C, fid: F, val: V) where
C: Into<jclass>,
F: Into<jfieldID>,
V: Into<bool>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
V: Into<bool>,
pub fn set_static_byte_field<C, F, V>(&self, cls: C, fid: F, val: V) where
C: Into<jclass>,
F: Into<jfieldID>,
V: Into<jbyte>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
V: Into<jbyte>,
pub fn set_static_char_field<C, F, V>(&self, cls: C, fid: F, val: V) where
C: Into<jclass>,
F: Into<jfieldID>,
V: Into<jchar>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
V: Into<jchar>,
pub fn set_static_short_field<C, F, V>(&self, cls: C, fid: F, val: V) where
C: Into<jclass>,
F: Into<jfieldID>,
V: Into<jshort>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
V: Into<jshort>,
pub fn set_static_int_field<C, F, V>(&self, cls: C, fid: F, val: V) where
C: Into<jclass>,
F: Into<jfieldID>,
V: Into<jint>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
V: Into<jint>,
pub fn set_static_long_field<C, F, V>(&self, cls: C, fid: F, val: V) where
C: Into<jclass>,
F: Into<jfieldID>,
V: Into<jlong>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
V: Into<jlong>,
pub fn set_static_float_field<C, F, V>(&self, cls: C, fid: F, val: V) where
C: Into<jclass>,
F: Into<jfieldID>,
V: Into<jfloat>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
V: Into<jfloat>,
pub fn set_static_double_field<C, F, V>(&self, cls: C, fid: F, val: V) where
C: Into<jclass>,
F: Into<jfieldID>,
V: Into<jdouble>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
V: Into<jdouble>,
pub fn set_static_object_field<C, F, V>(&self, cls: C, fid: F, val: V) where
C: Into<jclass>,
F: Into<jfieldID>,
V: Into<jobject>,
[src]
C: Into<jclass>,
F: Into<jfieldID>,
V: Into<jobject>,
pub fn new_string_utf<'b, S>(&self, utf: S) -> Result<JString> where
S: Into<&'b CStr>,
[src]
S: Into<&'b CStr>,
pub fn get_string_length<S>(&self, str: S) -> jsize where
S: Into<jstring>,
[src]
S: Into<jstring>,
pub fn get_string_utf_length<S>(&self, str: S) -> jsize where
S: Into<jstring>,
[src]
S: Into<jstring>,
pub unsafe fn get_string_utf_chars<S>(
&self,
str: S,
is_copy: &mut bool
) -> &CStr where
S: Into<jstring>,
[src]
&self,
str: S,
is_copy: &mut bool
) -> &CStr where
S: Into<jstring>,
pub unsafe fn release_string_utf_chars<S>(&self, str: S, cstr: &CStr) where
S: Into<jstring>,
[src]
S: Into<jstring>,
pub fn get_string_utf_region<S>(
&self,
str: S,
start: jsize,
len: jsize,
buf: &mut [cchar]
) where
S: Into<jstring>,
[src]
&self,
str: S,
start: jsize,
len: jsize,
buf: &mut [cchar]
) where
S: Into<jstring>,
pub fn get_array_length<A>(&self, array: A) -> jsize where
A: Into<jarray>,
[src]
A: Into<jarray>,
pub fn new_array<T>(&self, len: jsize, typ: T) -> Result<JArray> where
T: AsRef<JType>,
[src]
T: AsRef<JType>,
pub fn new_boolean_array(&self, len: jsize) -> Result<JArray>
[src]
pub fn new_byte_array(&self, len: jsize) -> Result<JArray>
[src]
pub fn new_char_array(&self, len: jsize) -> Result<JArray>
[src]
pub fn new_short_array(&self, len: jsize) -> Result<JArray>
[src]
pub fn new_int_array(&self, len: jsize) -> Result<JArray>
[src]
pub fn new_long_array(&self, len: jsize) -> Result<JArray>
[src]
pub fn new_float_array(&self, len: jsize) -> Result<JArray>
[src]
pub fn new_double_array(&self, len: jsize) -> Result<JArray>
[src]
pub fn new_object_array<C, O>(
&self,
len: jsize,
cls: C,
init: O
) -> Result<JArray> where
C: Into<jclass>,
O: Into<jobject>,
[src]
&self,
len: jsize,
cls: C,
init: O
) -> Result<JArray> where
C: Into<jclass>,
O: Into<jobject>,
pub fn get_object_array_element<A>(&self, array: A, index: jsize) -> JObject where
A: Into<jobjectArray>,
[src]
A: Into<jobjectArray>,
pub fn set_object_array_element<A, O>(&self, array: A, index: jsize, val: O) where
A: Into<jobjectArray>,
O: Into<jobject>,
[src]
A: Into<jobjectArray>,
O: Into<jobject>,
pub unsafe fn get_boolean_array_elements<A>(
&self,
array: A,
is_copy: &mut bool
) -> &mut [jboolean] where
A: Into<jbooleanArray>,
[src]
&self,
array: A,
is_copy: &mut bool
) -> &mut [jboolean] where
A: Into<jbooleanArray>,
pub unsafe fn release_boolean_array_elements<A>(
&self,
array: A,
elems: &mut [jboolean],
mode: jint
) where
A: Into<jbooleanArray>,
[src]
&self,
array: A,
elems: &mut [jboolean],
mode: jint
) where
A: Into<jbooleanArray>,
pub unsafe fn get_byte_array_elements<A>(
&self,
array: A,
is_copy: &mut bool
) -> &mut [jbyte] where
A: Into<jbyteArray>,
[src]
&self,
array: A,
is_copy: &mut bool
) -> &mut [jbyte] where
A: Into<jbyteArray>,
pub unsafe fn release_byte_array_elements<A>(
&self,
array: A,
elems: &mut [jbyte],
mode: jint
) where
A: Into<jbyteArray>,
[src]
&self,
array: A,
elems: &mut [jbyte],
mode: jint
) where
A: Into<jbyteArray>,
pub unsafe fn get_char_array_elements<A>(
&self,
array: A,
is_copy: &mut bool
) -> &mut [jchar] where
A: Into<jcharArray>,
[src]
&self,
array: A,
is_copy: &mut bool
) -> &mut [jchar] where
A: Into<jcharArray>,
pub unsafe fn release_char_array_elements<A>(
&self,
array: A,
elems: &mut [jchar],
mode: jint
) where
A: Into<jcharArray>,
[src]
&self,
array: A,
elems: &mut [jchar],
mode: jint
) where
A: Into<jcharArray>,
pub unsafe fn get_short_array_elements<A>(
&self,
array: A,
is_copy: &mut bool
) -> &mut [jshort] where
A: Into<jshortArray>,
[src]
&self,
array: A,
is_copy: &mut bool
) -> &mut [jshort] where
A: Into<jshortArray>,
pub unsafe fn release_short_array_elements<A>(
&self,
array: A,
elems: &mut [jshort],
mode: jint
) where
A: Into<jshortArray>,
[src]
&self,
array: A,
elems: &mut [jshort],
mode: jint
) where
A: Into<jshortArray>,
pub unsafe fn get_int_array_elements<A>(
&self,
array: A,
is_copy: &mut bool
) -> &mut [jint] where
A: Into<jintArray>,
[src]
&self,
array: A,
is_copy: &mut bool
) -> &mut [jint] where
A: Into<jintArray>,
pub unsafe fn release_int_array_elements<A>(
&self,
array: A,
elems: &mut [jint],
mode: jint
) where
A: Into<jintArray>,
[src]
&self,
array: A,
elems: &mut [jint],
mode: jint
) where
A: Into<jintArray>,
pub unsafe fn get_long_array_elements<A>(
&self,
array: A,
is_copy: &mut bool
) -> &mut [jlong] where
A: Into<jlongArray>,
[src]
&self,
array: A,
is_copy: &mut bool
) -> &mut [jlong] where
A: Into<jlongArray>,
pub unsafe fn release_long_array_elements<A>(
&self,
array: A,
elems: &mut [jlong],
mode: jint
) where
A: Into<jlongArray>,
[src]
&self,
array: A,
elems: &mut [jlong],
mode: jint
) where
A: Into<jlongArray>,
pub unsafe fn get_float_array_elements<A>(
&self,
array: A,
is_copy: &mut bool
) -> &mut [jfloat] where
A: Into<jfloatArray>,
[src]
&self,
array: A,
is_copy: &mut bool
) -> &mut [jfloat] where
A: Into<jfloatArray>,
pub unsafe fn release_float_array_elements<A>(
&self,
array: A,
elems: &mut [jfloat],
mode: jint
) where
A: Into<jfloatArray>,
[src]
&self,
array: A,
elems: &mut [jfloat],
mode: jint
) where
A: Into<jfloatArray>,
pub unsafe fn get_double_array_elements<A>(
&self,
array: A,
is_copy: &mut bool
) -> &mut [jdouble] where
A: Into<jdoubleArray>,
[src]
&self,
array: A,
is_copy: &mut bool
) -> &mut [jdouble] where
A: Into<jdoubleArray>,
pub unsafe fn release_double_array_elements<A>(
&self,
array: A,
elems: &mut [jdouble],
mode: jint
) where
A: Into<jdoubleArray>,
[src]
&self,
array: A,
elems: &mut [jdouble],
mode: jint
) where
A: Into<jdoubleArray>,
pub fn get_boolean_array_region<A>(
&self,
array: A,
start: jsize,
len: jsize,
buf: &mut [jboolean]
) where
A: Into<jbooleanArray>,
[src]
&self,
array: A,
start: jsize,
len: jsize,
buf: &mut [jboolean]
) where
A: Into<jbooleanArray>,
pub fn set_boolean_array_region<A>(
&self,
array: A,
start: jsize,
len: jsize,
buf: &[jboolean]
) where
A: Into<jbooleanArray>,
[src]
&self,
array: A,
start: jsize,
len: jsize,
buf: &[jboolean]
) where
A: Into<jbooleanArray>,
pub fn get_byte_array_region<A>(
&self,
array: A,
start: jsize,
len: jsize,
buf: &mut [jbyte]
) where
A: Into<jbyteArray>,
[src]
&self,
array: A,
start: jsize,
len: jsize,
buf: &mut [jbyte]
) where
A: Into<jbyteArray>,
pub fn set_byte_array_region<A>(
&self,
array: A,
start: jsize,
len: jsize,
buf: &[jbyte]
) where
A: Into<jbyteArray>,
[src]
&self,
array: A,
start: jsize,
len: jsize,
buf: &[jbyte]
) where
A: Into<jbyteArray>,
pub fn get_char_array_region<A>(
&self,
array: A,
start: jsize,
len: jsize,
buf: &mut [jchar]
) where
A: Into<jcharArray>,
[src]
&self,
array: A,
start: jsize,
len: jsize,
buf: &mut [jchar]
) where
A: Into<jcharArray>,
pub fn set_char_array_region<A>(
&self,
array: A,
start: jsize,
len: jsize,
buf: &[jchar]
) where
A: Into<jcharArray>,
[src]
&self,
array: A,
start: jsize,
len: jsize,
buf: &[jchar]
) where
A: Into<jcharArray>,
pub fn get_short_array_region<A>(
&self,
array: A,
start: jsize,
len: jsize,
buf: &mut [jshort]
) where
A: Into<jshortArray>,
[src]
&self,
array: A,
start: jsize,
len: jsize,
buf: &mut [jshort]
) where
A: Into<jshortArray>,
pub fn set_short_array_region<A>(
&self,
array: A,
start: jsize,
len: jsize,
buf: &[jshort]
) where
A: Into<jshortArray>,
[src]
&self,
array: A,
start: jsize,
len: jsize,
buf: &[jshort]
) where
A: Into<jshortArray>,
pub fn get_int_array_region<A>(
&self,
array: A,
start: jsize,
len: jsize,
buf: &mut [jint]
) where
A: Into<jintArray>,
[src]
&self,
array: A,
start: jsize,
len: jsize,
buf: &mut [jint]
) where
A: Into<jintArray>,
pub fn set_int_array_region<A>(
&self,
array: A,
start: jsize,
len: jsize,
buf: &[jint]
) where
A: Into<jintArray>,
[src]
&self,
array: A,
start: jsize,
len: jsize,
buf: &[jint]
) where
A: Into<jintArray>,
pub fn get_long_array_region<A>(
&self,
array: A,
start: jsize,
len: jsize,
buf: &mut [jlong]
) where
A: Into<jlongArray>,
[src]
&self,
array: A,
start: jsize,
len: jsize,
buf: &mut [jlong]
) where
A: Into<jlongArray>,
pub fn set_long_array_region<A>(
&self,
array: A,
start: jsize,
len: jsize,
buf: &[jlong]
) where
A: Into<jlongArray>,
[src]
&self,
array: A,
start: jsize,
len: jsize,
buf: &[jlong]
) where
A: Into<jlongArray>,
pub fn get_float_array_region<A>(
&self,
array: A,
start: jsize,
len: jsize,
buf: &mut [jfloat]
) where
A: Into<jfloatArray>,
[src]
&self,
array: A,
start: jsize,
len: jsize,
buf: &mut [jfloat]
) where
A: Into<jfloatArray>,
pub fn set_float_array_region<A>(
&self,
array: A,
start: jsize,
len: jsize,
buf: &[jfloat]
) where
A: Into<jfloatArray>,
[src]
&self,
array: A,
start: jsize,
len: jsize,
buf: &[jfloat]
) where
A: Into<jfloatArray>,
pub fn get_double_array_region<A>(
&self,
array: A,
start: jsize,
len: jsize,
buf: &mut [jdouble]
) where
A: Into<jdoubleArray>,
[src]
&self,
array: A,
start: jsize,
len: jsize,
buf: &mut [jdouble]
) where
A: Into<jdoubleArray>,
pub fn set_double_array_region<A>(
&self,
array: A,
start: jsize,
len: jsize,
buf: &[jdouble]
) where
A: Into<jdoubleArray>,
[src]
&self,
array: A,
start: jsize,
len: jsize,
buf: &[jdouble]
) where
A: Into<jdoubleArray>,
pub unsafe fn register_natives<C>(&self, cls: C, methods: &[JNINativeMethod]) where
C: Into<jclass>,
[src]
C: Into<jclass>,
pub unsafe fn unregister_natives<C>(&self, cls: C) where
C: Into<jclass>,
[src]
C: Into<jclass>,
pub unsafe fn monitor_enter<O>(&self, obj: O) where
O: Into<jobject>,
[src]
O: Into<jobject>,
pub unsafe fn monitor_exit<O>(&self, obj: O) where
O: Into<jobject>,
[src]
O: Into<jobject>,
pub unsafe fn get_primitive_array_critical<A>(
&self,
array: A,
is_copy: &mut bool
) -> *mut void where
A: Into<jarray>,
[src]
&self,
array: A,
is_copy: &mut bool
) -> *mut void where
A: Into<jarray>,
pub unsafe fn release_primitive_array_critical<A>(
&self,
array: A,
carray: *mut void,
mode: jint
) where
A: Into<jarray>,
[src]
&self,
array: A,
carray: *mut void,
mode: jint
) where
A: Into<jarray>,
pub fn new_direct_byte_buffer(
&self,
address: *mut void,
capacity: jlong
) -> JObject
[src]
&self,
address: *mut void,
capacity: jlong
) -> JObject
pub fn get_direct_buffer_address<O>(&self, buf: O) -> *mut void where
O: Into<jobject>,
[src]
O: Into<jobject>,
pub fn get_direct_buffer_capacity<O>(&self, buf: O) -> jlong where
O: Into<jobject>,
[src]
O: Into<jobject>,
pub fn get_object_ref_type<O>(&self, buf: O) -> jobjectRefType where
O: Into<jobject>,
[src]
O: Into<jobject>,
Trait Implementations
impl PartialEq<JEnv> for JEnv
[src]
impl Eq for JEnv
[src]
impl From<*mut *const JNINativeInterface_> for JEnv
[src]
impl Sync for JEnv
[src]
impl Send for JEnv
[src]
impl Copy for JEnv
[src]
impl Clone for JEnv
[src]
fn clone(&self) -> JEnv
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Into<*mut *const JNINativeInterface_> for JEnv
[src]
impl<'a> Into<*mut *const JNINativeInterface_> for &'a JEnv
[src]
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<'b, S, T> StowFrom for T where
S: Stow<'b, T>,
[src]
S: Stow<'b, T>,
default fn try_stow_from(
src: S,
hold: &dyn Hold<'b>
) -> Result<T, (S, HoldError)>
[src]
src: S,
hold: &dyn Hold<'b>
) -> Result<T, (S, HoldError)>
default fn stow_from(value: T, hold: &dyn Hold<'b>) -> Self
[src]
impl<'b, S, T> StowInto for S where
T: StowFrom<'b, S>,
[src]
T: StowFrom<'b, S>,