diff --git a/leo_lang/cli/account/enum.Account.html b/leo_lang/cli/account/enum.Account.html index 8865c70da8..5f3b61e678 100644 --- a/leo_lang/cli/account/enum.Account.html +++ b/leo_lang/cli/account/enum.Account.html @@ -50,15 +50,15 @@ and needs its output result, this is where the result type is defined. Example: type Input: ::Out
§

type Output = ()

Defines the output of this command, which may be used as Input for another command. If this command is not used as a prelude for another command, -this field may be left empty.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>
where - Self: Sized,

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, ctx: Context, _: Self::Input) -> Result<Self::Output>
where +this field may be left empty.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>
where + Self: Sized,

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, ctx: Context, _: Self::Input) -> Result<Self::Output>
where Self: Sized,

Runs the main operation of this command. This function is run within context of ‘execute’ function, which sets logging and timers.
source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Account

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Account

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Account

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/add/struct.Add.html b/leo_lang/cli/add/struct.Add.html index 1fd7688c6a..277da82a0b 100644 --- a/leo_lang/cli/add/struct.Add.html +++ b/leo_lang/cli/add/struct.Add.html @@ -11,10 +11,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Add

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Add

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Add

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/build/struct.Build.html b/leo_lang/cli/build/struct.Build.html index 55705e0618..ba2a042fd4 100644 --- a/leo_lang/cli/build/struct.Build.html +++ b/leo_lang/cli/build/struct.Build.html @@ -8,10 +8,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Build

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Build

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Build

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/clean/struct.Clean.html b/leo_lang/cli/clean/struct.Clean.html index c80e613027..941034ec10 100644 --- a/leo_lang/cli/clean/struct.Clean.html +++ b/leo_lang/cli/clean/struct.Clean.html @@ -6,10 +6,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Clean

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Clean

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Clean

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/cli/fn.handle_error.html b/leo_lang/cli/cli/fn.handle_error.html index 062baa8062..706e2ad106 100644 --- a/leo_lang/cli/cli/fn.handle_error.html +++ b/leo_lang/cli/cli/fn.handle_error.html @@ -1 +1 @@ -handle_error in leo_lang::cli::cli - Rust

Function leo_lang::cli::cli::handle_error

source ·
pub fn handle_error<T>(res: Result<T>) -> T
\ No newline at end of file +handle_error in leo_lang::cli::cli - Rust

Function leo_lang::cli::cli::handle_error

source ·
pub fn handle_error<T>(res: Result<T>) -> T
\ No newline at end of file diff --git a/leo_lang/cli/cli/fn.run_with_args.html b/leo_lang/cli/cli/fn.run_with_args.html index 1bd2ddcff7..fceffed250 100644 --- a/leo_lang/cli/cli/fn.run_with_args.html +++ b/leo_lang/cli/cli/fn.run_with_args.html @@ -1,2 +1,2 @@ -run_with_args in leo_lang::cli::cli - Rust

Function leo_lang::cli::cli::run_with_args

source ·
pub fn run_with_args(cli: CLI) -> Result<()>
Expand description

Run command with custom build arguments.

+run_with_args in leo_lang::cli::cli - Rust

Function leo_lang::cli::cli::run_with_args

source ·
pub fn run_with_args(cli: CLI) -> Result<()>
Expand description

Run command with custom build arguments.

\ No newline at end of file diff --git a/leo_lang/cli/commands/account/enum.Account.html b/leo_lang/cli/commands/account/enum.Account.html index 6ce9816598..c12af7cec2 100644 --- a/leo_lang/cli/commands/account/enum.Account.html +++ b/leo_lang/cli/commands/account/enum.Account.html @@ -50,15 +50,15 @@ and needs its output result, this is where the result type is defined. Example: type Input: ::Out
§

type Output = ()

Defines the output of this command, which may be used as Input for another command. If this command is not used as a prelude for another command, -this field may be left empty.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>
where - Self: Sized,

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, ctx: Context, _: Self::Input) -> Result<Self::Output>
where +this field may be left empty.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>
where + Self: Sized,

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, ctx: Context, _: Self::Input) -> Result<Self::Output>
where Self: Sized,

Runs the main operation of this command. This function is run within context of ‘execute’ function, which sets logging and timers.
source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error

source§

impl CommandFactory for Account

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Account

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Account

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/commands/account/fn.display_string_discreetly.html b/leo_lang/cli/commands/account/fn.display_string_discreetly.html index f40620b650..c9119ca234 100644 --- a/leo_lang/cli/commands/account/fn.display_string_discreetly.html +++ b/leo_lang/cli/commands/account/fn.display_string_discreetly.html @@ -1,5 +1,5 @@ display_string_discreetly in leo_lang::cli::commands::account - Rust

Function leo_lang::cli::commands::account::display_string_discreetly

source ·
fn display_string_discreetly(
     discreet_string: &str,
     continue_message: &str
-) -> Result<()>
Expand description

Print the string to an alternate screen, so that the string won’t been printed to the terminal.

+) -> Result<()>
Expand description

Print the string to an alternate screen, so that the string won’t been printed to the terminal.

\ No newline at end of file diff --git a/leo_lang/cli/commands/account/fn.generate_new_account.html b/leo_lang/cli/commands/account/fn.generate_new_account.html index 7ad7c989ea..5a1bbaf0b7 100644 --- a/leo_lang/cli/commands/account/fn.generate_new_account.html +++ b/leo_lang/cli/commands/account/fn.generate_new_account.html @@ -3,4 +3,4 @@ write: bool, discreet: bool, ctx: &Context -) -> Result<()>

\ No newline at end of file +) -> Result<()>
\ No newline at end of file diff --git a/leo_lang/cli/commands/account/fn.import_account.html b/leo_lang/cli/commands/account/fn.import_account.html index dd168c98a8..a002a16f77 100644 --- a/leo_lang/cli/commands/account/fn.import_account.html +++ b/leo_lang/cli/commands/account/fn.import_account.html @@ -3,4 +3,4 @@ write: bool, discreet: bool, ctx: &Context -) -> Result<()> \ No newline at end of file +) -> Result<()> \ No newline at end of file diff --git a/leo_lang/cli/commands/account/fn.print_keys.html b/leo_lang/cli/commands/account/fn.print_keys.html index c1d339cb98..bdfdecc06a 100644 --- a/leo_lang/cli/commands/account/fn.print_keys.html +++ b/leo_lang/cli/commands/account/fn.print_keys.html @@ -1,4 +1,4 @@ print_keys in leo_lang::cli::commands::account - Rust

Function leo_lang::cli::commands::account::print_keys

source ·
fn print_keys<N: Network>(
     private_key: PrivateKey<N>,
     discreet: bool
-) -> Result<()>
\ No newline at end of file +) -> Result<()> \ No newline at end of file diff --git a/leo_lang/cli/commands/account/fn.sign_message.html b/leo_lang/cli/commands/account/fn.sign_message.html index a1b2cc998f..c51bced38f 100644 --- a/leo_lang/cli/commands/account/fn.sign_message.html +++ b/leo_lang/cli/commands/account/fn.sign_message.html @@ -4,4 +4,4 @@ raw: bool, private_key: Option<String>, private_key_file: Option<String> -) -> Result<String> \ No newline at end of file +) -> Result<String> \ No newline at end of file diff --git a/leo_lang/cli/commands/account/fn.verify_message.html b/leo_lang/cli/commands/account/fn.verify_message.html index 4889806ebc..7cd3a40be7 100644 --- a/leo_lang/cli/commands/account/fn.verify_message.html +++ b/leo_lang/cli/commands/account/fn.verify_message.html @@ -3,4 +3,4 @@ signature: String, message: String, raw: bool -) -> Result<String> \ No newline at end of file +) -> Result<String> \ No newline at end of file diff --git a/leo_lang/cli/commands/account/fn.write_to_env_file.html b/leo_lang/cli/commands/account/fn.write_to_env_file.html index 153b706469..2de0ed55f0 100644 --- a/leo_lang/cli/commands/account/fn.write_to_env_file.html +++ b/leo_lang/cli/commands/account/fn.write_to_env_file.html @@ -1,4 +1,4 @@ write_to_env_file in leo_lang::cli::commands::account - Rust

Function leo_lang::cli::commands::account::write_to_env_file

source ·
fn write_to_env_file<N: Network>(
     private_key: PrivateKey<N>,
     ctx: &Context
-) -> Result<()>
\ No newline at end of file +) -> Result<()> \ No newline at end of file diff --git a/leo_lang/cli/commands/add/struct.Add.html b/leo_lang/cli/commands/add/struct.Add.html index ff0d951bd7..7ccd2bfab5 100644 --- a/leo_lang/cli/commands/add/struct.Add.html +++ b/leo_lang/cli/commands/add/struct.Add.html @@ -11,10 +11,10 @@ this field may be left empty.
source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Add

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Add

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Add

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/commands/build/fn.compile_leo_file.html b/leo_lang/cli/commands/build/fn.compile_leo_file.html index 10a2bac519..984bb68510 100644 --- a/leo_lang/cli/commands/build/fn.compile_leo_file.html +++ b/leo_lang/cli/commands/build/fn.compile_leo_file.html @@ -3,8 +3,8 @@ program_id: &ProgramID<N>, outputs: &Path, build: &Path, - handler: &Handler, + handler: &Handler, options: BuildOptions, stubs: IndexMap<Symbol, Stub> -) -> Result<()>
Expand description

Compiles a Leo file in the src/ directory.

+) -> Result<()>
Expand description

Compiles a Leo file in the src/ directory.

\ No newline at end of file diff --git a/leo_lang/cli/commands/build/fn.handle_build.html b/leo_lang/cli/commands/build/fn.handle_build.html index 8ad9d83370..e76cce6bd4 100644 --- a/leo_lang/cli/commands/build/fn.handle_build.html +++ b/leo_lang/cli/commands/build/fn.handle_build.html @@ -1,4 +1,4 @@ handle_build in leo_lang::cli::commands::build - Rust

Function leo_lang::cli::commands::build::handle_build

source ·
fn handle_build<N: Network>(
     command: &Build,
     context: Context
-) -> Result<<Build as Command>::Output>
\ No newline at end of file +) -> Result<<Build as Command>::Output> \ No newline at end of file diff --git a/leo_lang/cli/commands/build/struct.Build.html b/leo_lang/cli/commands/build/struct.Build.html index d8d46f089b..0ada53565f 100644 --- a/leo_lang/cli/commands/build/struct.Build.html +++ b/leo_lang/cli/commands/build/struct.Build.html @@ -8,10 +8,10 @@ this field may be left empty.
source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Build

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Build

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Build

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/commands/clean/struct.Clean.html b/leo_lang/cli/commands/clean/struct.Clean.html index 54d595e8b7..a18ba87d03 100644 --- a/leo_lang/cli/commands/clean/struct.Clean.html +++ b/leo_lang/cli/commands/clean/struct.Clean.html @@ -6,10 +6,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Clean

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Clean

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Clean

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/commands/deploy/fn.handle_deploy.html b/leo_lang/cli/commands/deploy/fn.handle_deploy.html index d7f1815fe8..2912098309 100644 --- a/leo_lang/cli/commands/deploy/fn.handle_deploy.html +++ b/leo_lang/cli/commands/deploy/fn.handle_deploy.html @@ -1,4 +1,4 @@ handle_deploy in leo_lang::cli::commands::deploy - Rust

Function leo_lang::cli::commands::deploy::handle_deploy

source ·
fn handle_deploy<A: Aleo<Network = N, BaseField = N::Field>, N: Network>(
     command: &Deploy,
     context: Context
-) -> Result<<Deploy as Command>::Output>
\ No newline at end of file +) -> Result<<Deploy as Command>::Output>

\ No newline at end of file diff --git a/leo_lang/cli/commands/deploy/struct.Deploy.html b/leo_lang/cli/commands/deploy/struct.Deploy.html index b464927622..e19193fe7b 100644 --- a/leo_lang/cli/commands/deploy/struct.Deploy.html +++ b/leo_lang/cli/commands/deploy/struct.Deploy.html @@ -12,10 +12,10 @@ this field may be left empty.
source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Deploy

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Deploy

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Deploy

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/commands/example/struct.Example.html b/leo_lang/cli/commands/example/struct.Example.html index f589484b4e..3aa7c5256d 100644 --- a/leo_lang/cli/commands/example/struct.Example.html +++ b/leo_lang/cli/commands/example/struct.Example.html @@ -6,14 +6,14 @@ and needs its output result, this is where the result type is defined. Example: type Input: ::Out

§

type Output = ()

Defines the output of this command, which may be used as Input for another command. If this command is not used as a prelude for another command, -this field may be left empty.
source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>
where +this field may be left empty.

source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>
where Self: Sized,

Runs the main operation of this command. This function is run within context of ‘execute’ function, which sets logging and timers.
source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Example

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Example

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Example

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/commands/execute/fn.handle_execute.html b/leo_lang/cli/commands/execute/fn.handle_execute.html index f3ad56cfce..5c45f56d48 100644 --- a/leo_lang/cli/commands/execute/fn.handle_execute.html +++ b/leo_lang/cli/commands/execute/fn.handle_execute.html @@ -1,4 +1,4 @@ handle_execute in leo_lang::cli::commands::execute - Rust

Function leo_lang::cli::commands::execute::handle_execute

source ·
fn handle_execute<A: Aleo>(
     command: Execute,
     context: Context
-) -> Result<<Execute as Command>::Output>
\ No newline at end of file +) -> Result<<Execute as Command>::Output>

\ No newline at end of file diff --git a/leo_lang/cli/commands/execute/fn.load_program_from_network.html b/leo_lang/cli/commands/execute/fn.load_program_from_network.html index 07a4ec61ca..576dad17b3 100644 --- a/leo_lang/cli/commands/execute/fn.load_program_from_network.html +++ b/leo_lang/cli/commands/execute/fn.load_program_from_network.html @@ -3,5 +3,5 @@ context: Context, process: &mut Process<N>, program_id: &ProgramID<N> -) -> Result<()>
Expand description

A helper function to recursively load the program and all of its imports into the process. Lifted from snarkOS.

+) -> Result<()>
Expand description

A helper function to recursively load the program and all of its imports into the process. Lifted from snarkOS.

\ No newline at end of file diff --git a/leo_lang/cli/commands/execute/struct.Execute.html b/leo_lang/cli/commands/execute/struct.Execute.html index 2bc36e9141..5931d061eb 100644 --- a/leo_lang/cli/commands/execute/struct.Execute.html +++ b/leo_lang/cli/commands/execute/struct.Execute.html @@ -15,10 +15,10 @@ this field may be left empty.
source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _input: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _input: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Execute

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Execute

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Execute

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/commands/fn.check_balance.html b/leo_lang/cli/commands/fn.check_balance.html index 2f1a6f6014..a44ff4a5ce 100644 --- a/leo_lang/cli/commands/fn.check_balance.html +++ b/leo_lang/cli/commands/fn.check_balance.html @@ -4,4 +4,4 @@ network: &str, context: Context, total_cost: u64 -) -> Result<()>

