use {crate::ptr_ext::PtrExt, std::cell::Cell}; pub trait CellExt { fn is_some(&self) -> bool; fn is_none(&self) -> bool; } impl CellExt for Cell> { fn is_some(&self) -> bool { unsafe { self.as_ptr().deref().is_some() } } fn is_none(&self) -> bool { !self.is_some() } }