Module types

Module types 

Source

Structs§

ReadOnlyMutexGuard

Traits§

MutableHelper
NecessarySend

Type Aliases§

MarkerType
Using PhantomData<fn(T) -> T> instead of PhantomData<T> to make MarkerType to be NecessarySend + Sync when T is not NecessarySend + Sync. For more detail: https://doc.rust-lang.org/nomicon/phantom-data.html#table-of-phantomdata-patterns But the lifetime of MarkerType is affected by T. Which means T and MarkerType have the same lifetime. TODO: find a better solution, so we can remove some restriction like T: 'static in some cases. For more detail: https://users.rust-lang.org/t/getting-phantomdata-to-have-a-static-lifetime/38505
MutGuard
Mutable
RefGuard
Shared