Structurefwcd.swift-utils 4.6.2Utils
ComposedBijection
ComposedBijection.swift:1struct ComposedBijection<B, C> where B : Bijection, C : Bijection, B.Value == C.Value
struct ComposedBijection<B, C> where B : Bijection, C : Bijection, B.Value == C.Value
import Utils
protocol Bijection : AsyncBijection
associatedtype Value : Sendable
protocol AsyncBijection : Sendable
protocol Sendable
init(outer: B, inner: C)
func apply(_ value: Value) -> Value
func inverseApply(_ value: Value) -> Value
typealias Value = B.Value
var inverse: InverseBijection<Self> { get }
func compose<B>(_ inner: B) -> ComposedAsyncBijection<Self, B> where B : AsyncBijection, Self.Value == B.Value
func compose<B>(_ inner: B) -> ComposedBijection<Self, B> where B : Bijection, Self.Value == B.Value
func then<B>(_ outer: B) -> ComposedAsyncBijection<B, Self> where B : AsyncBijection, Self.Value == B.Value
func then<B>(_ outer: B) -> ComposedBijection<B, Self> where B : Bijection, Self.Value == B.Value