Structs§
Traits§
Type Aliases§
- Marker
Type - Using
PhantomData<fn(T) -> T>instead ofPhantomData<T>to make MarkerType to beNecessarySend + Syncwhen T is notNecessarySend + 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 likeT: 'staticin some cases. For more detail: https://users.rust-lang.org/t/getting-phantomdata-to-have-a-static-lifetime/38505 - MutGuard
- Mutable
- RefGuard
- Shared