-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Record: add helper constructors; allocation avoiders w/ unsafe
See embedded comments. I often find myself producing strings and never touching the record fields itself once the record struct is created, so having a few small helpers to avoid allocating through the use of unsafe seems like a small quality of life improvement. There is plenty of warning on the functions themselves to not touch the return fields.
- Loading branch information
Showing
1 changed file
with
58 additions
and
1 deletion.
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