boar 0.2.4

Flexible clone on write smart pointers with Borrowed, Owned, Arc, Rc and Static variants. Like std's Cow without the ToOwned requirement and additional Rc, Arc or Static variants.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod boa_;
mod boar_;

#[test]
fn size_of_boa_str() {
    use boar::BoasStr;
    use std::borrow::Cow;
    use std::mem::size_of;

    dbg!(size_of::<&str>());
    dbg!(size_of::<String>());
    dbg!(size_of::<BoasStr>());
    dbg!(size_of::<Cow<str>>());
    assert_eq!(size_of::<Cow<str>>(), size_of::<BoasStr>());
}