#checker #joke #break #string #problem #circumstance #printit

borrowfix

A fix for all you borrow checker problems

5 releases

0.1.4 Feb 10, 2022
0.1.3 Feb 10, 2022
0.1.2 Feb 10, 2022
0.1.1 Feb 10, 2022
0.1.0 Feb 10, 2022

#19 in #joke

Unlicense

4KB

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]

No runtime deps