siyopao opened PR #1909 from guestptr-conversion
to master
:
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->As requested in #1888, adds a method to convert a
GuestPtr<[u8]>
to aGuestPtr<str>
without first validating that the[u8]
consists of utf-8 codepoints. The conversion in the other direction already exists asas_bytes
.Although unrelated to this PR, while I was in there I found a couple of small typos in the docs so I fixed them.
Resolves #1888.
kubkon submitted PR Review.
siyopao updated PR #1909 from guestptr-conversion
to master
:
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->As requested in #1888, adds a method to convert a
GuestPtr<[u8]>
to aGuestPtr<str>
without first validating that the[u8]
consists of utf-8 codepoints. The conversion in the other direction already exists asas_bytes
.Although unrelated to this PR, while I was in there I found a couple of small typos in the docs so I fixed them.
Resolves #1888.
pchickey submitted PR Review.
pchickey submitted PR Review.
pchickey created PR Review Comment:
/// Returns a pointer to the string represented by a `[u8]` without
pchickey created PR Review Comment:
/// Returns a pointer for the underlying slice of bytes that this
pchickey updated PR #1909 from guestptr-conversion
to master
:
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->As requested in #1888, adds a method to convert a
GuestPtr<[u8]>
to aGuestPtr<str>
without first validating that the[u8]
consists of utf-8 codepoints. The conversion in the other direction already exists asas_bytes
.Although unrelated to this PR, while I was in there I found a couple of small typos in the docs so I fixed them.
Resolves #1888.
pchickey updated PR #1909 from guestptr-conversion
to master
:
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->As requested in #1888, adds a method to convert a
GuestPtr<[u8]>
to aGuestPtr<str>
without first validating that the[u8]
consists of utf-8 codepoints. The conversion in the other direction already exists asas_bytes
.Although unrelated to this PR, while I was in there I found a couple of small typos in the docs so I fixed them.
Resolves #1888.
pchickey merged PR #1909.
Last updated: Dec 23 2024 at 12:05 UTC