const STUB_MSG: &str = "arcis::std::cell is documentation-only; \
inside `#[encrypted]` code the interpreter intercepts the real method before this stub runs.";
#[derive(Debug, Clone, Default, PartialEq, Eq)]
pub struct Cell<T> {
_phantom: ::core::marker::PhantomData<T>,
}
impl<T> Cell<T> {
pub fn new(value: T) -> Cell<T> {
unimplemented!("{STUB_MSG}")
}
pub fn from_mut(t: &mut T) -> &Cell<T> {
unimplemented!("{STUB_MSG}")
}
pub fn set(&self, val: T) {
unimplemented!("{STUB_MSG}")
}
pub fn swap(&self, other: &Cell<T>) {
unimplemented!("{STUB_MSG}")
}
pub fn update(&self, f: impl FnOnce(T) -> T)
where
T: ::core::marker::Copy,
{
unimplemented!("{STUB_MSG}")
}
pub fn replace(&self, val: T) -> T {
unimplemented!("{STUB_MSG}")
}
pub fn into_inner(self) -> T {
unimplemented!("{STUB_MSG}")
}
pub fn get(&self) -> T
where
T: ::core::marker::Copy,
{
unimplemented!("{STUB_MSG}")
}
pub fn get_mut(&mut self) -> &mut T {
unimplemented!("{STUB_MSG}")
}
}