Instance Methodswift 6.0.3Swift
encode(to:)
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
func encode(to encoder: any Encoder) throws
func encode(to encoder: any Encoder) throws
ss20CollectionDifferenceV6ChangeOsSeRzSERzlE6encode2toys7Encoder_p_tKF
What are these?8HZ7S
import Swift
@frozen enum Change
A single change to a collection.
struct CollectionDifference<ChangeElement>
A collection of insertions and removals that describe the difference between two ordered collection states.
protocol Encoder
A type that can encode values into a native format for external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Decodable
A type that can decode itself from an external representation.
init(from decoder: any Decoder) throws