cell/lib.rs
1// lib.rs
2
3// Original work Copyright 2014 The Rust Project Developers.
4// Modified work Copyright 2018-2019 Daniel Mueller (deso@posteo.net).
5//
6// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
7// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
8// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
9// option. This file may not be copied, modified, or distributed
10// except according to those terms.
11
12#![warn(
13 future_incompatible,
14 missing_debug_implementations,
15 missing_docs,
16 rust_2018_compatibility,
17 unused_import_braces,
18 unused_results,
19)]
20
21//! A replacement of std::cell::RefCell adding advanced support for
22//! mapping borrows.
23
24#[allow(unused)]
25mod cell;
26mod fmt;
27
28pub use crate::cell::Ref;
29pub use crate::cell::RefCell;
30pub use crate::cell::RefMut;
31pub use crate::cell::RefVal;
32pub use crate::cell::RefValMut;