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.

Implementations

Returns a copy of the current value.

Returns a pointer to the current value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.