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:

  • width is zero or greater than 255.
  • length is smaller than 8 or is not a power of two.

Creates a new trace info from the specified length and metadata.

Panics

Panics if:

  • width is zero or greater than 255.
  • length is smaller than 8 or is not a power of two.
  • Length of meta is 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.

Returns execution trace metadata.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.