macro_rules! cell {
    ($e:expr) => { ... };
    ($e:expr,) => { ... };
    ($($e:expr),+ $(,)?) => { ... };
}
Expand description

Create a new Cell.

It is also able to create tuples if given more than one parameter.

Example

use std::cell::Cell;
use sugars::cell;

assert_eq!(Cell::new(10), cell!(10));