pub struct ProgramOptions {
pub cfv: u32,
pub ptr_len: MemoryPointerLength,
}
Expand description
A struct containing the required options for the VM. This struct represents an ivmc bytecode header.
Fields§
§cfv: u32
§ptr_len: MemoryPointerLength
Implementations§
Source§impl ProgramOptions
impl ProgramOptions
Sourcepub fn write_bytecode(&self, output: &mut Vec<u8>)
pub fn write_bytecode(&self, output: &mut Vec<u8>)
Write these options as a bytecode header into the given Vec.
Sourcepub fn new(cfv: u32, ptr_len: MemoryPointerLength) -> Self
pub fn new(cfv: u32, ptr_len: MemoryPointerLength) -> Self
Create a new ProgramOptions.
Auto Trait Implementations§
impl Freeze for ProgramOptions
impl RefUnwindSafe for ProgramOptions
impl Send for ProgramOptions
impl Sync for ProgramOptions
impl Unpin for ProgramOptions
impl UnwindSafe for ProgramOptions
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