german-str-borrow 0.3.0

German/Umbra-style strings. Data is borrowed, static, or inlined
Documentation
1
2
3
4
5
6
7
8
use crate::StrAllocator;
use bumpalo::Bump;

unsafe impl<'a> StrAllocator<'a> for &'a Bump {
    fn allocate(self, data: &[u8]) -> &'a [u8] {
        self.alloc_slice_copy(data)
    }
}