Struct turshi::memory::CairoMemory
source · pub struct CairoMemory<F> { /* private fields */ }
Expand description
This data structure stores the memory of the program
Implementations§
source§impl<F: Field> CairoMemory<F>
impl<F: Field> CairoMemory<F>
sourcepub fn new(input: Vec<F>) -> CairoMemory<F>
pub fn new(input: Vec<F>) -> CairoMemory<F>
Create a new memory structure from a vector of field elements
sourcepub fn get_codelen(&self) -> usize
pub fn get_codelen(&self) -> usize
Get size of the public memory
Trait Implementations§
source§impl<F: Field> Display for CairoMemory<F>
impl<F: Field> Display for CairoMemory<F>
source§impl<F: Field> Index<F> for CairoMemory<F>
impl<F: Field> Index<F> for CairoMemory<F>
Auto Trait Implementations§
impl<F> RefUnwindSafe for CairoMemory<F>where F: RefUnwindSafe,
impl<F> Send for CairoMemory<F>where F: Send,
impl<F> Sync for CairoMemory<F>where F: Sync,
impl<F> Unpin for CairoMemory<F>where F: Unpin,
impl<F> UnwindSafe for CairoMemory<F>where F: UnwindSafe,
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