Struct miden_processor::TraceLenSummary
source · pub struct TraceLenSummary { /* private fields */ }
Expand description
Contains the data about lengths of the trace parts.
main_trace_len
contains the length of the main trace.range_trace_len
contains the length of the range checker trace.chiplets_trace_len
contains the trace lengths of the all chiplets (hash, bitwise, memory, kernel ROM)
Implementations§
source§impl TraceLenSummary
impl TraceLenSummary
pub fn new( main_trace_len: usize, range_trace_len: usize, chiplets_trace_len: ChipletsLengths ) -> Self
sourcepub fn main_trace_len(&self) -> usize
pub fn main_trace_len(&self) -> usize
Returns length of the main trace.
sourcepub fn range_trace_len(&self) -> usize
pub fn range_trace_len(&self) -> usize
Returns length of the range checker trace.
sourcepub fn chiplets_trace_len(&self) -> ChipletsLengths
pub fn chiplets_trace_len(&self) -> ChipletsLengths
Returns ChipletsLengths which contains trace lengths of all chilplets.
sourcepub fn padded_trace_len(&self) -> usize
pub fn padded_trace_len(&self) -> usize
Returns trace_len
rounded up to the next power of two.
sourcepub fn padding_percentage(&self) -> usize
pub fn padding_percentage(&self) -> usize
Returns the percent (0 - 100) of the steps that were added to the trace to pad it to the next power of tow.
Trait Implementations§
source§impl Clone for TraceLenSummary
impl Clone for TraceLenSummary
source§fn clone(&self) -> TraceLenSummary
fn clone(&self) -> TraceLenSummary
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TraceLenSummary
impl Debug for TraceLenSummary
source§impl Default for TraceLenSummary
impl Default for TraceLenSummary
source§fn default() -> TraceLenSummary
fn default() -> TraceLenSummary
Returns the “default value” for a type. Read more
source§impl PartialEq for TraceLenSummary
impl PartialEq for TraceLenSummary
source§fn eq(&self, other: &TraceLenSummary) -> bool
fn eq(&self, other: &TraceLenSummary) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TraceLenSummary
impl Eq for TraceLenSummary
impl StructuralPartialEq for TraceLenSummary
Auto Trait Implementations§
impl Freeze for TraceLenSummary
impl RefUnwindSafe for TraceLenSummary
impl Send for TraceLenSummary
impl Sync for TraceLenSummary
impl Unpin for TraceLenSummary
impl UnwindSafe for TraceLenSummary
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more