Required Instance Methodswift 6.0.1Swift

    encode(contentsOf:)

    Encodes the elements of the given sequence.

    mutating func encode<T>(contentsOf sequence: T) throws where T : Sequence, T.Element == Int

    Parameters

    sequence

    The sequences whose contents to encode.

    Throws

    An error if any of the contained values throws an error.

    Other requirements

    View members

    Hide members

    This section is hidden by default because it contains too many (40) members.

    Instance members

    Citizens in Swift

    Default implementations