Module cbor::random [−] [src]

Generate random cbor::Values.

This module is only available with --features="random".

Functions

gen_value

Generate a random cbor::Value. Mostly useful for quickcheck related tests. The parameter level denotes the maximum nesting of this value.