├── .gitignore ├── Package.swift ├── Playground.playground ├── Contents.swift ├── contents.xcplayground └── timeline.xctimeline ├── README.md ├── Sources ├── Benchmark │ └── main.swift └── TryErasure │ ├── AnyEquatable.swift │ ├── BoxErasure.swift │ ├── ClosureErasure.swift │ ├── InlineableBoxErasure.swift │ ├── InlineableClosureErasure.swift │ ├── Protocols.swift │ ├── ProxiedBoxErasure.swift │ └── Proxy.swift ├── Tests ├── LinuxMain.swift └── TryErasureTests │ └── TryErasureTests.swift └── TryErasure.xcodeproj ├── TryErasureTests_Info.plist ├── TryErasure_Info.plist ├── project.pbxproj ├── project.xcworkspace └── contents.xcworkspacedata └── xcshareddata └── xcschemes ├── TryErasure-Package.xcscheme └── xcschememanagement.plist /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | */xcuserdata 5 | -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/Package.swift -------------------------------------------------------------------------------- /Playground.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/Playground.playground/Contents.swift -------------------------------------------------------------------------------- /Playground.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/Playground.playground/contents.xcplayground -------------------------------------------------------------------------------- /Playground.playground/timeline.xctimeline: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/Playground.playground/timeline.xctimeline -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/README.md -------------------------------------------------------------------------------- /Sources/Benchmark/main.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/Sources/Benchmark/main.swift -------------------------------------------------------------------------------- /Sources/TryErasure/AnyEquatable.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/Sources/TryErasure/AnyEquatable.swift -------------------------------------------------------------------------------- /Sources/TryErasure/BoxErasure.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/Sources/TryErasure/BoxErasure.swift -------------------------------------------------------------------------------- /Sources/TryErasure/ClosureErasure.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/Sources/TryErasure/ClosureErasure.swift -------------------------------------------------------------------------------- /Sources/TryErasure/InlineableBoxErasure.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/Sources/TryErasure/InlineableBoxErasure.swift -------------------------------------------------------------------------------- /Sources/TryErasure/InlineableClosureErasure.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/Sources/TryErasure/InlineableClosureErasure.swift -------------------------------------------------------------------------------- /Sources/TryErasure/Protocols.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/Sources/TryErasure/Protocols.swift -------------------------------------------------------------------------------- /Sources/TryErasure/ProxiedBoxErasure.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/Sources/TryErasure/ProxiedBoxErasure.swift -------------------------------------------------------------------------------- /Sources/TryErasure/Proxy.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/Sources/TryErasure/Proxy.swift -------------------------------------------------------------------------------- /Tests/LinuxMain.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/Tests/LinuxMain.swift -------------------------------------------------------------------------------- /Tests/TryErasureTests/TryErasureTests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | 3 | -------------------------------------------------------------------------------- /TryErasure.xcodeproj/TryErasureTests_Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/TryErasure.xcodeproj/TryErasureTests_Info.plist -------------------------------------------------------------------------------- /TryErasure.xcodeproj/TryErasure_Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/TryErasure.xcodeproj/TryErasure_Info.plist -------------------------------------------------------------------------------- /TryErasure.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/TryErasure.xcodeproj/project.pbxproj -------------------------------------------------------------------------------- /TryErasure.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/TryErasure.xcodeproj/project.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /TryErasure.xcodeproj/xcshareddata/xcschemes/TryErasure-Package.xcscheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/TryErasure.xcodeproj/xcshareddata/xcschemes/TryErasure-Package.xcscheme -------------------------------------------------------------------------------- /TryErasure.xcodeproj/xcshareddata/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarunon/try-erasure/HEAD/TryErasure.xcodeproj/xcshareddata/xcschemes/xcschememanagement.plist --------------------------------------------------------------------------------