Skip to content

feat: add OwnedLazyValue::as_raw_str() method#230

Open
sjthomason wants to merge 1 commit into
cloudwego:mainfrom
ogital-net:owned-lazyvalue-as-raw-str
Open

feat: add OwnedLazyValue::as_raw_str() method#230
sjthomason wants to merge 1 commit into
cloudwego:mainfrom
ogital-net:owned-lazyvalue-as-raw-str

Conversation

@sjthomason

Copy link
Copy Markdown

Matches LazyValue::as_raw_str(). Returns Option because OwnedLazyValue can be in a Parsed state with no raw text. Enables zero-copy deserialization from OwnedLazyValue.

Fixes #194

What type of PR is this?

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en:
zh(optional):

(Optional) Which issue(s) this PR fixes:

(optional) The PR that updates user documentation:

Matches LazyValue::as_raw_str(). Returns Option because OwnedLazyValue
can be in a Parsed state with no raw text. Enables zero-copy
deserialization from OwnedLazyValue.

Fixes cloudwego#194
@CLAassistant

CLAassistant commented Jul 2, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Parse OwnedLazyValue into a custom struct

2 participants