1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#[macro_use] extern crate nix; extern crate libc; /// Marker to define a type as safe to share. pub unsafe trait Safe { } unsafe impl<T: Copy + 'static> Safe for T { } mod error; pub use error::{Error, Result}; mod object; pub use object::Object; pub mod array; pub use array::{Owned as Array, Reference as ArrayRef, Mutable as ArrayMut}; pub mod map; pub use map::{Owned as Map, Reference as MapRef, Mutable as MapMut}; pub use map::{create, open};