Structurefwcd.swift-utils 4.6.2Utils
Scaling
Scaling.swift:1struct Scaling<T> where T : Sendable, T : Divisible, T : Multipliable
struct Scaling<T> where T : Sendable, T : Divisible, T : Multipliable
import Utils
protocol Sendable
protocol Divisible
protocol Multipliable
protocol AsyncBijection : Sendable
protocol Bijection : AsyncBijection
init(by factor: T)
func apply(_ value: T) -> T
func inverseApply(_ value: T) -> T
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