| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Control.Monad.Borrow.Pure.Experimental.Reborrowable
Documentation
class Reborrowable (bor :: Lifetime -> k -> Type) where Source #
Methods
locally' :: forall (α :: Lifetime) (a :: k) (α' :: Lifetime) r. bor α a %1 -> (forall (β :: Lifetime). bor (β /\ α) a %1 -> BO (β /\ α') (After β r)) %1 -> BO α' (r, bor α a) Source #
Executes an operation on a borrow in sub lifetime.
You may need -XImpredicativeTypes extension to use this function.
Generalization of reborrowing' and sharing' that works for both Mut and Share borrows.
Instances
| Reborrowable Mut Source # | |
| Reborrowable Share Source # | |
| Reborrowable (Borrows bk :: Lifetime -> [Type] -> Type) Source # | |