\ No newline at end of file +) -> Result<()> \ No newline at end of file diff --git a/leo_lang/cli/commands/fn.handle_broadcast.html b/leo_lang/cli/commands/fn.handle_broadcast.html index 5d73712d41..aa21124019 100644 --- a/leo_lang/cli/commands/fn.handle_broadcast.html +++ b/leo_lang/cli/commands/fn.handle_broadcast.html @@ -2,5 +2,5 @@ endpoint: &String, transaction: Transaction<N>, operation: &String -) -> Result<()>
Expand description

Determine if the transaction should be broadcast or displayed to user.

+) -> Result<()>
Expand description

Determine if the transaction should be broadcast or displayed to user.

\ No newline at end of file diff --git a/leo_lang/cli/commands/fn.parse_record.html b/leo_lang/cli/commands/fn.parse_record.html index 0c2b8e5a46..a9fff95649 100644 --- a/leo_lang/cli/commands/fn.parse_record.html +++ b/leo_lang/cli/commands/fn.parse_record.html @@ -1,5 +1,5 @@ parse_record in leo_lang::cli::commands - Rust

Function leo_lang::cli::commands::parse_record

source ·
pub fn parse_record<N: Network>(
     private_key: &PrivateKey<N>,
     record: &str
-) -> Result<Record<N, Plaintext<N>>>
Expand description

Parses the record string. If the string is a ciphertext, then attempt to decrypt it. Lifted from snarkOS.

+) -> Result<Record<N, Plaintext<N>>>
Expand description

Parses the record string. If the string is a ciphertext, then attempt to decrypt it. Lifted from snarkOS.

\ No newline at end of file diff --git a/leo_lang/cli/commands/new/struct.New.html b/leo_lang/cli/commands/new/struct.New.html index 3b9be2209f..5e5b2802e6 100644 --- a/leo_lang/cli/commands/new/struct.New.html +++ b/leo_lang/cli/commands/new/struct.New.html @@ -9,10 +9,10 @@ this field may be left empty.
source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for New

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for New

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for New

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/commands/query/block/struct.Block.html b/leo_lang/cli/commands/query/block/struct.Block.html index c8bdb6f593..a5aa7ca5b6 100644 --- a/leo_lang/cli/commands/query/block/struct.Block.html +++ b/leo_lang/cli/commands/query/block/struct.Block.html @@ -13,10 +13,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _context: Context, _input: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _context: Context, _input: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Block

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Block

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Block

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/commands/query/committee/struct.Committee.html b/leo_lang/cli/commands/query/committee/struct.Committee.html index 0fd199f171..254b518823 100644 --- a/leo_lang/cli/commands/query/committee/struct.Committee.html +++ b/leo_lang/cli/commands/query/committee/struct.Committee.html @@ -6,10 +6,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Committee

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Committee

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Committee

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/commands/query/fn.handle_query.html b/leo_lang/cli/commands/query/fn.handle_query.html index 969bf76b14..b2f789771d 100644 --- a/leo_lang/cli/commands/query/fn.handle_query.html +++ b/leo_lang/cli/commands/query/fn.handle_query.html @@ -1,4 +1,4 @@ handle_query in leo_lang::cli::commands::query - Rust

Function leo_lang::cli::commands::query::handle_query

source ·
fn handle_query<N: Network>(
     query: Query,
     context: Context
-) -> Result<<Query as Command>::Output>
\ No newline at end of file +) -> Result<<Query as Command>::Output>

\ No newline at end of file diff --git a/leo_lang/cli/commands/query/mempool/struct.Mempool.html b/leo_lang/cli/commands/query/mempool/struct.Mempool.html index 048248038d..5364a7de8c 100644 --- a/leo_lang/cli/commands/query/mempool/struct.Mempool.html +++ b/leo_lang/cli/commands/query/mempool/struct.Mempool.html @@ -8,10 +8,10 @@ this field may be left empty.
source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _context: Context, _input: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _context: Context, _input: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Mempool

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Mempool

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Mempool

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/commands/query/peers/struct.Peers.html b/leo_lang/cli/commands/query/peers/struct.Peers.html index d72cca0f17..54bc3e8995 100644 --- a/leo_lang/cli/commands/query/peers/struct.Peers.html +++ b/leo_lang/cli/commands/query/peers/struct.Peers.html @@ -8,10 +8,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _context: Context, _input: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _context: Context, _input: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Peers

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Peers

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Peers

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/commands/query/program/struct.Program.html b/leo_lang/cli/commands/query/program/struct.Program.html index 195565e31a..18a62c5885 100644 --- a/leo_lang/cli/commands/query/program/struct.Program.html +++ b/leo_lang/cli/commands/query/program/struct.Program.html @@ -10,10 +10,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Program

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Program

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Program

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/commands/query/state_root/struct.StateRoot.html b/leo_lang/cli/commands/query/state_root/struct.StateRoot.html index 32708bc419..05ff91d42d 100644 --- a/leo_lang/cli/commands/query/state_root/struct.StateRoot.html +++ b/leo_lang/cli/commands/query/state_root/struct.StateRoot.html @@ -6,10 +6,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for StateRoot

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for StateRoot

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for StateRoot

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/commands/query/struct.Query.html b/leo_lang/cli/commands/query/struct.Query.html index ae76869222..afaaf45329 100644 --- a/leo_lang/cli/commands/query/struct.Query.html +++ b/leo_lang/cli/commands/query/struct.Query.html @@ -10,10 +10,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Query

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Query

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Query

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/commands/query/transaction/struct.Transaction.html b/leo_lang/cli/commands/query/transaction/struct.Transaction.html index 4a633b2a56..ed6ae0c47f 100644 --- a/leo_lang/cli/commands/query/transaction/struct.Transaction.html +++ b/leo_lang/cli/commands/query/transaction/struct.Transaction.html @@ -12,10 +12,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Transaction

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Transaction

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Transaction

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/commands/query/utils/fn.is_valid_field.html b/leo_lang/cli/commands/query/utils/fn.is_valid_field.html index 5aa6fa7d26..d010c2066c 100644 --- a/leo_lang/cli/commands/query/utils/fn.is_valid_field.html +++ b/leo_lang/cli/commands/query/utils/fn.is_valid_field.html @@ -1 +1 @@ -is_valid_field in leo_lang::cli::commands::query::utils - Rust

Function leo_lang::cli::commands::query::utils::is_valid_field

source ·
pub fn is_valid_field(field: &str) -> Result<String, LeoError>
\ No newline at end of file +is_valid_field in leo_lang::cli::commands::query::utils - Rust

Function leo_lang::cli::commands::query::utils::is_valid_field

source ·
pub fn is_valid_field(field: &str) -> Result<String, LeoError>
\ No newline at end of file diff --git a/leo_lang/cli/commands/query/utils/fn.is_valid_hash.html b/leo_lang/cli/commands/query/utils/fn.is_valid_hash.html index ca813e7479..dae55ef106 100644 --- a/leo_lang/cli/commands/query/utils/fn.is_valid_hash.html +++ b/leo_lang/cli/commands/query/utils/fn.is_valid_hash.html @@ -1 +1 @@ -is_valid_hash in leo_lang::cli::commands::query::utils - Rust

Function leo_lang::cli::commands::query::utils::is_valid_hash

source ·
pub fn is_valid_hash(hash: &str) -> Result<(), LeoError>
\ No newline at end of file +is_valid_hash in leo_lang::cli::commands::query::utils - Rust

Function leo_lang::cli::commands::query::utils::is_valid_hash

source ·
pub fn is_valid_hash(hash: &str) -> Result<(), LeoError>
\ No newline at end of file diff --git a/leo_lang/cli/commands/query/utils/fn.is_valid_height_or_hash.html b/leo_lang/cli/commands/query/utils/fn.is_valid_height_or_hash.html index 7e69a0bbad..f97a039fca 100644 --- a/leo_lang/cli/commands/query/utils/fn.is_valid_height_or_hash.html +++ b/leo_lang/cli/commands/query/utils/fn.is_valid_height_or_hash.html @@ -1 +1 @@ -is_valid_height_or_hash in leo_lang::cli::commands::query::utils - Rust

Function leo_lang::cli::commands::query::utils::is_valid_height_or_hash

source ·
pub fn is_valid_height_or_hash(input: &str) -> Result<(), LeoError>
\ No newline at end of file +is_valid_height_or_hash in leo_lang::cli::commands::query::utils - Rust

Function leo_lang::cli::commands::query::utils::is_valid_height_or_hash

source ·
pub fn is_valid_height_or_hash(input: &str) -> Result<(), LeoError>
\ No newline at end of file diff --git a/leo_lang/cli/commands/query/utils/fn.is_valid_numerical_input.html b/leo_lang/cli/commands/query/utils/fn.is_valid_numerical_input.html index 20c5cc1fb2..88c9db75a7 100644 --- a/leo_lang/cli/commands/query/utils/fn.is_valid_numerical_input.html +++ b/leo_lang/cli/commands/query/utils/fn.is_valid_numerical_input.html @@ -1 +1 @@ -is_valid_numerical_input in leo_lang::cli::commands::query::utils - Rust

Function leo_lang::cli::commands::query::utils::is_valid_numerical_input

source ·
pub fn is_valid_numerical_input(num: &str) -> Result<(), LeoError>
\ No newline at end of file +is_valid_numerical_input in leo_lang::cli::commands::query::utils - Rust

Function leo_lang::cli::commands::query::utils::is_valid_numerical_input

source ·
pub fn is_valid_numerical_input(num: &str) -> Result<(), LeoError>
\ No newline at end of file diff --git a/leo_lang/cli/commands/query/utils/fn.is_valid_transaction_id.html b/leo_lang/cli/commands/query/utils/fn.is_valid_transaction_id.html index 39db5e3c92..af0c05b7e9 100644 --- a/leo_lang/cli/commands/query/utils/fn.is_valid_transaction_id.html +++ b/leo_lang/cli/commands/query/utils/fn.is_valid_transaction_id.html @@ -1 +1 @@ -is_valid_transaction_id in leo_lang::cli::commands::query::utils - Rust

Function leo_lang::cli::commands::query::utils::is_valid_transaction_id

source ·
pub fn is_valid_transaction_id(transaction: &str) -> Result<(), LeoError>
\ No newline at end of file +is_valid_transaction_id in leo_lang::cli::commands::query::utils - Rust

Function leo_lang::cli::commands::query::utils::is_valid_transaction_id

source ·
pub fn is_valid_transaction_id(transaction: &str) -> Result<(), LeoError>
\ No newline at end of file diff --git a/leo_lang/cli/commands/query/utils/fn.is_valid_transition_id.html b/leo_lang/cli/commands/query/utils/fn.is_valid_transition_id.html index 105542849b..c9f44d916c 100644 --- a/leo_lang/cli/commands/query/utils/fn.is_valid_transition_id.html +++ b/leo_lang/cli/commands/query/utils/fn.is_valid_transition_id.html @@ -1 +1 @@ -is_valid_transition_id in leo_lang::cli::commands::query::utils - Rust

Function leo_lang::cli::commands::query::utils::is_valid_transition_id

source ·
pub fn is_valid_transition_id(transition: &str) -> Result<(), LeoError>
\ No newline at end of file +is_valid_transition_id in leo_lang::cli::commands::query::utils - Rust

Function leo_lang::cli::commands::query::utils::is_valid_transition_id

source ·
pub fn is_valid_transition_id(transition: &str) -> Result<(), LeoError>
\ No newline at end of file diff --git a/leo_lang/cli/commands/remove/struct.Remove.html b/leo_lang/cli/commands/remove/struct.Remove.html index 2332b6a395..6febe0fd8e 100644 --- a/leo_lang/cli/commands/remove/struct.Remove.html +++ b/leo_lang/cli/commands/remove/struct.Remove.html @@ -9,10 +9,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Remove

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Remove

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Remove

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/commands/run/fn.handle_run.html b/leo_lang/cli/commands/run/fn.handle_run.html index 88813dd810..bcd3e0efe5 100644 --- a/leo_lang/cli/commands/run/fn.handle_run.html +++ b/leo_lang/cli/commands/run/fn.handle_run.html @@ -1,4 +1,4 @@ handle_run in leo_lang::cli::commands::run - Rust

Function leo_lang::cli::commands::run::handle_run

source ·
fn handle_run<N: Network>(
     command: Run,
     context: Context
-) -> Result<<Run as Command>::Output>
\ No newline at end of file +) -> Result<<Run as Command>::Output>

\ No newline at end of file diff --git a/leo_lang/cli/commands/run/struct.Run.html b/leo_lang/cli/commands/run/struct.Run.html index b96aa20b1c..5978d22aff 100644 --- a/leo_lang/cli/commands/run/struct.Run.html +++ b/leo_lang/cli/commands/run/struct.Run.html @@ -11,10 +11,10 @@ this field may be left empty.
source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Run

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Run

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Run

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/commands/trait.Command.html b/leo_lang/cli/commands/trait.Command.html index cfa7d5dff8..216931c870 100644 --- a/leo_lang/cli/commands/trait.Command.html +++ b/leo_lang/cli/commands/trait.Command.html @@ -3,16 +3,16 @@ type Output; // Required methods - fn prelude(&self, context: Context) -> Result<Self::Input> + fn prelude(&self, context: Context) -> Result<Self::Input> where Self: Sized; - fn apply(self, context: Context, input: Self::Input) -> Result<Self::Output> + fn apply(self, context: Context, input: Self::Input) -> Result<Self::Output> where Self: Sized; // Provided methods fn log_span(&self) -> Span { ... } - fn execute(self, context: Context) -> Result<Self::Output> + fn execute(self, context: Context) -> Result<Self::Output> where Self: Sized { ... } - fn try_execute(self, context: Context) -> Result<()> + fn try_execute(self, context: Context) -> Result<()> where Self: Sized { ... } }
Expand description

Base trait for the Leo CLI, see methods and their documentation for details.

Required Associated Types§

source

type Input

If the current command requires running another command beforehand @@ -21,19 +21,19 @@

source

type Output

Defines the output of this command, which may be used as Input for another command. If this command is not used as a prelude for another command, this field may be left empty.

-

Required Methods§

source

fn prelude(&self, context: Context) -> Result<Self::Input>
where +

Required Methods§

source

fn prelude(&self, context: Context) -> Result<Self::Input>
where Self: Sized,

Runs the prelude and returns the Input of the current command.

-
source

fn apply(self, context: Context, input: Self::Input) -> Result<Self::Output>
where +

source

fn apply(self, context: Context, input: Self::Input) -> Result<Self::Output>
where Self: Sized,

