control-center: add in-process control center
This commit is contained in:
parent
008e8a671a
commit
186d5b694b
28 changed files with 859 additions and 14 deletions
|
|
@ -100,6 +100,14 @@ impl<T> NumCell<T> {
|
|||
{
|
||||
!self.is_zero()
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn take(&self) -> T
|
||||
where
|
||||
T: Default,
|
||||
{
|
||||
self.t.replace(T::default())
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: BitOr<Output = T> + Copy> BitOr<T> for &'_ NumCell<T> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue