Type Aliasswift 6.0.3Swift
Distance
A type that represents the distance between two pointers.
typealias Distance = Int
A type that represents the distance between two pointers.
typealias Distance = Int
import Swift
@frozen struct UnsafePointer<Pointee> where Pointee : ~Copyable
A pointer for accessing data of a specific type.
@frozen struct Int
A signed integer value type.
var hashValue: Int { get }
var pointee: Pointee { get }
Accesses the instance referenced by this pointer.
subscript(i: Int) -> Pointee { get }
Accesses the pointee at the specified offset from this pointer.
func deallocate()
Deallocates the memory block previously allocated at this pointer.
func pointer<Property>(to property: KeyPath<Pointee, Property>) -> UnsafePointer<Property>?
Obtain a pointer to the stored property referred to by a key path.
func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable
Executes the given closure while temporarily binding memory to the specified number of instances of type T
.
var customPlaygroundQuickLook: PlaygroundQuickLook { get }