A dynamically-sized heap-backed data page. Comprises a user-chosen header and data array packed into a single allocation.
```rust use pages::Page; // A really crappy replacement for Box
fn main() { let mut maybe = Maybe::new(); asserteq!(maybe.get(), None); maybe.put(42); asserteq!(maybe.get(), Some(42)); } ```
Copyright (c) 2021 James Laver, pages contributors.
Licensed under Apache License, Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0), with LLVM Exceptions (https://spdx.org/licenses/LLVM-exception.html).
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.