Skip to main content

Crate potential_well

Crate potential_well 

Source
Expand description

Atomic boxes.

You can use Atomic and AtomicOption to access owned pointers to values atomically, and determine whether smart pointers have to be stored in the atomic.

You can also implement your own smart pointer types using the Well trait.

Structs§

Atomic
Atomic potential well.
AtomicOption
Potentially empty atomic potential well.
PotentialAtomic
Type-hoisted Atomic.
PotentialAtomicOption
Type-hoisted AtomicOption.

Traits§

KineticWell
Inverse trait for PotentialWell.
PotentialWell
Potential well, representing a generic container.
StrongPotentialWell
PotentialWell that always yields StrongWells.
StrongWell
Smart pointer with direct access to its data.
WeakPotentialWell
PotentialWell that always yields WeakWells.
WeakWell
Smart pointer without direct access to its data.
Well
Smart pointer.

Type Aliases§

AtomicArcalloc
Alias for PotentialAtomic<T, Arc<()>>
AtomicBoxalloc
Alias for PotentialAtomic<T, Box<()>>
AtomicOptionArcalloc
Alias for PotentialAtomicOption<T, Arc<()>>
AtomicOptionBoxalloc
Alias for PotentialAtomicOption<T, Box<()>>
AtomicOptionPinArcalloc
Alias for PotentialAtomicOption<T, Pin<Arc<()>>>
AtomicOptionPinBoxalloc
Alias for PotentialAtomicOption<T, Pin<Box<()>>>
AtomicOptionPinRcalloc
Alias for PotentialAtomicOption<T, Pin<Rc<()>>>
AtomicOptionRcalloc
Alias for PotentialAtomicOption<T, Rc<()>>
AtomicPinArcalloc
Alias for PotentialAtomic<T, Pin<Arc<()>>>
AtomicPinBoxalloc
Alias for PotentialAtomic<T, Pin<Box<()>>>
AtomicPinRcalloc
Alias for PotentialAtomic<T, Pin<Rc<()>>>
AtomicRcalloc
Alias for PotentialAtomic<T, Rc<()>>
Target
Gets the target for a Well.

Trait Aliases§

StrongWellMut
Alias for StrongWell + DerefMut.