loaned 0.1.2

Safely move values with live inner borrows.
Documentation
  • Coverage
  • 64.71%
    11 out of 17 items documented4 out of 8 items with examples
  • Size
  • Source code size: 41.18 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.2 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 16s Average build duration of successful builds.
  • all releases: 16s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • tjjfvi/loaned
    4 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tjjfvi

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.