Struct pyo3::buffer::ReadOnlyCell
[−]
[src]
pub struct ReadOnlyCell<T>(_);
Like std::mem::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.
Methods
impl<T: Copy> ReadOnlyCell<T>
[src]
Trait Implementations
Auto Trait Implementations
impl<T> Send for ReadOnlyCell<T> where
T: Send,
T: Send,