pub struct Program {
pub builtins: Vec<String>,
pub prime: String,
pub data: Vec<MaybeRelocatable>,
pub constants: HashMap<String, Felt>,
pub main: Option<usize>,
pub start: Option<usize>,
pub end: Option<usize>,
pub hints: HashMap<usize, Vec<HintParams>>,
pub reference_manager: ReferenceManager,
pub identifiers: HashMap<String, Identifier>,
pub error_message_attributes: Vec<Attribute>,
pub instruction_locations: Option<HashMap<usize, InstructionLocation>>,
}Fields§
§builtins: Vec<String>§prime: String§data: Vec<MaybeRelocatable>§constants: HashMap<String, Felt>§main: Option<usize>§start: Option<usize>§end: Option<usize>§hints: HashMap<usize, Vec<HintParams>>§reference_manager: ReferenceManager§identifiers: HashMap<String, Identifier>§error_message_attributes: Vec<Attribute>§instruction_locations: Option<HashMap<usize, InstructionLocation>>Implementations§
source§impl Program
impl Program
pub fn new(
builtins: Vec<String>,
prime: String,
data: Vec<MaybeRelocatable>,
main: Option<usize>,
hints: HashMap<usize, Vec<HintParams>>,
reference_manager: ReferenceManager,
identifiers: HashMap<String, Identifier>,
error_message_attributes: Vec<Attribute>,
instruction_locations: Option<HashMap<usize, InstructionLocation>>
) -> Result<Program, ProgramError>
pub fn from_file(
path: &Path,
entrypoint: Option<&str>
) -> Result<Program, ProgramError>
pub fn from_reader(
reader: impl Read,
entrypoint: Option<&str>
) -> Result<Program, ProgramError>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Program
impl<'de> Deserialize<'de> for Program
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Program> for Program
impl PartialEq<Program> for Program
impl Eq for Program
impl StructuralEq for Program
impl StructuralPartialEq for Program
Auto Trait Implementations§
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnwindSafe for Program
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.