Trait rji::JavaRef

source ·
pub trait JavaRef<'l>: HasReference<'l> {
    type Yield: IsInstance<Object>;

    // Required method
    fn into_either_ref(self) -> EitherRef<'l, Self::Yield>;
}
Expand description

A reference type, in abstract. Implemented by all of Local, Global, and EitherRef.

Required Associated Types§

source

type Yield: IsInstance<Object>

The specific type yielded.

Required Methods§

source

fn into_either_ref(self) -> EitherRef<'l, Self::Yield>

Implementors§

source§

impl<'l, R> JavaRef<'l> for EitherRef<'l, R>
where R: IsInstance<Object>,

§

type Yield = R

source§

impl<'l, R> JavaRef<'l> for Local<'l, R>
where R: IsInstance<Object>,

§

type Yield = R

source§

impl<'l, R> JavaRef<'l> for WildcardExtends<R>
where R: JavaRef<'l>,

§

type Yield = <R as JavaRef<'l>>::Yield

source§

impl<R> JavaRef<'static> for Global<R>
where R: IsInstance<Object>,

§

type Yield = R