implement CachedFrozenArray (#34145)

* extract code into CachedFrozenArray

Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>

* fix borrow crash

Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>

* fix already borrowed error

using an else will cause the borrow to live more than it needs
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>

* restore return statement

Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>

---------

Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
This commit is contained in:
Gae24 2024-11-06 22:26:08 +01:00 committed by GitHub
parent 6c2b840e37
commit 48d193cb83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 98 additions and 76 deletions

View file

@ -142,6 +142,7 @@ pub mod constructor;
pub mod conversions;
pub mod error;
pub mod finalize;
pub mod frozenarray;
pub mod guard;
pub mod import;
pub mod inheritance;