Structurefwcd.swift-utils 4.6.2Utils
ComposedAsyncBijection
ComposedAsyncBijection.swift:1struct ComposedAsyncBijection<B, C> where B : AsyncBijection, C : AsyncBijection, B.Value == C.Value
struct ComposedAsyncBijection<B, C> where B : AsyncBijection, C : AsyncBijection, B.Value == C.Value
import Utils
protocol AsyncBijection : Sendable
associatedtype Value : Sendable
protocol Sendable
init(outer: B, inner: C)
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