macro_rules! cell { ($e:expr) => { ... }; ($e:expr,) => { ... }; ($($e:expr),+ $(,)?) => { ... }; }
Create a new Cell.
Cell
It is also able to create tuples if given more than one parameter.
use std::cell::Cell; use sugars::cell; assert_eq!(Cell::new(10), cell!(10));