Structurefwcd.swift-utils 4.6.2Utils
AnyAsyncBijection
AnyAsyncBijection.swift:1struct AnyAsyncBijection<V> where V : Sendable
struct AnyAsyncBijection<V> where V : Sendable
import Utils
protocol Sendable
protocol AsyncBijection : Sendable
init<B>(_ bijection: B) where V == B.Value, B : Bijection
init<B>(_ bijection: B) where V == B.Value, B : AsyncBijection
init(apply applyImpl: @escaping (V) async -> V, inverseApply inverseApplyImpl: @escaping (V) async -> V)
func apply(_ value: V) async -> V
func inverseApply(_ value: V) async -> V
var inverse: InverseAsyncBijection<Self> { get }
func compose<B>(_ inner: B) -> ComposedAsyncBijection<Self, B> where B : AsyncBijection, Self.Value == B.Value
func then<B>(_ outer: B) -> ComposedAsyncBijection<B, Self> where B : AsyncBijection, Self.Value == B.Value