Swift 标准库文档

来源:互联网 发布:男鞋推荐 知乎 编辑:程序博客网 时间:2024/05/18 03:25

结构体

  • AnyBidirectionalCollection
    A type-erased wrapper over any collection with indices that support bidirectional traversal.
  • AnyBidirectionalIndex
    A wrapper over an underlying BidirectionalIndexType that hides the specific underlying type.
  • AnyForwardCollection
    A type-erased wrapper over any collection with indices that support forward traversal.
  • AnyForwardIndex
    A wrapper over an underlying ForwardIndexType that hides the specific underlying type.
  • AnyGenerator
    A type-erased generator of Element.
  • AnyRandomAccessCollection
    A type-erased wrapper over any collection with indices that support random access traversal.
  • AnyRandomAccessIndex
    A wrapper over an underlying RandomAccessIndexType that hides the specific underlying type.
  • AnySequence
    A type-erased sequence.
  • Array

    数组

  • ArraySlice
    The Array-like type that represents a sub-sequence of any Array, ContiguousArray, or other ArraySlice.

  • AutoreleasingUnsafeMutablePointer
    A mutable pointer-to-ObjC-pointer argument.
  • Bool
    A value type whose instances are either true or false.
  • COpaquePointer

    不确定类型的指针

  • CVaListPointer

    可变参数表指针

  • Character

    Unicode 编码字符

  • ClosedInterval
    A closed IntervalType, which contains both its start and its end.

  • CollectionOfOne
    A collection containing a single element of type Element.
  • ContiguousArray
    A fast, contiguously-stored array of Element.

    • Dictionary

    字典

  • DictionaryGenerator
    A generator over the members of a Dictionary< Key, Value>.

  • DictionaryIndex
    Used to access the key-value pairs in an instance of Dictionary< Key, Value>.
  • DictionaryLiteral
    Represent the ability to pass a dictionary literal in function signatures.
  • Double

    浮点数

  • EmptyCollection
    A collection whose element type is Element but that is always empty.

  • EmptyGenerator
    A generator that never produces an element.
  • EnumerateGenerator
    The GeneratorType for EnumerateSequence.
  • EnumerateSequence
    The SequenceType returned by enumerate().
  • FlattenBidirectionalCollection
    A flattened view of a base collection-of-collections.
  • FlattenBidirectionalCollectionIndex
    A position in a FlattenBidirectionalCollection.
  • FlattenCollection
    A flattened view of a base collection-of-collections.
  • FlattenCollectionIndex
    A position in a FlattenCollection.
  • FlattenGenerator
    A flattened view of a base generator-of-sequences.
  • FlattenSequence
    A flattened view of a base sequence-of-sequences.
  • Float

    浮点数

  • GeneratorOfOne
    A generator that produces one or fewer instances of Element.

  • GeneratorSequence
    A sequence built around a generator of type G.
  • HalfOpenInterval
    A half-open IntervalType, which contains its start but not its end.
  • IndexingGenerator
    A generator for an arbitrary collection.
  • Int

    64比特 有符号整数

  • Int16

    16比特 有符号整数

  • Int32

    32比特 有符号整数

  • Int64

    64比特 有符号整数

  • Int8

    8比特 有符号整数

  • JoinGenerator
    A generator that presents the elements of the sequences generated by Base, concatenated using a given separator.

  • JoinSequence
    A sequence that presents the elements of the Base sequences concatenated using a given separator.
  • LazyCollection
    A collection containing the same elements as a Base collection, but on which some operations such as map and filter are implemented lazily.
  • LazyFilterCollection
    A lazy CollectionType wrapper that includes the elements of an underlying collection that satisfy a predicate.
  • LazyFilterGenerator
    A generator that produces the elements produced by some base generator that also satisfy a given predicate.
  • LazyFilterIndex
    The Index used for subscripting a LazyFilterCollection.
  • LazyFilterSequence
    A sequence whose elements consist of the elements of some base sequence that also satisfy a given predicate.
  • LazyMapCollection
    A CollectionType whose elements consist of those in a Base CollectionType passed through a transform function returning Element.
  • LazyMapGenerator
    The GeneratorType used by MapSequence and MapCollection.
  • LazyMapSequence
    A SequenceType whose elements consist of those in a Base SequenceType passed through a transform function returning Element.
  • LazySequence
    A sequence containing the same elements as a Base sequence, but on which some operations such as map and filter are implemented lazily.
  • ManagedBufferPointer
    Contains a buffer object, and provides access to an instance of Value and contiguous storage for an arbitrary number of Element instances stored in that buffer.
  • Mirror
    Representation of the sub-structure and optional “display style” of any arbitrary subject instance.
  • MutableSlice
    A view into a sub-sequence of elements of another collection.
  • ObjectIdentifier
    A unique identifier for a class instance or metatype.
  • PermutationGenerator
    A generator that adapts a collection C and any sequence of its Index type to present the collection’s elements in a permuted order.
  • Range

    序列

  • RangeGenerator
    A generator over the elements of Range< Element>.

  • RawByte
    A byte-sized thing that isn’t designed to interoperate with any other types; it makes a decent parameter to UnsafeMutablePointer< Memory> when you just want to do bytewise pointer arithmetic.
  • Repeat
    A collection whose elements are all identical Elements.
  • ReverseCollection
    A Collection that presents the elements of its Base collection in reverse order.
  • ReverseIndex
    A wrapper for a BidirectionalIndexType that reverses its direction of traversal.
  • ReverseRandomAccessCollection
    A Collection that presents the elements of its Base collection in reverse order.
  • ReverseRandomAccessIndex
    A wrapper for a RandomAccessIndexType that reverses its direction of traversal.
  • Set

    集合

  • SetGenerator
    A generator over the members of a Set< Element>.

  • SetIndex
    Used to access the members in an instance of Set< Element>.
  • Slice

    切片

  • StaticString

    编译期确定的字符串

  • StrideThrough
    A SequenceType of values formed by striding over a closed interval.

  • StrideThroughGenerator
    A GeneratorType for StrideThrough< Element>.
  • StrideTo
    A SequenceType of values formed by striding over a half-open interval.
  • StrideToGenerator
    A GeneratorType for StrideTo< Element>.
  • String

    Unicode 编码字符串

  • String.CharacterView
    A String’s collection of Characters (extended grapheme clusters) elements.

  • String.CharacterView.Index
    A character position.
  • String.UTF16View
    A collection of UTF-16 code units that encodes a String value.
  • String.UTF16View.Index
    A position in a string’s collection of UTF-16 code units.
  • String.UTF8View
    A collection of UTF-8 code units that encodes a String value.
  • String.UTF8View.Index
    A position in a String.UTF8View.
  • String.UnicodeScalarView
    A collection of Unicode scalar values that encodes a String value.
  • String.UnicodeScalarView.Generator
    A type whose instances can produce the elements of this sequence, in order.
  • String.UnicodeScalarView.Index
    A position in a String.UnicodeScalarView.
  • Uint

    64比特 无符号整数

  • UInt16

    16比特 无符号整数

  • UInt32

    32比特 无符号整数

  • UInt64

    64比特 无符号整数

  • UInt8

    8比特 无符号整数

  • UTF16

    UTF-16 编码

  • UTF32

    UTF-32 编码

  • UTF8

    UTF-8 编码

  • UnicodeScalar

    Unicode 编码

  • Unmanaged
    A type for propagating an unmanaged object reference.

  • UnsafeBufferPointer

    连续内存的常量指针

  • UnsafeBufferPointerGenerator
    A generator for the elements in the buffer referenced by UnsafeBufferPointer or - UnsafeMutableBufferPointer.

  • UnsafeMutableBufferPointer

    连续内存的指针

  • UnsafeMutablePointer

    变量指针

  • UnsafePointer

    常量指针

  • Zip2Generator
    A generator for Zip2Sequence.

  • Zip2Sequence
    A sequence of pairs built out of two underlying sequences, where the elements of the ith pair are the ith elements of each underlying sequence.
  • 0 0
    原创粉丝点击