Runs the main operation of this command. This function is run within context of ‘execute’ function, which sets logging and timers.

Provided Methods§

source

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this variable is a &’static str.

-
source

fn execute(self, context: Context) -> Result<Self::Output>
where +

source

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. This function sets up tracing, timing, and the context.

-
source

fn try_execute(self, context: Context) -> Result<()>
where +

source

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error

diff --git a/leo_lang/cli/commands/update/struct.Update.html b/leo_lang/cli/commands/update/struct.Update.html index 0fa44fedf4..ea41cf79a0 100644 --- a/leo_lang/cli/commands/update/struct.Update.html +++ b/leo_lang/cli/commands/update/struct.Update.html @@ -11,11 +11,11 @@ this field may be left empty.
source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _: Context, _: Self::Input) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _: Context, _: Self::Input) -> Result<Self::Output>
where Self: Sized,

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +context of ‘execute’ function, which sets logging and timers.

source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Update

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Update

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Update

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/context/struct.Context.html b/leo_lang/cli/context/struct.Context.html index 5be41f598e..08c4ff4023 100644 --- a/leo_lang/cli/context/struct.Context.html +++ b/leo_lang/cli/context/struct.Context.html @@ -11,12 +11,12 @@ path: Option<PathBuf>, home: Option<PathBuf>, recursive: bool -) -> Result<Context>

source

pub fn parent_dir(&self) -> Result<PathBuf>

Returns the path of the parent directory to the Leo package.

-
source

pub fn dir(&self) -> Result<PathBuf>

Returns the path to the Leo package.

-
source

pub fn home(&self) -> Result<PathBuf>

Returns the path to the Aleo registry directory.

-
source

pub fn open_manifest<N: Network>(&self) -> Result<Manifest<N>>

Returns the package name as a String. +) -> Result<Context>

source

pub fn parent_dir(&self) -> Result<PathBuf>

Returns the path of the parent directory to the Leo package.

+
source

pub fn dir(&self) -> Result<PathBuf>

Returns the path to the Leo package.

+
source

pub fn home(&self) -> Result<PathBuf>

Returns the path to the Aleo registry directory.

+
source

pub fn open_manifest<N: Network>(&self) -> Result<Manifest<N>>

Returns the package name as a String. Opens the manifest file program.json and creates the build directory if it doesn’t exist.

-
source

pub fn local_dependency_paths(&self) -> Result<Vec<(String, PathBuf)>>

Returns a post ordering of the local dependencies. +

source

pub fn local_dependency_paths(&self) -> Result<Vec<(String, PathBuf)>>

Returns a post ordering of the local dependencies. Found by reading the lock file leo.lock.

Trait Implementations§

source§

impl Clone for Context

source§

fn clone(&self) -> Context

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where diff --git a/leo_lang/cli/deploy/struct.Deploy.html b/leo_lang/cli/deploy/struct.Deploy.html index 090ef12811..474d52a76e 100644 --- a/leo_lang/cli/deploy/struct.Deploy.html +++ b/leo_lang/cli/deploy/struct.Deploy.html @@ -12,10 +12,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Deploy

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Deploy

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Deploy

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/enum.Account.html b/leo_lang/cli/enum.Account.html index 5d05c30695..46e132690d 100644 --- a/leo_lang/cli/enum.Account.html +++ b/leo_lang/cli/enum.Account.html @@ -50,15 +50,15 @@ and needs its output result, this is where the result type is defined. Example: type Input: ::Out

§

type Output = ()

Defines the output of this command, which may be used as Input for another command. If this command is not used as a prelude for another command, -this field may be left empty.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>
where - Self: Sized,

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, ctx: Context, _: Self::Input) -> Result<Self::Output>
where +this field may be left empty.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>
where + Self: Sized,

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, ctx: Context, _: Self::Input) -> Result<Self::Output>
where Self: Sized,

Runs the main operation of this command. This function is run within context of ‘execute’ function, which sets logging and timers.
source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Account

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Account

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Account

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/example/struct.Example.html b/leo_lang/cli/example/struct.Example.html index b2820ff42c..c0263b48e7 100644 --- a/leo_lang/cli/example/struct.Example.html +++ b/leo_lang/cli/example/struct.Example.html @@ -6,14 +6,14 @@ and needs its output result, this is where the result type is defined. Example: type Input: ::Out

§

type Output = ()

Defines the output of this command, which may be used as Input for another command. If this command is not used as a prelude for another command, -this field may be left empty.
source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>
where +this field may be left empty.

source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>
where Self: Sized,

Runs the main operation of this command. This function is run within context of ‘execute’ function, which sets logging and timers.
source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Example

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Example

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Example

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/execute/struct.Execute.html b/leo_lang/cli/execute/struct.Execute.html index b98a0971ce..ef9208c035 100644 --- a/leo_lang/cli/execute/struct.Execute.html +++ b/leo_lang/cli/execute/struct.Execute.html @@ -15,10 +15,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _input: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _input: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Execute

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Execute

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Execute

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/fn.handle_error.html b/leo_lang/cli/fn.handle_error.html index 25328eb09c..fd148e7bb9 100644 --- a/leo_lang/cli/fn.handle_error.html +++ b/leo_lang/cli/fn.handle_error.html @@ -1 +1 @@ -handle_error in leo_lang::cli - Rust

Function leo_lang::cli::handle_error

source ·
pub fn handle_error<T>(res: Result<T>) -> T
\ No newline at end of file +handle_error in leo_lang::cli - Rust

Function leo_lang::cli::handle_error

source ·
pub fn handle_error<T>(res: Result<T>) -> T
\ No newline at end of file diff --git a/leo_lang/cli/fn.parse_record.html b/leo_lang/cli/fn.parse_record.html index e40f55bdcd..ec3e470f01 100644 --- a/leo_lang/cli/fn.parse_record.html +++ b/leo_lang/cli/fn.parse_record.html @@ -1,5 +1,5 @@ parse_record in leo_lang::cli - Rust

Function leo_lang::cli::parse_record

source ·
pub fn parse_record<N: Network>(
     private_key: &PrivateKey<N>,
     record: &str
-) -> Result<Record<N, Plaintext<N>>>
Expand description

Parses the record string. If the string is a ciphertext, then attempt to decrypt it. Lifted from snarkOS.

+) -> Result<Record<N, Plaintext<N>>>
Expand description

Parses the record string. If the string is a ciphertext, then attempt to decrypt it. Lifted from snarkOS.

\ No newline at end of file diff --git a/leo_lang/cli/fn.run_with_args.html b/leo_lang/cli/fn.run_with_args.html index 4e28dd7cd8..0dce5cc07f 100644 --- a/leo_lang/cli/fn.run_with_args.html +++ b/leo_lang/cli/fn.run_with_args.html @@ -1,2 +1,2 @@ -run_with_args in leo_lang::cli - Rust

Function leo_lang::cli::run_with_args

source ·
pub fn run_with_args(cli: CLI) -> Result<()>
Expand description

Run command with custom build arguments.

+run_with_args in leo_lang::cli - Rust

Function leo_lang::cli::run_with_args

source ·
pub fn run_with_args(cli: CLI) -> Result<()>
Expand description

Run command with custom build arguments.

\ No newline at end of file diff --git a/leo_lang/cli/helpers/context/struct.Context.html b/leo_lang/cli/helpers/context/struct.Context.html index bd1bc58ff1..0c588236d4 100644 --- a/leo_lang/cli/helpers/context/struct.Context.html +++ b/leo_lang/cli/helpers/context/struct.Context.html @@ -11,12 +11,12 @@ path: Option<PathBuf>, home: Option<PathBuf>, recursive: bool -) -> Result<Context>

source

pub fn parent_dir(&self) -> Result<PathBuf>

Returns the path of the parent directory to the Leo package.

-
source

pub fn dir(&self) -> Result<PathBuf>

Returns the path to the Leo package.

-
source

pub fn home(&self) -> Result<PathBuf>

Returns the path to the Aleo registry directory.

-
source

pub fn open_manifest<N: Network>(&self) -> Result<Manifest<N>>

Returns the package name as a String. +) -> Result<Context>

source

pub fn parent_dir(&self) -> Result<PathBuf>

Returns the path of the parent directory to the Leo package.

+
source

pub fn dir(&self) -> Result<PathBuf>

Returns the path to the Leo package.

+
source

pub fn home(&self) -> Result<PathBuf>

Returns the path to the Aleo registry directory.

+
source

pub fn open_manifest<N: Network>(&self) -> Result<Manifest<N>>

Returns the package name as a String. Opens the manifest file program.json and creates the build directory if it doesn’t exist.

-
source

pub fn local_dependency_paths(&self) -> Result<Vec<(String, PathBuf)>>

Returns a post ordering of the local dependencies. +

source

pub fn local_dependency_paths(&self) -> Result<Vec<(String, PathBuf)>>

Returns a post ordering of the local dependencies. Found by reading the lock file leo.lock.

Trait Implementations§

source§

impl Clone for Context

source§

fn clone(&self) -> Context

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where diff --git a/leo_lang/cli/helpers/logger/fn.init_logger.html b/leo_lang/cli/helpers/logger/fn.init_logger.html index fe6909ab63..6f2adfba9b 100644 --- a/leo_lang/cli/helpers/logger/fn.init_logger.html +++ b/leo_lang/cli/helpers/logger/fn.init_logger.html @@ -1,2 +1,2 @@ -init_logger in leo_lang::cli::helpers::logger - Rust

Function leo_lang::cli::helpers::logger::init_logger

