Expand description
When you want to implement a pyclass that can obtain ownership of the internal value in a semantically compatible way, you can use this module.
Pay attention to this module’s:
Structs§
- Consumed
Error - This error indicates that the internal value has been consumed, i.e., its ownership has been moved out.
- Lock
Error - This error indicates that the internal value has already been mutably borrowed. At this point, you must wait for other code to release the lock.
- PyWrapper
- You can wrap the desired internal value in this structure to implement a pyclass that can obtain ownership of the internal value.
Traits§
- Mappable
Deref - This trait provides compatibility between
&T
and parking_lot::RwLockReadGuard - Mappable
Deref Mut - This trait provides compatibility between [&mut T] and parking_lot::RwLockWriteGuard
- PyWrapper
Semver Ext - This trait allows you to handle PyWrapperT0 and PyWrapperT1 with the API of PyWrapper<PyWrapperT2>, so you can write future-compatible code.
Type Aliases§
- Consumed
Result - Lock
Result - PyWrapper
T0 - Can only obtain alias references
- PyWrapper
T1 - Can obtain alias references and mutable references
- PyWrapper
T2 - Can obtain alias references, mutable references, and ownership