Structurefwcd.swift-utils 4.6.2Utils
IdentityBijection
IdentityBijection.swift:1struct IdentityBijection<V>
struct IdentityBijection<V>
import Utils
protocol AsyncBijection : Sendable
protocol Bijection : AsyncBijection
protocol Sendable
init()
func apply(_ value: V) -> V
func inverseApply(_ value: V) -> V
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