duchess::java

Struct Array

source
pub struct Array<T> { /* private fields */ }

Trait Implementations§

source§

impl IntoRust<Vec<bool>> for &JavaArray<bool>

source§

fn into_rust<'jvm>(self, jvm: &mut Jvm<'jvm>) -> LocalResult<'jvm, Vec<bool>>

source§

impl IntoRust<Vec<f32>> for &JavaArray<f32>

source§

fn into_rust<'jvm>(self, jvm: &mut Jvm<'jvm>) -> LocalResult<'jvm, Vec<f32>>

source§

impl IntoRust<Vec<f64>> for &JavaArray<f64>

source§

fn into_rust<'jvm>(self, jvm: &mut Jvm<'jvm>) -> LocalResult<'jvm, Vec<f64>>

source§

impl IntoRust<Vec<i16>> for &JavaArray<i16>

source§

fn into_rust<'jvm>(self, jvm: &mut Jvm<'jvm>) -> LocalResult<'jvm, Vec<i16>>

source§

impl IntoRust<Vec<i32>> for &JavaArray<i32>

source§

fn into_rust<'jvm>(self, jvm: &mut Jvm<'jvm>) -> LocalResult<'jvm, Vec<i32>>

source§

impl IntoRust<Vec<i64>> for &JavaArray<i64>

source§

fn into_rust<'jvm>(self, jvm: &mut Jvm<'jvm>) -> LocalResult<'jvm, Vec<i64>>

source§

impl IntoRust<Vec<i8>> for &JavaArray<i8>

source§

fn into_rust<'jvm>(self, jvm: &mut Jvm<'jvm>) -> LocalResult<'jvm, Vec<i8>>

source§

impl IntoRust<Vec<u16>> for &JavaArray<u16>

source§

fn into_rust<'jvm>(self, jvm: &mut Jvm<'jvm>) -> LocalResult<'jvm, Vec<u16>>

source§

impl<T: JavaType> JDeref for JavaArray<T>

source§

fn jderef(&self) -> &Self

Dereference to a plain reference to the java object.
source§

impl<T: JavaType> JavaObject for JavaArray<T>

source§

fn class<'jvm>(jvm: &mut Jvm<'jvm>) -> LocalResult<'jvm, Local<'jvm, Class>>

Returns Java Class object for this type. Read more
source§

impl<T: JavaType> TryJDeref for JavaArray<T>

source§

type Java = JavaArray<T>

The Java type (e.g., java::lang::Object).
source§

fn try_jderef(&self) -> Nullable<&Self>

Dereference to a plain reference to the java object, or Err if it is null.

Auto Trait Implementations§

§

impl<T> Freeze for JavaArray<T>

§

impl<T> RefUnwindSafe for JavaArray<T>
where T: RefUnwindSafe,

§

impl<T> Send for JavaArray<T>
where T: Send,

§

impl<T> Sync for JavaArray<T>
where T: Sync,

§

impl<T> Unpin for JavaArray<T>
where T: Unpin,

§

impl<T> UnwindSafe for JavaArray<T>
where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> JavaType for T
where T: JavaObject,

source§

fn array_class<'jvm>( jvm: &mut Jvm<'jvm>, ) -> Result<Local<'jvm, Class>, Error<Local<'jvm, Throwable>>>

Returns the Java Class object for a Java array containing elements of Self. All Java types, even scalars can be elements of an array object.
source§

impl<R> ToJava for R
where R: ?Sized,

source§

type JvmOp<'a, J: Upcast<Object> + Upcast<J>> = ToJavaOp<'a, R, J> where R: 'a + ToJavaImpl<J>

source§

fn to_java<J>(&self) -> ToJavaOp<'_, R, J>
where R: ToJavaImpl<J>, J: Upcast<Object> + Upcast<J>,

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more