Skip to content

Allow parsing without taking ownership#27

Merged
glennib merged 1 commit intomainfrom
borrow
May 9, 2025
Merged

Allow parsing without taking ownership#27
glennib merged 1 commit intomainfrom
borrow

Conversation

@glennib
Copy link
Copy Markdown
Owner

@glennib glennib commented May 9, 2025

Tree now keeps a Cow instead of a String, which allows users to parse borrowed strings without allocating additional strings.

BREAKING CHANGE: Buffer function argument for parsed is now impl Into instead of impl Into. Additionally, Unparsable error type has changed to return this Cow instead of a String.

Tree now keeps a Cow<str> instead of a String, which allows users to
parse borrowed strings without allocating additional strings.

BREAKING CHANGE: Buffer function argument for parsed is now impl
Into<Cow> instead of impl Into<String>. Additionally, Unparsable error
type has changed to return this Cow instead of a String.
@glennib glennib merged commit fd8c847 into main May 9, 2025
2 checks passed
@glennib glennib deleted the borrow branch May 9, 2025 20:47
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.

1 participant