Instance Method

predecessor()

Returns a pointer to the previous consecutive instance.

Declaration

func predecessor() -> UnsafeMutableRawPointer

Return Value

A pointer shifted backward from this pointer by MemoryLayout<Pointee>.stride bytes.

Discussion

The resulting pointer must be within the bounds of the same allocation as this pointer.