Structurefwcd.swift-utils 4.6.2Utils
InverseAsyncBijection
InverseAsyncBijection.swift:1struct InverseAsyncBijection<B> where B : AsyncBijection
struct InverseAsyncBijection<B> where B : AsyncBijection
import Utils
protocol AsyncBijection : Sendable
protocol Sendable
init(inverting inverse: B)
func apply(_ value: Value) async -> Value
func inverseApply(_ value: Value) async -> Value
typealias Value = B.Value
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