Skip to main content

Scopable

Trait Scopable 

Source
pub trait Scopable: Rootable + Bindable
where for<'a> Self::Of<'a>: Rootable + Bindable,
{ // Provided method fn scope<'scope>( self, agent: &mut Agent, gc: NoGcScope<'_, 'scope>, ) -> Scoped<'scope, Self::Of<'static>> { ... } }
Expand description

Trait for rooting handles for the duration of the 'scope lifetime.

Provided Methods§

Source

fn scope<'scope>( self, agent: &mut Agent, gc: NoGcScope<'_, 'scope>, ) -> Scoped<'scope, Self::Of<'static>>

Root this handle for the 'scope lifetime.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Rootable + Bindable> Scopable for T
where for<'a> Self::Of<'a>: Rootable + Bindable,