Struct pyo3::buffer::ReadOnlyCell [−][src]
#[repr(transparent)]pub struct ReadOnlyCell<T: Element>(_);
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.
Implementations
impl<T: Element> ReadOnlyCell<T>[src]
impl<T: Element> ReadOnlyCell<T>[src]Auto Trait Implementations
impl<T> !RefUnwindSafe for ReadOnlyCell<T>
impl<T> Send for ReadOnlyCell<T> where
T: Send,
T: Send,
impl<T> !Sync for ReadOnlyCell<T>
impl<T> Unpin for ReadOnlyCell<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for ReadOnlyCell<T> where
T: UnwindSafe,
T: UnwindSafe,