w.brian
w.brian

Reputation: 17367

Does Swift have an equivalent to Rust's struct update syntax?

Rust has a nice feature they called the Struct Update Syntax, which is a convenient way of creating a new struct from an existing struct without explicitly supplying all the parameters you want to copy over.

Does Swift have an equivalent feature?

Upvotes: 0

Views: 131

Answers (1)

matt
matt

Reputation: 534950

No.

(Extra text added to permit posting.)

Upvotes: 4

Related Questions