borrowme 0.1.0

The missing compound borrowing for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![allow(dead_code)]

use borrowme::borrowme;

#[borrowme(name = StructBuf)]
struct Struct<'a> {
    a: &'a str,
}

#[borrowme(name = UnnamedBuf)]
struct Unnamed<'a>(&'a str);

#[borrowme(name = EmptyBuf)]
struct Empty;