source ·
pub fn init_logger(_app_name: &'static str, verbosity: usize) -> Result<()>
Expand description

Initialize logger with custom format and verbosity.

+init_logger in leo_lang::cli::helpers::logger - Rust

Function leo_lang::cli::helpers::logger::init_logger

source ·
pub fn init_logger(_app_name: &'static str, verbosity: usize) -> Result<()>
Expand description

Initialize logger with custom format and verbosity.

\ No newline at end of file diff --git a/leo_lang/cli/helpers/updater/struct.Updater.html b/leo_lang/cli/helpers/updater/struct.Updater.html index 4dd14d077a..df9cdcf062 100644 --- a/leo_lang/cli/helpers/updater/struct.Updater.html +++ b/leo_lang/cli/helpers/updater/struct.Updater.html @@ -1,6 +1,6 @@ -Updater in leo_lang::cli::helpers::updater - Rust

Struct leo_lang::cli::helpers::updater::Updater

source ·
pub struct Updater;

Implementations§

source§

impl Updater

source

const LEO_BIN_NAME: &'static str = "leo"

source

const LEO_REPO_NAME: &'static str = "leo"

source

const LEO_REPO_OWNER: &'static str = "AleoHQ"

source

pub fn show_available_releases() -> Result<String>

Show all available releases for leo.

-
source

pub fn update_to_latest_release(show_output: bool) -> Result<Status>

Update leo to the latest release.

-
source

pub fn update_available() -> Result<String>

Check if there is an available update for leo and return the newest release.

+Updater in leo_lang::cli::helpers::updater - Rust

Struct leo_lang::cli::helpers::updater::Updater

source ·
pub struct Updater;

Implementations§

source§

impl Updater

source

const LEO_BIN_NAME: &'static str = "leo"

source

const LEO_REPO_NAME: &'static str = "leo"

source

const LEO_REPO_OWNER: &'static str = "AleoHQ"

source

pub fn show_available_releases() -> Result<String>

Show all available releases for leo.

+
source

pub fn update_to_latest_release(show_output: bool) -> Result<Status>

Update leo to the latest release.

+
source

pub fn update_available() -> Result<String>

Check if there is an available update for leo and return the newest release.

source

pub fn print_cli()

Display the CLI message, if the Leo configuration allows.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where diff --git a/leo_lang/cli/logger/fn.init_logger.html b/leo_lang/cli/logger/fn.init_logger.html index f5259c3a44..f9beefd64f 100644 --- a/leo_lang/cli/logger/fn.init_logger.html +++ b/leo_lang/cli/logger/fn.init_logger.html @@ -1,2 +1,2 @@ -init_logger in leo_lang::cli::logger - Rust

Function leo_lang::cli::logger::init_logger

source ·
pub fn init_logger(_app_name: &'static str, verbosity: usize) -> Result<()>
Expand description

Initialize logger with custom format and verbosity.

+init_logger in leo_lang::cli::logger - Rust

Function leo_lang::cli::logger::init_logger

source ·
pub fn init_logger(_app_name: &'static str, verbosity: usize) -> Result<()>
Expand description

Initialize logger with custom format and verbosity.

\ No newline at end of file diff --git a/leo_lang/cli/new/struct.New.html b/leo_lang/cli/new/struct.New.html index e720fd073f..c3734a8949 100644 --- a/leo_lang/cli/new/struct.New.html +++ b/leo_lang/cli/new/struct.New.html @@ -9,10 +9,10 @@ this field may be left empty.
source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error

source§

impl CommandFactory for New

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for New

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for New

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/query/program/struct.Program.html b/leo_lang/cli/query/program/struct.Program.html index 310776c544..55adf704b5 100644 --- a/leo_lang/cli/query/program/struct.Program.html +++ b/leo_lang/cli/query/program/struct.Program.html @@ -10,10 +10,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Program

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Program

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Program

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/query/struct.Program.html b/leo_lang/cli/query/struct.Program.html index 3a92e88362..e3774d3054 100644 --- a/leo_lang/cli/query/struct.Program.html +++ b/leo_lang/cli/query/struct.Program.html @@ -10,10 +10,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Program

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Program

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Program

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/query/struct.Query.html b/leo_lang/cli/query/struct.Query.html index 9ec420aa7d..cdd7297242 100644 --- a/leo_lang/cli/query/struct.Query.html +++ b/leo_lang/cli/query/struct.Query.html @@ -10,10 +10,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Query

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Query

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Query

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/remove/struct.Remove.html b/leo_lang/cli/remove/struct.Remove.html index 17e58544e9..0727e77d63 100644 --- a/leo_lang/cli/remove/struct.Remove.html +++ b/leo_lang/cli/remove/struct.Remove.html @@ -9,10 +9,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error

source§

impl CommandFactory for Remove

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Remove

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Remove

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/run/struct.Run.html b/leo_lang/cli/run/struct.Run.html index 19a3ba1ae0..24ad4dec4b 100644 --- a/leo_lang/cli/run/struct.Run.html +++ b/leo_lang/cli/run/struct.Run.html @@ -11,10 +11,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Run

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Run

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Run

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/struct.Add.html b/leo_lang/cli/struct.Add.html index 0906f1026b..3076df97f7 100644 --- a/leo_lang/cli/struct.Add.html +++ b/leo_lang/cli/struct.Add.html @@ -11,10 +11,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Add

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Add

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Add

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/struct.Build.html b/leo_lang/cli/struct.Build.html index 287ad48a7c..d1a4e6cd6b 100644 --- a/leo_lang/cli/struct.Build.html +++ b/leo_lang/cli/struct.Build.html @@ -8,10 +8,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Build

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Build

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Build

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/struct.Clean.html b/leo_lang/cli/struct.Clean.html index c567ec1c13..6f21833ac6 100644 --- a/leo_lang/cli/struct.Clean.html +++ b/leo_lang/cli/struct.Clean.html @@ -6,10 +6,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Clean

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Clean

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Clean

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/struct.Deploy.html b/leo_lang/cli/struct.Deploy.html index 0ab34bd554..5c5766eccd 100644 --- a/leo_lang/cli/struct.Deploy.html +++ b/leo_lang/cli/struct.Deploy.html @@ -12,10 +12,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Deploy

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Deploy

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Deploy

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/struct.Example.html b/leo_lang/cli/struct.Example.html index ff4ce51812..514e2d1306 100644 --- a/leo_lang/cli/struct.Example.html +++ b/leo_lang/cli/struct.Example.html @@ -6,14 +6,14 @@ and needs its output result, this is where the result type is defined. Example: type Input: ::Out

§

type Output = ()

Defines the output of this command, which may be used as Input for another command. If this command is not used as a prelude for another command, -this field may be left empty.
source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>
where +this field may be left empty.

source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>
where Self: Sized,

Runs the main operation of this command. This function is run within context of ‘execute’ function, which sets logging and timers.
source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Example

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Example

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Example

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/struct.Execute.html b/leo_lang/cli/struct.Execute.html index dbc699bef8..5f4b725877 100644 --- a/leo_lang/cli/struct.Execute.html +++ b/leo_lang/cli/struct.Execute.html @@ -15,10 +15,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _input: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _input: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Execute

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Execute

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Execute

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/struct.New.html b/leo_lang/cli/struct.New.html index 5a1f645783..722bbca816 100644 --- a/leo_lang/cli/struct.New.html +++ b/leo_lang/cli/struct.New.html @@ -9,10 +9,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for New

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for New

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for New

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/struct.Query.html b/leo_lang/cli/struct.Query.html index c86b8477bb..e10d7f0e63 100644 --- a/leo_lang/cli/struct.Query.html +++ b/leo_lang/cli/struct.Query.html @@ -10,10 +10,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Query

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Query

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Query

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/struct.Remove.html b/leo_lang/cli/struct.Remove.html index 0c36507716..0e4fab49ce 100644 --- a/leo_lang/cli/struct.Remove.html +++ b/leo_lang/cli/struct.Remove.html @@ -9,10 +9,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Remove

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Remove

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Remove

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/struct.Run.html b/leo_lang/cli/struct.Run.html index 5f1ea1d4b8..f15a09f1bd 100644 --- a/leo_lang/cli/struct.Run.html +++ b/leo_lang/cli/struct.Run.html @@ -11,10 +11,10 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, context: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output>

Runs the main operation of this command. This function is run within +context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Run

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Run

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Run

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/struct.Update.html b/leo_lang/cli/struct.Update.html index 114780062a..40fe3f0a72 100644 --- a/leo_lang/cli/struct.Update.html +++ b/leo_lang/cli/struct.Update.html @@ -11,11 +11,11 @@ this field may be left empty.

source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _: Context, _: Self::Input) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _: Context, _: Self::Input) -> Result<Self::Output>
where Self: Sized,

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +context of ‘execute’ function, which sets logging and timers.

source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Update

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Update

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Update

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/trait.Command.html b/leo_lang/cli/trait.Command.html index 1b95f9f3dc..0ad65a9dd8 100644 --- a/leo_lang/cli/trait.Command.html +++ b/leo_lang/cli/trait.Command.html @@ -3,16 +3,16 @@ type Output; // Required methods - fn prelude(&self, context: Context) -> Result<Self::Input> + fn prelude(&self, context: Context) -> Result<Self::Input> where Self: Sized; - fn apply(self, context: Context, input: Self::Input) -> Result<Self::Output> + fn apply(self, context: Context, input: Self::Input) -> Result<Self::Output> where Self: Sized; // Provided methods fn log_span(&self) -> Span { ... } - fn execute(self, context: Context) -> Result<Self::Output> + fn execute(self, context: Context) -> Result<Self::Output> where Self: Sized { ... } - fn try_execute(self, context: Context) -> Result<()> + fn try_execute(self, context: Context) -> Result<()> where Self: Sized { ... } }
Expand description

Base trait for the Leo CLI, see methods and their documentation for details.

Required Associated Types§

source

type Input

If the current command requires running another command beforehand @@ -21,19 +21,19 @@

source

type Output

Defines the output of this command, which may be used as Input for another command. If this command is not used as a prelude for another command, this field may be left empty.

-

Required Methods§

source

fn prelude(&self, context: Context) -> Result<Self::Input>
where +

Required Methods§

source

fn prelude(&self, context: Context) -> Result<Self::Input>
where Self: Sized,

Runs the prelude and returns the Input of the current command.

-
source

fn apply(self, context: Context, input: Self::Input) -> Result<Self::Output>
where +

source

fn apply(self, context: Context, input: Self::Input) -> Result<Self::Output>
where Self: Sized,

Runs the main operation of this command. This function is run within context of ‘execute’ function, which sets logging and timers.

Provided Methods§

source

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this variable is a &’static str.

-
source

fn execute(self, context: Context) -> Result<Self::Output>
where +

source

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. This function sets up tracing, timing, and the context.

-
source

fn try_execute(self, context: Context) -> Result<()>
where +

source

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error

diff --git a/leo_lang/cli/update/struct.Update.html b/leo_lang/cli/update/struct.Update.html index dd2749da61..76358ecafe 100644 --- a/leo_lang/cli/update/struct.Update.html +++ b/leo_lang/cli/update/struct.Update.html @@ -11,11 +11,11 @@ this field may be left empty.
source§

fn log_span(&self) -> Span

Adds a span to the logger via tracing::span. Because of the specifics of the macro implementation, it is not possible to set the span name with a non-literal i.e. a dynamic variable even if this -variable is a &’static str.
source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _: Context, _: Self::Input) -> Result<Self::Output>
where +variable is a &’static str.

source§

fn prelude(&self, _: Context) -> Result<Self::Input>

Runs the prelude and returns the Input of the current command.
source§

fn apply(self, _: Context, _: Self::Input) -> Result<Self::Output>
where Self: Sized,

Runs the main operation of this command. This function is run within -context of ‘execute’ function, which sets logging and timers.
source§

fn execute(self, context: Context) -> Result<Self::Output>
where +context of ‘execute’ function, which sets logging and timers.

source§

fn execute(self, context: Context) -> Result<Self::Output>
where Self: Sized,

A wrapper around the apply method. -This function sets up tracing, timing, and the context.
source§

fn try_execute(self, context: Context) -> Result<()>
where +This function sets up tracing, timing, and the context.

source§

fn try_execute(self, context: Context) -> Result<()>
where Self: Sized,

Executes command but empty the result. Comes in handy where there’s a need to make match arms compatible while keeping implementation-specific output possible. Errors however are all of the type Error
source§

impl CommandFactory for Update

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for Update

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Update

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( diff --git a/leo_lang/cli/updater/struct.Updater.html b/leo_lang/cli/updater/struct.Updater.html index 230589583e..40ae69f84d 100644 --- a/leo_lang/cli/updater/struct.Updater.html +++ b/leo_lang/cli/updater/struct.Updater.html @@ -1,6 +1,6 @@ -Updater in leo_lang::cli::updater - Rust

Struct leo_lang::cli::updater::Updater

source ·
pub struct Updater;

Implementations§

source§

impl Updater

source

const LEO_BIN_NAME: &'static str = "leo"

source

const LEO_REPO_NAME: &'static str = "leo"

source

const LEO_REPO_OWNER: &'static str = "AleoHQ"

source

pub fn show_available_releases() -> Result<String>

Show all available releases for leo.

-
source

pub fn update_to_latest_release(show_output: bool) -> Result<Status>

Update leo to the latest release.

-
source

pub fn update_available() -> Result<String>

Check if there is an available update for leo and return the newest release.

+Updater in leo_lang::cli::updater - Rust

Struct leo_lang::cli::updater::Updater

source ·
pub struct Updater;

Implementations§

source§

impl Updater

source

const LEO_BIN_NAME: &'static str = "leo"

source

const LEO_REPO_NAME: &'static str = "leo"

source

const LEO_REPO_OWNER: &'static str = "AleoHQ"

source

pub fn show_available_releases() -> Result<String>

Show all available releases for leo.

+
source

pub fn update_to_latest_release(show_output: bool) -> Result<Status>

Update leo to the latest release.

+
source

pub fn update_available() -> Result<String>

Check if there is an available update for leo and return the newest release.

source

pub fn print_cli()

Display the CLI message, if the Leo configuration allows.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where diff --git a/leo_package/build/directory/struct.BuildDirectory.html b/leo_package/build/directory/struct.BuildDirectory.html index 3398708872..fac07569cb 100644 --- a/leo_package/build/directory/struct.BuildDirectory.html +++ b/leo_package/build/directory/struct.BuildDirectory.html @@ -1,6 +1,6 @@ -BuildDirectory in leo_package::build::directory - Rust

Struct leo_package::build::directory::BuildDirectory

source ·
pub struct BuildDirectory;

Implementations§

source§

impl BuildDirectory

source

pub fn open(path: &Path) -> Result<PathBuf>

Returns the path to the build directory if it exists.

-
source

pub fn create(path: &Path) -> Result<PathBuf>

Creates a directory at the provided path with the default directory name.

-
source

pub fn remove(path: &Path) -> Result<String>

Removes the directory at the provided path.

+BuildDirectory in leo_package::build::directory - Rust

Struct leo_package::build::directory::BuildDirectory

source ·
pub struct BuildDirectory;

Implementations§

source§

impl BuildDirectory

source

pub fn open(path: &Path) -> Result<PathBuf>

Returns the path to the build directory if it exists.

+
source

pub fn create(path: &Path) -> Result<PathBuf>

Creates a directory at the provided path with the default directory name.

+
source

pub fn remove(path: &Path) -> Result<String>

Removes the directory at the provided path.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where diff --git a/leo_package/fn.parse_file_paths.html b/leo_package/fn.parse_file_paths.html index 32c80a43ae..5e8c86b57f 100644 --- a/leo_package/fn.parse_file_paths.html +++ b/leo_package/fn.parse_file_paths.html @@ -1,4 +1,4 @@ parse_file_paths in leo_package - Rust

Function leo_package::parse_file_paths

source ·
pub(crate) fn parse_file_paths(
     directory: ReadDir,
     file_paths: &mut Vec<PathBuf>
-) -> Result<()>
\ No newline at end of file +) -> Result<()>

\ No newline at end of file diff --git a/leo_package/imports/directory/struct.ImportsDirectory.html b/leo_package/imports/directory/struct.ImportsDirectory.html index 9885ee13dd..f58c759e92 100644 --- a/leo_package/imports/directory/struct.ImportsDirectory.html +++ b/leo_package/imports/directory/struct.ImportsDirectory.html @@ -1,7 +1,7 @@ -ImportsDirectory in leo_package::imports::directory - Rust

Struct leo_package::imports::directory::ImportsDirectory

source ·
pub struct ImportsDirectory;

Implementations§

source§

impl ImportsDirectory

source

pub fn create(path: &Path) -> Result<PathBuf>

Creates a directory at the provided path with the default directory name if it does not exist.

-
source

pub fn remove(path: &Path) -> Result<String>

Removes the directory at the provided path.

-
source

pub fn is_empty(path: &Path) -> Result<bool>

Returns true if the imports directory does not exist or does not contain files.

-
source

pub fn files(path: &Path) -> Result<Vec<PathBuf>>

Returns a list of files in the imports directory.

+ImportsDirectory in leo_package::imports::directory - Rust

Struct leo_package::imports::directory::ImportsDirectory

source ·
pub struct ImportsDirectory;

Implementations§

source§

impl ImportsDirectory

source

pub fn create(path: &Path) -> Result<PathBuf>

Creates a directory at the provided path with the default directory name if it does not exist.

+
source

pub fn remove(path: &Path) -> Result<String>

Removes the directory at the provided path.

+
source

pub fn is_empty(path: &Path) -> Result<bool>

Returns true if the imports directory does not exist or does not contain files.

+
source

pub fn files(path: &Path) -> Result<Vec<PathBuf>>

Returns a list of files in the imports directory.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where diff --git a/leo_package/inputs/directory/fn.parse_file_paths.html b/leo_package/inputs/directory/fn.parse_file_paths.html index bbc13fb6c2..1b5a58356c 100644 --- a/leo_package/inputs/directory/fn.parse_file_paths.html +++ b/leo_package/inputs/directory/fn.parse_file_paths.html @@ -1,4 +1,4 @@ parse_file_paths in leo_package::inputs::directory - Rust

Function leo_package::inputs::directory::parse_file_paths

source ·
fn parse_file_paths(
     directory: ReadDir,
     file_paths: &mut Vec<PathBuf>
-) -> Result<()>
\ No newline at end of file +) -> Result<()>

\ No newline at end of file diff --git a/leo_package/inputs/directory/struct.InputsDirectory.html b/leo_package/inputs/directory/struct.InputsDirectory.html index 42e6487029..3be222239e 100644 --- a/leo_package/inputs/directory/struct.InputsDirectory.html +++ b/leo_package/inputs/directory/struct.InputsDirectory.html @@ -1,5 +1,5 @@ -InputsDirectory in leo_package::inputs::directory - Rust

Struct leo_package::inputs::directory::InputsDirectory

source ·
pub struct InputsDirectory;

Implementations§

source§

impl InputsDirectory

source

pub fn create(path: &Path) -> Result<()>

Creates a directory at the provided path with the default directory name.

-
source

pub fn files(path: &Path) -> Result<Vec<PathBuf>>

Returns a list of files in the input directory.

+InputsDirectory in leo_package::inputs::directory - Rust

Struct leo_package::inputs::directory::InputsDirectory

source ·
pub struct InputsDirectory;

Implementations§

source§

impl InputsDirectory

source

pub fn create(path: &Path) -> Result<()>

Creates a directory at the provided path with the default directory name.

+
source

pub fn files(path: &Path) -> Result<Vec<PathBuf>>

Returns a list of files in the input directory.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where diff --git a/leo_package/outputs/ast_snapshot/struct.SnapshotFile.html b/leo_package/outputs/ast_snapshot/struct.SnapshotFile.html index fd1493e673..cb29b629d0 100644 --- a/leo_package/outputs/ast_snapshot/struct.SnapshotFile.html +++ b/leo_package/outputs/ast_snapshot/struct.SnapshotFile.html @@ -3,8 +3,8 @@ pub snapshot: Snapshot, }
Expand description

Generic Snapshot file wrapper. Each package can have up to 3 different snapshots: initial_ast, canonicalization_ast and type_inferenced_ast;

