Trait byte_slab::managed_arc_slab::Reroot[][src]

pub trait Reroot {
    type Retval;
    fn reroot(self, key: &RerooterKey<'_>) -> Result<Self::Retval, ()>;
}
Expand description

A trait for restoring Managed types to a given SlabArc

For types that are not Managed, this trait should just return the type as-is.

Associated Types

The return type. This is used to change the lifetimes, e.g. to convert Self: ManagedArcSlab<'a, _, _> to Retval: ManagedArcSlab<'static, _, _>.

Required methods

Implementations on Foreign Types

Implementors