Files
Graham Lee 9ead8781d4 Add .docc catalog to publish stdlib docs on swift.org
Co-authored-by: Alex Martini <amartini@apple.com>
Co-authored-by: Graham Lee <glee23@apple.com>
Co-authored-by: Chris Adamson <cadamson@apple.com>
Co-authored-by: Kirby Turner <kirby_turner@apple.com>
Co-authored-by: Paris Pinkney <ppinkney@apple.com>
Co-authored-by: Dave Spector <dspector@apple.com>
Co-authored-by: Sofia Rodriguez Morales <sofia_rodriguez@apple.com>
Co-authored-by: Ethan Kusters <ekusters@apple.com>
Co-authored-by: Goli Mohammadi <g_mohammadi@apple.com>
Co-authored-by: Adora Vaz <a_vaz@apple.com>
Co-authored-by: David Rönnqvist <ronnqvist@apple.com>
Co-authored-by: Nate Merseth Cook <natecook@apple.com>
Co-authored-by: Susan Conant <susan_c@apple.com>
2026-04-10 10:04:56 -04:00

1.9 KiB

Swift/RawRepresentable

Topics

Creating a Value

  • Swift/RawRepresentable/init(rawValue:)

Accessing the Raw Value

  • Swift/RawRepresentable/rawValue-swift.property
  • Swift/RawRepresentable/RawValue-swift.associatedtype

Comparing Values

  • Swift/==(_:_:)-9hu5c
  • Swift/!=(_:_:)-9wy5n
  • Swift/!=(_:_:)-8pggn

Decoding a Value

These initializer overloads are available for any conforming type with a RawValue that is a Decodable standard library type.

  • Swift/RawRepresentable/init(from:)-5auil
  • Swift/RawRepresentable/init(from:)-5ar5m
  • Swift/RawRepresentable/init(from:)-417i8
  • Swift/RawRepresentable/init(from:)-9u9tp
  • Swift/RawRepresentable/init(from:)-4ibll
  • Swift/RawRepresentable/init(from:)-3hvw1
  • Swift/RawRepresentable/init(from:)-5ktev
  • Swift/RawRepresentable/init(from:)-2hvc0
  • Swift/RawRepresentable/init(from:)-114vz
  • Swift/RawRepresentable/init(from:)-29lhi
  • Swift/RawRepresentable/init(from:)-94955
  • Swift/RawRepresentable/init(from:)-6z4x4
  • Swift/RawRepresentable/init(from:)-3arr3
  • Swift/RawRepresentable/init(from:)-812cy

Encoding a Value

These overloads are available for any conforming type with a RawValue that is an Encodable standard library type.

  • Swift/RawRepresentable/encode(to:)-4evma
  • Swift/RawRepresentable/encode(to:)-5igsi
  • Swift/RawRepresentable/encode(to:)-4tbh4
  • Swift/RawRepresentable/encode(to:)-21ma8
  • Swift/RawRepresentable/encode(to:)-8horh
  • Swift/RawRepresentable/encode(to:)-78oqu
  • Swift/RawRepresentable/encode(to:)-4pavm
  • Swift/RawRepresentable/encode(to:)-86dqn
  • Swift/RawRepresentable/encode(to:)-7dyeb
  • Swift/RawRepresentable/encode(to:)-4gohs
  • Swift/RawRepresentable/encode(to:)-9u5rt
  • Swift/RawRepresentable/encode(to:)-cla3
  • Swift/RawRepresentable/encode(to:)-27waz
  • Swift/RawRepresentable/encode(to:)-16ame