Module benko::convert [−][src]
The implementations for the WrapBenc, and UnwrapBenc traits, which allow converting the Benc enum to and from its constituent types (BInt, BStr, BVec, BMap). Used when destructuring the Benc tree into a struct or when parsing values.
Enums
UnwrapError |
Traits
UnwrapBenc | Trait for unwrapping a Benc enum type into the sub type of its value. |
WrapBenc | Trait for wrapping a bencode type value into its enum variant. |
Type Definitions
UnwrapResult |