Structurefwcd.swift-utils 4.6.2Utils
InverseBijection
InverseBijection.swift:1struct InverseBijection<B> where B : Bijection
struct InverseBijection<B> where B : Bijection
import Utils
protocol Bijection : AsyncBijection
protocol AsyncBijection : Sendable
protocol Sendable
init(inverting inverse: B)
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