mirror of https://github.com/smol-rs/vec-arena
Compare commits
2 Commits
e113df64ae
...
0f4e715d05
Author | SHA1 | Date |
---|---|---|
Taiki Endo | 0f4e715d05 | |
Vinay Chandra Dommeti | 8a5c2de61d |
16
src/lib.rs
16
src/lib.rs
|
@ -13,15 +13,19 @@
|
||||||
//! * [Doubly linked list](https://github.com/smol-rs/vec-arena/blob/master/examples/linked_list.rs)
|
//! * [Doubly linked list](https://github.com/smol-rs/vec-arena/blob/master/examples/linked_list.rs)
|
||||||
//! * [Splay tree](https://github.com/smol-rs/vec-arena/blob/master/examples/splay_tree.rs)
|
//! * [Splay tree](https://github.com/smol-rs/vec-arena/blob/master/examples/splay_tree.rs)
|
||||||
|
|
||||||
|
#![no_std]
|
||||||
#![forbid(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
|
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
|
||||||
|
|
||||||
use std::fmt;
|
extern crate alloc;
|
||||||
use std::iter;
|
|
||||||
use std::mem;
|
use alloc::fmt;
|
||||||
use std::ops::{Index, IndexMut};
|
use alloc::vec;
|
||||||
use std::slice;
|
use alloc::vec::Vec;
|
||||||
use std::vec;
|
use core::iter;
|
||||||
|
use core::mem;
|
||||||
|
use core::ops::{Index, IndexMut};
|
||||||
|
use core::slice;
|
||||||
|
|
||||||
/// A slot, which is either vacant or occupied.
|
/// A slot, which is either vacant or occupied.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue