pub trait AttachParachute: 'static + Sized + Send + Sync {
// Provided method
fn attach_parachute<'scope, T: Target<'scope>>(
self,
target: T
) -> WithParachute<'scope, Self> { ... }
}
Expand description
Attach a parachute to this data to ensure it’s safely dropped if Julia jumps.
Provided Methods§
sourcefn attach_parachute<'scope, T: Target<'scope>>(
self,
target: T
) -> WithParachute<'scope, Self>
fn attach_parachute<'scope, T: Target<'scope>>( self, target: T ) -> WithParachute<'scope, Self>
Attach a parachute to this data.
By attaching a parachute, you move ownership of the data from Rust to Julia. This ensures the data is freed by Julia’s GC after it has become unreachable.
Object Safety§
This trait is not object safe.