Box

public class Box<T> where T : Initializable

Generic container

  • Undocumented

    Declaration

    Swift

    public init(_ value: T)
  • Undocumented

    Declaration

    Swift

    public static func create(_ type: T.Type) -> Box<T>
  • Undocumented

    Declaration

    Swift

    public func toRaw() -> UnsafeMutableRawPointer
  • Undocumented

    Declaration

    Swift

    public static func fromRaw(_ ptr: UnsafeMutableRawPointer, _ type: T.Type) -> Unmanaged<Box<T>>