borrowfix

Crates.ioborrowfix
lib.rsborrowfix
version0.1.4
sourcesrc
created_at2022-02-10 22:16:47.72224
updated_at2022-02-10 23:11:05.772372
descriptionA fix for all you borrow checker problems
homepage
repositoryhttps://github.com/10maurycy10/borrowfix
max_upload_size
id530477
size3,040
(10maurycy10)

documentation

README

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]

Commit count: 8

cargo fmt