3 releases

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

#613 in Data structures

Download history 106/week @ 2024-07-24 145/week @ 2024-07-31 140/week @ 2024-08-07 104/week @ 2024-08-14 82/week @ 2024-08-21 96/week @ 2024-08-28 75/week @ 2024-09-04 75/week @ 2024-09-11 84/week @ 2024-09-18 72/week @ 2024-09-25 90/week @ 2024-10-02 77/week @ 2024-10-09 101/week @ 2024-10-16 68/week @ 2024-10-23 67/week @ 2024-10-30 80/week @ 2024-11-06

320 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