Struct pyo3::buffer::ReadOnlyCell [−][src]
#[repr(transparent)]pub struct ReadOnlyCell<T: Element>(_);
Expand description
Like std::cell::Cell, but only provides read-only access to the data.
&ReadOnlyCell<T>
is basically a safe version of *const T
:
The data cannot be modified through the reference, but other references may
be modifying the data.