Contents

StringProtocol

A type that can represent a string as a collection of characters.

Declaration

protocol StringProtocol : BidirectionalCollection, Comparable, ExpressibleByStringInterpolation, Hashable, LosslessStringConvertible, TextOutputStream, TextOutputStreamable where Self.Element == Character, Self.Index == String.Index, Self.StringInterpolation == DefaultStringInterpolation, Self.SubSequence : StringProtocol

Overview

Do not declare new conformances to StringProtocol. Only the String and Substring types in the standard library are valid conforming types.

Topics

Operators

Associated Types

Initializers

Instance Properties

Instance Methods

See Also

Related String Types