pub struct ProgramInput {
pub main: MainInput,
/* private fields */
}
Fields§
§main: MainInput
Implementations§
Source§impl ProgramInput
impl ProgramInput
pub fn new() -> Self
Sourcepub fn empty(&self) -> Self
pub fn empty(&self) -> Self
Returns an empty version of this struct with None
values.
Called during constraint synthesis to provide private input values.
pub fn len(&self) -> usize
Sourcepub fn parse(&mut self, section: Section<'_>) -> Result<(), InputParserError>
pub fn parse(&mut self, section: Section<'_>) -> Result<(), InputParserError>
Parse each input included in a file and store them in self
.
Sourcepub fn get(&self, name: &String) -> Option<Option<InputValue>>
pub fn get(&self, name: &String) -> Option<Option<InputValue>>
Returns the main function input value with the given name
Sourcepub fn get_registers(&self) -> &Registers
pub fn get_registers(&self) -> &Registers
Returns the runtime register input values
Trait Implementations§
Source§impl Clone for ProgramInput
impl Clone for ProgramInput
Source§fn clone(&self) -> ProgramInput
fn clone(&self) -> ProgramInput
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 Default for ProgramInput
impl Default for ProgramInput
Source§fn default() -> ProgramInput
fn default() -> ProgramInput
Returns the “default value” for a type. Read more
Source§impl PartialEq for ProgramInput
impl PartialEq for ProgramInput
impl Eq for ProgramInput
impl StructuralPartialEq for ProgramInput
Auto Trait Implementations§
impl Freeze for ProgramInput
impl RefUnwindSafe for ProgramInput
impl Send for ProgramInput
impl Sync for ProgramInput
impl Unpin for ProgramInput
impl UnwindSafe for ProgramInput
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