Skip to content

Add [try_]copy_from_str to Str<_>. #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2024
Merged

Add [try_]copy_from_str to Str<_>. #56

merged 1 commit into from
Apr 24, 2024

Conversation

partim
Copy link
Member

@partim partim commented Apr 24, 2024

This PR adds two functions, try_copy_from_str and copy_from_str to Str<_> that create a new octets sequence with the content of a str.

@partim partim requested a review from Philip-NLnetLabs April 24, 2024 10:13
@partim partim merged commit a892b7c into main Apr 24, 2024
24 checks passed
@partim partim deleted the copy-from-str branch April 24, 2024 15:38
partim added a commit that referenced this pull request Oct 10, 2024
New

* Added `Str::try_copy_from_str` and `Str::copy_from_str` to create a new
  `Str<_>` by copying from a `&str`. ([#56])

Bug fixes

* Fixed an infinite loop in the `OctetsBuilder::with_capacity` impl for
  `heapless::Vec<..>`. ([#59])

[#56]: #56
[#59]: #59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants