pub struct TraceInfo { /* private fields */ }
Expand description

Information about a specific execution trace.

Trace info consists of trace layout info, length, and optional custom metadata. Trace layout specifies the number of columns for all trace segments. Currently, a trace can consist of at most two segments. 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 columns in an execution trace (across all segments); currently set at 255.

Maximum number of bytes in trace metadata; currently set at 65535.

Maximum number of random elements per auxiliary trace segment; currently set to 255.

Creates a new TraceInfo from the specified trace width and length.

An execution trace described by this trace info is limited to a single segment.

Panics

Panics if:

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

Creates a new TraceInfo from the specified trace width, length, and metadata.

An execution trace described by this trace info is limited to a single segment.

Panics

Panics if:

  • Trace width is zero or greater than 255.
  • Trace length is smaller than 8 or is not a power of two.
  • Length of meta is greater than 65535;

Creates a new TraceInfo from the specified trace segment widths, length, and metadata.

Panics

Panics if:

  • The width of the first trace segment is zero.
  • Total width of all trace segments is greater than 255.
  • Trace length is smaller than 8 or is not a power of two.

Returns a description of how execution trace columns are arranged into segments.

Currently, an execution trace can consist of at most two segments.

Returns the total number of columns in an execution trace.

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.

Returns true if an execution trace contains more than one segment.

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 !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.