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> Freeze for CairoMemory<F>
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