Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
glib: refactor GStr and GString constructors
Optimizes GString to avoid unnecessary checking for interior nul bytes. Interior nul bytes will now only be checked upon request. When converting to C strings, the string will always get truncated to the first nul byte. Since GString can now contain interior nul bytes in some circumstances, its interior representation is now Option<Box<str>>. Also adds custom error types for conversions.
- Loading branch information