Re-exports§
pub use self::enumkind::Enum;pub use self::hash::Hash;pub use self::hash::OptionalHash;
Modules§
- addressed
- ascii
- decr_
byte_ niche - default_
chain - default_
terminated - enumkind
- extra_
none_ terminated - extra_
option - extras
- ff
- fn_
fetch - hash
- hashed
- incr_
byte_ niche - inline_
extra - length_
prefixed - local_
fetch - map_
extra - monostate_
headers - nested_
mut - niche_
cut - none_
terminated - numeric
- object_
marker - parse_
extra - partial_
byte_ tag - refless
- runtime_
array - sequence
- tuple_
extra - tuple_
of_ arrays - u63
- with_
repr - zero_
terminated
Macros§
- assert_
impl - Assert that some
traitisimplemented. - error_
consistency - Construct
Error::Consistency. - error_
fetch - Construct
Error::Fetch. - error_
operation - Construct
Error::Operation. - error_
parse - Construct
Error::Parse.
Structs§
- Address
- Address within a
PointInput. - AsRead
std::io::Readrepresentation of aParseInput.- AsWrite
std::io::Writerepresentation of anOutput.- Diff
Hashes - Hashes
ToOutputrepresenting an object’s [Hash]es list.- Input
- Canonical implementation of
PointInput. - Mangled
- Niche
ForUnsized - Special
Nicheto force use of a tag without any padding. - NoNiche
- [
MaybeNiche] asserting thatVis a fake niche. - OneNiche
- Niche filled with
0xFFbytes. - Ordered
ByBytes - Refless
Input - Simplest provided implementation of
ParseInput. - Some
Niche - [
MaybeNiche] asserting thatTis a true niche. - Tags
- With
Hash - Zero
Niche - Niche filled with
0x00bytes. - Zero
NoNiche - Already occupied/unusable byte representation filled with
0x00bytes.
Enums§
- Error
- Errors encountered during fetching an object. Mostly related to parsing.
Constants§
- HASH_
SIZE - SHA-256 hash size in bytes.
Traits§
- AsAny
- Trait for contextually using
Any. Can itself be implemented for non-'staticand?Sizedtypes, and isdyn-compatible. - AsExtra
- ByteOrd
- Traits for which total order matches that of
ToOutput::vec. - Canonical
Extra - Component
- Default
Hash - Equivalent
- Implemented if both types have the exact same layout.
This implies having the same
MaybeHasNiche::MnArray. - Equivalent
For - Extra
For - This
Extracan be used to parseTviaParseSliceExtra::parse_slice_extra. - Fetch
- Application-facing traversal.
- Fetch
Bytes - Main machinery responsible for turning content-addressed structures into something we can actually traverse.
- From
Output - From
Sized - Full
Hash - Inline
- Inline
Output - Marker trait indicating that
ToOutputresult cannot be extended (no value, when represented as aVec<u8>, may be a prefix of another value). Effectively means prefix property. - List
Hashes - Semantically part of
Topologicalbut decoupled for simpler recursive bounds. - Maybe
HasNiche - This might contain a valid
Niche. - MinNiche
- This niche precedes all non-niche values.
- Monostate
- Niche
- True or fake (placeholder) niche.
- Object
- Option
Output - Provide
ToOutputforOption<Self>. - Option
Parse - Provide
ParseforOption<Self>. - Option
Parse Inline - Provide
ParseInlineforOption<Self>. - Output
- Output
Ext - Parse
- This can be parsed by consuming the whole rest of the input.
- ParseAs
- Parse
AsExtra - Parse
Inline - This can be parsed from an input, after which we can correctly parse something else.
- Parse
Input - Parse
Slice - Parse
Slice Extra - Parse
Slice Refless - Point
Input - Point
Visitor - Used in
Topological::traverse. - Rainbow
Iterator - Refless
Inline - Refless
Object - Resolve
- Something that can resolve
Addresses toByteNodes. - Significant
Length - Singular
- Singular
Fetch - Size
- SizeExt
- Tagged
- Compile-time type information used to differentiate objects even when they have same serialised data. Typically empty.
- Tags
Hash - ToCanonical
Extra - ToOutput
- Values of this type can be uniquely represented as a
Vec<u8>. - Topological
- Central
traitresponsible for providing access to walking the object tree. - Topology
- Traversible
- TryDefault
Functions§
Type Aliases§
- Byte
Node - Returned by
ResolveandFetchBytes. Represents traversal through the object graph. - Fail
Future - Fallible future type yielding either
TorError. - Result
- Default output for fallible functions.
- TopoVec