borrowfix 0.1.4

A fix for all you borrow checker problems
Documentation
  • Coverage
  • 66.67%
    2 out of 3 items documented0 out of 2 items with examples
  • Size
  • Source code size: 2.72 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.04 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • 10maurycy10

note: This crate is a joke and under no circumstance should you actually use it (unless you want your stuff to break)

borrow-fix

Is the borrow checker getting in your way?

This crate fixes that.

Example:

without borrow-fix:

fn printit(s :String) {
	println!("{}",s);
}

let s = String::new();
printit(s);
println!("s is {}",s); // Wont compile :(

with borrow-fix:

use borrowfix::remember;

fn printit(s :String) {
	println!("{}",s);
}

let s = String::new();
let refer = remember(&s);
printit(s);
println!("refer is {}",refer); // Works fine

Safety

As this crate uses fully safe code. It wont causÊÃúý$HOME/projects/borrowf[SEGMENTATION FAULT]