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
15
#![allow(dead_code)]

use borrowme::borrowme;

#[borrowme]
struct Struct<'a> {
    #[owned(String)]
    a: &'a str,
}

#[borrowme]
struct Unnamed<'a>(#[owned(String)] &'a str);

#[borrowme]
struct Empty;