-
Notifications
You must be signed in to change notification settings - Fork 184
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
Introduce borrowed variants of normalizer structs #5413
Conversation
I had the wrong assumption of how |
@@ -89,6 +90,49 @@ impl CanonicalComposition { | |||
/// | |||
/// [📚 Help choosing a constructor](icu_provider::constructors) | |||
#[cfg(feature = "compiled_data")] | |||
pub const fn new() -> Self { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For existing borrowed types we use Owned::new() -> Borrowed
. This keeps the constructors together. I think we should discuss if that's what we want to do, but for now do it for consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm warming up to the idea that it should be Borrowed::new()
because we might want to be able to cfg-out the whole owned class at some point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll let @robertbastian review in detail since he's most familiar with the owned/borrowed compiled data architecture and is in the correct time zone, but from a drive-by, this looks quite good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems fine
I pushed a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm extremely happy about this landing! Thank you @hsivonen
|
Addresses #5187 for the normalizer.
HarfBuzz deliberately out of scope for this PR.