-

Fields§

§package_name: String§snapshot: Snapshot

Implementations§

source§

impl SnapshotFile

source

pub fn new(package_name: &str, snapshot: Snapshot) -> Self

source

pub fn exists_at(&self, path: &Path) -> bool

source

pub fn read_from(&self, path: &Path) -> Result<String>

Reads the serialized struct from the given file path if it exists.

-
source

pub fn remove(&self, path: &Path) -> Result<bool>

Removes the serialized struct at the given path if it exists. Returns true on success, +

Fields§

§package_name: String§snapshot: Snapshot

Implementations§

source§

impl SnapshotFile

source

pub fn new(package_name: &str, snapshot: Snapshot) -> Self

source

pub fn exists_at(&self, path: &Path) -> bool

source

pub fn read_from(&self, path: &Path) -> Result<String>

Reads the serialized struct from the given file path if it exists.

+
source

pub fn remove(&self, path: &Path) -> Result<bool>

Removes the serialized struct at the given path if it exists. Returns true on success, false if the file doesn’t exist, and Error if the file system fails during operation.

source

fn snapshot_file_path<'a>(&self, path: &'a Path) -> Cow<'a, Path>

Trait Implementations§

source§

impl<'de> Deserialize<'de> for SnapshotFile

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/leo_package/outputs/checksum/struct.ChecksumFile.html b/leo_package/outputs/checksum/struct.ChecksumFile.html index a83b3f87ce..def0ba7fb2 100644 --- a/leo_package/outputs/checksum/struct.ChecksumFile.html +++ b/leo_package/outputs/checksum/struct.ChecksumFile.html @@ -1,8 +1,8 @@ ChecksumFile in leo_package::outputs::checksum - Rust

Struct leo_package::outputs::checksum::ChecksumFile

source ·
pub struct ChecksumFile {
     pub package_name: String,
-}

Fields§

§package_name: String

Implementations§

source§

impl ChecksumFile

source

pub fn new(package_name: &str) -> Self

source

pub fn exists_at(&self, path: &Path) -> bool

source

pub fn read_from(&self, path: &Path) -> Result<String>

Reads the checksum from the given file path if it exists.

-
source

pub fn write_to(&self, path: &Path, checksum: String) -> Result<()>

Writes the given checksum to a file.

-
source

pub fn remove(&self, path: &Path) -> Result<bool>

Removes the checksum at the given path if it exists. Returns true on success, +}

Fields§

§package_name: String

Implementations§

source§

impl ChecksumFile

source

pub fn new(package_name: &str) -> Self

source

pub fn exists_at(&self, path: &Path) -> bool

source

pub fn read_from(&self, path: &Path) -> Result<String>

Reads the checksum from the given file path if it exists.

+
source

pub fn write_to(&self, path: &Path, checksum: String) -> Result<()>

Writes the given checksum to a file.

+
source

pub fn remove(&self, path: &Path) -> Result<bool>

Removes the checksum at the given path if it exists. Returns true on success, false if the file doesn’t exist, and Error if the file system fails during operation.

source

fn setup_file_path<'a>(&self, path: &'a Path) -> Cow<'a, Path>

Trait Implementations§

source§

impl<'de> Deserialize<'de> for ChecksumFile

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/leo_package/outputs/circuit/struct.CircuitFile.html b/leo_package/outputs/circuit/struct.CircuitFile.html index 2016ebb713..7a313cccc5 100644 --- a/leo_package/outputs/circuit/struct.CircuitFile.html +++ b/leo_package/outputs/circuit/struct.CircuitFile.html @@ -1,8 +1,8 @@ CircuitFile in leo_package::outputs::circuit - Rust

Struct leo_package::outputs::circuit::CircuitFile

source ·
pub struct CircuitFile {
     pub package_name: String,
-}

Fields§

§package_name: String

Implementations§

source§

impl CircuitFile

source

pub fn new(package_name: &str) -> Self

source

pub fn exists_at(&self, path: &Path) -> bool

source

pub fn read_from(&self, path: &Path) -> Result<String>

Reads the serialized struct from the given file path if it exists.

-
source

pub fn write_to(&self, path: &Path, circuit: String) -> Result<()>

Writes the given serialized struct to a file.

-
source

pub fn remove(&self, path: &Path) -> Result<bool>

Removes the serialized struct at the given path if it exists. Returns true on success, +}

Fields§

§package_name: String

Implementations§

source§

impl CircuitFile

source

pub fn new(package_name: &str) -> Self

source

pub fn exists_at(&self, path: &Path) -> bool

source

pub fn read_from(&self, path: &Path) -> Result<String>

Reads the serialized struct from the given file path if it exists.

+
source

pub fn write_to(&self, path: &Path, circuit: String) -> Result<()>

Writes the given serialized struct to a file.

+
source

pub fn remove(&self, path: &Path) -> Result<bool>

Removes the serialized struct at the given path if it exists. Returns true on success, false if the file doesn’t exist, and Error if the file system fails during operation.

source

fn setup_file_path<'a>(&self, path: &'a Path) -> Cow<'a, Path>

Trait Implementations§

source§

impl<'de> Deserialize<'de> for CircuitFile

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/leo_package/outputs/directory/struct.OutputsDirectory.html b/leo_package/outputs/directory/struct.OutputsDirectory.html index eed4aadfb3..e6c87e2ceb 100644 --- a/leo_package/outputs/directory/struct.OutputsDirectory.html +++ b/leo_package/outputs/directory/struct.OutputsDirectory.html @@ -1,5 +1,5 @@ -OutputsDirectory in leo_package::outputs::directory - Rust

Struct leo_package::outputs::directory::OutputsDirectory

source ·
pub struct OutputsDirectory;

Implementations§

source§

impl OutputsDirectory

source

pub fn create(path: &Path) -> Result<PathBuf>

Creates a directory at the provided path with the default directory name.

-
source

pub fn remove(path: &Path) -> Result<String>

Removes the directory at the provided path.

+OutputsDirectory in leo_package::outputs::directory - Rust

Struct leo_package::outputs::directory::OutputsDirectory

source ·
pub struct OutputsDirectory;

Implementations§

source§

impl OutputsDirectory

source

pub fn create(path: &Path) -> Result<PathBuf>

Creates a directory at the provided path with the default directory name.

+
source

pub fn remove(path: &Path) -> Result<String>

Removes the directory at the provided path.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where diff --git a/leo_package/package/struct.Package.html b/leo_package/package/struct.Package.html index c8bdcb1ded..feed0a07e6 100644 --- a/leo_package/package/struct.Package.html +++ b/leo_package/package/struct.Package.html @@ -4,11 +4,11 @@ pub description: Option<String>, pub license: Option<String>, pub network: NetworkName, -}

Fields§

§name: String§version: String§description: Option<String>§license: Option<String>§network: NetworkName

Implementations§

source§

impl Package

source

pub fn new(package_name: &str, network: NetworkName) -> Result<Self>

source

pub fn is_aleo_name_valid(name: &str) -> bool

Returns true if it is a valid Aleo name.

+}

Fields§

§name: String§version: String§description: Option<String>§license: Option<String>§network: NetworkName

Implementations§

source§

impl Package

source

pub fn new(package_name: &str, network: NetworkName) -> Result<Self>

source

pub fn is_aleo_name_valid(name: &str) -> bool

Returns true if it is a valid Aleo name.

Aleo names can only contain ASCII alphanumeric characters and underscores.

source

pub fn can_initialize(package_name: &str, path: &Path) -> bool

Returns true if a package is can be initialized at a given path.

source

pub fn is_initialized(package_name: &str, path: &Path) -> bool

Returns true if a package is initialized at the given path

-
source

pub fn initialize<N: Network>(package_name: &str, path: &Path) -> Result<()>

Creates a Leo package at the given path

+
source

pub fn initialize<N: Network>(package_name: &str, path: &Path) -> Result<()>

Creates a Leo package at the given path

Trait Implementations§

source§

impl<'de> Deserialize<'de> for Package

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where diff --git a/leo_package/root/env/struct.Env.html b/leo_package/root/env/struct.Env.html index 977086c5af..85b01ccbcf 100644 --- a/leo_package/root/env/struct.Env.html +++ b/leo_package/root/env/struct.Env.html @@ -1,6 +1,6 @@ Env in leo_package::root::env - Rust

Struct leo_package::root::env::Env

source ·
pub struct Env<N: Network> {
     private_key: PrivateKey<N>,
-}

Fields§

§private_key: PrivateKey<N>

Implementations§

source§

impl<N: Network> Env<N>

source

pub fn new() -> Result<Self>

source

pub fn exists_at(path: &Path) -> bool

source

pub fn write_to(self, path: &Path) -> Result<()>

Trait Implementations§

source§

impl<'de, N: Network> Deserialize<'de> for Env<N>

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where +}

Fields§

§private_key: PrivateKey<N>

Implementations§

source§

impl<N: Network> Env<N>

source

pub fn new() -> Result<Self>

source

pub fn exists_at(path: &Path) -> bool

source

pub fn write_to(self, path: &Path) -> Result<()>

Trait Implementations§

source§

impl<'de, N: Network> Deserialize<'de> for Env<N>

source§

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<N: Network> From<PrivateKey<N>> for Env<N>

source§

fn from(private_key: PrivateKey<N>) -> Self

Converts to this type from the input type.
source§

impl<N: Network> ToString for Env<N>

source§

fn to_string(&self) -> String

Converts the given value to a String. Read more

Auto Trait Implementations§

§

impl<N> Freeze for Env<N>
where <N as Environment>::Field: Freeze, <N as Environment>::Scalar: Freeze,

§

impl<N> RefUnwindSafe for Env<N>
where diff --git a/leo_package/root/gitignore/struct.Gitignore.html b/leo_package/root/gitignore/struct.Gitignore.html index aa5c66a4c7..d04da20256 100644 --- a/leo_package/root/gitignore/struct.Gitignore.html +++ b/leo_package/root/gitignore/struct.Gitignore.html @@ -1,4 +1,4 @@ -Gitignore in leo_package::root::gitignore - Rust

Struct leo_package::root::gitignore::Gitignore

source ·
pub struct Gitignore;

Implementations§

source§

impl Gitignore

source

pub fn new() -> Self

source

pub fn exists_at(path: &Path) -> bool

source

pub fn write_to(self, path: &Path) -> Result<()>

source

fn template(&self) -> String

Trait Implementations§

source§

impl Default for Gitignore

source§

fn default() -> Gitignore

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Gitignore

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where +Gitignore in leo_package::root::gitignore - Rust

Struct leo_package::root::gitignore::Gitignore

source ·
pub struct Gitignore;

Implementations§

source§

impl Gitignore

source

pub fn new() -> Self

source

pub fn exists_at(path: &Path) -> bool

source

pub fn write_to(self, path: &Path) -> Result<()>

source

fn template(&self) -> String

Trait Implementations§

source§

impl Default for Gitignore

source§

fn default() -> Gitignore

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Gitignore

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where diff --git a/leo_package/source/directory/struct.SourceDirectory.html b/leo_package/source/directory/struct.SourceDirectory.html index 799a35d777..a81ea4519e 100644 --- a/leo_package/source/directory/struct.SourceDirectory.html +++ b/leo_package/source/directory/struct.SourceDirectory.html @@ -1,6 +1,6 @@ -SourceDirectory in leo_package::source::directory - Rust

Struct leo_package::source::directory::SourceDirectory

source ·
pub struct SourceDirectory;

Implementations§

source§

impl SourceDirectory

source

pub fn create(path: &Path) -> Result<()>

Creates a directory at the provided path with the default directory name.

-
source

pub fn files(path: &Path) -> Result<Vec<PathBuf>>

Returns a list of files in the source directory.

-
source

pub fn check_files(paths: &[PathBuf]) -> Result<()>

Check that the files in the source directory are valid.

+SourceDirectory in leo_package::source::directory - Rust

Struct leo_package::source::directory::SourceDirectory

source ·
pub struct SourceDirectory;

Implementations§

source§

impl SourceDirectory

source

pub fn create(path: &Path) -> Result<()>

Creates a directory at the provided path with the default directory name.

+
source

pub fn files(path: &Path) -> Result<Vec<PathBuf>>

Returns a list of files in the source directory.

+
source

pub fn check_files(paths: &[PathBuf]) -> Result<()>

Check that the files in the source directory are valid.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where diff --git a/leo_package/source/main/struct.MainFile.html b/leo_package/source/main/struct.MainFile.html index cfea2d93e0..c75ef853a3 100644 --- a/leo_package/source/main/struct.MainFile.html +++ b/leo_package/source/main/struct.MainFile.html @@ -1,6 +1,6 @@ MainFile in leo_package::source::main - Rust

Struct leo_package::source::main::MainFile

source ·
pub struct MainFile {
     pub package_name: String,
-}

Fields§

§package_name: String

Implementations§

source§

impl MainFile

source

pub fn new(package_name: &str) -> Self

source

pub fn filename() -> String

source

pub fn exists_at(path: &Path) -> bool

source

pub fn write_to(self, path: &Path) -> Result<()>

source

fn template(&self) -> String

Trait Implementations§

source§

impl<'de> Deserialize<'de> for MainFile

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where +}

Fields§

§package_name: String

Implementations§

source§

impl MainFile

source

pub fn new(package_name: &str) -> Self

source

pub fn filename() -> String

source

pub fn exists_at(path: &Path) -> bool

source

pub fn write_to(self, path: &Path) -> Result<()>

source

fn template(&self) -> String

Trait Implementations§

source§

impl<'de> Deserialize<'de> for MainFile

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where diff --git a/leo_passes/code_generation/generator/struct.CodeGenerator.html b/leo_passes/code_generation/generator/struct.CodeGenerator.html index 647a91ebf3..350241c444 100644 --- a/leo_passes/code_generation/generator/struct.CodeGenerator.html +++ b/leo_passes/code_generation/generator/struct.CodeGenerator.html @@ -55,7 +55,7 @@ &self, type_: &'a Type, visibility: Mode -) -> String

Trait Implementations§

source§

impl<'a> Pass for CodeGenerator<'a>

§

type Input = (&'a Ast, &'a SymbolTable, &'a TypeTable, &'a DiGraph<Symbol>, &'a DiGraph<Symbol>, &'a Program)

§

type Output = Result<String, LeoError>

source§

fn do_pass( +) -> String

Trait Implementations§

source§

impl<'a> Pass for CodeGenerator<'a>

§

type Input = (&'a Ast, &'a SymbolTable, &'a TypeTable, &'a DiGraph<Symbol>, &'a DiGraph<Symbol>, &'a Program)

§

type Output = Result<String, LeoError>

source§

fn do_pass( (ast, symbol_table, type_table, struct_graph, call_graph, program): Self::Input ) -> Self::Output

Runs the compiler pass.

Auto Trait Implementations§

§

