[−][src]Module rental::examples
Example types that demonstrate the API generated by the rental macro.
Structs
| SimpleMut | The simplest mutable rental. Mutable rentals have a slightly different API; compare this struct to |
| SimpleMutDeref | Identical to |
| SimpleMutDeref_Borrow | Shared borrow of a rental struct. |
| SimpleMutDeref_BorrowMut | Mutable borrow of a rental struct. |
| SimpleMut_Borrow | Shared borrow of a rental struct. |
| SimpleMut_BorrowMut | Mutable borrow of a rental struct. |
| SimpleRef | The simplest shared rental. The head is a boxed integer, and the suffix is a ref to that integer. This struct demonstrates the basic API that all shared rental structs have. See |
| SimpleRefClone | Similar to |
| SimpleRefClone_Borrow | Shared borrow of a rental struct. |
| SimpleRefClone_BorrowMut | Mutable borrow of a rental struct. |
| SimpleRefCovariant | Identical to |
| SimpleRefCovariant_Borrow | Shared borrow of a rental struct. |
| SimpleRefCovariant_BorrowMut | Mutable borrow of a rental struct. |
| SimpleRefDebug | Identical to |
| SimpleRefDebug_Borrow | Shared borrow of a rental struct. |
| SimpleRefDebug_BorrowMut | Mutable borrow of a rental struct. |
| SimpleRefDeref | Identical to |
| SimpleRefDeref_Borrow | Shared borrow of a rental struct. |
| SimpleRefDeref_BorrowMut | Mutable borrow of a rental struct. |
| SimpleRefMap | Identical to |
| SimpleRefMap_Borrow | Shared borrow of a rental struct. |
| SimpleRefMap_BorrowMut | Mutable borrow of a rental struct. |
| SimpleRef_Borrow | Shared borrow of a rental struct. |
| SimpleRef_BorrowMut | Mutable borrow of a rental struct. |