Module ouroboros_examples::ouroboros_impl_chain_hack [−][src]
Encapsulates implementation details for a self-referencing struct. This module is only visible when using –document-private-items.
Structs
BorrowedFields | A struct for holding immutable references to all tail and immutably borrowed fields in an instance of |
BorrowedMutFields | A struct for holding mutable references to all tail fields in an instance of |
ChainHack | A chain of references, where c references b which references a. This is an example of a struct which requires using chain_hack as of the time this was written. |
ChainHackAsyncBuilder | A more verbose but stable way to construct self-referencing structs. It is comparable to using |
ChainHackAsyncTryBuilder | A more verbose but stable way to construct self-referencing structs. It is comparable to using |
ChainHackBuilder | A more verbose but stable way to construct self-referencing structs. It is comparable to using |
ChainHackTryBuilder | A more verbose but stable way to construct self-referencing structs. It is comparable to using |
Heads | A struct which contains only the head fields of |
Functions
type_asserts |