Struct leo_compiler::InputAst
source · pub struct InputAst {
pub sections: Vec<Section, Global>,
}Expand description
A raw unprocessed input or state file data. Used for future conversion
into ProgramInput.
Fields§
§sections: Vec<Section, Global>Implementations§
source§impl InputAst
impl InputAst
sourcepub fn program_inputs(
&self,
program_name: &str,
structs: IndexMap<Symbol, Struct, RandomState>
) -> Vec<String, Global>
pub fn program_inputs( &self, program_name: &str, structs: IndexMap<Symbol, Struct, RandomState> ) -> Vec<String, Global>
Returns all values of the input AST for execution with leo run.
sourcepub fn to_json_value(&self) -> Result<Value, LeoError>
pub fn to_json_value(&self) -> Result<Value, LeoError>
Serializes the Input into a JSON Value.
Trait Implementations§
source§impl<'de> Deserialize<'de> for InputAst
impl<'de> Deserialize<'de> for InputAst
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<InputAst, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<InputAst, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for InputAst
impl Serialize for InputAst
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for InputAst
impl Send for InputAst
impl Sync for InputAst
impl Unpin for InputAst
impl UnwindSafe for InputAst
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