3 releases

0.1.2 Jun 3, 2024
0.1.1 Apr 24, 2024
0.1.0 Apr 19, 2024

#857 in Data structures

Download history 115/week @ 2024-11-08 66/week @ 2024-11-15 64/week @ 2024-11-22 78/week @ 2024-11-29 103/week @ 2024-12-06 57/week @ 2024-12-13 74/week @ 2024-12-20 119/week @ 2024-12-27 161/week @ 2025-01-03 72/week @ 2025-01-10 45/week @ 2025-01-17 33/week @ 2025-01-24 95/week @ 2025-01-31 136/week @ 2025-02-07 82/week @ 2025-02-14

323 downloads per month
Used in 3 crates (via bend-lang)

MIT/Apache

26KB
547 lines

loaned

loaned provides Loaned<'t, T> and LoanedMut<'t, T> types which allow owning values that have live immutable/mutable borrows, allowing a limited (but very expressive) subset of self-referential structures to be expressed.

Examples

See examples/.

Safety

loaned uses unsafe code, the soundness of which has not been rigorously proven, although basic tests have been run successfully through Miri.

No runtime deps

Features