borrowme 0.1.0

The missing compound borrowing for Rust.
Documentation
#![allow(dead_code)]

use borrowme::borrowme;

#[borrowme]
struct Inner<'a> {
    text: &'static str,
    lang: &'a mut String,
}

#[borrowme]
struct BorrowMutStruct<'a> {
    text: &'a str,
    #[borrowme(mut)]
    inner: Inner<'a>,
}

#[borrowme]
enum BorrowMutEnum<'a> {
    Variant {
        text: &'a str,
        #[borrowme(mut)]
        inner: Inner<'a>,
    },
    Variant2 {
        text: &'a str,
        #[borrowme(mut)]
        inner: Inner<'a>,
    },
}