pub unsafe trait AtomicCellStorable {
    const TAKEN_VALUE: usize;

    fn into_value(self) -> usize;
unsafe fn from_value(value: usize) -> Self; }
Expand description

It is up to the implementer to ensure this is safe to implement.

from_value and into_value should never panic nor return TAKEN_VALUE. It is also up to the implementer to ensure that if T implements Clone, its implementation of clone() will never panic.

Associated Constants

A sentinel value that a valid instance should never occupy.

Required methods

Convert an instance into a raw value, transferring ownership.

Convert a raw value back into an instance.

Implementations on Foreign Types

Implementors