pub trait FunctorSt: HKT {
// Required method
fn fmap_st<A: 'static, B: 'static>(
fa: Self::Of<A>,
f: impl Fn(A) -> B + 'static,
) -> Self::Of<B>;
}Expand description
Functor with 'static bounds on type parameters.
This mirrors karpal_core::Functor but adds 'static bounds required by
types that use Box<dyn Fn> internally (monad transformers, ReaderF, etc.).
Base types that implement Functor can typically implement this trivially
because their type parameters often already satisfy 'static (e.g., for owned types).
Required Methods§
fn fmap_st<A: 'static, B: 'static>( fa: Self::Of<A>, f: impl Fn(A) -> B + 'static, ) -> Self::Of<B>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.