Struct leo_compiler::InputAst
source · Expand description
A raw unprocessed input or state file data. Used for future conversion
into ProgramInput
.
Fields
sections: Vec<Section, Global>
Implementations
sourceimpl 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
sourceimpl<'de> Deserialize<'de> for InputAst
impl<'de> Deserialize<'de> for InputAst
sourcefn 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
sourceimpl Serialize for InputAst
impl Serialize for InputAst
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more