Trait rji::IsInstance

source ·
pub unsafe trait IsInstance<SUP> {
    // Required methods
    fn into_super(self) -> SUP;
    fn as_super(&self) -> &SUP;
}
Expand description

Identifies a type which is an instance of another. This trait is unsafe, because implementing it on your own types, except where generated by RJI, may have adverse consequences.

Required Methods§

source

fn into_super(self) -> SUP

source

fn as_super(&self) -> &SUP

Implementors§

source§

impl IsInstance<JString> for JString

source§

impl IsInstance<Object> for JString

source§

impl IsInstance<Object> for Object

source§

impl<'l, SUB, SUP> IsInstance<EitherRef<'l, SUP>> for EitherRef<'l, SUB>
where SUB: IsInstance<SUP>,

source§

impl<'l, SUB, SUP> IsInstance<Local<'l, SUP>> for Local<'l, SUB>
where SUB: IsInstance<SUP>,

source§

impl<SUB, SUP> IsInstance<Global<SUP>> for Global<SUB>
where SUB: IsInstance<SUP>,

source§

impl<SUP, SUB> IsInstance<SUP> for WildcardExtends<SUB>
where SUB: IsInstance<SUP>,