-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document Swift String copying (#318)
This commit adds documentation explaining that there is is no zero-copy way to create a Swift `String`. We also add documentation explaining that the reason the `RustString` type exists is to avoid the implicit allocation that would be required if we automatically converted Rust's `std::string::String` to Swift's `String`. We also document some potential new attributes that would allow users to opt into automatically converted from a `Rust std::string::String` to a Swift String.
- Loading branch information
Showing
2 changed files
with
54 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters