View Source cure_typeclass_dispatch (cure v0.7.0)
Summary
Functions
Call a typeclass method directly with a receiver value Useful when you already know the method implementation
Dispatch a typeclass method call with runtime type inference This is the main entry point for method dispatch.
Fast-path dispatch using persistent_term cache Returns {error, cache_miss} if not in cache
Infer Cure type from Erlang runtime value This allows dispatch to work with native Erlang values
Invalidate cached method for a typeclass/type combination
Pre-warm cache for a specific typeclass/type combination Useful for hot paths where we want to ensure first call is fast
Functions
Call a typeclass method directly with a receiver value Useful when you already know the method implementation
Dispatch a typeclass method call with runtime type inference This is the main entry point for method dispatch.
Fast-path dispatch using persistent_term cache Returns {error, cache_miss} if not in cache
Infer Cure type from Erlang runtime value This allows dispatch to work with native Erlang values
Invalidate cached method for a typeclass/type combination
Pre-warm cache for a specific typeclass/type combination Useful for hot paths where we want to ensure first call is fast