Struct jaffi_support::JavaChar
source · [−]#[repr(transparent)]pub struct JavaChar(pub jchar);
Expand description
Char
Chars are generally going to be bad from Rust to Java, always best to just use Strings. jchar is just a u16, which can’t encode the same space as Rust…
Tuple Fields
0: jchar
Trait Implementations
sourceimpl FromJavaToRust<'_, JavaChar> for char
impl FromJavaToRust<'_, JavaChar> for char
fn java_to_rust(java: JavaChar, _env: JNIEnv<'_>) -> Self
sourceimpl<'j> FromJavaValue<'j, JavaChar> for char
impl<'j> FromJavaValue<'j, JavaChar> for char
fn from_jvalue(env: JNIEnv<'j>, jvalue: JValue<'j>) -> Self
sourceimpl FromRustToJava<'_, char> for JavaChar
impl FromRustToJava<'_, char> for JavaChar
fn rust_to_java(rust: char, _env: JNIEnv<'_>) -> Self
sourceimpl IntoJavaValue<'_, JavaChar> for char
impl IntoJavaValue<'_, JavaChar> for char
fn into_java_value(self, env: JNIEnv<'_>) -> JValue<'_>
sourceimpl NullObject for JavaChar
impl NullObject for JavaChar
impl Copy for JavaChar
impl JavaPrimitive for JavaChar
Auto Trait Implementations
impl RefUnwindSafe for JavaChar
impl Send for JavaChar
impl Sync for JavaChar
impl Unpin for JavaChar
impl UnwindSafe for JavaChar
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more