Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![crate_type = "lib"]
- extern crate memmap;
- fn read_u64<T: AsRef<[u8]>>(buf: T) {}
- fn main() {
- let mmap: memmap::MmapMut = unimplemented!();
- // you can pass a reference ...
- read_u64(&mmap);
- // ... or pass an owned value.
- read_u64(mmap);
- }
Add Comment
Please, Sign In to add comment