You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 0.17.1 provides a patch to fix the originally-unsound implementation of the new array reference types.
The reference types are now all unsized. Practically speaking, this has one major implication: writing functions and traits that accept RawRef and LayoutRef will now need a + ?Sized bound to work ergonomically with ArrayRef. For example, the release notes for 0.17.0 said
Reading / Writing Shape: LayoutRef<A, D>
LayoutRef lets functions view or modify shape/stride information without touching data.
This replaces verbose signatures like:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Version 0.17.1 provides a patch to fix the originally-unsound implementation of the new array reference types.
The reference types are now all unsized. Practically speaking, this has one major implication: writing functions and traits that accept
RawRefandLayoutRefwill now need a+ ?Sizedbound to work ergonomically withArrayRef. For example, the release notes for 0.17.0 saidHowever, these functions now need an additional bound to allow for callers to pass in
&ArrayReftypes:This discussion was created from the release 0.17.1.
Beta Was this translation helpful? Give feedback.
All reactions