impl<'a> Freeze for CodeGenerator<'a>

§

impl<'a> !RefUnwindSafe for CodeGenerator<'a>

§

impl<'a> !Send for CodeGenerator<'a>

§

impl<'a> !Sync for CodeGenerator<'a>

§

impl<'a> Unpin for CodeGenerator<'a>

§

impl<'a> !UnwindSafe for CodeGenerator<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where diff --git a/leo_passes/common/constant_propagation_table/struct.ConstantPropagationTable.html b/leo_passes/common/constant_propagation_table/struct.ConstantPropagationTable.html index fa018b3066..6995d92d84 100644 --- a/leo_passes/common/constant_propagation_table/struct.ConstantPropagationTable.html +++ b/leo_passes/common/constant_propagation_table/struct.ConstantPropagationTable.html @@ -15,7 +15,7 @@ &mut self, symbol: Symbol, expr: Expression -) -> Result<()>

Inserts a constant into the constant propagation table.

+) -> Result<()>

Inserts a constant into the constant propagation table.

source

pub fn insert_block(&mut self) -> usize

Creates a new scope for the block and stores it in the constant propagation table.

source

pub fn lookup_constant(&self, symbol: Symbol) -> Option<&Expression>

Attempts to lookup a constant in the constant propagation table.

source

pub fn constant_in_local_scope(&self, symbol: Symbol) -> bool

Returns true if the constant exists in the local scope

diff --git a/leo_passes/common/symbol_table/struct.SymbolTable.html b/leo_passes/common/symbol_table/struct.SymbolTable.html index bac0c5e623..529073cf38 100644 --- a/leo_passes/common/symbol_table/struct.SymbolTable.html +++ b/leo_passes/common/symbol_table/struct.SymbolTable.html @@ -20,33 +20,33 @@ location: &Location, is_struct: bool, span: Span -) -> Result<()>

Recursively checks if the symbol table contains an entry for the given symbol. +) -> Result<()>

Recursively checks if the symbol table contains an entry for the given symbol. Leo does not allow any variable shadowing or overlap between different symbols.

source

pub fn scope_index(&mut self) -> usize

Returns the current scope index. Increments the scope index.

-
source

pub fn insert_fn(&mut self, location: Location, insert: &Function) -> Result<()>

Inserts a function into the symbol table.

+
source

pub fn insert_fn(&mut self, location: Location, insert: &Function) -> Result<()>

Inserts a function into the symbol table.

source

pub fn insert_struct( &mut self, location: Location, insert: &Composite -) -> Result<()>

Inserts a struct into the symbol table.

+) -> Result<()>

Inserts a struct into the symbol table.

source

fn check_eq_struct(&self, new: &Composite, old: &Composite) -> bool

Checks if two structs are equal.

source

pub fn attach_finalize( &mut self, caller: Location, callee: Location -) -> Result<()>

Attach a finalize to a function.

+) -> Result<()>

Attach a finalize to a function.

source

pub fn insert_variable( &mut self, location: Location, insert: VariableSymbol -) -> Result<()>

Inserts a variable into the symbol table.

+) -> Result<()>

Inserts a variable into the symbol table.

source

pub fn insert_futures( &mut self, program: Symbol, function: Symbol, futures: Vec<Location> -) -> Result<()>

Inserts futures into the function definition.

+) -> Result<()>

Inserts futures into the function definition.

source

pub fn remove_variable_from_current_scope(&mut self, location: Location)

Removes a variable from the symbol table.

source

pub fn insert_block(&mut self) -> usize

Creates a new scope for the block and stores it in the symbol table.

source

pub fn lookup_fn_symbol(&self, location: Location) -> Option<&FunctionSymbol>

Attempts to lookup a function in the symbol table.

@@ -61,16 +61,16 @@ location: Location ) -> Option<&VariableSymbol>

Attempts to lookup a variable in the current scope.

source

pub fn lookup_scope_by_index(&self, index: usize) -> Option<&RefCell<Self>>

Returns the scope associated with index, if it exists in the symbol table.

-
source

pub fn to_json_string(&self) -> Result<String>

Serializes the symbol table into a JSON string.

-
source

pub fn to_json_value(&self) -> Result<Value>

Converts the symbol table into a JSON value

-
source

pub fn to_json_file(&self, path: PathBuf, file_name: &str) -> Result<()>

source

pub fn to_json_file_without_keys( +

source

pub fn to_json_string(&self) -> Result<String>

Serializes the symbol table into a JSON string.

+
source

pub fn to_json_value(&self) -> Result<Value>

Converts the symbol table into a JSON value

+
source

pub fn to_json_file(&self, path: PathBuf, file_name: &str) -> Result<()>

source

pub fn to_json_file_without_keys( &self, path: PathBuf, file_name: &str, excluded_keys: &[&str] -) -> Result<()>

Serializes the symbol table into a JSON value and removes keys from object mappings before writing to a file.

-
source

pub fn from_json_string(json: &str) -> Result<Self>

Deserializes the JSON string into a symbol table.

-
source

pub fn from_json_file(path: PathBuf) -> Result<Self>

Deserializes the JSON string into a symbol table from a file.

+) -> Result<()>

Serializes the symbol table into a JSON value and removes keys from object mappings before writing to a file.

+
source

pub fn from_json_string(json: &str) -> Result<Self>

Deserializes the JSON string into a symbol table.

+
source

pub fn from_json_file(path: PathBuf) -> Result<Self>

Deserializes the JSON string into a symbol table from a file.

Trait Implementations§

source§

impl Clone for SymbolTable

source§

fn clone(&self) -> SymbolTable

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SymbolTable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for SymbolTable

source§

fn default() -> SymbolTable

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for SymbolTable

source§

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 for SymbolTable

source§

fn eq(&self, other: &SymbolTable) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always diff --git a/leo_passes/dead_code_elimination/dead_code_eliminator/struct.DeadCodeEliminator.html b/leo_passes/dead_code_elimination/dead_code_eliminator/struct.DeadCodeEliminator.html index 372d032e34..309dc10bf1 100644 --- a/leo_passes/dead_code_elimination/dead_code_eliminator/struct.DeadCodeEliminator.html +++ b/leo_passes/dead_code_elimination/dead_code_eliminator/struct.DeadCodeEliminator.html @@ -73,7 +73,7 @@ ) -> (Expression, Self::AdditionalOutput)

source§

fn reconstruct_unit( &mut self, input: UnitExpression -) -> (Expression, Self::AdditionalOutput)

source§

impl<'a> Pass for DeadCodeEliminator<'a>

§

