3 releases

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

#604 in Data structures

Download history 239/week @ 2024-06-28 186/week @ 2024-07-05 130/week @ 2024-07-12 111/week @ 2024-07-19 96/week @ 2024-07-26 162/week @ 2024-08-02 121/week @ 2024-08-09 98/week @ 2024-08-16 77/week @ 2024-08-23 98/week @ 2024-08-30 81/week @ 2024-09-06 71/week @ 2024-09-13 95/week @ 2024-09-20 54/week @ 2024-09-27 100/week @ 2024-10-04 74/week @ 2024-10-11

325 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