pub struct Program { /* private fields */ }
Expand description
A RISC Zero program
Implementations§
Source§impl Program
impl Program
Sourcepub fn load_elf(input: &[u8], max_mem: u32) -> Result<Program>
pub fn load_elf(input: &[u8], max_mem: u32) -> Result<Program>
Initialize a RISC Zero Program from an appropriate ELF file
Sourcepub fn new_from_entry_and_image(entry: u32, image: BTreeMap<u32, u32>) -> Self
pub fn new_from_entry_and_image(entry: u32, image: BTreeMap<u32, u32>) -> Self
Create Program
from given entry-point and image map
Sourcepub fn size_in_words(&self) -> usize
pub fn size_in_words(&self) -> usize
The size of the image in a count of words
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnwindSafe for Program
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