Module ouroboros_impl_chain

Source
Expand description

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 Chain.
BorrowedMutFields πŸ”’
A struct for holding mutable references to all tail fields in an instance of Chain.
Chain
The self-referencing struct.
ChainAsyncBuilder πŸ”’
A more verbose but stable way to construct self-referencing structs. It is comparable to using StructName { field1: value1, field2: value2 } rather than StructName::new(value1, value2). This has the dual benefit of making your code both easier to refactor and more readable. Call build() to construct the actual struct. The fields of this struct should be used as follows:
ChainAsyncSendBuilder πŸ”’
A more verbose but stable way to construct self-referencing structs. It is comparable to using StructName { field1: value1, field2: value2 } rather than StructName::new(value1, value2). This has the dual benefit of making your code both easier to refactor and more readable. Call build() to construct the actual struct. The fields of this struct should be used as follows:
ChainAsyncSendTryBuilder πŸ”’
A more verbose but stable way to construct self-referencing structs. It is comparable to using StructName { field1: value1, field2: value2 } rather than StructName::new(value1, value2). This has the dual benefit of making your code both easier to refactor and more readable. Call try_build() or try_build_or_recover() to construct the actual struct. The fields of this struct should be used as follows:
ChainAsyncTryBuilder πŸ”’
A more verbose but stable way to construct self-referencing structs. It is comparable to using StructName { field1: value1, field2: value2 } rather than StructName::new(value1, value2). This has the dual benefit of making your code both easier to refactor and more readable. Call try_build() or try_build_or_recover() to construct the actual struct. The fields of this struct should be used as follows:
ChainBuilder πŸ”’
A more verbose but stable way to construct self-referencing structs. It is comparable to using StructName { field1: value1, field2: value2 } rather than StructName::new(value1, value2). This has the dual benefit of making your code both easier to refactor and more readable. Call build() to construct the actual struct. The fields of this struct should be used as follows:
ChainInternal πŸ”’
ChainTryBuilder πŸ”’
A more verbose but stable way to construct self-referencing structs. It is comparable to using StructName { field1: value1, field2: value2 } rather than StructName::new(value1, value2). This has the dual benefit of making your code both easier to refactor and more readable. Call try_build() or try_build_or_recover() to construct the actual struct. The fields of this struct should be used as follows:
Heads πŸ”’
A struct which contains only the head fields of Chain.

FunctionsΒ§

check_if_okay_according_to_checkers πŸ”’
type_asserts πŸ”’