Expand description
Call Swift functions from Rust with ease!
Macros§
- Run code with its own autorelease pool. Semantically, this is identical to
@autoreleasepool
in 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
SRData
in Swift. - Wrapper for arbitrary
NSObject
types. - String type that can be shared between Swift and Rust.
- Swift
Linker build
Builder for linking the Swift runtime and custom packages. - Reference to an
NSObject
for internal use byswift!
.
Traits§
- Identifies a type as being a valid argument in a Swift function.
- A type that is represented as an
NSObject
in Swift. - Identifies a type as being a valid return type from a Swift function. For types that are objects which need extra retains, the
retain
function will be re-implemented.
Type Aliases§
- Swift’s
Bool
type - Swift’s
Double
type - Swift’s
Float
type - Swift’s
Float32
type - Swift’s
Float64
type - Swift’s
Int
type - Swift’s
Int8
type - Swift’s
Int16
type - Swift’s
Int32
type - Swift’s
Int64
type - Wrapper of
SRArray
exclusively for arrays of objects. Equivalent toSRObjectArray
in Swift. - Swift’s
UInt
type - Swift’s
UInt8
type - Swift’s
UInt16
type - Swift’s
UInt32
type - Swift’s
UInt64
type