pub trait Outlive<'t> {
    type Target;
}
Expand description

The trait to help break lifetime rules when JS objects leaves current context via Persistent wrapper.

Required Associated Types§

source

type Target

The target which has the same type as a Self but with another lifetime 't

Implementors§

source§

impl<'js, 't> Outlive<'t> for Function<'js>

§

type Target = Function<'t>

source§

impl<'js, 't> Outlive<'t> for Object<'js>

§

type Target = Object<'t>

source§

impl<'js, 't> Outlive<'t> for Array<'js>

§

type Target = Array<'t>

source§

impl<'js, 't> Outlive<'t> for ArrayBuffer<'js>

source§

impl<'js, 't> Outlive<'t> for BigInt<'js>

§

type Target = BigInt<'t>

source§

impl<'js, 't> Outlive<'t> for String<'js>

§

type Target = String<'t>

source§

impl<'js, 't> Outlive<'t> for Symbol<'js>

§

type Target = Symbol<'t>

source§

impl<'js, 't> Outlive<'t> for Value<'js>

§

type Target = Value<'t>

source§

impl<'js, 't, C> Outlive<'t> for Class<'js, C>

Available on crate feature classes only.
§

type Target = Class<'t, C>

source§

impl<'js, 't, T> Outlive<'t> for TypedArray<'js, T>

§

type Target = TypedArray<'t, T>