Struct winter_prover::TraceInfo [−][src]
pub struct TraceInfo { /* fields omitted */ }Expand description
Information about a specific execution trace.
Trace info consists of trace width, length, and optional custom metadata. Metadata is just a vector of bytes and can store any values up to 64KB in size.
Implementations
Smallest allowed execution trace length; currently set at 8.
Maximum number of registers in an execution trace; currently set at 255.
Maximum number of bytes in trace metadata; currently set at 65535.
Creates a new trace info from the specified length.
Panics
Panics if:
widthis zero or greater than 255.lengthis smaller than 8 or is not a power of two.
Creates a new trace info from the specified length and metadata.
Panics
Panics if:
widthis zero or greater than 255.lengthis smaller than 8 or is not a power of two.- Length of
metais greater than 65535;
Returns execution trace width;
This is guaranteed to be between 1 and 255.
Returns execution trace length.
The length is guaranteed to be a power of two.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TraceInfo
impl UnwindSafe for TraceInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self