Expand description
Call Swift functions from Rust with ease!
Macros
- Run code with its own autorelease pool. Semantically, this is identical to
@autoreleasepoolin Objective-C - Declares a function defined in a swift library. As long as this macro is used, retain counts of arguments and return values will be correct.
Structs
- General array type for objects and scalars.
- Convenience type for working with byte buffers, analagous to
SRDatain Swift. - Wrapper for arbitrary
NSObjecttypes. - String type that can be shared between Swift and Rust.
- SwiftLinker
buildBuilder for linking the Swift runtime and custom packages. - Reference to an
NSObjectfor internal use byswift!.
Traits
- Identifies a type as being a valid argument in a Swift function.
- A type that is represented as an
NSObjectin Swift. - Identifies a type as being a valid return type from a Swift function. For types that are objects which need extra retains, the
retainfunction will be re-implemented.
Type Definitions
- Swift’s
Booltype - Swift’s
Doubletype - Swift’s
Floattype - Swift’s
Float32type - Swift’s
Float64type - Swift’s
Inttype - Swift’s
Int8type - Swift’s
Int16type - Swift’s
Int32type - Swift’s
Int64type - Wrapper of
SRArrayexclusively for arrays of objects. Equivalent toSRObjectArrayin Swift. - Swift’s
UInttype - Swift’s
UInt8type - Swift’s
UInt16type - Swift’s
UInt32type - Swift’s
UInt64type