Struct miden_processor::ChipletsLengths
source · pub struct ChipletsLengths { /* private fields */ }
Expand description
Contains trace lengths of all chilplets: hash, bitwise, memory and kernel ROM trace lengths.
Implementations§
source§impl ChipletsLengths
impl ChipletsLengths
pub fn new(chiplets: &Chiplets) -> Self
pub fn from_parts( hash_len: usize, bitwise_len: usize, memory_len: usize, kernel_len: usize ) -> Self
sourcepub fn hash_chiplet_len(&self) -> usize
pub fn hash_chiplet_len(&self) -> usize
Returns the length of the hash chiplet trace
sourcepub fn bitwise_chiplet_len(&self) -> usize
pub fn bitwise_chiplet_len(&self) -> usize
Returns the length of the bitwise trace
sourcepub fn memory_chiplet_len(&self) -> usize
pub fn memory_chiplet_len(&self) -> usize
Returns the length of the memory trace
sourcepub fn kernel_rom_len(&self) -> usize
pub fn kernel_rom_len(&self) -> usize
Returns the length of the kernel ROM trace
Trait Implementations§
source§impl Clone for ChipletsLengths
impl Clone for ChipletsLengths
source§fn clone(&self) -> ChipletsLengths
fn clone(&self) -> ChipletsLengths
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 ChipletsLengths
impl Debug for ChipletsLengths
source§impl Default for ChipletsLengths
impl Default for ChipletsLengths
source§fn default() -> ChipletsLengths
fn default() -> ChipletsLengths
Returns the “default value” for a type. Read more
source§impl PartialEq for ChipletsLengths
impl PartialEq for ChipletsLengths
source§fn eq(&self, other: &ChipletsLengths) -> bool
fn eq(&self, other: &ChipletsLengths) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ChipletsLengths
impl Eq for ChipletsLengths
impl StructuralPartialEq for ChipletsLengths
Auto Trait Implementations§
impl Freeze for ChipletsLengths
impl RefUnwindSafe for ChipletsLengths
impl Send for ChipletsLengths
impl Sync for ChipletsLengths
impl Unpin for ChipletsLengths
impl UnwindSafe for ChipletsLengths
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