type Input = (Ast, &'a NodeBuilder)

§

type Output = Result<Ast, LeoError>

source§

fn do_pass((ast, node_builder): Self::Input) -> Self::Output

Runs the compiler pass.
source§

impl ProgramReconstructor for DeadCodeEliminator<'_>

source§

impl StatementReconstructor for DeadCodeEliminator<'_>

source§

impl<'a> Pass for DeadCodeEliminator<'a>

§

type Input = (Ast, &'a NodeBuilder)

§

type Output = Result<Ast, LeoError>

source§

fn do_pass((ast, node_builder): Self::Input) -> Self::Output

Runs the compiler pass.
source§

impl ProgramReconstructor for DeadCodeEliminator<'_>

source§

impl StatementReconstructor for DeadCodeEliminator<'_>

source§

fn reconstruct_assign( &mut self, input: AssignStatement ) -> (Statement, Self::AdditionalOutput)

Reconstruct an assignment statement by eliminating any dead code.

diff --git a/leo_passes/destructuring/destructurer/struct.Destructurer.html b/leo_passes/destructuring/destructurer/struct.Destructurer.html index 1dc29f63b3..b6ad1fa9dd 100644 --- a/leo_passes/destructuring/destructurer/struct.Destructurer.html +++ b/leo_passes/destructuring/destructurer/struct.Destructurer.html @@ -79,7 +79,7 @@ ) -> (Expression, Self::AdditionalOutput)

source§

fn reconstruct_unit( &mut self, input: UnitExpression -) -> (Expression, Self::AdditionalOutput)

source§

impl<'a> Pass for Destructurer<'a>

§

type Input = (Ast, &'a TypeTable, &'a NodeBuilder, &'a Assigner)

§

type Output = Result<Ast, LeoError>

source§

fn do_pass((ast, tt, node_builder, assigner): Self::Input) -> Self::Output

Runs the compiler pass.
source§

impl ProgramReconstructor for Destructurer<'_>

source§

impl StatementReconstructor for Destructurer<'_>

source§

impl<'a> Pass for Destructurer<'a>

§

type Input = (Ast, &'a TypeTable, &'a NodeBuilder, &'a Assigner)

§

type Output = Result<Ast, LeoError>

source§

fn do_pass((ast, tt, node_builder, assigner): Self::Input) -> Self::Output

Runs the compiler pass.
source§

impl ProgramReconstructor for Destructurer<'_>

source§

impl StatementReconstructor for Destructurer<'_>

source§

fn reconstruct_assign( &mut self, assign: AssignStatement ) -> (Statement, Self::AdditionalOutput)

Flattens an assign statement, if necessary. diff --git a/leo_passes/flattening/flattener/struct.Flattener.html b/leo_passes/flattening/flattener/struct.Flattener.html index c525999ef5..0645c0c27b 100644 --- a/leo_passes/flattening/flattener/struct.Flattener.html +++ b/leo_passes/flattening/flattener/struct.Flattener.html @@ -138,7 +138,7 @@ ) -> (Expression, Self::AdditionalOutput)

source§

fn reconstruct_unit( &mut self, input: UnitExpression -) -> (Expression, Self::AdditionalOutput)

source§

impl<'a> Pass for Flattener<'a>

§

type Input = (Ast, &'a SymbolTable, &'a TypeTable, &'a NodeBuilder, &'a Assigner)

§

type Output = Result<Ast, LeoError>

source§

fn do_pass((ast, st, tt, node_builder, assigner): Self::Input) -> Self::Output

Runs the compiler pass.
source§

impl ProgramReconstructor for Flattener<'_>

source§

fn reconstruct_program_scope(&mut self, input: ProgramScope) -> ProgramScope

Flattens a program scope.

+) -> (Expression, Self::AdditionalOutput)
source§

impl<'a> Pass for Flattener<'a>

§

type Input = (Ast, &'a SymbolTable, &'a TypeTable, &'a NodeBuilder, &'a Assigner)

§

type Output = Result<Ast, LeoError>

source§

fn do_pass((ast, st, tt, node_builder, assigner): Self::Input) -> Self::Output

Runs the compiler pass.
source§

impl ProgramReconstructor for Flattener<'_>

source§

fn reconstruct_program_scope(&mut self, input: ProgramScope) -> ProgramScope

Flattens a program scope.

source§

fn reconstruct_function(&mut self, function: Function) -> Function

Flattens a function’s body

source§

fn reconstruct_program(&mut self, input: Program) -> Program

source§

fn reconstruct_stub(&mut self, input: Stub) -> Stub

source§

fn reconstruct_function_stub(&mut self, input: FunctionStub) -> FunctionStub

source§

fn reconstruct_struct(&mut self, input: Composite) -> Composite

source§

fn reconstruct_import(&mut self, input: Program) -> Program

source§

fn reconstruct_mapping(&mut self, input: Mapping) -> Mapping

source§

impl StatementReconstructor for Flattener<'_>

source§

fn reconstruct_assert( &mut self, diff --git a/leo_passes/function_inlining/function_inliner/struct.FunctionInliner.html b/leo_passes/function_inlining/function_inliner/struct.FunctionInliner.html index e5c73ceb7c..6262def179 100644 --- a/leo_passes/function_inlining/function_inliner/struct.FunctionInliner.html +++ b/leo_passes/function_inlining/function_inliner/struct.FunctionInliner.html @@ -79,7 +79,7 @@ ) -> (Expression, Self::AdditionalOutput)

source§

fn reconstruct_unit( &mut self, input: UnitExpression -) -> (Expression, Self::AdditionalOutput)

source§

impl<'a> Pass for FunctionInliner<'a>

§

type Input = (Ast, &'a NodeBuilder, &'a DiGraph<Symbol>, &'a Assigner, &'a TypeTable)

§

type Output = Result<Ast, LeoError>

source§

fn do_pass( +) -> (Expression, Self::AdditionalOutput)

source§

impl<'a> Pass for FunctionInliner<'a>

§

type Input = (Ast, &'a NodeBuilder, &'a DiGraph<Symbol>, &'a Assigner, &'a TypeTable)

§

type Output = Result<Ast, LeoError>

source§

fn do_pass( (ast, node_builder, call_graph, assigner, tt): Self::Input ) -> Self::Output

Runs the compiler pass.
source§

impl ProgramReconstructor for FunctionInliner<'_>

source§

impl StatementReconstructor for FunctionInliner<'_>

source§

fn reconstruct_assign( &mut self, diff --git a/leo_passes/loop_unrolling/range_iterator/trait.LoopBound.html b/leo_passes/loop_unrolling/range_iterator/trait.LoopBound.html index 67584bb569..fc85234679 100644 --- a/leo_passes/loop_unrolling/range_iterator/trait.LoopBound.html +++ b/leo_passes/loop_unrolling/range_iterator/trait.LoopBound.html @@ -1,2 +1,2 @@ -LoopBound in leo_passes::loop_unrolling::range_iterator - Rust
pub(crate) trait LoopBound: Add<Output = Self> + Copy + Display + One + PartialOrd + TryFrom<Value, Error = LeoError> { }
Expand description

A trait for whose implementors are concrete values for loop bounds.

+LoopBound in leo_passes::loop_unrolling::range_iterator - Rust
pub(crate) trait LoopBound: Add<Output = Self> + Copy + Display + One + PartialOrd + TryFrom<Value, Error = LeoError> { }
Expand description

A trait for whose implementors are concrete values for loop bounds.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl LoopBound for i128

source§

impl LoopBound for u128

Implementors§

\ No newline at end of file diff --git a/leo_passes/loop_unrolling/unroller/struct.Unroller.html b/leo_passes/loop_unrolling/unroller/struct.Unroller.html index 04c1098db6..dd51134860 100644 --- a/leo_passes/loop_unrolling/unroller/struct.Unroller.html +++ b/leo_passes/loop_unrolling/unroller/struct.Unroller.html @@ -3,7 +3,7 @@ pub(crate) symbol_table: RefCell<SymbolTable>, pub(crate) type_table: &'a TypeTable, pub(crate) scope_index: usize, - pub(crate) handler: &'a Handler, + pub(crate) handler: &'a Handler, pub(crate) node_builder: &'a NodeBuilder, pub(crate) is_unrolling: bool, pub(crate) current_program: Option<Symbol>, @@ -11,20 +11,20 @@
§symbol_table: RefCell<SymbolTable>

The symbol table for the function being processed.

§type_table: &'a TypeTable

A mapping from node IDs to their types.

§scope_index: usize

The index of the current scope.

-
§handler: &'a Handler

An error handler used for any errors found during unrolling.

+
§handler: &'a Handler

An error handler used for any errors found during unrolling.

§node_builder: &'a NodeBuilder

A counter used to generate unique node IDs.

§is_unrolling: bool

Are we in the midst of unrolling a loop?

§current_program: Option<Symbol>

The current program name.

Implementations§

source§

impl<'a> Unroller<'a>

source

pub(crate) fn new( symbol_table: SymbolTable, type_table: &'a TypeTable, - handler: &'a Handler, + handler: &'a Handler, node_builder: &'a NodeBuilder ) -> Self

source

pub(crate) fn current_scope_index(&mut self) -> usize

Returns the index of the current scope. Note that if we are in the midst of unrolling an IterationStatement, a new scope is created.

source

pub(crate) fn enter_scope(&mut self, index: usize) -> usize

Enters a child scope.

source

pub(crate) fn exit_scope(&mut self, index: usize)

Exits the current block scope.

-
source

pub(crate) fn emit_err(&self, err: LoopUnrollerError)

Emits a Loop Unrolling Error

+
source

pub(crate) fn emit_err(&self, err: LoopUnrollerError)

Emits a Loop Unrolling Error

source

pub(crate) fn unroll_iteration_statement<I: LoopBound>( &mut self, input: IterationStatement @@ -94,7 +94,7 @@ ) -> (Expression, Self::AdditionalOutput)

source§

fn reconstruct_unit( &mut self, input: UnitExpression -) -> (Expression, Self::AdditionalOutput)

source§

impl<'a> Pass for Unroller<'a>

§

type Input = (Ast, &'a Handler, &'a NodeBuilder, SymbolTable, &'a TypeTable)

§

type Output = Result<(Ast, SymbolTable), LeoError>

source§

fn do_pass((ast, handler, node_builder, st, tt): Self::Input) -> Self::Output

Runs the compiler pass.
source§

impl ProgramReconstructor for Unroller<'_>

source§

impl StatementReconstructor for Unroller<'_>

source§

impl<'a> Pass for Unroller<'a>

§

type Input = (Ast, &'a Handler, &'a NodeBuilder, SymbolTable, &'a TypeTable)

§

type Output = Result<(Ast, SymbolTable), LeoError>

source§

fn do_pass((ast, handler, node_builder, st, tt): Self::Input) -> Self::Output

Runs the compiler pass.
source§

impl ProgramReconstructor for Unroller<'_>

source§

impl StatementReconstructor for Unroller<'_>

source§

fn reconstruct_block(&mut self, input: Block) -> (Block, Self::AdditionalOutput)

source§

fn reconstruct_const( &mut self, input: ConstDeclaration ) -> (Statement, Self::AdditionalOutput)

source§

fn reconstruct_definition( diff --git a/leo_passes/pass/trait.Pass.html b/leo_passes/pass/trait.Pass.html index c440a8e305..ba7d0ada4b 100644 --- a/leo_passes/pass/trait.Pass.html +++ b/leo_passes/pass/trait.Pass.html @@ -6,4 +6,4 @@ fn do_pass(input: Self::Input) -> Self::Output; }
Expand description

A compiler pass consuming Self::Input and returning Self::Output.

Required Associated Types§

Required Methods§

source

fn do_pass(input: Self::Input) -> Self::Output

Runs the compiler pass.

-

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a> Pass for CodeGenerator<'a>

§

type Input = (&'a Ast, &'a SymbolTable, &'a TypeTable, &'a DiGraph<Symbol>, &'a DiGraph<Symbol>, &'a Program)

§

type Output = Result<String, LeoError>

source§

impl<'a> Pass for DeadCodeEliminator<'a>

source§

impl<'a> Pass for Destructurer<'a>

source§

impl<'a> Pass for Flattener<'a>

source§

impl<'a> Pass for FunctionInliner<'a>

§

type Input = (Ast, &'a NodeBuilder, &'a DiGraph<Symbol>, &'a Assigner, &'a TypeTable)

§

type Output = Result<Ast, LeoError>

source§

impl<'a> Pass for Unroller<'a>

source§

impl<'a> Pass for StaticSingleAssigner<'a>

source§

impl<'a> Pass for SymbolTableCreator<'a>

source§

impl<'a, N: Network> Pass for TypeChecker<'a, N>

§

type Input = (&'a Ast, &'a Handler, SymbolTable, &'a TypeTable, usize, bool)

§

type Output = Result<(SymbolTable, DiGraph<Symbol>, DiGraph<Symbol>), LeoError>

\ No newline at end of file +

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a> Pass for CodeGenerator<'a>

§

type Input = (&'a Ast, &'a SymbolTable, &'a TypeTable, &'a DiGraph<Symbol>, &'a DiGraph<Symbol>, &'a Program)

§

type Output = Result<String, LeoError>

source§

impl<'a> Pass for DeadCodeEliminator<'a>

§

type Input = (Ast, &'a NodeBuilder)

§

type Output = Result<Ast, LeoError>

source§

impl<'a> Pass for Destructurer<'a>

§

type Input = (Ast, &'a TypeTable, &'a NodeBuilder, &'a Assigner)

§

type Output = Result<Ast, LeoError>

source§

impl<'a> Pass for Flattener<'a>

§

type Input = (Ast, &'a SymbolTable, &'a TypeTable, &'a NodeBuilder, &'a Assigner)

§

type Output = Result<Ast, LeoError>

source§

impl<'a> Pass for FunctionInliner<'a>

§

type Input = (Ast, &'a NodeBuilder, &'a DiGraph<Symbol>, &'a Assigner, &'a TypeTable)

§

type Output = Result<Ast, LeoError>

source§

impl<'a> Pass for Unroller<'a>

§

type Input = (Ast, &'a Handler, &'a NodeBuilder, SymbolTable, &'a TypeTable)

§

type Output = Result<(Ast, SymbolTable), LeoError>

source§

impl<'a> Pass for StaticSingleAssigner<'a>

§

type Input = (Ast, &'a NodeBuilder, &'a Assigner, &'a SymbolTable, &'a TypeTable)

§

type Output = Result<Ast, LeoError>

source§

impl<'a> Pass for SymbolTableCreator<'a>

§

type Input = (&'a Ast, &'a Handler)

§

type Output = Result<SymbolTable, LeoError>

source§

impl<'a, N: Network> Pass for TypeChecker<'a, N>

§

type Input = (&'a Ast, &'a Handler, SymbolTable, &'a TypeTable, usize, bool)

§

type Output = Result<(SymbolTable, DiGraph<Symbol>, DiGraph<Symbol>), LeoError>

\ No newline at end of file diff --git a/leo_passes/static_single_assignment/static_single_assigner/struct.StaticSingleAssigner.html b/leo_passes/static_single_assignment/static_single_assigner/struct.StaticSingleAssigner.html index 7bfa5e4893..cad440656a 100644 --- a/leo_passes/static_single_assignment/static_single_assigner/struct.StaticSingleAssigner.html +++ b/leo_passes/static_single_assignment/static_single_assigner/struct.StaticSingleAssigner.html @@ -44,7 +44,7 @@
source§

fn consume_tuple(&mut self, input: TupleExpression) -> Self::Output

Consumes a tuple expression, accumulating any statements that are generated

source§

fn consume_unary(&mut self, input: UnaryExpression) -> Self::Output

Consumes a unary expression, accumulating any statements that are generated.

§

type Output = (Expression, Vec<Statement>)

source§

fn consume_unit(&mut self, input: UnitExpression) -> Self::Output

source§

fn consume_expression(&mut self, input: Expression) -> Self::Output

source§

fn consume_err(&mut self, _input: ErrExpression) -> Self::Output

source§

impl FunctionConsumer for StaticSingleAssigner<'_>

source§

fn consume_function(&mut self, function: Function) -> Self::Output

Reconstructs the Functions in the Program, while allocating the appropriate RenameTables.

-
§

type Output = Function

source§

impl<'a> Pass for StaticSingleAssigner<'a>

§

type Output = Function

source§

impl<'a> Pass for StaticSingleAssigner<'a>

§

type Input = (Ast, &'a NodeBuilder, &'a Assigner, &'a SymbolTable, &'a TypeTable)

§

type Output = Result<Ast, LeoError>

source§

fn do_pass( (ast, node_builder, assigner, symbol_table, type_table): Self::Input ) -> Self::Output

Runs the compiler pass.
source§

impl ProgramConsumer for StaticSingleAssigner<'_>

§

type Output = Program

source§

fn consume_program(&mut self, input: Program) -> Self::Output

source§

impl ProgramScopeConsumer for StaticSingleAssigner<'_>

source§

impl StatementConsumer for StaticSingleAssigner<'_>

source§

fn consume_assert(&mut self, input: AssertStatement) -> Self::Output

Consumes the expressions in an AssertStatement, returning the list of simplified statements.

source§

fn consume_assign(&mut self, assign: AssignStatement) -> Self::Output

Consume all AssignStatements, renaming as necessary.

diff --git a/leo_passes/symbol_table_creation/creator/struct.SymbolTableCreator.html b/leo_passes/symbol_table_creation/creator/struct.SymbolTableCreator.html index 19ac43d054..43a94575eb 100644 --- a/leo_passes/symbol_table_creation/creator/struct.SymbolTableCreator.html +++ b/leo_passes/symbol_table_creation/creator/struct.SymbolTableCreator.html @@ -1,6 +1,6 @@ SymbolTableCreator in leo_passes::symbol_table_creation::creator - Rust
pub struct SymbolTableCreator<'a> {
     pub(crate) symbol_table: SymbolTable,
-    handler: &'a Handler,
+    handler: &'a Handler,
     program_name: Option<Symbol>,
     is_stub: bool,
     structs: IndexSet<Symbol>,
@@ -8,11 +8,11 @@
 Note that this pass only creates the initial entries for functions, structs, and records.
 The table is populated further during the type checking pass.

Fields§

§symbol_table: SymbolTable

The SymbolTable constructed by this compiler pass.

-
§handler: &'a Handler

The error handler.

+
§handler: &'a Handler

The error handler.

§program_name: Option<Symbol>

The current program name.

§is_stub: bool

Whether or not traversing stub.

§structs: IndexSet<Symbol>

The set of local structs that have been successfully visited.

-

Implementations§

source§

impl<'a> SymbolTableCreator<'a>

source

pub fn new(handler: &'a Handler) -> Self

Trait Implementations§

source§

impl<'a> ExpressionVisitor<'a> for SymbolTableCreator<'a>

Implementations§

source§

impl<'a> SymbolTableCreator<'a>

source

pub fn new(handler: &'a Handler) -> Self

Trait Implementations§

source§

impl<'a> ExpressionVisitor<'a> for SymbolTableCreator<'a>

§

type AdditionalInput = ()

§

type Output = ()

source§

fn visit_expression( &mut self, input: &'a Expression, additional: &Self::AdditionalInput @@ -73,7 +73,7 @@ _input: &'a UnitExpression, _additional: &Self::AdditionalInput ) -> Self::Output

source§

impl<'a> Pass for SymbolTableCreator<'a>

source§

fn do_pass((ast, handler): Self::Input) -> Self::Output

Runs the compiler pass.

-
§

type Input = (&'a Ast, &'a Handler)

§

type Output = Result<SymbolTable, LeoError>

source§

impl<'a> ProgramVisitor<'a> for SymbolTableCreator<'a>

source§

fn visit_program_scope(&mut self, input: &'a ProgramScope)

source§

fn visit_import(&mut self, input: &'a Program)

source§

fn visit_struct(&mut self, input: &'a Composite)

source§

fn visit_mapping(&mut self, input: &'a Mapping)

source§

fn visit_function(&mut self, input: &'a Function)

source§

fn visit_stub(&mut self, input: &'a Stub)

source§

fn visit_function_stub(&mut self, input: &'a FunctionStub)

source§

fn visit_struct_stub(&mut self, input: &'a Composite)

source§

fn visit_program(&mut self, input: &'a Program)

source§

impl<'a> StatementVisitor<'a> for SymbolTableCreator<'a>

source§

fn visit_statement(&mut self, input: &'a Statement)

source§

fn visit_assert(&mut self, input: &'a AssertStatement)

source§

fn visit_assign(&mut self, input: &'a AssignStatement)

source§

fn visit_block(&mut self, input: &'a Block)

source§

fn visit_conditional(&mut self, input: &'a ConditionalStatement)

source§

fn visit_console(&mut self, input: &'a ConsoleStatement)

source§

fn visit_const(&mut self, input: &'a ConstDeclaration)

source§

fn visit_definition(&mut self, input: &'a DefinitionStatement)

source§

fn visit_expression_statement(&mut self, input: &'a ExpressionStatement)

source§

fn visit_iteration(&mut self, input: &'a IterationStatement)

source§

fn visit_return(&mut self, input: &'a ReturnStatement)

Auto Trait Implementations§

§

impl<'a> Freeze for SymbolTableCreator<'a>

§

impl<'a> !RefUnwindSafe for SymbolTableCreator<'a>

§

impl<'a> !Send for SymbolTableCreator<'a>

§

impl<'a> !Sync for SymbolTableCreator<'a>

§

impl<'a> Unpin for SymbolTableCreator<'a>

§

impl<'a> !UnwindSafe for SymbolTableCreator<'a>

Blanket Implementations§

source§

impl<T> Any for T
where +

§

type Input = (&'a Ast, &'a Handler)

§

type Output = Result<SymbolTable, LeoError>

source§

impl<'a> ProgramVisitor<'a> for SymbolTableCreator<'a>

source§

fn visit_program_scope(&mut self, input: &'a ProgramScope)

source§

fn visit_import(&mut self, input: &'a Program)

source§

fn visit_struct(&mut self, input: &'a Composite)

source§

fn visit_mapping(&mut self, input: &'a Mapping)

source§

fn visit_function(&mut self, input: &'a Function)

source§

fn visit_stub(&mut self, input: &'a Stub)

source§

fn visit_function_stub(&mut self, input: &'a FunctionStub)

source§

fn visit_struct_stub(&mut self, input: &'a Composite)

source§

fn visit_program(&mut self, input: &'a Program)

source§

impl<'a> StatementVisitor<'a> for SymbolTableCreator<'a>

source§

fn visit_statement(&mut self, input: &'a Statement)

source§

fn visit_assert(&mut self, input: &'a AssertStatement)

source§

fn visit_assign(&mut self, input: &'a AssignStatement)

source§

fn visit_block(&mut self, input: &'a Block)

source§

fn visit_conditional(&mut self, input: &'a ConditionalStatement)

source§

fn visit_console(&mut self, input: &'a ConsoleStatement)

source§

fn visit_const(&mut self, input: &'a ConstDeclaration)

source§

fn visit_definition(&mut self, input: &'a DefinitionStatement)

source§

fn visit_expression_statement(&mut self, input: &'a ExpressionStatement)

source§

fn visit_iteration(&mut self, input: &'a IterationStatement)

source§

fn visit_return(&mut self, input: &'a ReturnStatement)

Auto Trait Implementations§

§

impl<'a> Freeze for SymbolTableCreator<'a>

§

impl<'a> !RefUnwindSafe for SymbolTableCreator<'a>

§

impl<'a> !Send for SymbolTableCreator<'a>

§

impl<'a> !Sync for SymbolTableCreator<'a>

§

impl<'a> Unpin for SymbolTableCreator<'a>

§

impl<'a> !UnwindSafe for SymbolTableCreator<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/leo_passes/type_checking/await_checker/struct.AwaitChecker.html b/leo_passes/type_checking/await_checker/struct.AwaitChecker.html index 285525fc2a..fe6e6125b1 100644 --- a/leo_passes/type_checking/await_checker/struct.AwaitChecker.html +++ b/leo_passes/type_checking/await_checker/struct.AwaitChecker.html @@ -14,7 +14,7 @@ &mut self, is_finalize: bool, input: Span -) -> Result<Vec<ConditionalTreeNode>, TypeCheckerWarning>

Enter scope for then branch of conditional.

+) -> Result<Vec<ConditionalTreeNode>, TypeCheckerWarning>

Enter scope for then branch of conditional.

source

pub fn exit_then_scope( &mut self, is_finalize: bool, diff --git a/leo_passes/type_checking/checker/struct.TypeChecker.html b/leo_passes/type_checking/checker/struct.TypeChecker.html index dc8146f74a..9e08f9a3bd 100644 --- a/leo_passes/type_checking/checker/struct.TypeChecker.html +++ b/leo_passes/type_checking/checker/struct.TypeChecker.html @@ -3,7 +3,7 @@ pub(crate) type_table: &'a TypeTable, pub(crate) struct_graph: StructGraph, pub(crate) call_graph: CallGraph, - pub(crate) handler: &'a Handler, + pub(crate) handler: &'a Handler, pub(crate) scope_state: ScopeState, pub(crate) await_checker: AwaitChecker, pub(crate) async_function_input_types: IndexMap<Location, Vec<Type>>, @@ -13,7 +13,7 @@

§type_table: &'a TypeTable

A mapping from node IDs to their types.

§struct_graph: StructGraph

A dependency graph of the structs in program.

§call_graph: CallGraph

The call graph for the program.

-
§handler: &'a Handler

The error handler.

+
§handler: &'a Handler

The error handler.

§scope_state: ScopeState

The state of the current scope being traversed.

§await_checker: AwaitChecker

Struct to store the state relevant to checking all futures are awaited.

§async_function_input_types: IndexMap<Location, Vec<Type>>

Mapping from async function name to the inferred input types.

@@ -21,15 +21,15 @@
§phantom: PhantomData<N>

Implementations§

source§

impl<'a, N: Network> TypeChecker<'a, N>

source

pub fn new( symbol_table: SymbolTable, type_table: &'a TypeTable, - handler: &'a Handler, + handler: &'a Handler, max_depth: usize, disabled: bool ) -> Self

Returns a new type checker given a symbol table and error handler.

source

pub(crate) fn enter_scope(&mut self, index: usize)

Enters a child scope.

source

pub(crate) fn create_child_scope(&mut self) -> usize

Creates a new child scope.

source

pub(crate) fn exit_scope(&mut self, index: usize)

Exits the current scope.

-
source

pub(crate) fn emit_err(&self, err: TypeCheckerError)

Emits a type checker error.

-
source

pub fn emit_warning(&self, warning: TypeCheckerWarning)

Emits a type checker warning

+
source

pub(crate) fn emit_err(&self, err: TypeCheckerError)

Emits a type checker error.

+
source

pub fn emit_warning(&self, warning: TypeCheckerWarning)

Emits a type checker warning

source

fn check_type( &self, is_valid: impl Fn(&Type) -> bool, @@ -212,7 +212,7 @@ &mut self, input: &'a UnitExpression, _additional: &Self::AdditionalInput -) -> Self::Output

source§

impl<'a, N: Network> Pass for TypeChecker<'a, N>

§

type Input = (&'a Ast, &'a Handler, SymbolTable, &'a TypeTable, usize, bool)

§

type Output = Result<(SymbolTable, DiGraph<Symbol>, DiGraph<Symbol>), LeoError>

source§

fn do_pass( +) -> Self::Output

source§

impl<'a, N: Network> Pass for TypeChecker<'a, N>

§

type Input = (&'a Ast, &'a Handler, SymbolTable, &'a TypeTable, usize, bool)

§

type Output = Result<(SymbolTable, DiGraph<Symbol>, DiGraph<Symbol>), LeoError>

source§

fn do_pass( (ast, handler, st, tt, max_depth, await_checking): Self::Input ) -> Self::Output

Runs the compiler pass.
source§

impl<'a, N: Network> ProgramVisitor<'a> for TypeChecker<'a, N>

source§

fn visit_program(&mut self, input: &'a Program)

source§

fn visit_program_scope(&mut self, input: &'a ProgramScope)

source§

fn visit_stub(&mut self, input: &'a Stub)

source§

fn visit_struct(&mut self, input: &'a Composite)

source§

fn visit_mapping(&mut self, input: &'a Mapping)

source§

fn visit_function(&mut self, function: &'a Function)

source§

fn visit_function_stub(&mut self, input: &'a FunctionStub)

source§

fn visit_struct_stub(&mut self, input: &'a Composite)

source§

fn visit_import(&mut self, input: &'a Program)

source§

impl<'a, N: Network> StatementVisitor<'a> for TypeChecker<'a, N>

source§

fn visit_statement(&mut self, input: &'a Statement)

source§

fn visit_assert(&mut self, input: &'a AssertStatement)

source§

fn visit_assign(&mut self, input: &'a AssignStatement)

source§

fn visit_block(&mut self, input: &'a Block)

source§

fn visit_conditional(&mut self, input: &'a ConditionalStatement)

source§

fn visit_console(&mut self, _: &'a ConsoleStatement)

source§

fn visit_const(&mut self, input: &'a ConstDeclaration)

source§

fn visit_definition(&mut self, input: &'a DefinitionStatement)

source§

fn visit_expression_statement(&mut self, input: &'a ExpressionStatement)

source§

fn visit_iteration(&mut self, input: &'a IterationStatement)

source§

fn visit_return(&mut self, input: &'a ReturnStatement)

Auto Trait Implementations§

§

impl<'a, N> !Freeze for TypeChecker<'a, N>

§

impl<'a, N> !RefUnwindSafe for TypeChecker<'a, N>

§

impl<'a, N> !Send for TypeChecker<'a, N>

§

impl<'a, N> !Sync for TypeChecker<'a, N>

§

impl<'a, N> Unpin for TypeChecker<'a, N>
where N: Unpin,

§

impl<'a, N> !UnwindSafe for TypeChecker<'a, N>

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/leo_retriever/program_context/manifest/struct.Manifest.html b/leo_retriever/program_context/manifest/struct.Manifest.html index 71972ab074..ef9fc9ee76 100644 --- a/leo_retriever/program_context/manifest/struct.Manifest.html +++ b/leo_retriever/program_context/manifest/struct.Manifest.html @@ -10,7 +10,7 @@ description: &str, license: &str, dependencies: Option<Vec<Dependency>> -) -> Self

source

pub fn default(program: &str) -> Self

source

pub fn program(&self) -> &String

source

pub fn version(&self) -> &String

source

pub fn description(&self) -> &String

source

pub fn license(&self) -> &String

source

pub fn dependencies(&self) -> &Option<Vec<Dependency>>

source

pub fn write_to_dir(&self, path: &Path) -> Result<(), PackageError>

source

pub fn read_from_dir(path: &Path) -> Result<Self, PackageError>

Trait Implementations§

source§

impl Clone for Manifest

source§

fn clone(&self) -> Manifest

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Manifest

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Manifest

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where +) -> Self

source

pub fn default(program: &str) -> Self

source

pub fn program(&self) -> &String

source

pub fn version(&self) -> &String

source

pub fn description(&self) -> &String

source

pub fn license(&self) -> &String

source

pub fn dependencies(&self) -> &Option<Vec<Dependency>>

source

pub fn write_to_dir(&self, path: &Path) -> Result<(), PackageError>

source

pub fn read_from_dir(path: &Path) -> Result<Self, PackageError>

Trait Implementations§

source§

impl Clone for Manifest

source§

fn clone(&self) -> Manifest

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Manifest

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Manifest

source§

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 Serialize for Manifest

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where diff --git a/leo_retriever/program_context/network_name/enum.NetworkName.html b/leo_retriever/program_context/network_name/enum.NetworkName.html index 7f7ec9df54..204a0b56ca 100644 --- a/leo_retriever/program_context/network_name/enum.NetworkName.html +++ b/leo_retriever/program_context/network_name/enum.NetworkName.html @@ -7,7 +7,7 @@ Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for NetworkName

source§

fn eq(&self, other: &NetworkName) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for NetworkName

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<&str> for NetworkName

§

type Error = LeoError

The type returned in the event of a conversion error.
source§

fn try_from(network: &str) -> Result<Self, LeoError>

Performs the conversion.
source§

impl Copy for NetworkName

source§

impl Eq for NetworkName

source§

impl StructuralPartialEq for NetworkName

Auto Trait Implementations§

§

impl Freeze for NetworkName

§

impl RefUnwindSafe for NetworkName

§

impl Send for NetworkName

§

impl Sync for NetworkName

§

impl Unpin for NetworkName

§

impl UnwindSafe for NetworkName

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<&str> for NetworkName

§

type Error = LeoError

The type returned in the event of a conversion error.
source§

fn try_from(network: &str) -> Result<Self, LeoError>

Performs the conversion.
source§

impl Copy for NetworkName

source§

impl Eq for NetworkName

source§

impl StructuralPartialEq for NetworkName

Auto Trait Implementations§

§

impl Freeze for NetworkName

§

impl RefUnwindSafe for NetworkName

§

impl Send for NetworkName

§

impl Sync for NetworkName

§

impl Unpin for NetworkName

§

impl UnwindSafe for NetworkName

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where diff --git a/leo_retriever/retriever/fn.fetch_from_network.html b/leo_retriever/retriever/fn.fetch_from_network.html index f79d5fc1c3..5e2b1adfd4 100644 --- a/leo_retriever/retriever/fn.fetch_from_network.html +++ b/leo_retriever/retriever/fn.fetch_from_network.html @@ -1 +1 @@ -fetch_from_network in leo_retriever::retriever - Rust

Function leo_retriever::retriever::fetch_from_network

source ·
pub fn fetch_from_network(url: &str) -> Result<String, UtilError>
\ No newline at end of file +fetch_from_network in leo_retriever::retriever - Rust

Function leo_retriever::retriever::fetch_from_network

source ·
pub fn fetch_from_network(url: &str) -> Result<String, UtilError>
\ No newline at end of file diff --git a/leo_retriever/retriever/fn.retrieve_from_network.html b/leo_retriever/retriever/fn.retrieve_from_network.html index 6732fc76ba..88d62b634f 100644 --- a/leo_retriever/retriever/fn.retrieve_from_network.html +++ b/leo_retriever/retriever/fn.retrieve_from_network.html @@ -3,4 +3,4 @@ home_path: &Path, name: &String, endpoint: &String -) -> Result<(Stub, Vec<Dependency>), UtilError>

\ No newline at end of file +) -> Result<(Stub, Vec<Dependency>), UtilError> \ No newline at end of file diff --git a/leo_retriever/retriever/fn.retrieve_local.html b/leo_retriever/retriever/fn.retrieve_local.html index 4ff3e3b621..619f383247 100644 --- a/leo_retriever/retriever/fn.retrieve_local.html +++ b/leo_retriever/retriever/fn.retrieve_local.html @@ -1,4 +1,4 @@ retrieve_local in leo_retriever::retriever - Rust

Function leo_retriever::retriever::retrieve_local

source ·
fn retrieve_local(
     name: &String,
     path: &PathBuf
-) -> Result<Vec<Dependency>, UtilError>
\ No newline at end of file +) -> Result<Vec<Dependency>, UtilError> \ No newline at end of file diff --git a/leo_retriever/retriever/fn.verify_valid_program.html b/leo_retriever/retriever/fn.verify_valid_program.html index a2f416c3c9..7ef65f4c62 100644 --- a/leo_retriever/retriever/fn.verify_valid_program.html +++ b/leo_retriever/retriever/fn.verify_valid_program.html @@ -1,4 +1,4 @@ verify_valid_program in leo_retriever::retriever - Rust

Function leo_retriever::retriever::verify_valid_program

source ·
pub fn verify_valid_program<N: Network>(
     name: &str,
     program: &str
-) -> Result<(), UtilError>
\ No newline at end of file +) -> Result<(), UtilError> \ No newline at end of file diff --git a/leo_retriever/retriever/struct.Retriever.html b/leo_retriever/retriever/struct.Retriever.html index 0169b731d9..ad41852739 100644 --- a/leo_retriever/retriever/struct.Retriever.html +++ b/leo_retriever/retriever/struct.Retriever.html @@ -10,14 +10,14 @@ path: &PathBuf, home: &Path, endpoint: String -) -> Result<Self, UtilError>
source

pub fn get_context(&self, name: &Symbol) -> &ProgramContext

source

pub fn retrieve(&mut self) -> Result<Vec<Symbol>, UtilError>

source

pub fn prepare_local( +) -> Result<Self, UtilError>

source

pub fn get_context(&self, name: &Symbol) -> &ProgramContext

source

pub fn retrieve(&mut self) -> Result<Vec<Symbol>, UtilError>

source

pub fn prepare_local( &mut self, name: Symbol -) -> Result<(PathBuf, IndexMap<Symbol, Stub>), UtilError>

source

pub fn process_local( +) -> Result<(PathBuf, IndexMap<Symbol, Stub>), UtilError>

source

pub fn process_local( &mut self, name: Symbol, recursive: bool -) -> Result<(), UtilError>

source

fn write_lock_file(&self, name: &Symbol) -> Result<(), UtilError>

Auto Trait Implementations§

§

impl<N> Freeze for Retriever<N>

§

impl<N> RefUnwindSafe for Retriever<N>
where +) -> Result<(), UtilError>

source

fn write_lock_file(&self, name: &Symbol) -> Result<(), UtilError>

Auto Trait Implementations§

§

impl<N> Freeze for Retriever<N>

§

impl<N> RefUnwindSafe for Retriever<N>
where N: RefUnwindSafe,

§

impl<N> Send for Retriever<N>

§

impl<N> Sync for Retriever<N>

§

impl<N> Unpin for Retriever<N>
where N: Unpin,

§

impl<N> UnwindSafe for Retriever<N>
where N: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where