From 05890d313efe06f211b4263f29221fe1cc67f0ed Mon Sep 17 00:00:00 2001 From: d0cd Date: Tue, 3 Dec 2024 17:26:31 +0000 Subject: [PATCH] deploy: 2813d5fefd3c28ef78fcf7bc3a9cc90113e3355a --- errcov/all.html | 2 +- errcov/fn.main.html | 2 +- errcov/index.html | 2 +- help.html | 2 +- index.html | 4 +- leo/all.html | 2 +- leo/fn.main.html | 2 +- leo/fn.set_panic_hook.html | 2 +- leo/index.html | 2 +- leo_abnf/all.html | 2 +- leo_abnf/enum.Scope.html | 26 +- leo_abnf/fn.main.html | 2 +- leo_abnf/fn.parse_abnf_node.html | 2 +- leo_abnf/index.html | 2 +- leo_abnf/struct.Processor.html | 38 +- leo_ast/access/array_access/index.html | 2 +- .../array_access/struct.ArrayAccess.html | 66 +- .../associated_constant_access/index.html | 2 +- .../struct.AssociatedConstant.html | 58 +- .../associated_function_access/index.html | 2 +- .../struct.AssociatedFunction.html | 62 +- leo_ast/access/index.html | 2 +- leo_ast/access/member_access/index.html | 2 +- .../member_access/struct.MemberAccess.html | 62 +- leo_ast/access/struct.ArrayAccess.html | 66 +- leo_ast/access/struct.AssociatedConstant.html | 58 +- leo_ast/access/struct.AssociatedFunction.html | 62 +- leo_ast/access/struct.MemberAccess.html | 62 +- leo_ast/access/struct.TupleAccess.html | 62 +- leo_ast/access/tuple_access/index.html | 2 +- .../tuple_access/struct.TupleAccess.html | 62 +- leo_ast/all.html | 2 +- leo_ast/common/identifier/index.html | 2 +- .../common/identifier/struct.Identifier.html | 60 +- .../imported_modules/fn.deserialize.html | 4 +- .../common/imported_modules/fn.serialize.html | 6 +- leo_ast/common/imported_modules/index.html | 2 +- leo_ast/common/index.html | 2 +- leo_ast/common/location/index.html | 2 +- leo_ast/common/location/struct.Location.html | 58 +- leo_ast/common/node/index.html | 2 +- leo_ast/common/node/trait.Node.html | 14 +- leo_ast/common/node/type.NodeID.html | 2 +- leo_ast/common/node_builder/index.html | 2 +- .../node_builder/struct.NodeBuilder.html | 36 +- .../node_builder/struct.NodeBuilderInner.html | 32 +- leo_ast/common/positive_number/index.html | 2 +- .../struct.NonNegativeNumber.html | 76 +- leo_ast/common/static_string/index.html | 2 +- .../static_string/struct.StaticString.html | 56 +- .../access/enum.AccessExpression.html | 58 +- leo_ast/expressions/access/index.html | 2 +- leo_ast/expressions/array/index.html | 2 +- .../array/struct.ArrayExpression.html | 62 +- .../binary/enum.BinaryOperation.html | 60 +- leo_ast/expressions/binary/index.html | 2 +- .../binary/struct.BinaryExpression.html | 66 +- leo_ast/expressions/call/index.html | 2 +- .../call/struct.CallExpression.html | 70 +- leo_ast/expressions/cast/index.html | 2 +- .../cast/struct.CastExpression.html | 62 +- .../expressions/enum.AccessExpression.html | 58 +- leo_ast/expressions/enum.BinaryOperation.html | 60 +- leo_ast/expressions/enum.Expression.html | 58 +- leo_ast/expressions/enum.Literal.html | 90 +- leo_ast/expressions/enum.UnaryOperation.html | 58 +- leo_ast/expressions/err/index.html | 2 +- .../expressions/err/struct.ErrExpression.html | 58 +- leo_ast/expressions/index.html | 2 +- leo_ast/expressions/literal/enum.Literal.html | 90 +- leo_ast/expressions/literal/index.html | 2 +- .../macro.implement_from_str_radix.html | 2 +- .../literal/struct.DisplayDecimal.html | 30 +- .../literal/trait.FromStrRadix.html | 6 +- leo_ast/expressions/locator/index.html | 2 +- .../locator/struct.LocatorExpression.html | 64 +- .../expressions/struct.ArrayExpression.html | 62 +- .../expressions/struct.BinaryExpression.html | 66 +- .../expressions/struct.CallExpression.html | 70 +- .../expressions/struct.CastExpression.html | 62 +- leo_ast/expressions/struct.ErrExpression.html | 58 +- .../expressions/struct.StructExpression.html | 66 +- .../struct.StructVariableInitializer.html | 62 +- .../expressions/struct.TernaryExpression.html | 70 +- .../expressions/struct.TupleExpression.html | 62 +- .../expressions/struct.UnaryExpression.html | 62 +- .../expressions/struct.UnitExpression.html | 58 +- leo_ast/expressions/struct_init/index.html | 2 +- .../struct_init/struct.StructExpression.html | 66 +- .../struct.StructVariableInitializer.html | 62 +- leo_ast/expressions/ternary/index.html | 2 +- .../ternary/struct.TernaryExpression.html | 70 +- leo_ast/expressions/trait.FromStrRadix.html | 6 +- leo_ast/expressions/tuple/index.html | 2 +- .../tuple/struct.TupleExpression.html | 62 +- .../unary/enum.UnaryOperation.html | 58 +- leo_ast/expressions/unary/index.html | 2 +- .../unary/struct.UnaryExpression.html | 62 +- leo_ast/expressions/unit/index.html | 2 +- .../unit/struct.UnitExpression.html | 58 +- leo_ast/fn.normalize_json_value.html | 2 +- leo_ast/fn.remove_key_from_json.html | 2 +- leo_ast/functions/annotation/index.html | 2 +- .../annotation/struct.Annotation.html | 58 +- .../core_function/enum.CoreFunction.html | 52 +- leo_ast/functions/core_function/index.html | 2 +- leo_ast/functions/index.html | 2 +- leo_ast/functions/input/index.html | 2 +- leo_ast/functions/input/struct.Input.html | 58 +- leo_ast/functions/mode/enum.Mode.html | 58 +- leo_ast/functions/mode/index.html | 2 +- leo_ast/functions/output/index.html | 2 +- leo_ast/functions/output/struct.Output.html | 58 +- leo_ast/functions/struct.Function.html | 78 +- leo_ast/functions/variant/enum.Variant.html | 62 +- leo_ast/functions/variant/index.html | 2 +- .../enum.GroupCoordinate.html | 62 +- leo_ast/groups/group_coordinate/index.html | 2 +- .../group_literal/enum.GroupLiteral.html | 62 +- leo_ast/groups/group_literal/index.html | 2 +- .../group_literal/struct.GroupTuple.html | 54 +- leo_ast/groups/index.html | 2 +- leo_ast/index.html | 2 +- leo_ast/macro.simple_node_impl.html | 2 +- leo_ast/mapping/index.html | 2 +- leo_ast/mapping/struct.Mapping.html | 58 +- leo_ast/passes/consumer/index.html | 2 +- .../consumer/trait.ExpressionConsumer.html | 2 +- .../consumer/trait.FunctionConsumer.html | 2 +- .../passes/consumer/trait.ImportConsumer.html | 2 +- .../consumer/trait.MappingConsumer.html | 2 +- .../consumer/trait.ProgramConsumer.html | 2 +- .../consumer/trait.ProgramScopeConsumer.html | 2 +- .../consumer/trait.StatementConsumer.html | 2 +- .../passes/consumer/trait.StructConsumer.html | 2 +- leo_ast/passes/index.html | 2 +- leo_ast/passes/reconstructor/index.html | 2 +- .../trait.ExpressionReconstructor.html | 6 +- .../trait.ProgramReconstructor.html | 2 +- .../trait.StatementReconstructor.html | 2 +- leo_ast/passes/visitor/index.html | 2 +- .../visitor/trait.ExpressionVisitor.html | 8 +- .../passes/visitor/trait.ProgramVisitor.html | 2 +- .../visitor/trait.StatementVisitor.html | 2 +- leo_ast/program/index.html | 2 +- leo_ast/program/program_id/index.html | 2 +- .../program/program_id/struct.ProgramId.html | 58 +- leo_ast/program/program_scope/index.html | 2 +- .../program_scope/struct.ProgramScope.html | 74 +- leo_ast/program/struct.Program.html | 60 +- .../statement/assert/enum.AssertVariant.html | 54 +- leo_ast/statement/assert/index.html | 2 +- .../assert/struct.AssertStatement.html | 58 +- leo_ast/statement/assign/index.html | 2 +- .../assign/struct.AssignStatement.html | 58 +- leo_ast/statement/block/index.html | 2 +- leo_ast/statement/block/struct.Block.html | 62 +- leo_ast/statement/conditional/index.html | 2 +- .../struct.ConditionalStatement.html | 62 +- .../enum.ConsoleFunction.html | 58 +- .../console/console_function/index.html | 2 +- .../console/console_statement/index.html | 2 +- .../struct.ConsoleStatement.html | 58 +- leo_ast/statement/console/index.html | 2 +- leo_ast/statement/const_/index.html | 2 +- .../const_/struct.ConstDeclaration.html | 58 +- .../enum.DeclarationType.html | 58 +- .../definition/declaration_type/index.html | 2 +- .../definition/enum.DeclarationType.html | 58 +- leo_ast/statement/definition/index.html | 2 +- .../struct.DefinitionStatement.html | 58 +- leo_ast/statement/enum.Statement.html | 66 +- leo_ast/statement/expression/index.html | 2 +- .../struct.ExpressionStatement.html | 58 +- leo_ast/statement/index.html | 2 +- leo_ast/statement/iteration/index.html | 2 +- .../iteration/struct.IterationStatement.html | 70 +- leo_ast/statement/return_/index.html | 2 +- .../return_/struct.ReturnStatement.html | 58 +- leo_ast/struct.Ast.html | 62 +- leo_ast/struct/index.html | 2 +- leo_ast/struct/member/index.html | 2 +- leo_ast/struct/member/struct.Member.html | 58 +- leo_ast/struct/struct.Composite.html | 70 +- leo_ast/stub/function_stub/index.html | 2 +- .../function_stub/struct.FunctionStub.html | 82 +- leo_ast/stub/index.html | 2 +- leo_ast/stub/struct.Stub.html | 80 +- leo_ast/types/array/index.html | 2 +- leo_ast/types/array/struct.ArrayType.html | 70 +- .../core_constant/enum.CoreConstant.html | 48 +- leo_ast/types/core_constant/index.html | 2 +- leo_ast/types/future/index.html | 2 +- leo_ast/types/future/struct.FutureType.html | 78 +- leo_ast/types/index.html | 2 +- .../types/integer_type/enum.IntegerType.html | 64 +- leo_ast/types/integer_type/index.html | 2 +- leo_ast/types/mapping/index.html | 2 +- leo_ast/types/mapping/struct.MappingType.html | 66 +- leo_ast/types/struct_type/index.html | 2 +- .../struct_type/struct.CompositeType.html | 64 +- leo_ast/types/tuple/index.html | 2 +- leo_ast/types/tuple/struct.TupleType.html | 68 +- leo_ast/types/type_/enum.Type.html | 68 +- leo_ast/types/type_/index.html | 2 +- leo_ast/value/enum.Value.html | 84 +- leo_ast/value/index.html | 2 +- .../value/macro.implement_const_binary.html | 2 +- .../value/macro.implement_const_unary.html | 2 +- leo_compiler/all.html | 2 +- leo_compiler/compiler/index.html | 2 +- leo_compiler/compiler/struct.Ast.html | 68 +- leo_compiler/compiler/struct.Compiler.html | 96 +- leo_compiler/compiler/struct.SymbolTable.html | 116 +- leo_compiler/index.html | 2 +- leo_compiler/options/index.html | 2 +- leo_compiler/options/struct.BuildOptions.html | 44 +- .../options/struct.CompilerOptions.html | 32 +- .../options/struct.OutputOptions.html | 76 +- leo_compiler/struct.Ast.html | 68 +- leo_compiler/struct.BuildOptions.html | 44 +- leo_compiler/struct.Compiler.html | 96 +- leo_compiler/struct.CompilerOptions.html | 32 +- leo_compiler/struct.OutputOptions.html | 76 +- leo_compiler/struct.SymbolTable.html | 116 +- leo_disassembler/all.html | 2 +- leo_disassembler/fn.disassemble.html | 2 +- leo_disassembler/fn.disassemble_from_str.html | 8 +- leo_disassembler/index.html | 2 +- leo_errors/all.html | 2 +- .../common/backtraced/constant.INDENT.html | 2 +- leo_errors/common/backtraced/index.html | 2 +- .../common/backtraced/struct.Backtraced.html | 82 +- leo_errors/common/formatted/index.html | 2 +- .../common/formatted/struct.Formatted.html | 56 +- leo_errors/common/index.html | 2 +- leo_errors/common/macros/index.html | 2 +- leo_errors/common/traits/index.html | 2 +- .../common/traits/trait.LeoMessageCode.html | 32 +- leo_errors/emitter/index.html | 2 +- leo_errors/emitter/struct.Buffer.html | 44 +- leo_errors/emitter/struct.BufferEmitter.html | 32 +- leo_errors/emitter/struct.Handler.html | 50 +- leo_errors/emitter/struct.HandlerInner.html | 40 +- leo_errors/emitter/struct.StderrEmitter.html | 30 +- leo_errors/emitter/trait.Emitter.html | 6 +- leo_errors/emitter/type.ErrBuffer.html | 4 +- leo_errors/emitter/type.WarningBuffer.html | 4 +- .../errors/ast/ast_errors/enum.AstError.html | 74 +- leo_errors/errors/ast/ast_errors/index.html | 2 +- leo_errors/errors/ast/index.html | 2 +- .../errors/cli/cli_errors/enum.CliError.html | 64 +- leo_errors/errors/cli/cli_errors/index.html | 2 +- leo_errors/errors/cli/index.html | 2 +- .../compiler_errors/enum.CompilerError.html | 54 +- .../compiler/compiler_errors/index.html | 2 +- leo_errors/errors/compiler/index.html | 2 +- leo_errors/errors/enum.LeoError.html | 36 +- leo_errors/errors/enum.LeoWarning.html | 30 +- .../flattener_errors/enum.FlattenError.html | 50 +- .../flattener_errors/fn.type_name.html | 2 +- .../flattener/flattener_errors/index.html | 2 +- leo_errors/errors/flattener/index.html | 2 +- leo_errors/errors/index.html | 2 +- leo_errors/errors/loop_unroller/index.html | 2 +- .../enum.LoopUnrollerError.html | 36 +- .../loop_unroller_errors/index.html | 2 +- leo_errors/errors/package/index.html | 2 +- .../package_errors/enum.PackageError.html | 128 +- .../errors/package/package_errors/index.html | 2 +- leo_errors/errors/parser/index.html | 2 +- .../parser_errors/enum.ParserError.html | 98 +- .../errors/parser/parser_errors/index.html | 2 +- .../parser_warnings/enum.ParserWarning.html | 38 +- .../errors/parser/parser_warnings/index.html | 2 +- leo_errors/errors/static_analyzer/index.html | 2 +- .../enum.StaticAnalyzerError.html | 42 +- .../static_analyzer_error/index.html | 2 +- .../enum.StaticAnalyzerWarning.html | 48 +- .../static_analyzer_warning/index.html | 2 +- leo_errors/errors/type.Result.html | 2 +- leo_errors/errors/type_checker/index.html | 2 +- .../enum.TypeCheckerError.html | 174 +- .../type_checker_error/index.html | 2 +- .../enum.TypeCheckerWarning.html | 48 +- .../type_checker_warning/index.html | 2 +- leo_errors/errors/utils/index.html | 2 +- .../utils/util_errors/enum.UtilError.html | 70 +- .../errors/utils/util_errors/index.html | 2 +- leo_errors/index.html | 2 +- leo_errors/macro.create_messages.html | 2 +- leo_lang/all.html | 2 +- leo_lang/cli/account/enum.Account.html | 140 +- leo_lang/cli/account/index.html | 2 +- leo_lang/cli/add/index.html | 2 +- leo_lang/cli/add/struct.LeoAdd.html | 70 +- leo_lang/cli/build/index.html | 2 +- leo_lang/cli/build/struct.LeoBuild.html | 62 +- leo_lang/cli/clean/index.html | 2 +- leo_lang/cli/clean/struct.LeoClean.html | 62 +- leo_lang/cli/cli/enum.Commands.html | 52 +- leo_lang/cli/cli/fn.handle_error.html | 2 +- leo_lang/cli/cli/fn.run_with_args.html | 2 +- leo_lang/cli/cli/index.html | 2 +- leo_lang/cli/cli/struct.CLI.html | 60 +- .../cli/commands/account/enum.Account.html | 140 +- .../account/fn.display_string_discreetly.html | 8 +- .../account/fn.generate_new_account.html | 12 +- .../commands/account/fn.import_account.html | 12 +- .../cli/commands/account/fn.print_keys.html | 6 +- .../cli/commands/account/fn.sign_message.html | 12 +- .../commands/account/fn.verify_message.html | 12 +- .../account/fn.wait_for_keypress.html | 2 +- .../account/fn.write_to_env_file.html | 6 +- leo_lang/cli/commands/account/index.html | 2 +- leo_lang/cli/commands/add/index.html | 2 +- leo_lang/cli/commands/add/struct.LeoAdd.html | 70 +- .../commands/build/fn.compile_leo_file.html | 10 +- .../cli/commands/build/fn.handle_build.html | 2 +- leo_lang/cli/commands/build/index.html | 2 +- .../cli/commands/build/struct.LeoBuild.html | 62 +- leo_lang/cli/commands/clean/index.html | 2 +- .../cli/commands/clean/struct.LeoClean.html | 62 +- .../deploy/fn.deploy_cost_breakdown.html | 16 +- .../cli/commands/deploy/fn.handle_deploy.html | 6 +- leo_lang/cli/commands/deploy/index.html | 2 +- .../cli/commands/deploy/struct.Deploy.html | 68 +- .../commands/example/enum.ExampleVariant.html | 56 +- leo_lang/cli/commands/example/index.html | 2 +- .../commands/example/struct.LeoExample.html | 68 +- .../execute/fn.execution_cost_breakdown.html | 14 +- .../commands/execute/fn.handle_execute.html | 6 +- .../execute/fn.load_program_from_network.html | 8 +- leo_lang/cli/commands/execute/index.html | 2 +- .../commands/execute/struct.LeoExecute.html | 74 +- leo_lang/cli/commands/fn.check_balance.html | 10 +- .../cli/commands/fn.handle_broadcast.html | 8 +- leo_lang/cli/commands/fn.parse_record.html | 4 +- leo_lang/cli/commands/index.html | 2 +- leo_lang/cli/commands/new/index.html | 2 +- leo_lang/cli/commands/new/struct.LeoNew.html | 68 +- leo_lang/cli/commands/query/block/index.html | 2 +- .../commands/query/block/struct.LeoBlock.html | 76 +- .../cli/commands/query/committee/index.html | 2 +- .../query/committee/struct.LeoCommittee.html | 62 +- .../commands/query/enum.QueryCommands.html | 52 +- .../cli/commands/query/fn.handle_query.html | 6 +- leo_lang/cli/commands/query/index.html | 2 +- .../cli/commands/query/mempool/index.html | 2 +- .../query/mempool/struct.LeoMempool.html | 66 +- leo_lang/cli/commands/query/peers/index.html | 2 +- .../commands/query/peers/struct.LeoPeers.html | 66 +- .../cli/commands/query/program/index.html | 2 +- .../query/program/struct.LeoProgram.html | 68 +- .../cli/commands/query/state_root/index.html | 2 +- .../query/state_root/struct.StateRoot.html | 62 +- .../cli/commands/query/struct.LeoQuery.html | 66 +- .../cli/commands/query/transaction/index.html | 2 +- .../transaction/struct.LeoTransaction.html | 72 +- .../utils/fn.check_valid_program_name.html | 2 +- .../query/utils/fn.is_valid_field.html | 2 +- .../query/utils/fn.is_valid_hash.html | 2 +- .../utils/fn.is_valid_height_or_hash.html | 2 +- .../utils/fn.is_valid_numerical_input.html | 2 +- .../utils/fn.is_valid_transaction_id.html | 2 +- .../utils/fn.is_valid_transition_id.html | 2 +- leo_lang/cli/commands/query/utils/index.html | 2 +- leo_lang/cli/commands/remove/index.html | 2 +- .../cli/commands/remove/struct.LeoRemove.html | 66 +- leo_lang/cli/commands/run/fn.handle_run.html | 2 +- leo_lang/cli/commands/run/index.html | 2 +- leo_lang/cli/commands/run/struct.LeoRun.html | 66 +- .../cli/commands/struct.BuildOptions.html | 96 +- leo_lang/cli/commands/struct.FeeOptions.html | 66 +- leo_lang/cli/commands/trait.Command.html | 24 +- leo_lang/cli/commands/update/index.html | 2 +- .../cli/commands/update/struct.LeoUpdate.html | 72 +- leo_lang/cli/constant.SNARKVM_COMMAND.html | 2 +- leo_lang/cli/context/index.html | 2 +- leo_lang/cli/context/struct.Context.html | 68 +- leo_lang/cli/deploy/index.html | 2 +- leo_lang/cli/deploy/struct.Deploy.html | 68 +- leo_lang/cli/enum.Account.html | 140 +- leo_lang/cli/example/enum.ExampleVariant.html | 56 +- leo_lang/cli/example/index.html | 2 +- leo_lang/cli/example/struct.LeoExample.html | 68 +- leo_lang/cli/execute/index.html | 2 +- leo_lang/cli/execute/struct.LeoExecute.html | 74 +- leo_lang/cli/fn.handle_error.html | 2 +- leo_lang/cli/fn.parse_record.html | 4 +- leo_lang/cli/fn.run_with_args.html | 2 +- leo_lang/cli/helpers/context/index.html | 2 +- .../cli/helpers/context/struct.Context.html | 68 +- leo_lang/cli/helpers/index.html | 2 +- .../cli/helpers/logger/fn.init_logger.html | 2 +- leo_lang/cli/helpers/logger/index.html | 2 +- leo_lang/cli/helpers/logger/static.START.html | 2 +- .../cli/helpers/logger/struct.Format.html | 82 +- leo_lang/cli/helpers/updater/index.html | 2 +- .../cli/helpers/updater/struct.Updater.html | 58 +- leo_lang/cli/index.html | 4 +- leo_lang/cli/logger/fn.init_logger.html | 2 +- leo_lang/cli/logger/index.html | 2 +- leo_lang/cli/logger/struct.Format.html | 82 +- leo_lang/cli/new/index.html | 2 +- leo_lang/cli/new/struct.LeoNew.html | 68 +- leo_lang/cli/query/enum.QueryCommands.html | 52 +- leo_lang/cli/query/index.html | 2 +- leo_lang/cli/query/program/index.html | 2 +- .../cli/query/program/struct.LeoProgram.html | 68 +- leo_lang/cli/query/struct.LeoProgram.html | 68 +- leo_lang/cli/query/struct.LeoQuery.html | 66 +- leo_lang/cli/remove/index.html | 2 +- leo_lang/cli/remove/struct.LeoRemove.html | 66 +- leo_lang/cli/run/index.html | 2 +- leo_lang/cli/run/struct.LeoRun.html | 66 +- leo_lang/cli/struct.BuildOptions.html | 96 +- leo_lang/cli/struct.CLI.html | 60 +- leo_lang/cli/struct.Deploy.html | 68 +- leo_lang/cli/struct.FeeOptions.html | 66 +- leo_lang/cli/struct.LeoAdd.html | 70 +- leo_lang/cli/struct.LeoBuild.html | 62 +- leo_lang/cli/struct.LeoClean.html | 62 +- leo_lang/cli/struct.LeoExample.html | 68 +- leo_lang/cli/struct.LeoExecute.html | 74 +- leo_lang/cli/struct.LeoNew.html | 68 +- leo_lang/cli/struct.LeoQuery.html | 66 +- leo_lang/cli/struct.LeoRemove.html | 66 +- leo_lang/cli/struct.LeoRun.html | 66 +- leo_lang/cli/struct.LeoUpdate.html | 72 +- leo_lang/cli/trait.Command.html | 24 +- leo_lang/cli/update/index.html | 2 +- leo_lang/cli/update/struct.LeoUpdate.html | 72 +- leo_lang/cli/updater/index.html | 2 +- leo_lang/cli/updater/struct.Updater.html | 58 +- leo_lang/index.html | 20 +- leo_package/all.html | 2 +- leo_package/build/directory/index.html | 2 +- .../static.BUILD_DIRECTORY_NAME.html | 2 +- .../directory/struct.BuildDirectory.html | 32 +- leo_package/build/index.html | 2 +- leo_package/fn.parse_file_paths.html | 8 +- leo_package/imports/directory/index.html | 2 +- .../static.IMPORTS_DIRECTORY_NAME.html | 2 +- .../directory/struct.ImportsDirectory.html | 34 +- leo_package/imports/index.html | 2 +- leo_package/index.html | 2 +- .../inputs/directory/fn.parse_file_paths.html | 8 +- leo_package/inputs/directory/index.html | 2 +- .../static.INPUTS_DIRECTORY_NAME.html | 2 +- .../directory/struct.InputsDirectory.html | 30 +- leo_package/inputs/index.html | 2 +- .../outputs/ast_snapshot/enum.Snapshot.html | 40 +- leo_package/outputs/ast_snapshot/index.html | 4 +- .../static.AST_SNAPSHOT_FILE_EXTENSION.html | 2 +- .../ast_snapshot/struct.SnapshotFile.html | 42 +- leo_package/outputs/checksum/index.html | 4 +- .../static.CHECKSUM_FILE_EXTENSION.html | 2 +- .../outputs/checksum/struct.ChecksumFile.html | 44 +- leo_package/outputs/circuit/index.html | 4 +- .../static.CIRCUIT_FILE_EXTENSION.html | 2 +- .../outputs/circuit/struct.CircuitFile.html | 44 +- leo_package/outputs/directory/index.html | 2 +- .../static.OUTPUTS_DIRECTORY_NAME.html | 2 +- .../directory/struct.OutputsDirectory.html | 30 +- leo_package/outputs/index.html | 2 +- .../outputs/static.MAIN_ALEO_FILE_NAME.html | 2 +- leo_package/package/index.html | 2 +- leo_package/package/struct.Package.html | 58 +- leo_package/root/env/index.html | 2 +- leo_package/root/env/static.ENV_FILENAME.html | 2 +- leo_package/root/env/struct.Env.html | 58 +- leo_package/root/gitignore/index.html | 4 +- .../gitignore/static.GITIGNORE_FILENAME.html | 2 +- .../root/gitignore/struct.Gitignore.html | 34 +- leo_package/root/index.html | 2 +- leo_package/source/directory/index.html | 2 +- .../static.SOURCE_DIRECTORY_NAME.html | 2 +- .../directory/struct.SourceDirectory.html | 32 +- leo_package/source/index.html | 2 +- leo_package/source/main/index.html | 2 +- .../source/main/static.MAIN_FILENAME.html | 2 +- leo_package/source/main/struct.MainFile.html | 38 +- leo_package/static.LEO_FILE_EXTENSION.html | 2 +- leo_parser/all.html | 2 +- leo_parser/constant.KEYWORD_TOKENS.html | 2 +- leo_parser/fn.parse_ast.html | 4 +- leo_parser/index.html | 4 +- .../parser/context/constant.DUMMY_EOF.html | 2 +- leo_parser/parser/context/index.html | 4 +- .../parser/context/struct.ParserContext.html | 100 +- .../parser/expression/constant.INT_TYPES.html | 2 +- .../expression/fn.assert_no_whitespace.html | 8 +- leo_parser/parser/expression/index.html | 2 +- leo_parser/parser/file/index.html | 2 +- leo_parser/parser/fn.parse.html | 4 +- leo_parser/parser/index.html | 2 +- .../statement/constant.ASSIGN_TOKENS.html | 2 +- leo_parser/parser/statement/index.html | 2 +- .../parser/type_/constant.TYPE_TOKENS.html | 2 +- leo_parser/parser/type_/index.html | 2 +- leo_parser/tokenizer/fn.tokenize.html | 6 +- leo_parser/tokenizer/fn.tokenize_iter.html | 6 +- leo_parser/tokenizer/index.html | 2 +- .../tokenizer/lexer/fn.eat_identifier.html | 6 +- .../lexer/fn.ensure_no_bidi_override.html | 2 +- .../tokenizer/lexer/fn.is_bidi_override.html | 2 +- leo_parser/tokenizer/lexer/index.html | 2 +- .../tokenizer/lexer/struct.SpannedToken.html | 46 +- .../token/constant.KEYWORD_TOKENS.html | 2 +- .../tokenizer/token/enum.Delimiter.html | 32 +- leo_parser/tokenizer/token/enum.Token.html | 78 +- leo_parser/tokenizer/token/index.html | 2 +- leo_passes/all.html | 2 +- .../code_generation/generator/index.html | 2 +- .../generator/struct.CodeGenerator.html | 78 +- leo_passes/code_generation/index.html | 2 +- .../visit_expressions/index.html | 2 +- .../visit_program/constant.EXPECT_STR.html | 2 +- .../code_generation/visit_program/index.html | 2 +- .../visit_statements/index.html | 2 +- .../code_generation/visit_type/index.html | 2 +- leo_passes/common/assigner/index.html | 2 +- .../common/assigner/struct.Assigner.html | 40 +- .../common/assigner/struct.AssignerInner.html | 40 +- .../constant_propagation_table/index.html | 2 +- .../struct.ConstantPropagationTable.html | 68 +- .../common/graph/enum.DiGraphError.html | 42 +- leo_passes/common/graph/index.html | 2 +- leo_passes/common/graph/struct.DiGraph.html | 56 +- leo_passes/common/graph/trait.Node.html | 14 +- leo_passes/common/graph/type.CallGraph.html | 2 +- leo_passes/common/graph/type.ImportGraph.html | 2 +- leo_passes/common/graph/type.StructGraph.html | 2 +- leo_passes/common/index.html | 2 +- leo_passes/common/rename_table/index.html | 2 +- .../rename_table/struct.RenameTable.html | 58 +- leo_passes/common/replacer/index.html | 2 +- .../common/replacer/struct.Replacer.html | 50 +- .../symbol_table/function_symbol/index.html | 2 +- .../struct.FunctionSymbol.html | 60 +- leo_passes/common/symbol_table/index.html | 2 +- .../symbol_table/struct.SymbolTable.html | 114 +- .../variable_symbol/enum.VariableType.html | 58 +- .../symbol_table/variable_symbol/index.html | 2 +- .../struct.VariableSymbol.html | 58 +- leo_passes/common/tree_node/index.html | 2 +- .../common/tree_node/struct.TreeNode.html | 66 +- leo_passes/common/tree_node/trait.Node.html | 14 +- .../tree_node/type.ConditionalTreeNode.html | 10 +- leo_passes/common/type_table/index.html | 2 +- .../common/type_table/struct.TypeTable.html | 38 +- .../dead_code_eliminator/index.html | 2 +- .../struct.DeadCodeEliminator.html | 40 +- .../eliminate_expression/index.html | 2 +- .../eliminate_program/index.html | 2 +- .../eliminate_statement/index.html | 2 +- leo_passes/dead_code_elimination/index.html | 8 +- .../destructure_expression/index.html | 2 +- .../destructure_program/index.html | 2 +- .../destructure_statement/index.html | 2 +- .../destructuring/destructurer/index.html | 2 +- .../destructurer/struct.Destructurer.html | 36 +- leo_passes/destructuring/index.html | 2 +- .../flattening/flatten_expression/index.html | 2 +- .../flattening/flatten_program/index.html | 2 +- .../flattening/flatten_statement/index.html | 2 +- .../flattening/flattener/enum.Guard.html | 32 +- .../flattener/enum.ReturnGuard.html | 32 +- leo_passes/flattening/flattener/index.html | 2 +- .../flattener/struct.Flattener.html | 76 +- leo_passes/flattening/index.html | 8 +- .../assignment_renamer/index.html | 2 +- .../struct.AssignmentRenamer.html | 36 +- .../function_inliner/index.html | 2 +- .../struct.FunctionInliner.html | 44 +- leo_passes/function_inlining/index.html | 8 +- .../inline_expression/index.html | 2 +- .../inline_program/index.html | 2 +- .../inline_statement/index.html | 2 +- leo_passes/index.html | 2 +- leo_passes/loop_unrolling/index.html | 2 +- .../range_iterator/enum.Clusivity.html | 28 +- .../loop_unrolling/range_iterator/index.html | 2 +- .../range_iterator/struct.RangeIterator.html | 1616 ++++++++--------- .../range_iterator/trait.LoopBound.html | 14 +- .../unroll_expression/index.html | 2 +- .../loop_unrolling/unroll_program/index.html | 2 +- .../unroll_statement/index.html | 2 +- leo_passes/loop_unrolling/unroller/index.html | 2 +- .../unroller/struct.Unroller.html | 58 +- leo_passes/pass/index.html | 2 +- leo_passes/pass/trait.Pass.html | 4 +- .../analyze_expression/index.html | 2 +- .../analyze_program/index.html | 2 +- .../analyze_statement/index.html | 2 +- .../static_analysis/analyzer/index.html | 2 +- .../analyzer/struct.StaticAnalyzer.html | 56 +- .../static_analysis/await_checker/index.html | 2 +- .../await_checker/struct.AwaitChecker.html | 58 +- leo_passes/static_analysis/index.html | 2 +- .../static_single_assignment/index.html | 8 +- .../rename_expression/index.html | 2 +- .../rename_program/index.html | 2 +- .../rename_statement/index.html | 2 +- .../static_single_assigner/index.html | 2 +- .../struct.StaticSingleAssigner.html | 42 +- .../symbol_table_creation/creator/index.html | 2 +- .../creator/struct.SymbolTableCreator.html | 38 +- leo_passes/symbol_table_creation/index.html | 2 +- .../fn.return_incorrect_type.html | 10 +- .../check_expressions/index.html | 2 +- .../type_checking/check_program/index.html | 2 +- .../type_checking/check_statements/index.html | 2 +- .../checker/constant.ADDRESS_TYPE.html | 2 +- .../checker/constant.BOOLEAN_TYPE.html | 2 +- .../checker/constant.FIELD_TYPE.html | 2 +- .../checker/constant.GROUP_TYPE.html | 2 +- .../checker/constant.INT_TYPES.html | 2 +- .../checker/constant.MAGNITUDE_TYPES.html | 2 +- .../checker/constant.SCALAR_TYPE.html | 2 +- .../checker/constant.SIGNATURE_TYPE.html | 2 +- .../checker/constant.SIGNED_INT_TYPES.html | 2 +- .../checker/constant.UNSIGNED_INT_TYPES.html | 2 +- .../checker/fn.types_to_string.html | 2 +- leo_passes/type_checking/checker/index.html | 2 +- .../checker/struct.TypeChecker.html | 130 +- leo_passes/type_checking/index.html | 2 +- .../type_checking/scope_state/index.html | 2 +- .../scope_state/struct.ScopeState.html | 68 +- leo_retriever/all.html | 2 +- leo_retriever/index.html | 2 +- .../program_context/dependency/index.html | 2 +- .../dependency/struct.Dependency.html | 72 +- leo_retriever/program_context/index.html | 2 +- .../location/enum.Location.html | 58 +- .../program_context/location/index.html | 2 +- .../lock_file_entry/index.html | 2 +- .../lock_file_entry/struct.LockFileEntry.html | 52 +- .../program_context/manifest/index.html | 2 +- .../manifest/struct.Manifest.html | 64 +- .../network_name/enum.NetworkName.html | 62 +- .../program_context/network_name/index.html | 2 +- .../struct.ProgramContext.html | 56 +- .../retriever/fn.fetch_from_network.html | 2 +- .../retriever/fn.retrieve_from_network.html | 12 +- .../retriever/fn.retrieve_local.html | 8 +- .../retriever/fn.verify_valid_program.html | 8 +- leo_retriever/retriever/index.html | 2 +- leo_retriever/retriever/struct.Retriever.html | 56 +- leo_span/all.html | 2 +- leo_span/index.html | 2 +- leo_span/source_map/enum.FileName.html | 40 +- .../source_map/fn.analyze_source_file.html | 6 +- .../source_map/fn.is_not_test_framework.html | 2 +- .../source_map/fn.normalize_newlines.html | 2 +- leo_span/source_map/fn.normalize_src.html | 2 +- leo_span/source_map/fn.remove_bom.html | 2 +- leo_span/source_map/index.html | 2 +- leo_span/source_map/struct.LineCol.html | 34 +- leo_span/source_map/struct.MultiByteChar.html | 44 +- leo_span/source_map/struct.SourceFile.html | 46 +- leo_span/source_map/struct.SourceMap.html | 51 +- .../source_map/struct.SourceMapInner.html | 36 +- leo_span/source_map/struct.SpanLocation.html | 38 +- leo_span/span/index.html | 2 +- leo_span/span/macro.impl_pos.html | 2 +- leo_span/span/struct.BytePos.html | 64 +- leo_span/span/struct.CharPos.html | 56 +- leo_span/span/struct.Span.html | 56 +- leo_span/span/trait.Pos.html | 12 +- leo_span/span_json/fn.deserialize.html | 4 +- leo_span/span_json/fn.serialize.html | 4 +- leo_span/span_json/index.html | 2 +- leo_span/span_json/struct.SpanMapVisitor.html | 84 +- leo_span/symbol/constant.PRE_DEFINED.html | 2 +- leo_span/symbol/enum.InternedStr.html | 446 ++--- .../fn.create_session_if_not_set_then.html | 4 +- leo_span/symbol/fn.with_session_globals.html | 2 +- leo_span/symbol/index.html | 4 +- leo_span/symbol/macro.consts.html | 2 +- leo_span/symbol/macro.strings.html | 2 +- leo_span/symbol/macro.symbols.html | 2 +- leo_span/symbol/static.SESSION_GLOBALS.html | 2 +- leo_span/symbol/struct.InnerInterner.html | 26 +- leo_span/symbol/struct.Interner.html | 36 +- leo_span/symbol/struct.SessionGlobals.html | 26 +- leo_span/symbol/struct.Symbol.html | 78 +- leo_span/symbol/sym/constant.As.html | 2 +- leo_span/symbol/sym/constant.Await.html | 2 +- leo_span/symbol/sym/constant.BHP1024.html | 2 +- leo_span/symbol/sym/constant.BHP256.html | 2 +- leo_span/symbol/sym/constant.BHP512.html | 2 +- leo_span/symbol/sym/constant.BHP768.html | 2 +- leo_span/symbol/sym/constant.ChaCha.html | 2 +- leo_span/symbol/sym/constant.Const.html | 2 +- leo_span/symbol/sym/constant.Else.html | 2 +- leo_span/symbol/sym/constant.False.html | 2 +- leo_span/symbol/sym/constant.Fn.html | 2 +- leo_span/symbol/sym/constant.For.html | 2 +- leo_span/symbol/sym/constant.Future.html | 2 +- leo_span/symbol/sym/constant.GEN.html | 2 +- leo_span/symbol/sym/constant.If.html | 2 +- leo_span/symbol/sym/constant.In.html | 2 +- leo_span/symbol/sym/constant.Keccak256.html | 2 +- leo_span/symbol/sym/constant.Keccak384.html | 2 +- leo_span/symbol/sym/constant.Keccak512.html | 2 +- leo_span/symbol/sym/constant.Let.html | 2 +- leo_span/symbol/sym/constant.Mapping.html | 2 +- leo_span/symbol/sym/constant.Mod.html | 2 +- leo_span/symbol/sym/constant.Mut.html | 2 +- leo_span/symbol/sym/constant.Pedersen128.html | 2 +- leo_span/symbol/sym/constant.Pedersen64.html | 2 +- leo_span/symbol/sym/constant.Poseidon2.html | 2 +- leo_span/symbol/sym/constant.Poseidon4.html | 2 +- leo_span/symbol/sym/constant.Poseidon8.html | 2 +- leo_span/symbol/sym/constant.Return.html | 2 +- leo_span/symbol/sym/constant.SHA3_256.html | 2 +- leo_span/symbol/sym/constant.SHA3_384.html | 2 +- leo_span/symbol/sym/constant.SHA3_512.html | 2 +- leo_span/symbol/sym/constant.SelfLower.html | 2 +- leo_span/symbol/sym/constant.SelfUpper.html | 2 +- leo_span/symbol/sym/constant.Star.html | 2 +- leo_span/symbol/sym/constant.Struct.html | 2 +- leo_span/symbol/sym/constant.True.html | 2 +- leo_span/symbol/sym/constant.Type.html | 2 +- leo_span/symbol/sym/constant._nonce.html | 2 +- leo_span/symbol/sym/constant.abs.html | 2 +- leo_span/symbol/sym/constant.abs_wrapped.html | 2 +- leo_span/symbol/sym/constant.add.html | 2 +- leo_span/symbol/sym/constant.add_wrapped.html | 2 +- leo_span/symbol/sym/constant.address.html | 2 +- leo_span/symbol/sym/constant.aleo.html | 2 +- leo_span/symbol/sym/constant.and.html | 2 +- leo_span/symbol/sym/constant.assert.html | 2 +- leo_span/symbol/sym/constant.assert_eq.html | 2 +- leo_span/symbol/sym/constant.assert_neq.html | 2 +- leo_span/symbol/sym/constant.block.html | 2 +- leo_span/symbol/sym/constant.bool.html | 2 +- leo_span/symbol/sym/constant.caller.html | 2 +- .../sym/constant.commit_to_address.html | 2 +- .../symbol/sym/constant.commit_to_field.html | 2 +- .../symbol/sym/constant.commit_to_group.html | 2 +- leo_span/symbol/sym/constant.console.html | 2 +- leo_span/symbol/sym/constant.constant.html | 2 +- leo_span/symbol/sym/constant.contains.html | 2 +- leo_span/symbol/sym/constant.decrement.html | 2 +- leo_span/symbol/sym/constant.div.html | 2 +- leo_span/symbol/sym/constant.div_wrapped.html | 2 +- leo_span/symbol/sym/constant.double.html | 2 +- leo_span/symbol/sym/constant.eq.html | 2 +- leo_span/symbol/sym/constant.field.html | 2 +- leo_span/symbol/sym/constant.function.html | 2 +- leo_span/symbol/sym/constant.get.html | 2 +- leo_span/symbol/sym/constant.get_or_use.html | 2 +- leo_span/symbol/sym/constant.group.html | 2 +- leo_span/symbol/sym/constant.gt.html | 2 +- leo_span/symbol/sym/constant.gte.html | 2 +- .../symbol/sym/constant.hash_to_address.html | 2 +- .../symbol/sym/constant.hash_to_field.html | 2 +- .../symbol/sym/constant.hash_to_group.html | 2 +- .../symbol/sym/constant.hash_to_i128.html | 2 +- leo_span/symbol/sym/constant.hash_to_i16.html | 2 +- leo_span/symbol/sym/constant.hash_to_i32.html | 2 +- leo_span/symbol/sym/constant.hash_to_i64.html | 2 +- leo_span/symbol/sym/constant.hash_to_i8.html | 2 +- .../symbol/sym/constant.hash_to_scalar.html | 2 +- .../symbol/sym/constant.hash_to_u128.html | 2 +- leo_span/symbol/sym/constant.hash_to_u16.html | 2 +- leo_span/symbol/sym/constant.hash_to_u32.html | 2 +- leo_span/symbol/sym/constant.hash_to_u64.html | 2 +- leo_span/symbol/sym/constant.hash_to_u8.html | 2 +- leo_span/symbol/sym/constant.height.html | 2 +- leo_span/symbol/sym/constant.i128.html | 2 +- leo_span/symbol/sym/constant.i16.html | 2 +- leo_span/symbol/sym/constant.i32.html | 2 +- leo_span/symbol/sym/constant.i64.html | 2 +- leo_span/symbol/sym/constant.i8.html | 2 +- leo_span/symbol/sym/constant.id.html | 2 +- leo_span/symbol/sym/constant.import.html | 2 +- leo_span/symbol/sym/constant.increment.html | 2 +- leo_span/symbol/sym/constant.inline.html | 2 +- leo_span/symbol/sym/constant.input.html | 2 +- leo_span/symbol/sym/constant.inv.html | 2 +- leo_span/symbol/sym/constant.leo.html | 2 +- leo_span/symbol/sym/constant.lt.html | 2 +- leo_span/symbol/sym/constant.lte.html | 2 +- leo_span/symbol/sym/constant.main.html | 2 +- leo_span/symbol/sym/constant.mapping.html | 2 +- leo_span/symbol/sym/constant.mul.html | 2 +- leo_span/symbol/sym/constant.mul_wrapped.html | 2 +- leo_span/symbol/sym/constant.nand.html | 2 +- leo_span/symbol/sym/constant.neg.html | 2 +- leo_span/symbol/sym/constant.neq.html | 2 +- leo_span/symbol/sym/constant.network.html | 2 +- leo_span/symbol/sym/constant.nor.html | 2 +- leo_span/symbol/sym/constant.not.html | 2 +- leo_span/symbol/sym/constant.or.html | 2 +- leo_span/symbol/sym/constant.owner.html | 2 +- leo_span/symbol/sym/constant.pow.html | 2 +- leo_span/symbol/sym/constant.pow_wrapped.html | 2 +- leo_span/symbol/sym/constant.private.html | 2 +- leo_span/symbol/sym/constant.program.html | 2 +- leo_span/symbol/sym/constant.public.html | 2 +- .../symbol/sym/constant.rand_address.html | 2 +- leo_span/symbol/sym/constant.rand_bool.html | 2 +- leo_span/symbol/sym/constant.rand_field.html | 2 +- leo_span/symbol/sym/constant.rand_group.html | 2 +- leo_span/symbol/sym/constant.rand_i128.html | 2 +- leo_span/symbol/sym/constant.rand_i16.html | 2 +- leo_span/symbol/sym/constant.rand_i32.html | 2 +- leo_span/symbol/sym/constant.rand_i64.html | 2 +- leo_span/symbol/sym/constant.rand_i8.html | 2 +- leo_span/symbol/sym/constant.rand_scalar.html | 2 +- leo_span/symbol/sym/constant.rand_u128.html | 2 +- leo_span/symbol/sym/constant.rand_u16.html | 2 +- leo_span/symbol/sym/constant.rand_u32.html | 2 +- leo_span/symbol/sym/constant.rand_u64.html | 2 +- leo_span/symbol/sym/constant.rand_u8.html | 2 +- leo_span/symbol/sym/constant.record.html | 2 +- leo_span/symbol/sym/constant.rem.html | 2 +- leo_span/symbol/sym/constant.rem_wrapped.html | 2 +- leo_span/symbol/sym/constant.remove.html | 2 +- leo_span/symbol/sym/constant.scalar.html | 2 +- leo_span/symbol/sym/constant.set.html | 2 +- leo_span/symbol/sym/constant.shl.html | 2 +- leo_span/symbol/sym/constant.shl_wrapped.html | 2 +- leo_span/symbol/sym/constant.shr.html | 2 +- leo_span/symbol/sym/constant.shr_wrapped.html | 2 +- leo_span/symbol/sym/constant.signature.html | 2 +- leo_span/symbol/sym/constant.signer.html | 2 +- leo_span/symbol/sym/constant.square.html | 2 +- leo_span/symbol/sym/constant.square_root.html | 2 +- leo_span/symbol/sym/constant.string.html | 2 +- leo_span/symbol/sym/constant.stub.html | 2 +- leo_span/symbol/sym/constant.sub.html | 2 +- leo_span/symbol/sym/constant.sub_wrapped.html | 2 +- .../symbol/sym/constant.to_x_coordinate.html | 2 +- .../symbol/sym/constant.to_y_coordinate.html | 2 +- leo_span/symbol/sym/constant.transition.html | 2 +- leo_span/symbol/sym/constant.u128.html | 2 +- leo_span/symbol/sym/constant.u16.html | 2 +- leo_span/symbol/sym/constant.u32.html | 2 +- leo_span/symbol/sym/constant.u64.html | 2 +- leo_span/symbol/sym/constant.u8.html | 2 +- leo_span/symbol/sym/constant.verify.html | 2 +- leo_span/symbol/sym/constant.xor.html | 2 +- leo_span/symbol/sym/index.html | 2 +- leo_test_framework/all.html | 2 +- leo_test_framework/error/enum.TestError.html | 56 +- leo_test_framework/error/fn.emit_errors.html | 12 +- .../error/fn.toml_to_string.html | 2 +- leo_test_framework/error/index.html | 2 +- .../error/struct.TestFailure.html | 30 +- leo_test_framework/fetch/fn.find_tests.html | 2 +- .../fetch/fn.split_tests_one_line.html | 2 +- .../fetch/fn.split_tests_two_line.html | 2 +- leo_test_framework/fetch/index.html | 2 +- leo_test_framework/index.html | 2 +- leo_test_framework/output/index.html | 2 +- .../output/struct.TestExpectation.html | 38 +- .../runner/constant.PROGRAM_DELIMITER.html | 2 +- leo_test_framework/runner/enum.ParseType.html | 40 +- leo_test_framework/runner/fn.get_benches.html | 2 +- .../runner/fn.is_env_var_set.html | 2 +- leo_test_framework/runner/fn.run_tests.html | 2 +- leo_test_framework/runner/fn.set_hook.html | 2 +- leo_test_framework/runner/fn.take_hook.html | 8 +- leo_test_framework/runner/index.html | 2 +- leo_test_framework/runner/struct.Test.html | 32 +- .../runner/struct.TestCases.html | 50 +- .../runner/trait.Namespace.html | 6 +- leo_test_framework/runner/trait.Runner.html | 6 +- .../test/enum.TestExpectationMode.html | 44 +- .../test/fn.extract_test_config.html | 2 +- leo_test_framework/test/index.html | 2 +- .../test/struct.TestConfig.html | 38 +- settings.html | 2 +- src/errcov/errcov.rs.html | 6 +- src/leo/main.rs.html | 6 +- src/leo_abnf/main.rs.html | 6 +- src/leo_ast/access/array_access.rs.html | 6 +- .../access/associated_constant_access.rs.html | 6 +- .../access/associated_function_access.rs.html | 6 +- src/leo_ast/access/member_access.rs.html | 6 +- src/leo_ast/access/mod.rs.html | 6 +- src/leo_ast/access/tuple_access.rs.html | 6 +- src/leo_ast/common/identifier.rs.html | 6 +- src/leo_ast/common/imported_modules.rs.html | 6 +- src/leo_ast/common/location.rs.html | 6 +- src/leo_ast/common/mod.rs.html | 6 +- src/leo_ast/common/node.rs.html | 6 +- src/leo_ast/common/node_builder.rs.html | 6 +- src/leo_ast/common/positive_number.rs.html | 6 +- src/leo_ast/common/static_string.rs.html | 6 +- src/leo_ast/expressions/access.rs.html | 6 +- src/leo_ast/expressions/array.rs.html | 6 +- src/leo_ast/expressions/binary.rs.html | 6 +- src/leo_ast/expressions/call.rs.html | 6 +- src/leo_ast/expressions/cast.rs.html | 6 +- src/leo_ast/expressions/err.rs.html | 6 +- src/leo_ast/expressions/literal.rs.html | 6 +- src/leo_ast/expressions/locator.rs.html | 6 +- src/leo_ast/expressions/mod.rs.html | 6 +- src/leo_ast/expressions/struct_init.rs.html | 6 +- src/leo_ast/expressions/ternary.rs.html | 6 +- src/leo_ast/expressions/tuple.rs.html | 6 +- src/leo_ast/expressions/unary.rs.html | 6 +- src/leo_ast/expressions/unit.rs.html | 6 +- src/leo_ast/functions/annotation.rs.html | 6 +- src/leo_ast/functions/core_function.rs.html | 6 +- src/leo_ast/functions/input.rs.html | 6 +- src/leo_ast/functions/mod.rs.html | 6 +- src/leo_ast/functions/mode.rs.html | 6 +- src/leo_ast/functions/output.rs.html | 6 +- src/leo_ast/functions/variant.rs.html | 6 +- src/leo_ast/groups/group_coordinate.rs.html | 6 +- src/leo_ast/groups/group_literal.rs.html | 6 +- src/leo_ast/groups/mod.rs.html | 6 +- src/leo_ast/lib.rs.html | 6 +- src/leo_ast/mapping/mod.rs.html | 6 +- src/leo_ast/passes/consumer.rs.html | 6 +- src/leo_ast/passes/mod.rs.html | 6 +- src/leo_ast/passes/reconstructor.rs.html | 6 +- src/leo_ast/passes/visitor.rs.html | 6 +- src/leo_ast/program/mod.rs.html | 6 +- src/leo_ast/program/program_id.rs.html | 6 +- src/leo_ast/program/program_scope.rs.html | 6 +- src/leo_ast/statement/assert.rs.html | 6 +- src/leo_ast/statement/assign.rs.html | 6 +- src/leo_ast/statement/block.rs.html | 6 +- src/leo_ast/statement/conditional.rs.html | 6 +- .../console/console_function.rs.html | 6 +- .../console/console_statement.rs.html | 6 +- src/leo_ast/statement/console/mod.rs.html | 6 +- src/leo_ast/statement/const_.rs.html | 6 +- .../definition/declaration_type.rs.html | 6 +- src/leo_ast/statement/definition/mod.rs.html | 6 +- src/leo_ast/statement/expression.rs.html | 6 +- src/leo_ast/statement/iteration.rs.html | 6 +- src/leo_ast/statement/mod.rs.html | 6 +- src/leo_ast/statement/return_.rs.html | 6 +- src/leo_ast/struct/member.rs.html | 6 +- src/leo_ast/struct/mod.rs.html | 6 +- src/leo_ast/stub/function_stub.rs.html | 6 +- src/leo_ast/stub/mod.rs.html | 6 +- src/leo_ast/types/array.rs.html | 6 +- src/leo_ast/types/core_constant.rs.html | 6 +- src/leo_ast/types/future.rs.html | 6 +- src/leo_ast/types/integer_type.rs.html | 6 +- src/leo_ast/types/mapping.rs.html | 6 +- src/leo_ast/types/mod.rs.html | 6 +- src/leo_ast/types/struct_type.rs.html | 6 +- src/leo_ast/types/tuple.rs.html | 6 +- src/leo_ast/types/type_.rs.html | 6 +- src/leo_ast/value/mod.rs.html | 6 +- src/leo_compiler/compiler.rs.html | 6 +- src/leo_compiler/lib.rs.html | 6 +- src/leo_compiler/options.rs.html | 6 +- src/leo_disassembler/lib.rs.html | 6 +- src/leo_errors/common/backtraced.rs.html | 6 +- src/leo_errors/common/formatted.rs.html | 6 +- src/leo_errors/common/macros.rs.html | 6 +- src/leo_errors/common/mod.rs.html | 6 +- src/leo_errors/common/traits.rs.html | 6 +- src/leo_errors/emitter/mod.rs.html | 6 +- src/leo_errors/errors/ast/ast_errors.rs.html | 6 +- src/leo_errors/errors/ast/mod.rs.html | 6 +- src/leo_errors/errors/cli/cli_errors.rs.html | 6 +- src/leo_errors/errors/cli/mod.rs.html | 6 +- .../errors/compiler/compiler_errors.rs.html | 6 +- src/leo_errors/errors/compiler/mod.rs.html | 6 +- .../errors/flattener/flattener_errors.rs.html | 6 +- src/leo_errors/errors/flattener/mod.rs.html | 6 +- .../loop_unroller_errors.rs.html | 6 +- .../errors/loop_unroller/mod.rs.html | 6 +- src/leo_errors/errors/mod.rs.html | 6 +- src/leo_errors/errors/package/mod.rs.html | 6 +- .../errors/package/package_errors.rs.html | 6 +- src/leo_errors/errors/parser/mod.rs.html | 6 +- .../errors/parser/parser_errors.rs.html | 6 +- .../errors/parser/parser_warnings.rs.html | 6 +- .../errors/static_analyzer/mod.rs.html | 6 +- .../static_analyzer_error.rs.html | 6 +- .../static_analyzer_warning.rs.html | 6 +- .../errors/type_checker/mod.rs.html | 6 +- .../type_checker/type_checker_error.rs.html | 6 +- .../type_checker/type_checker_warning.rs.html | 6 +- src/leo_errors/errors/utils/mod.rs.html | 6 +- .../errors/utils/util_errors.rs.html | 6 +- src/leo_errors/lib.rs.html | 6 +- src/leo_lang/cli/cli.rs.html | 6 +- src/leo_lang/cli/commands/account.rs.html | 6 +- src/leo_lang/cli/commands/add.rs.html | 6 +- src/leo_lang/cli/commands/build.rs.html | 6 +- src/leo_lang/cli/commands/clean.rs.html | 6 +- src/leo_lang/cli/commands/deploy.rs.html | 6 +- src/leo_lang/cli/commands/example.rs.html | 6 +- src/leo_lang/cli/commands/execute.rs.html | 10 +- src/leo_lang/cli/commands/mod.rs.html | 6 +- src/leo_lang/cli/commands/new.rs.html | 6 +- src/leo_lang/cli/commands/query/block.rs.html | 6 +- .../cli/commands/query/committee.rs.html | 6 +- .../cli/commands/query/mempool.rs.html | 6 +- src/leo_lang/cli/commands/query/mod.rs.html | 6 +- src/leo_lang/cli/commands/query/peers.rs.html | 6 +- .../cli/commands/query/program.rs.html | 6 +- .../cli/commands/query/state_root.rs.html | 6 +- .../cli/commands/query/transaction.rs.html | 6 +- src/leo_lang/cli/commands/query/utils.rs.html | 6 +- src/leo_lang/cli/commands/remove.rs.html | 6 +- src/leo_lang/cli/commands/run.rs.html | 6 +- src/leo_lang/cli/commands/update.rs.html | 6 +- src/leo_lang/cli/helpers/context.rs.html | 6 +- src/leo_lang/cli/helpers/logger.rs.html | 6 +- src/leo_lang/cli/helpers/mod.rs.html | 6 +- src/leo_lang/cli/helpers/updater.rs.html | 6 +- src/leo_lang/cli/mod.rs.html | 6 +- src/leo_lang/lib.rs.html | 6 +- src/leo_package/build/directory.rs.html | 6 +- src/leo_package/build/mod.rs.html | 6 +- src/leo_package/imports/directory.rs.html | 6 +- src/leo_package/imports/mod.rs.html | 6 +- src/leo_package/inputs/directory.rs.html | 6 +- src/leo_package/inputs/mod.rs.html | 6 +- src/leo_package/lib.rs.html | 6 +- src/leo_package/outputs/ast_snapshot.rs.html | 6 +- src/leo_package/outputs/checksum.rs.html | 6 +- src/leo_package/outputs/circuit.rs.html | 6 +- src/leo_package/outputs/directory.rs.html | 6 +- src/leo_package/outputs/mod.rs.html | 6 +- src/leo_package/package.rs.html | 6 +- src/leo_package/root/env.rs.html | 6 +- src/leo_package/root/gitignore.rs.html | 6 +- src/leo_package/root/mod.rs.html | 6 +- src/leo_package/source/directory.rs.html | 6 +- src/leo_package/source/main.rs.html | 6 +- src/leo_package/source/mod.rs.html | 6 +- src/leo_parser/lib.rs.html | 6 +- src/leo_parser/parser/context.rs.html | 6 +- src/leo_parser/parser/expression.rs.html | 6 +- src/leo_parser/parser/file.rs.html | 6 +- src/leo_parser/parser/mod.rs.html | 6 +- src/leo_parser/parser/statement.rs.html | 6 +- src/leo_parser/parser/type_.rs.html | 6 +- src/leo_parser/tokenizer/lexer.rs.html | 6 +- src/leo_parser/tokenizer/mod.rs.html | 6 +- src/leo_parser/tokenizer/token.rs.html | 6 +- .../code_generation/generator.rs.html | 6 +- src/leo_passes/code_generation/mod.rs.html | 6 +- .../code_generation/visit_expressions.rs.html | 6 +- .../code_generation/visit_program.rs.html | 6 +- .../code_generation/visit_statements.rs.html | 6 +- .../code_generation/visit_type.rs.html | 6 +- src/leo_passes/common/assigner/mod.rs.html | 6 +- .../constant_propagation_table/mod.rs.html | 6 +- src/leo_passes/common/graph/mod.rs.html | 6 +- src/leo_passes/common/mod.rs.html | 6 +- .../common/rename_table/mod.rs.html | 6 +- src/leo_passes/common/replacer/mod.rs.html | 6 +- .../symbol_table/function_symbol.rs.html | 6 +- .../common/symbol_table/mod.rs.html | 6 +- .../symbol_table/variable_symbol.rs.html | 6 +- src/leo_passes/common/tree_node/mod.rs.html | 6 +- src/leo_passes/common/type_table/mod.rs.html | 6 +- .../dead_code_eliminator.rs.html | 6 +- .../eliminate_expression.rs.html | 6 +- .../eliminate_program.rs.html | 6 +- .../eliminate_statement.rs.html | 6 +- .../dead_code_elimination/mod.rs.html | 6 +- .../destructure_expression.rs.html | 6 +- .../destructuring/destructure_program.rs.html | 6 +- .../destructure_statement.rs.html | 6 +- .../destructuring/destructurer.rs.html | 6 +- src/leo_passes/destructuring/mod.rs.html | 6 +- .../flattening/flatten_expression.rs.html | 6 +- .../flattening/flatten_program.rs.html | 6 +- .../flattening/flatten_statement.rs.html | 6 +- src/leo_passes/flattening/flattener.rs.html | 6 +- src/leo_passes/flattening/mod.rs.html | 6 +- .../assignment_renamer.rs.html | 6 +- .../function_inliner.rs.html | 6 +- .../inline_expression.rs.html | 6 +- .../function_inlining/inline_program.rs.html | 6 +- .../inline_statement.rs.html | 6 +- src/leo_passes/function_inlining/mod.rs.html | 6 +- src/leo_passes/lib.rs.html | 6 +- src/leo_passes/loop_unrolling/mod.rs.html | 6 +- .../loop_unrolling/range_iterator.rs.html | 6 +- .../loop_unrolling/unroll_expression.rs.html | 6 +- .../loop_unrolling/unroll_program.rs.html | 6 +- .../loop_unrolling/unroll_statement.rs.html | 6 +- .../loop_unrolling/unroller.rs.html | 6 +- src/leo_passes/pass.rs.html | 6 +- .../analyze_expression.rs.html | 6 +- .../static_analysis/analyze_program.rs.html | 6 +- .../static_analysis/analyze_statement.rs.html | 6 +- .../static_analysis/analyzer.rs.html | 6 +- .../static_analysis/await_checker.rs.html | 6 +- src/leo_passes/static_analysis/mod.rs.html | 6 +- .../static_single_assignment/mod.rs.html | 6 +- .../rename_expression.rs.html | 6 +- .../rename_program.rs.html | 6 +- .../rename_statement.rs.html | 6 +- .../static_single_assigner.rs.html | 6 +- .../symbol_table_creation/creator.rs.html | 6 +- .../symbol_table_creation/mod.rs.html | 6 +- .../type_checking/check_expressions.rs.html | 6 +- .../type_checking/check_program.rs.html | 6 +- .../type_checking/check_statements.rs.html | 6 +- src/leo_passes/type_checking/checker.rs.html | 6 +- src/leo_passes/type_checking/mod.rs.html | 6 +- .../type_checking/scope_state.rs.html | 6 +- src/leo_retriever/lib.rs.html | 6 +- .../program_context/dependency.rs.html | 6 +- .../program_context/location.rs.html | 6 +- .../program_context/lock_file_entry.rs.html | 6 +- .../program_context/manifest.rs.html | 6 +- src/leo_retriever/program_context/mod.rs.html | 6 +- .../program_context/network_name.rs.html | 6 +- src/leo_retriever/retriever/mod.rs.html | 6 +- src/leo_span/lib.rs.html | 6 +- src/leo_span/source_map.rs.html | 6 +- src/leo_span/span.rs.html | 6 +- src/leo_span/span_json.rs.html | 6 +- src/leo_span/symbol.rs.html | 6 +- src/leo_test_framework/error.rs.html | 6 +- src/leo_test_framework/fetch.rs.html | 6 +- src/leo_test_framework/lib.rs.html | 6 +- src/leo_test_framework/output.rs.html | 6 +- src/leo_test_framework/runner.rs.html | 6 +- src/leo_test_framework/test.rs.html | 6 +- static.files/main-921df33f47b8780c.js | 11 - static.files/main-f070b9041d14864c.js | 11 + static.files/noscript-0111fcff984fae8f.css | 1 + static.files/noscript-3b12f09e550e0385.css | 1 - static.files/rustdoc-492a78a4a87dcc01.css | 47 - static.files/rustdoc-b0742ba02757f159.css | 53 + .../scrape-examples-46fc985aa763a438.js | 1 + .../scrape-examples-ef1e698c1d417c0c.js | 1 - static.files/search-a99f1315e7cc5121.js | 5 - static.files/search-f0d225181b97f9a4.js | 6 + ...1961c2.js => settings-805db61a62df4bd2.js} | 4 +- ...78b968e.js => storage-1d39b6787ed640ff.js} | 19 +- trait.impl/core/borrow/trait.Borrow.js | 2 +- trait.impl/core/clone/trait.Clone.js | 2 +- trait.impl/core/cmp/trait.Eq.js | 2 +- trait.impl/core/cmp/trait.Ord.js | 2 +- trait.impl/core/cmp/trait.PartialEq.js | 2 +- trait.impl/core/cmp/trait.PartialOrd.js | 2 +- trait.impl/core/convert/trait.AsRef.js | 2 +- trait.impl/core/convert/trait.From.js | 4 +- trait.impl/core/convert/trait.TryFrom.js | 2 +- trait.impl/core/default/trait.Default.js | 2 +- trait.impl/core/error/trait.Error.js | 2 +- trait.impl/core/fmt/trait.Debug.js | 2 +- trait.impl/core/fmt/trait.Display.js | 2 +- trait.impl/core/hash/trait.Hash.js | 2 +- .../iter/traits/iterator/trait.Iterator.js | 2 +- trait.impl/core/marker/trait.Copy.js | 2 +- trait.impl/core/marker/trait.Freeze.js | 2 +- trait.impl/core/marker/trait.Send.js | 2 +- .../core/marker/trait.StructuralPartialEq.js | 2 +- trait.impl/core/marker/trait.Sync.js | 2 +- trait.impl/core/marker/trait.Unpin.js | 2 +- trait.impl/core/ops/arith/trait.Add.js | 2 +- trait.impl/core/ops/arith/trait.Sub.js | 2 +- trait.impl/core/ops/deref/trait.Deref.js | 2 +- .../panic/unwind_safe/trait.RefUnwindSafe.js | 2 +- .../panic/unwind_safe/trait.UnwindSafe.js | 2 +- .../trait.ExpressionReconstructor.js | 2 +- .../trait.ProgramReconstructor.js | 2 +- .../trait.StatementReconstructor.js | 2 +- type.impl/core/result/enum.Result.js | 4 +- type.impl/leo_errors/emitter/struct.Buffer.js | 2 +- .../leo_passes/common/graph/struct.DiGraph.js | 2 +- .../common/tree_node/struct.TreeNode.js | 2 +- 1177 files changed, 10845 insertions(+), 10852 deletions(-) delete mode 100644 static.files/main-921df33f47b8780c.js create mode 100644 static.files/main-f070b9041d14864c.js create mode 100644 static.files/noscript-0111fcff984fae8f.css delete mode 100644 static.files/noscript-3b12f09e550e0385.css delete mode 100644 static.files/rustdoc-492a78a4a87dcc01.css create mode 100644 static.files/rustdoc-b0742ba02757f159.css create mode 100644 static.files/scrape-examples-46fc985aa763a438.js delete mode 100644 static.files/scrape-examples-ef1e698c1d417c0c.js delete mode 100644 static.files/search-a99f1315e7cc5121.js create mode 100644 static.files/search-f0d225181b97f9a4.js rename static.files/{settings-4313503d2e1961c2.js => settings-805db61a62df4bd2.js} (50%) rename static.files/{storage-118b08c4c78b968e.js => storage-1d39b6787ed640ff.js} (71%) diff --git a/errcov/all.html b/errcov/all.html index 34c816e823..a1a2398399 100644 --- a/errcov/all.html +++ b/errcov/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Functions

\ No newline at end of file +List of all items in this crate

List of all items

Functions

\ No newline at end of file diff --git a/errcov/fn.main.html b/errcov/fn.main.html index ab0f993d89..5e5dc56096 100644 --- a/errcov/fn.main.html +++ b/errcov/fn.main.html @@ -1 +1 @@ -main in errcov - Rust

Function errcov::main

source ·
pub(crate) fn main()
\ No newline at end of file +main in errcov - Rust
errcov

Function main

source
pub(crate) fn main()
\ No newline at end of file diff --git a/errcov/index.html b/errcov/index.html index 48b3d81f54..2dc9ba211b 100644 --- a/errcov/index.html +++ b/errcov/index.html @@ -1 +1 @@ -errcov - Rust

Crate errcov

source ·

Functions§

\ No newline at end of file +errcov - Rust

Crate errcov

source

Functions§

\ No newline at end of file diff --git a/help.html b/help.html index 938bb4b83c..0c6ff56c37 100644 --- a/help.html +++ b/help.html @@ -1 +1 @@ -Help

Rustdoc help

Back
\ No newline at end of file +Help

Rustdoc help

Back
\ No newline at end of file diff --git a/index.html b/index.html index b5d4ca69fe..920116a77c 100644 --- a/index.html +++ b/index.html @@ -1,2 +1,2 @@ -Index of crates
- \ No newline at end of file +Index of crates
+ \ No newline at end of file diff --git a/leo/all.html b/leo/all.html index 5e4d953709..a02b8d3afd 100644 --- a/leo/all.html +++ b/leo/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Functions

\ No newline at end of file +List of all items in this crate

List of all items

Functions

\ No newline at end of file diff --git a/leo/fn.main.html b/leo/fn.main.html index 8269f8ceb0..ca71ae6309 100644 --- a/leo/fn.main.html +++ b/leo/fn.main.html @@ -1 +1 @@ -main in leo - Rust

Function leo::main

source ·
pub(crate) fn main()
\ No newline at end of file +main in leo - Rust
leo

Function main

source
pub(crate) fn main()
\ No newline at end of file diff --git a/leo/fn.set_panic_hook.html b/leo/fn.set_panic_hook.html index b42ce186de..c68ea1d16e 100644 --- a/leo/fn.set_panic_hook.html +++ b/leo/fn.set_panic_hook.html @@ -1 +1 @@ -set_panic_hook in leo - Rust

Function leo::set_panic_hook

source ·
pub(crate) fn set_panic_hook()
\ No newline at end of file +set_panic_hook in leo - Rust
leo

Function set_panic_hook

source
pub(crate) fn set_panic_hook()
\ No newline at end of file diff --git a/leo/index.html b/leo/index.html index a7a8d908f9..8a51f43f77 100644 --- a/leo/index.html +++ b/leo/index.html @@ -1 +1 @@ -leo - Rust

Crate leo

source ·

Functions§

\ No newline at end of file +leo - Rust

Crate leo

source

Functions§

\ No newline at end of file diff --git a/leo_abnf/all.html b/leo_abnf/all.html index 157d42f25d..4c2e77ac9b 100644 --- a/leo_abnf/all.html +++ b/leo_abnf/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Structs

Enums

Functions

\ No newline at end of file +List of all items in this crate

List of all items

Structs

Enums

Functions

\ No newline at end of file diff --git a/leo_abnf/enum.Scope.html b/leo_abnf/enum.Scope.html index 6edfab5c56..da6c6167dd 100644 --- a/leo_abnf/enum.Scope.html +++ b/leo_abnf/enum.Scope.html @@ -1,18 +1,18 @@ -Scope in leo_abnf - Rust

Enum leo_abnf::Scope

source ·
pub(crate) enum Scope {
+Scope in leo_abnf - Rust
leo_abnf

Enum Scope

source
pub(crate) enum Scope {
     Free,
     Code,
     Definition(Rule),
 }
Expand description

Processor’s scope. Used when code block or definition starts or ends.

-

Variants§

§

Free

§

Code

§

Definition(Rule)

Trait Implementations§

source§

impl Clone for Scope

source§

fn clone(&self) -> Scope

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 Scope

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Scope

§

impl RefUnwindSafe for Scope

§

impl Send for Scope

§

impl Sync for Scope

§

impl Unpin for Scope

§

impl UnwindSafe for Scope

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

Variants§

§

Free

§

Code

§

Definition(Rule)

Trait Implementations§

source§

impl Clone for Scope

source§

fn clone(&self) -> Scope

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 Scope

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Scope

§

impl RefUnwindSafe for Scope

§

impl Send for Scope

§

impl Sync for Scope

§

impl Unpin for Scope

§

impl UnwindSafe for Scope

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_abnf/fn.main.html b/leo_abnf/fn.main.html index 4f9a6d3ce0..c81ab8d975 100644 --- a/leo_abnf/fn.main.html +++ b/leo_abnf/fn.main.html @@ -1 +1 @@ -main in leo_abnf - Rust

Function leo_abnf::main

source ·
pub(crate) fn main() -> Result<()>
\ No newline at end of file +main in leo_abnf - Rust
leo_abnf

Function main

source
pub(crate) fn main() -> Result<()>
\ No newline at end of file diff --git a/leo_abnf/fn.parse_abnf_node.html b/leo_abnf/fn.parse_abnf_node.html index ac4232ae5a..ac22c33aac 100644 --- a/leo_abnf/fn.parse_abnf_node.html +++ b/leo_abnf/fn.parse_abnf_node.html @@ -1,2 +1,2 @@ -parse_abnf_node in leo_abnf - Rust

Function leo_abnf::parse_abnf_node

source ·
pub(crate) fn parse_abnf_node(node: &Node, sum: &mut Vec<String>)
Expand description

Recursively parse ABNF Node and fill sum vec with found rule names.

+parse_abnf_node in leo_abnf - Rust
leo_abnf

Function parse_abnf_node

source
pub(crate) fn parse_abnf_node(node: &Node, sum: &mut Vec<String>)
Expand description

Recursively parse ABNF Node and fill sum vec with found rule names.

\ No newline at end of file diff --git a/leo_abnf/index.html b/leo_abnf/index.html index 5877a9debc..3b52ffc3b2 100644 --- a/leo_abnf/index.html +++ b/leo_abnf/index.html @@ -1 +1 @@ -leo_abnf - Rust

Crate leo_abnf

source ·

Structs§

  • Processor 🔒
    Transforms abnf file into Markdown.

Enums§

  • Scope 🔒
    Processor’s scope. Used when code block or definition starts or ends.

Functions§

  • main 🔒
  • Recursively parse ABNF Node and fill sum vec with found rule names.
\ No newline at end of file +leo_abnf - Rust

Crate leo_abnf

source

Structs§

  • Processor 🔒
    Transforms abnf file into Markdown.

Enums§

  • Scope 🔒
    Processor’s scope. Used when code block or definition starts or ends.

Functions§

  • main 🔒
  • Recursively parse ABNF Node and fill sum vec with found rule names.
\ No newline at end of file diff --git a/leo_abnf/struct.Processor.html b/leo_abnf/struct.Processor.html index 688443b549..11f1e62195 100644 --- a/leo_abnf/struct.Processor.html +++ b/leo_abnf/struct.Processor.html @@ -1,25 +1,25 @@ -Processor in leo_abnf - Rust

Struct leo_abnf::Processor

source ·
pub(crate) struct Processor<'a> {
-    pub(crate) rules: HashMap<String, Rule>,
-    pub(crate) grammar: &'a str,
+Processor in leo_abnf - Rust
leo_abnf

Struct Processor

source
pub(crate) struct Processor<'a> {
+    pub(crate) rules: HashMap<String, Rule>,
+    pub(crate) grammar: &'a str,
     pub(crate) scope: Scope,
-    pub(crate) line: u32,
-    pub(crate) out: String,
+    pub(crate) line: u32,
+    pub(crate) out: String,
 }
Expand description

Transforms abnf file into Markdown.

-

Fields§

§rules: HashMap<String, Rule>§grammar: &'a str§scope: Scope§line: u32§out: String

Implementations§

source§

impl<'a> Processor<'a>

source

pub(crate) fn new(grammar: &'a str, abnf: Vec<Rule>) -> Processor<'a>

source

pub(crate) fn process(&mut self)

Main function for this struct. +

Fields§

§rules: HashMap<String, Rule>§grammar: &'a str§scope: Scope§line: u32§out: String

Implementations§

source§

impl<'a> Processor<'a>

source

pub(crate) fn new(grammar: &'a str, abnf: Vec<Rule>) -> Processor<'a>

source

pub(crate) fn process(&mut self)

Main function for this struct. Goes through each line and transforms it into proper markdown.

-
source

pub(crate) fn append_str(&mut self, line: &str)

Append new line into output, add newline character.

+
source

pub(crate) fn append_str(&mut self, line: &str)

Append new line into output, add newline character.

source

pub(crate) fn enter_scope(&mut self, new_scope: Scope)

Enter new scope (definition or code block). Allows customizing pre and post lines for each scope entered or exited.

-

Trait Implementations§

source§

impl<'a> Clone for Processor<'a>

source§

fn clone(&self) -> Processor<'a>

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<'a> Debug for Processor<'a>

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for Processor<'a>

§

impl<'a> RefUnwindSafe for Processor<'a>

§

impl<'a> Send for Processor<'a>

§

impl<'a> Sync for Processor<'a>

§

impl<'a> Unpin for Processor<'a>

§

impl<'a> UnwindSafe for Processor<'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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

Trait Implementations§

source§

impl<'a> Clone for Processor<'a>

source§

fn clone(&self) -> Processor<'a>

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<'a> Debug for Processor<'a>

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for Processor<'a>

§

impl<'a> RefUnwindSafe for Processor<'a>

§

impl<'a> Send for Processor<'a>

§

impl<'a> Sync for Processor<'a>

§

impl<'a> Unpin for Processor<'a>

§

impl<'a> UnwindSafe for Processor<'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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_ast/access/array_access/index.html b/leo_ast/access/array_access/index.html index 43fe98abb5..dbe9a7df98 100644 --- a/leo_ast/access/array_access/index.html +++ b/leo_ast/access/array_access/index.html @@ -1 +1 @@ -leo_ast::access::array_access - Rust

Module leo_ast::access::array_access

source ·

Structs§

  • An array access expression, e.g., foo[index].
\ No newline at end of file +leo_ast::access::array_access - Rust
leo_ast::access

Module array_access

source

Structs§

  • An array access expression, e.g., foo[index].
\ No newline at end of file diff --git a/leo_ast/access/array_access/struct.ArrayAccess.html b/leo_ast/access/array_access/struct.ArrayAccess.html index 4d4d244ea2..a1f17293b3 100644 --- a/leo_ast/access/array_access/struct.ArrayAccess.html +++ b/leo_ast/access/array_access/struct.ArrayAccess.html @@ -1,53 +1,53 @@ -ArrayAccess in leo_ast::access::array_access - Rust

Struct leo_ast::access::array_access::ArrayAccess

source ·
pub struct ArrayAccess {
-    pub array: Box<Expression>,
-    pub index: Box<Expression>,
+ArrayAccess in leo_ast::access::array_access - Rust
leo_ast::access::array_access

Struct ArrayAccess

source
pub struct ArrayAccess {
+    pub array: Box<Expression>,
+    pub index: Box<Expression>,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

An array access expression, e.g., foo[index].

-

Fields§

§array: Box<Expression>

An expression evaluating to some array type, e.g., [false, true].

-
§index: Box<Expression>

The index to access in the array expression. E.g., 0 for [false, true] would yield false.

+

Fields§

§array: Box<Expression>

An expression evaluating to some array type, e.g., [false, true].

+
§index: Box<Expression>

The index to access in the array expression. E.g., 0 for [false, true] would yield false.

§span: Span

The span for the entire expression foo[index].

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for ArrayAccess

source§

fn clone(&self) -> ArrayAccess

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 ArrayAccess

source§

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

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

impl<'de> Deserialize<'de> for ArrayAccess

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 Display for ArrayAccess

source§

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

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

impl Node for ArrayAccess

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ArrayAccess

source§

fn eq(&self, other: &ArrayAccess) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for ArrayAccess

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 Eq for ArrayAccess

source§

impl StructuralPartialEq for ArrayAccess

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for ArrayAccess

source§

fn clone(&self) -> ArrayAccess

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 ArrayAccess

source§

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

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

impl<'de> Deserialize<'de> for ArrayAccess

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 Display for ArrayAccess

source§

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

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

impl Node for ArrayAccess

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ArrayAccess

source§

fn eq(&self, other: &ArrayAccess) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for ArrayAccess

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 Eq for ArrayAccess

source§

impl StructuralPartialEq for ArrayAccess

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/access/associated_constant_access/index.html b/leo_ast/access/associated_constant_access/index.html index 2355f060a3..a8979ca778 100644 --- a/leo_ast/access/associated_constant_access/index.html +++ b/leo_ast/access/associated_constant_access/index.html @@ -1 +1 @@ -leo_ast::access::associated_constant_access - Rust

Module leo_ast::access::associated_constant_access

source ·

Structs§

\ No newline at end of file +leo_ast::access::associated_constant_access - Rust
leo_ast::access

Module associated_constant_access

source

Structs§

\ No newline at end of file diff --git a/leo_ast/access/associated_constant_access/struct.AssociatedConstant.html b/leo_ast/access/associated_constant_access/struct.AssociatedConstant.html index 427e33a5a6..00f8c3f043 100644 --- a/leo_ast/access/associated_constant_access/struct.AssociatedConstant.html +++ b/leo_ast/access/associated_constant_access/struct.AssociatedConstant.html @@ -1,4 +1,4 @@ -AssociatedConstant in leo_ast::access::associated_constant_access - Rust
pub struct AssociatedConstant {
+AssociatedConstant in leo_ast::access::associated_constant_access - Rust
leo_ast::access::associated_constant_access

Struct AssociatedConstant

source
pub struct AssociatedConstant {
     pub ty: Type,
     pub name: Identifier,
     pub span: Span,
@@ -8,46 +8,46 @@
 
§name: Identifier

The struct constant that is being accessed.

§span: Span

The span for the entire expression Foo::bar().

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for AssociatedConstant

source§

fn clone(&self) -> AssociatedConstant

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 AssociatedConstant

source§

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

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

impl<'de> Deserialize<'de> for AssociatedConstant

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 Display for AssociatedConstant

source§

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

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

impl Node for AssociatedConstant

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for AssociatedConstant

source§

fn eq(&self, other: &AssociatedConstant) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for AssociatedConstant

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 Eq for AssociatedConstant

source§

impl StructuralPartialEq for AssociatedConstant

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for AssociatedConstant

source§

fn clone(&self) -> AssociatedConstant

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 AssociatedConstant

source§

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

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

impl<'de> Deserialize<'de> for AssociatedConstant

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 Display for AssociatedConstant

source§

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

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

impl Node for AssociatedConstant

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for AssociatedConstant

source§

fn eq(&self, other: &AssociatedConstant) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for AssociatedConstant

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 Eq for AssociatedConstant

source§

impl StructuralPartialEq for AssociatedConstant

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/access/associated_function_access/index.html b/leo_ast/access/associated_function_access/index.html index f61f4e8ffd..e6b1e17c56 100644 --- a/leo_ast/access/associated_function_access/index.html +++ b/leo_ast/access/associated_function_access/index.html @@ -1 +1 @@ -leo_ast::access::associated_function_access - Rust

Module leo_ast::access::associated_function_access

source ·

Structs§

  • An access expression to an associated function in a struct, e.g.Pedersen64::hash().
\ No newline at end of file +leo_ast::access::associated_function_access - Rust
leo_ast::access

Module associated_function_access

source

Structs§

  • An access expression to an associated function in a struct, e.g.Pedersen64::hash().
\ No newline at end of file diff --git a/leo_ast/access/associated_function_access/struct.AssociatedFunction.html b/leo_ast/access/associated_function_access/struct.AssociatedFunction.html index c2cfb29350..fe6a9ae29a 100644 --- a/leo_ast/access/associated_function_access/struct.AssociatedFunction.html +++ b/leo_ast/access/associated_function_access/struct.AssociatedFunction.html @@ -1,55 +1,55 @@ -AssociatedFunction in leo_ast::access::associated_function_access - Rust
pub struct AssociatedFunction {
+AssociatedFunction in leo_ast::access::associated_function_access - Rust
leo_ast::access::associated_function_access

Struct AssociatedFunction

source
pub struct AssociatedFunction {
     pub variant: Identifier,
     pub name: Identifier,
-    pub arguments: Vec<Expression>,
+    pub arguments: Vec<Expression>,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

An access expression to an associated function in a struct, e.g.Pedersen64::hash().

Fields§

§variant: Identifier

The inner struct variant.

§name: Identifier

The static struct member function that is being accessed.

-
§arguments: Vec<Expression>

The arguments passed to the function name.

+
§arguments: Vec<Expression>

The arguments passed to the function name.

§span: Span

The span for the entire expression Foo::bar().

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for AssociatedFunction

source§

fn clone(&self) -> AssociatedFunction

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 AssociatedFunction

source§

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

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

impl<'de> Deserialize<'de> for AssociatedFunction

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 Display for AssociatedFunction

source§

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

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

impl Node for AssociatedFunction

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for AssociatedFunction

source§

fn eq(&self, other: &AssociatedFunction) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for AssociatedFunction

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 Eq for AssociatedFunction

source§

impl StructuralPartialEq for AssociatedFunction

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for AssociatedFunction

source§

fn clone(&self) -> AssociatedFunction

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 AssociatedFunction

source§

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

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

impl<'de> Deserialize<'de> for AssociatedFunction

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 Display for AssociatedFunction

source§

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

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

impl Node for AssociatedFunction

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for AssociatedFunction

source§

fn eq(&self, other: &AssociatedFunction) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for AssociatedFunction

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 Eq for AssociatedFunction

source§

impl StructuralPartialEq for AssociatedFunction

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/access/index.html b/leo_ast/access/index.html index 325031f8f1..3e0f17356f 100644 --- a/leo_ast/access/index.html +++ b/leo_ast/access/index.html @@ -1 +1 @@ -leo_ast::access - Rust

Module leo_ast::access

source ·

Modules§

Structs§

  • An array access expression, e.g., foo[index].
  • An access expression to an struct constant., e.g. u8::MAX.
  • An access expression to an associated function in a struct, e.g.Pedersen64::hash().
  • A struct member access expression inner.name to some structure with named members.
  • A tuple access expression, e.g., tuple.index.
\ No newline at end of file +leo_ast::access - Rust
leo_ast

Module access

source

Modules§

Structs§

  • An array access expression, e.g., foo[index].
  • An access expression to an struct constant., e.g. u8::MAX.
  • An access expression to an associated function in a struct, e.g.Pedersen64::hash().
  • A struct member access expression inner.name to some structure with named members.
  • A tuple access expression, e.g., tuple.index.
\ No newline at end of file diff --git a/leo_ast/access/member_access/index.html b/leo_ast/access/member_access/index.html index d4e6830eba..6e23cfe381 100644 --- a/leo_ast/access/member_access/index.html +++ b/leo_ast/access/member_access/index.html @@ -1 +1 @@ -leo_ast::access::member_access - Rust

Module leo_ast::access::member_access

source ·

Structs§

  • A struct member access expression inner.name to some structure with named members.
\ No newline at end of file +leo_ast::access::member_access - Rust
leo_ast::access

Module member_access

source

Structs§

  • A struct member access expression inner.name to some structure with named members.
\ No newline at end of file diff --git a/leo_ast/access/member_access/struct.MemberAccess.html b/leo_ast/access/member_access/struct.MemberAccess.html index bb06364dd3..c28bd05912 100644 --- a/leo_ast/access/member_access/struct.MemberAccess.html +++ b/leo_ast/access/member_access/struct.MemberAccess.html @@ -1,53 +1,53 @@ -MemberAccess in leo_ast::access::member_access - Rust

Struct leo_ast::access::member_access::MemberAccess

source ·
pub struct MemberAccess {
-    pub inner: Box<Expression>,
+MemberAccess in leo_ast::access::member_access - Rust
leo_ast::access::member_access

Struct MemberAccess

source
pub struct MemberAccess {
+    pub inner: Box<Expression>,
     pub name: Identifier,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

A struct member access expression inner.name to some structure with named members.

-

Fields§

§inner: Box<Expression>

The inner struct that is being accessed.

+

Fields§

§inner: Box<Expression>

The inner struct that is being accessed.

§name: Identifier

The name of the struct member to access.

§span: Span

The span covering all of inner.name.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for MemberAccess

source§

fn clone(&self) -> MemberAccess

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 MemberAccess

source§

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

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

impl<'de> Deserialize<'de> for MemberAccess

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 Display for MemberAccess

source§

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

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

impl Node for MemberAccess

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for MemberAccess

source§

fn eq(&self, other: &MemberAccess) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for MemberAccess

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 Eq for MemberAccess

source§

impl StructuralPartialEq for MemberAccess

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for MemberAccess

source§

fn clone(&self) -> MemberAccess

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 MemberAccess

source§

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

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

impl<'de> Deserialize<'de> for MemberAccess

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 Display for MemberAccess

source§

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

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

impl Node for MemberAccess

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for MemberAccess

source§

fn eq(&self, other: &MemberAccess) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for MemberAccess

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 Eq for MemberAccess

source§

impl StructuralPartialEq for MemberAccess

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/access/struct.ArrayAccess.html b/leo_ast/access/struct.ArrayAccess.html index e5cdc7ff78..3ff4034630 100644 --- a/leo_ast/access/struct.ArrayAccess.html +++ b/leo_ast/access/struct.ArrayAccess.html @@ -1,53 +1,53 @@ -ArrayAccess in leo_ast::access - Rust

Struct leo_ast::access::ArrayAccess

source ·
pub struct ArrayAccess {
-    pub array: Box<Expression>,
-    pub index: Box<Expression>,
+ArrayAccess in leo_ast::access - Rust
leo_ast::access

Struct ArrayAccess

source
pub struct ArrayAccess {
+    pub array: Box<Expression>,
+    pub index: Box<Expression>,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

An array access expression, e.g., foo[index].

-

Fields§

§array: Box<Expression>

An expression evaluating to some array type, e.g., [false, true].

-
§index: Box<Expression>

The index to access in the array expression. E.g., 0 for [false, true] would yield false.

+

Fields§

§array: Box<Expression>

An expression evaluating to some array type, e.g., [false, true].

+
§index: Box<Expression>

The index to access in the array expression. E.g., 0 for [false, true] would yield false.

§span: Span

The span for the entire expression foo[index].

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for ArrayAccess

source§

fn clone(&self) -> ArrayAccess

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 ArrayAccess

source§

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

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

impl<'de> Deserialize<'de> for ArrayAccess

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 Display for ArrayAccess

source§

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

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

impl Node for ArrayAccess

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ArrayAccess

source§

fn eq(&self, other: &ArrayAccess) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for ArrayAccess

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 Eq for ArrayAccess

source§

impl StructuralPartialEq for ArrayAccess

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for ArrayAccess

source§

fn clone(&self) -> ArrayAccess

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 ArrayAccess

source§

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

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

impl<'de> Deserialize<'de> for ArrayAccess

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 Display for ArrayAccess

source§

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

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

impl Node for ArrayAccess

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ArrayAccess

source§

fn eq(&self, other: &ArrayAccess) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for ArrayAccess

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 Eq for ArrayAccess

source§

impl StructuralPartialEq for ArrayAccess

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/access/struct.AssociatedConstant.html b/leo_ast/access/struct.AssociatedConstant.html index fe5fca1df1..3838a5fbe5 100644 --- a/leo_ast/access/struct.AssociatedConstant.html +++ b/leo_ast/access/struct.AssociatedConstant.html @@ -1,4 +1,4 @@ -AssociatedConstant in leo_ast::access - Rust

Struct leo_ast::access::AssociatedConstant

source ·
pub struct AssociatedConstant {
+AssociatedConstant in leo_ast::access - Rust
leo_ast::access

Struct AssociatedConstant

source
pub struct AssociatedConstant {
     pub ty: Type,
     pub name: Identifier,
     pub span: Span,
@@ -8,46 +8,46 @@
 
§name: Identifier

The struct constant that is being accessed.

§span: Span

The span for the entire expression Foo::bar().

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for AssociatedConstant

source§

fn clone(&self) -> AssociatedConstant

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 AssociatedConstant

source§

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

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

impl<'de> Deserialize<'de> for AssociatedConstant

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 Display for AssociatedConstant

source§

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

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

impl Node for AssociatedConstant

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for AssociatedConstant

source§

fn eq(&self, other: &AssociatedConstant) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for AssociatedConstant

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 Eq for AssociatedConstant

source§

impl StructuralPartialEq for AssociatedConstant

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for AssociatedConstant

source§

fn clone(&self) -> AssociatedConstant

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 AssociatedConstant

source§

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

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

impl<'de> Deserialize<'de> for AssociatedConstant

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 Display for AssociatedConstant

source§

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

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

impl Node for AssociatedConstant

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for AssociatedConstant

source§

fn eq(&self, other: &AssociatedConstant) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for AssociatedConstant

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 Eq for AssociatedConstant

source§

impl StructuralPartialEq for AssociatedConstant

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/access/struct.AssociatedFunction.html b/leo_ast/access/struct.AssociatedFunction.html index ff97d503fb..7ea23d3d45 100644 --- a/leo_ast/access/struct.AssociatedFunction.html +++ b/leo_ast/access/struct.AssociatedFunction.html @@ -1,55 +1,55 @@ -AssociatedFunction in leo_ast::access - Rust

Struct leo_ast::access::AssociatedFunction

source ·
pub struct AssociatedFunction {
+AssociatedFunction in leo_ast::access - Rust
leo_ast::access

Struct AssociatedFunction

source
pub struct AssociatedFunction {
     pub variant: Identifier,
     pub name: Identifier,
-    pub arguments: Vec<Expression>,
+    pub arguments: Vec<Expression>,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

An access expression to an associated function in a struct, e.g.Pedersen64::hash().

Fields§

§variant: Identifier

The inner struct variant.

§name: Identifier

The static struct member function that is being accessed.

-
§arguments: Vec<Expression>

The arguments passed to the function name.

+
§arguments: Vec<Expression>

The arguments passed to the function name.

§span: Span

The span for the entire expression Foo::bar().

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for AssociatedFunction

source§

fn clone(&self) -> AssociatedFunction

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 AssociatedFunction

source§

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

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

impl<'de> Deserialize<'de> for AssociatedFunction

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 Display for AssociatedFunction

source§

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

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

impl Node for AssociatedFunction

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for AssociatedFunction

source§

fn eq(&self, other: &AssociatedFunction) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for AssociatedFunction

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 Eq for AssociatedFunction

source§

impl StructuralPartialEq for AssociatedFunction

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for AssociatedFunction

source§

fn clone(&self) -> AssociatedFunction

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 AssociatedFunction

source§

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

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

impl<'de> Deserialize<'de> for AssociatedFunction

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 Display for AssociatedFunction

source§

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

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

impl Node for AssociatedFunction

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for AssociatedFunction

source§

fn eq(&self, other: &AssociatedFunction) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for AssociatedFunction

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 Eq for AssociatedFunction

source§

impl StructuralPartialEq for AssociatedFunction

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/access/struct.MemberAccess.html b/leo_ast/access/struct.MemberAccess.html index ff1939b153..971f409602 100644 --- a/leo_ast/access/struct.MemberAccess.html +++ b/leo_ast/access/struct.MemberAccess.html @@ -1,53 +1,53 @@ -MemberAccess in leo_ast::access - Rust

Struct leo_ast::access::MemberAccess

source ·
pub struct MemberAccess {
-    pub inner: Box<Expression>,
+MemberAccess in leo_ast::access - Rust
leo_ast::access

Struct MemberAccess

source
pub struct MemberAccess {
+    pub inner: Box<Expression>,
     pub name: Identifier,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

A struct member access expression inner.name to some structure with named members.

-

Fields§

§inner: Box<Expression>

The inner struct that is being accessed.

+

Fields§

§inner: Box<Expression>

The inner struct that is being accessed.

§name: Identifier

The name of the struct member to access.

§span: Span

The span covering all of inner.name.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for MemberAccess

source§

fn clone(&self) -> MemberAccess

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 MemberAccess

source§

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

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

impl<'de> Deserialize<'de> for MemberAccess

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 Display for MemberAccess

source§

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

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

impl Node for MemberAccess

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for MemberAccess

source§

fn eq(&self, other: &MemberAccess) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for MemberAccess

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 Eq for MemberAccess

source§

impl StructuralPartialEq for MemberAccess

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for MemberAccess

source§

fn clone(&self) -> MemberAccess

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 MemberAccess

source§

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

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

impl<'de> Deserialize<'de> for MemberAccess

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 Display for MemberAccess

source§

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

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

impl Node for MemberAccess

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for MemberAccess

source§

fn eq(&self, other: &MemberAccess) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for MemberAccess

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 Eq for MemberAccess

source§

impl StructuralPartialEq for MemberAccess

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/access/struct.TupleAccess.html b/leo_ast/access/struct.TupleAccess.html index 8ba018f21e..b44c912f46 100644 --- a/leo_ast/access/struct.TupleAccess.html +++ b/leo_ast/access/struct.TupleAccess.html @@ -1,53 +1,53 @@ -TupleAccess in leo_ast::access - Rust

Struct leo_ast::access::TupleAccess

source ·
pub struct TupleAccess {
-    pub tuple: Box<Expression>,
+TupleAccess in leo_ast::access - Rust
leo_ast::access

Struct TupleAccess

source
pub struct TupleAccess {
+    pub tuple: Box<Expression>,
     pub index: NonNegativeNumber,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

A tuple access expression, e.g., tuple.index.

-

Fields§

§tuple: Box<Expression>

An expression evaluating to some tuple type, e.g., (5, 2).

+

Fields§

§tuple: Box<Expression>

An expression evaluating to some tuple type, e.g., (5, 2).

§index: NonNegativeNumber

The index to access in the tuple expression. E.g., 0 for (5, 2) would yield 5.

§span: Span

The span for the entire expression tuple.index.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for TupleAccess

source§

fn clone(&self) -> TupleAccess

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 TupleAccess

source§

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

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

impl<'de> Deserialize<'de> for TupleAccess

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 Display for TupleAccess

source§

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

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

impl Node for TupleAccess

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for TupleAccess

source§

fn eq(&self, other: &TupleAccess) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for TupleAccess

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 Eq for TupleAccess

source§

impl StructuralPartialEq for TupleAccess

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for TupleAccess

source§

fn clone(&self) -> TupleAccess

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 TupleAccess

source§

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

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

impl<'de> Deserialize<'de> for TupleAccess

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 Display for TupleAccess

source§

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

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

impl Node for TupleAccess

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for TupleAccess

source§

fn eq(&self, other: &TupleAccess) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for TupleAccess

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 Eq for TupleAccess

source§

impl StructuralPartialEq for TupleAccess

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/access/tuple_access/index.html b/leo_ast/access/tuple_access/index.html index 2ee0f940d6..78a8cc9a76 100644 --- a/leo_ast/access/tuple_access/index.html +++ b/leo_ast/access/tuple_access/index.html @@ -1 +1 @@ -leo_ast::access::tuple_access - Rust

Module leo_ast::access::tuple_access

source ·

Structs§

  • A tuple access expression, e.g., tuple.index.
\ No newline at end of file +leo_ast::access::tuple_access - Rust
leo_ast::access

Module tuple_access

source

Structs§

  • A tuple access expression, e.g., tuple.index.
\ No newline at end of file diff --git a/leo_ast/access/tuple_access/struct.TupleAccess.html b/leo_ast/access/tuple_access/struct.TupleAccess.html index 3bcf8870b6..a91f3a8aab 100644 --- a/leo_ast/access/tuple_access/struct.TupleAccess.html +++ b/leo_ast/access/tuple_access/struct.TupleAccess.html @@ -1,53 +1,53 @@ -TupleAccess in leo_ast::access::tuple_access - Rust

Struct leo_ast::access::tuple_access::TupleAccess

source ·
pub struct TupleAccess {
-    pub tuple: Box<Expression>,
+TupleAccess in leo_ast::access::tuple_access - Rust
leo_ast::access::tuple_access

Struct TupleAccess

source
pub struct TupleAccess {
+    pub tuple: Box<Expression>,
     pub index: NonNegativeNumber,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

A tuple access expression, e.g., tuple.index.

-

Fields§

§tuple: Box<Expression>

An expression evaluating to some tuple type, e.g., (5, 2).

+

Fields§

§tuple: Box<Expression>

An expression evaluating to some tuple type, e.g., (5, 2).

§index: NonNegativeNumber

The index to access in the tuple expression. E.g., 0 for (5, 2) would yield 5.

§span: Span

The span for the entire expression tuple.index.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for TupleAccess

source§

fn clone(&self) -> TupleAccess

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 TupleAccess

source§

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

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

impl<'de> Deserialize<'de> for TupleAccess

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 Display for TupleAccess

source§

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

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

impl Node for TupleAccess

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for TupleAccess

source§

fn eq(&self, other: &TupleAccess) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for TupleAccess

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 Eq for TupleAccess

source§

impl StructuralPartialEq for TupleAccess

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for TupleAccess

source§

fn clone(&self) -> TupleAccess

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 TupleAccess

source§

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

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

impl<'de> Deserialize<'de> for TupleAccess

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 Display for TupleAccess

source§

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

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

impl Node for TupleAccess

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for TupleAccess

source§

fn eq(&self, other: &TupleAccess) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for TupleAccess

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 Eq for TupleAccess

source§

impl StructuralPartialEq for TupleAccess

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/all.html b/leo_ast/all.html index bb5f55d4e3..8a08290147 100644 --- a/leo_ast/all.html +++ b/leo_ast/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Structs

Enums

Traits

Macros

Functions

Type Aliases

\ No newline at end of file +List of all items in this crate

List of all items

Structs

Enums

Traits

Macros

Functions

Type Aliases

\ No newline at end of file diff --git a/leo_ast/common/identifier/index.html b/leo_ast/common/identifier/index.html index 71259457e9..04d66d8dde 100644 --- a/leo_ast/common/identifier/index.html +++ b/leo_ast/common/identifier/index.html @@ -1 +1 @@ -leo_ast::common::identifier - Rust

Module leo_ast::common::identifier

source ·

Structs§

\ No newline at end of file +leo_ast::common::identifier - Rust
leo_ast::common

Module identifier

source

Structs§

\ No newline at end of file diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html index 36e62a4988..0e7393b59b 100644 --- a/leo_ast/common/identifier/struct.Identifier.html +++ b/leo_ast/common/identifier/struct.Identifier.html @@ -1,4 +1,4 @@ -Identifier in leo_ast::common::identifier - Rust

Struct leo_ast::common::identifier::Identifier

source ·
pub struct Identifier {
+Identifier in leo_ast::common::identifier - Rust
leo_ast::common::identifier

Struct Identifier

source
pub struct Identifier {
     pub name: Symbol,
     pub span: Span,
     pub id: NodeID,
@@ -10,47 +10,47 @@
 
§span: Span

A span locating where the identifier occurred in the source.

§id: NodeID

The ID of the node.

Implementations§

source§

impl Identifier

source

pub fn new(name: Symbol, id: NodeID) -> Self

Constructs a new identifier with name and id and a default span.

-
source

pub fn matches(&self, other: &Self) -> bool

Check if the Identifier name matches the other name.

-

Trait Implementations§

source§

impl Clone for Identifier

source§

fn clone(&self) -> Identifier

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 Identifier

source§

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

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

impl<'de> Deserialize<'de> for Identifier

source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Identifier

source§

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

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

impl<N: Network> From<&Identifier<N>> for Identifier

source§

fn from(id: &IdentifierCore<N>) -> Self

Converts to this type from the input type.
source§

impl From<Identifier> for ProgramId

source§

fn from(name: Identifier) -> Self

Converts to this type from the input type.
source§

impl Hash for Identifier

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where - H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Node for Identifier

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Identifier

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for Identifier

source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for Identifier

source§

impl Eq for Identifier

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

source

pub fn matches(&self, other: &Self) -> bool

Check if the Identifier name matches the other name.

+

Trait Implementations§

source§

impl Clone for Identifier

source§

fn clone(&self) -> Identifier

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 Identifier

source§

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

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

impl<'de> Deserialize<'de> for Identifier

source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Identifier

source§

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

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

impl<N: Network> From<&Identifier<N>> for Identifier

source§

fn from(id: &IdentifierCore<N>) -> Self

Converts to this type from the input type.
source§

impl From<Identifier> for ProgramId

source§

fn from(name: Identifier) -> Self

Converts to this type from the input type.
source§

impl Hash for Identifier

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Node for Identifier

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Identifier

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for Identifier

source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for Identifier

source§

impl Eq for Identifier

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html index c9e3272282..bbf5c30fa2 100644 --- a/leo_ast/common/imported_modules/fn.deserialize.html +++ b/leo_ast/common/imported_modules/fn.deserialize.html @@ -1,3 +1,3 @@ -deserialize in leo_ast::common::imported_modules - Rust

Function leo_ast::common::imported_modules::deserialize

source ·
pub fn deserialize<'de, D: Deserializer<'de>>(
+deserialize in leo_ast::common::imported_modules - Rust
leo_ast::common::imported_modules

Function deserialize

source
pub fn deserialize<'de, D: Deserializer<'de>>(
     deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file +) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html index 05926e5bb6..068fa56144 100644 --- a/leo_ast/common/imported_modules/fn.serialize.html +++ b/leo_ast/common/imported_modules/fn.serialize.html @@ -1,4 +1,4 @@ -serialize in leo_ast::common::imported_modules - Rust

Function leo_ast::common::imported_modules::serialize

source ·
pub fn serialize<S: Serializer>(
-    imported_modules: &IndexMap<Vec<Symbol>, Program>,
+serialize in leo_ast::common::imported_modules - Rust
leo_ast::common::imported_modules

Function serialize

source
pub fn serialize<S: Serializer>(
+    imported_modules: &IndexMap<Vec<Symbol>, Program>,
     serializer: S,
-) -> Result<S::Ok, S::Error>
\ No newline at end of file +) -> Result<S::Ok, S::Error>
\ No newline at end of file diff --git a/leo_ast/common/imported_modules/index.html b/leo_ast/common/imported_modules/index.html index 958670cedd..673af64a1b 100644 --- a/leo_ast/common/imported_modules/index.html +++ b/leo_ast/common/imported_modules/index.html @@ -1 +1 @@ -leo_ast::common::imported_modules - Rust

Module leo_ast::common::imported_modules

source ·

Functions§

\ No newline at end of file +leo_ast::common::imported_modules - Rust
leo_ast::common

Module imported_modules

source

Functions§

\ No newline at end of file diff --git a/leo_ast/common/index.html b/leo_ast/common/index.html index eaa17307df..7b10b48e1a 100644 --- a/leo_ast/common/index.html +++ b/leo_ast/common/index.html @@ -1 +1 @@ -leo_ast::common - Rust

Module leo_ast::common

source ·

Re-exports§

Modules§

\ No newline at end of file +leo_ast::common - Rust
leo_ast

Module common

source

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_ast/common/location/index.html b/leo_ast/common/location/index.html index 016e61d2d6..05a1c24023 100644 --- a/leo_ast/common/location/index.html +++ b/leo_ast/common/location/index.html @@ -1 +1 @@ -leo_ast::common::location - Rust

Module leo_ast::common::location

source ·

Structs§

\ No newline at end of file +leo_ast::common::location - Rust
leo_ast::common

Module location

source

Structs§

\ No newline at end of file diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html index 0915355516..6e8c0d3f34 100644 --- a/leo_ast/common/location/struct.Location.html +++ b/leo_ast/common/location/struct.Location.html @@ -1,46 +1,46 @@ -Location in leo_ast::common::location - Rust

Struct leo_ast::common::location::Location

source ·
pub struct Location {
-    pub program: Option<Symbol>,
+Location in leo_ast::common::location - Rust
leo_ast::common::location

Struct Location

source
pub struct Location {
+    pub program: Option<Symbol>,
     pub name: Symbol,
-}

Fields§

§program: Option<Symbol>§name: Symbol

Implementations§

source§

impl Location

source

pub fn new(program: Option<Symbol>, name: Symbol) -> Location

Trait Implementations§

source§

impl Clone for Location

source§

fn clone(&self) -> Location

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 Location

source§

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

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

impl<'de> Deserialize<'de> for Location

source§

fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>
where - D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<&CompositeType> for Location

source§

fn from(composite: &CompositeType) -> Location

Converts to this type from the input type.
source§

impl Hash for Location

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where - H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Location

source§

fn eq(&self, other: &Location) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +}

Fields§

§program: Option<Symbol>§name: Symbol

Implementations§

source§

impl Location

source

pub fn new(program: Option<Symbol>, name: Symbol) -> Location

Trait Implementations§

source§

impl Clone for Location

source§

fn clone(&self) -> Location

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 Location

source§

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

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

impl<'de> Deserialize<'de> for Location

source§

fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>
where + D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<&CompositeType> for Location

source§

fn from(composite: &CompositeType) -> Location

Converts to this type from the input type.
source§

impl Hash for Location

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Location

source§

fn eq(&self, other: &Location) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Location

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 Eq for Location

source§

impl StructuralPartialEq for Location

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where + S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for Location

source§

impl StructuralPartialEq for Location

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/common/node/index.html b/leo_ast/common/node/index.html index 7067aa5217..f9e530f694 100644 --- a/leo_ast/common/node/index.html +++ b/leo_ast/common/node/index.html @@ -1 +1 @@ -leo_ast::common::node - Rust

Module leo_ast::common::node

source ·

Traits§

  • A node in the AST.

Type Aliases§

\ No newline at end of file +leo_ast::common::node - Rust
leo_ast::common

Module node

source

Traits§

  • A node in the AST.

Type Aliases§

\ No newline at end of file diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html index 0578e4555c..6cecbf4dfd 100644 --- a/leo_ast/common/node/trait.Node.html +++ b/leo_ast/common/node/trait.Node.html @@ -1,9 +1,9 @@ -Node in leo_ast::common::node - Rust

Trait leo_ast::common::node::Node

source ·
pub trait Node:
-    Debug
-    + Display
-    + Clone
-    + PartialEq
-    + Eq
+Node in leo_ast::common::node - Rust
leo_ast::common::node

Trait Node

source
pub trait Node:
+    Debug
+    + Display
+    + Clone
+    + PartialEq
+    + Eq
     + Serialize
     + DeserializeOwned {
     // Required methods
@@ -16,4 +16,4 @@
 
source

fn set_span(&mut self, span: Span)

Sets the span of the node.

source

fn id(&self) -> NodeID

Returns the ID of the node.

source

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.

-

Object Safety§

This trait is not object safe.

Implementors§

\ No newline at end of file +

Object Safety§

This trait is not object safe.

Implementors§

\ No newline at end of file diff --git a/leo_ast/common/node/type.NodeID.html b/leo_ast/common/node/type.NodeID.html index 8e4cba711c..b67110eac0 100644 --- a/leo_ast/common/node/type.NodeID.html +++ b/leo_ast/common/node/type.NodeID.html @@ -1,2 +1,2 @@ -NodeID in leo_ast::common::node - Rust

Type Alias leo_ast::common::node::NodeID

source ·
pub type NodeID = usize;
Expand description

A node ID.

+NodeID in leo_ast::common::node - Rust
leo_ast::common::node

Type Alias NodeID

source
pub type NodeID = usize;
Expand description

A node ID.

\ No newline at end of file diff --git a/leo_ast/common/node_builder/index.html b/leo_ast/common/node_builder/index.html index 68f9483e68..a592b47b1a 100644 --- a/leo_ast/common/node_builder/index.html +++ b/leo_ast/common/node_builder/index.html @@ -1,2 +1,2 @@ -leo_ast::common::node_builder - Rust

Module leo_ast::common::node_builder

source ·

Structs§

Fields§

§inner: RefCell<NodeBuilderInner>

The inner counter. RefCell is used here to avoid &mut all over the compiler.

Implementations§

source§

impl NodeBuilder

source

pub fn new(next: NodeID) -> Self

Returns a new NodeCounter with the given NodeID as the starting value.

source

pub fn next_id(&self) -> NodeID

Returns the next NodeID and increments the internal state.

-

Trait Implementations§

source§

impl Clone for NodeBuilder

source§

fn clone(&self) -> NodeBuilder

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 NodeBuilder

source§

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

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

impl Default for NodeBuilder

source§

fn default() -> Self

Returns the “default value” for a type. 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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+

Trait Implementations§

source§

impl Clone for NodeBuilder

source§

fn clone(&self) -> NodeBuilder

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 NodeBuilder

source§

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

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

impl Default for NodeBuilder

source§

fn default() -> Self

Returns the “default value” for a type. 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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_ast/common/node_builder/struct.NodeBuilderInner.html b/leo_ast/common/node_builder/struct.NodeBuilderInner.html index beb8b9f0df..ba727bd90a 100644 --- a/leo_ast/common/node_builder/struct.NodeBuilderInner.html +++ b/leo_ast/common/node_builder/struct.NodeBuilderInner.html @@ -1,33 +1,33 @@ -NodeBuilderInner in leo_ast::common::node_builder - Rust

Struct leo_ast::common::node_builder::NodeBuilderInner

source ·
pub struct NodeBuilderInner {
+NodeBuilderInner in leo_ast::common::node_builder - Rust
leo_ast::common::node_builder

Struct NodeBuilderInner

source
pub struct NodeBuilderInner {
     next: NodeID,
 }
Expand description

Contains the actual data for Handler. Modeled this way to afford an API using interior mutability.

Fields§

§next: NodeID

The next NodeID.

Implementations§

source§

impl NodeBuilderInner

source

pub fn new(next: NodeID) -> Self

Returns a new NodeCounter with the given NodeID as the starting value.

source

pub fn next_id(&mut self) -> NodeID

Returns the next NodeID and increments the internal state.

-

Trait Implementations§

source§

impl Clone for NodeBuilderInner

source§

fn clone(&self) -> NodeBuilderInner

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 NodeBuilderInner

source§

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

Formats the value using the given formatter. 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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+

Trait Implementations§

source§

impl Clone for NodeBuilderInner

source§

fn clone(&self) -> NodeBuilderInner

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 NodeBuilderInner

source§

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

Formats the value using the given formatter. 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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_ast/common/positive_number/index.html b/leo_ast/common/positive_number/index.html index 2d6bb1c670..92641716d3 100644 --- a/leo_ast/common/positive_number/index.html +++ b/leo_ast/common/positive_number/index.html @@ -1 +1 @@ -leo_ast::common::positive_number - Rust

Module leo_ast::common::positive_number

source ·

Structs§

\ No newline at end of file +leo_ast::common::positive_number - Rust
leo_ast::common

Module positive_number

source

Structs§

\ No newline at end of file diff --git a/leo_ast/common/positive_number/struct.NonNegativeNumber.html b/leo_ast/common/positive_number/struct.NonNegativeNumber.html index 38ad215c22..4a343d0490 100644 --- a/leo_ast/common/positive_number/struct.NonNegativeNumber.html +++ b/leo_ast/common/positive_number/struct.NonNegativeNumber.html @@ -1,54 +1,54 @@ -NonNegativeNumber in leo_ast::common::positive_number - Rust

Struct leo_ast::common::positive_number::NonNegativeNumber

source ·
pub struct NonNegativeNumber {
-    string: String,
-    value: usize,
+NonNegativeNumber in leo_ast::common::positive_number - Rust
leo_ast::common::positive_number

Struct NonNegativeNumber

source
pub struct NonNegativeNumber {
+    string: String,
+    value: usize,
 }
Expand description

A number string guaranteed to be non-negative.

-

Fields§

§string: String

The string representation of the non-negative number.

-
§value: usize

The numeric value of the non-negative number.

-

Implementations§

source§

impl NonNegativeNumber

source

pub fn string(&self) -> &str

Returns the string representation of the non-negative number.

-
source

pub fn value(&self) -> usize

Returns the numeric value of the non-negative number.

-
source

pub fn is_zero(&self) -> bool

Returns true if this number is zero.

-

Trait Implementations§

source§

impl Clone for NonNegativeNumber

source§

fn clone(&self) -> NonNegativeNumber

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 NonNegativeNumber

source§

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

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

impl<'de> Deserialize<'de> for NonNegativeNumber

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 Display for NonNegativeNumber

source§

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

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

impl From<String> for NonNegativeNumber

source§

fn from(string: String) -> Self

Converts to this type from the input type.
source§

impl From<usize> for NonNegativeNumber

source§

fn from(value: usize) -> Self

Converts to this type from the input type.
source§

impl Hash for NonNegativeNumber

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where - H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for NonNegativeNumber

source§

fn eq(&self, other: &NonNegativeNumber) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for NonNegativeNumber

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 Eq for NonNegativeNumber

source§

impl StructuralPartialEq for NonNegativeNumber

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Fields§

§string: String

The string representation of the non-negative number.

+
§value: usize

The numeric value of the non-negative number.

+

Implementations§

source§

impl NonNegativeNumber

source

pub fn string(&self) -> &str

Returns the string representation of the non-negative number.

+
source

pub fn value(&self) -> usize

Returns the numeric value of the non-negative number.

+
source

pub fn is_zero(&self) -> bool

Returns true if this number is zero.

+

Trait Implementations§

source§

impl Clone for NonNegativeNumber

source§

fn clone(&self) -> NonNegativeNumber

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 NonNegativeNumber

source§

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

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

impl<'de> Deserialize<'de> for NonNegativeNumber

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 Display for NonNegativeNumber

source§

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

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

impl From<String> for NonNegativeNumber

source§

fn from(string: String) -> Self

Converts to this type from the input type.
source§

impl From<usize> for NonNegativeNumber

source§

fn from(value: usize) -> Self

Converts to this type from the input type.
source§

impl Hash for NonNegativeNumber

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for NonNegativeNumber

source§

fn eq(&self, other: &NonNegativeNumber) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for NonNegativeNumber

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 Eq for NonNegativeNumber

source§

impl StructuralPartialEq for NonNegativeNumber

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/common/static_string/index.html b/leo_ast/common/static_string/index.html index 884adfedc1..2610b6db02 100644 --- a/leo_ast/common/static_string/index.html +++ b/leo_ast/common/static_string/index.html @@ -1 +1 @@ -leo_ast::common::static_string - Rust

Module leo_ast::common::static_string

source ·

Structs§

\ No newline at end of file +leo_ast::common::static_string - Rust
leo_ast::common

Module static_string

source

Structs§

\ No newline at end of file diff --git a/leo_ast/common/static_string/struct.StaticString.html b/leo_ast/common/static_string/struct.StaticString.html index 6d04cb3635..f1663be960 100644 --- a/leo_ast/common/static_string/struct.StaticString.html +++ b/leo_ast/common/static_string/struct.StaticString.html @@ -1,43 +1,43 @@ -StaticString in leo_ast::common::static_string - Rust

Struct leo_ast::common::static_string::StaticString

source ·
pub struct StaticString(String);

Tuple Fields§

§0: String

Implementations§

source§

impl StaticString

source

pub fn new(string: String) -> Self

Trait Implementations§

source§

impl Clone for StaticString

source§

fn clone(&self) -> StaticString

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 StaticString

source§

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

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

impl Default for StaticString

source§

fn default() -> StaticString

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for StaticString

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 Display for StaticString

source§

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

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

impl PartialEq for StaticString

source§

fn eq(&self, other: &StaticString) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for StaticString

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 Eq for StaticString

source§

impl StructuralPartialEq for StaticString

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +StaticString in leo_ast::common::static_string - Rust
leo_ast::common::static_string

Struct StaticString

source
pub struct StaticString(String);

Tuple Fields§

§0: String

Implementations§

source§

impl StaticString

source

pub fn new(string: String) -> Self

Trait Implementations§

source§

impl Clone for StaticString

source§

fn clone(&self) -> StaticString

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 StaticString

source§

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

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

impl Default for StaticString

source§

fn default() -> StaticString

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for StaticString

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 Display for StaticString

source§

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

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

impl PartialEq for StaticString

source§

fn eq(&self, other: &StaticString) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for StaticString

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 Eq for StaticString

source§

impl StructuralPartialEq for StaticString

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html index a3f9e1f246..fe969739ea 100644 --- a/leo_ast/expressions/access/enum.AccessExpression.html +++ b/leo_ast/expressions/access/enum.AccessExpression.html @@ -1,4 +1,4 @@ -AccessExpression in leo_ast::expressions::access - Rust

Enum leo_ast::expressions::access::AccessExpression

source ·
pub enum AccessExpression {
+AccessExpression in leo_ast::expressions::access - Rust
leo_ast::expressions::access

Enum AccessExpression

source
pub enum AccessExpression {
     Array(ArrayAccess),
     AssociatedConstant(AssociatedConstant),
     AssociatedFunction(AssociatedFunction),
@@ -10,46 +10,46 @@
 
§

AssociatedFunction(AssociatedFunction)

Access to an associated function of a struct e.g Pedersen64::hash().

§

Member(MemberAccess)

An expression accessing a field in a structure, e.g., struct_var.field.

§

Tuple(TupleAccess)

Access to a tuple field using its position, e.g., tuple.1.

-

Trait Implementations§

source§

impl Clone for AccessExpression

source§

fn clone(&self) -> AccessExpression

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 AccessExpression

source§

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

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

impl<'de> Deserialize<'de> for AccessExpression

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 Display for AccessExpression

source§

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

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

impl Node for AccessExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for AccessExpression

source§

fn eq(&self, other: &AccessExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for AccessExpression

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 Eq for AccessExpression

source§

impl StructuralPartialEq for AccessExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for AccessExpression

source§

fn clone(&self) -> AccessExpression

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 AccessExpression

source§

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

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

impl<'de> Deserialize<'de> for AccessExpression

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 Display for AccessExpression

source§

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

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

impl Node for AccessExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for AccessExpression

source§

fn eq(&self, other: &AccessExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for AccessExpression

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 Eq for AccessExpression

source§

impl StructuralPartialEq for AccessExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/access/index.html b/leo_ast/expressions/access/index.html index 24c40e24d3..ac076c3e6e 100644 --- a/leo_ast/expressions/access/index.html +++ b/leo_ast/expressions/access/index.html @@ -1 +1 @@ -leo_ast::expressions::access - Rust

Module leo_ast::expressions::access

source ·

Enums§

  • An access expressions, extracting a smaller part out of a whole.
\ No newline at end of file +leo_ast::expressions::access - Rust
leo_ast::expressions

Module access

source

Enums§

  • An access expressions, extracting a smaller part out of a whole.
\ No newline at end of file diff --git a/leo_ast/expressions/array/index.html b/leo_ast/expressions/array/index.html index 7bbc27e577..51d6a4920a 100644 --- a/leo_ast/expressions/array/index.html +++ b/leo_ast/expressions/array/index.html @@ -1 +1 @@ -leo_ast::expressions::array - Rust

Module leo_ast::expressions::array

source ·

Structs§

\ No newline at end of file +leo_ast::expressions::array - Rust
leo_ast::expressions

Module array

source

Structs§

\ No newline at end of file diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html index d678a5b3e1..512f4333e4 100644 --- a/leo_ast/expressions/array/struct.ArrayExpression.html +++ b/leo_ast/expressions/array/struct.ArrayExpression.html @@ -1,51 +1,51 @@ -ArrayExpression in leo_ast::expressions::array - Rust

Struct leo_ast::expressions::array::ArrayExpression

source ·
pub struct ArrayExpression {
-    pub elements: Vec<Expression>,
+ArrayExpression in leo_ast::expressions::array - Rust
leo_ast::expressions::array

Struct ArrayExpression

source
pub struct ArrayExpression {
+    pub elements: Vec<Expression>,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

An array expression, e.g., [true, false, true, false].

-

Fields§

§elements: Vec<Expression>

The elements of the array.

+

Fields§

§elements: Vec<Expression>

The elements of the array.

§span: Span

The span from [ to ].

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for ArrayExpression

source§

fn clone(&self) -> ArrayExpression

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 ArrayExpression

source§

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

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

impl<'de> Deserialize<'de> for ArrayExpression

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 Display for ArrayExpression

source§

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

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

impl Node for ArrayExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ArrayExpression

source§

fn eq(&self, other: &ArrayExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for ArrayExpression

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 Eq for ArrayExpression

source§

impl StructuralPartialEq for ArrayExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for ArrayExpression

source§

fn clone(&self) -> ArrayExpression

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 ArrayExpression

source§

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

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

impl<'de> Deserialize<'de> for ArrayExpression

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 Display for ArrayExpression

source§

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

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

impl Node for ArrayExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ArrayExpression

source§

fn eq(&self, other: &ArrayExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for ArrayExpression

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 Eq for ArrayExpression

source§

impl StructuralPartialEq for ArrayExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html index cc405ed323..1689468df0 100644 --- a/leo_ast/expressions/binary/enum.BinaryOperation.html +++ b/leo_ast/expressions/binary/enum.BinaryOperation.html @@ -1,4 +1,4 @@ -BinaryOperation in leo_ast::expressions::binary - Rust

Enum leo_ast::expressions::binary::BinaryOperation

source ·
pub enum BinaryOperation {
+BinaryOperation in leo_ast::expressions::binary - Rust
leo_ast::expressions::binary

Enum BinaryOperation

source
pub enum BinaryOperation {
 
Show 30 variants Add, AddWrapped, And, @@ -61,48 +61,48 @@
§

Sub

Subtraction, i.e. -, .sub().

§

SubWrapped

Wrapped subtraction, i.e. .sub_wrapped().

§

Xor

Bitwise XOR, i.e. .xor().

-

Implementations§

source§

impl BinaryOperation

source

pub fn from_symbol(symbol: Symbol) -> Option<Self>

Returns a BinaryOperation from the given Symbol. +

Implementations§

source§

impl BinaryOperation

source

pub fn from_symbol(symbol: Symbol) -> Option<Self>

Returns a BinaryOperation from the given Symbol. This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b).

-

Trait Implementations§

source§

impl Clone for BinaryOperation

source§

fn clone(&self) -> BinaryOperation

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 BinaryOperation

source§

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

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

impl<'de> Deserialize<'de> for BinaryOperation

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 Display for BinaryOperation

source§

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

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

impl PartialEq for BinaryOperation

source§

fn eq(&self, other: &BinaryOperation) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for BinaryOperation

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 Copy for BinaryOperation

source§

impl Eq for BinaryOperation

source§

impl StructuralPartialEq for BinaryOperation

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for BinaryOperation

source§

fn clone(&self) -> BinaryOperation

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 BinaryOperation

source§

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

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

impl<'de> Deserialize<'de> for BinaryOperation

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 Display for BinaryOperation

source§

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

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

impl PartialEq for BinaryOperation

source§

fn eq(&self, other: &BinaryOperation) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for BinaryOperation

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 Copy for BinaryOperation

source§

impl Eq for BinaryOperation

source§

impl StructuralPartialEq for BinaryOperation

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/binary/index.html b/leo_ast/expressions/binary/index.html index fdc710aa79..54569e4e8f 100644 --- a/leo_ast/expressions/binary/index.html +++ b/leo_ast/expressions/binary/index.html @@ -1,2 +1,2 @@ -leo_ast::expressions::binary - Rust

Module leo_ast::expressions::binary

source ·

Structs§

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/call/index.html b/leo_ast/expressions/call/index.html index a846a5d05d..df30fbafff 100644 --- a/leo_ast/expressions/call/index.html +++ b/leo_ast/expressions/call/index.html @@ -1 +1 @@ -leo_ast::expressions::call - Rust

Module leo_ast::expressions::call

source ·

Structs§

  • A function call expression, e.g.foo(args) or Foo::bar(args).
\ No newline at end of file +leo_ast::expressions::call - Rust
leo_ast::expressions

Module call

source

Structs§

  • A function call expression, e.g.foo(args) or Foo::bar(args).
\ No newline at end of file diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html index f2e3a20e8e..ae7f2300ea 100644 --- a/leo_ast/expressions/call/struct.CallExpression.html +++ b/leo_ast/expressions/call/struct.CallExpression.html @@ -1,56 +1,56 @@ -CallExpression in leo_ast::expressions::call - Rust

Struct leo_ast::expressions::call::CallExpression

source ·
pub struct CallExpression {
-    pub function: Box<Expression>,
-    pub arguments: Vec<Expression>,
-    pub program: Option<Symbol>,
+CallExpression in leo_ast::expressions::call - Rust
leo_ast::expressions::call

Struct CallExpression

source
pub struct CallExpression {
+    pub function: Box<Expression>,
+    pub arguments: Vec<Expression>,
+    pub program: Option<Symbol>,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

A function call expression, e.g.foo(args) or Foo::bar(args).

-

Fields§

§function: Box<Expression>

An expression evaluating to a callable function, +

Fields§

§function: Box<Expression>

An expression evaluating to a callable function, either a member of a structure or a free function.

-
§arguments: Vec<Expression>

Expressions for the arguments passed to the functions parameters.

-
§program: Option<Symbol>

The name of the parent program call, e.g.bar in bar.aleo.

+
§arguments: Vec<Expression>

Expressions for the arguments passed to the functions parameters.

+
§program: Option<Symbol>

The name of the parent program call, e.g.bar in bar.aleo.

§span: Span

Span of the entire call function(arguments).

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for CallExpression

source§

fn clone(&self) -> CallExpression

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 CallExpression

source§

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

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

impl<'de> Deserialize<'de> for CallExpression

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 Display for CallExpression

source§

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

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

impl Node for CallExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for CallExpression

source§

fn eq(&self, other: &CallExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for CallExpression

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 Eq for CallExpression

source§

impl StructuralPartialEq for CallExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for CallExpression

source§

fn clone(&self) -> CallExpression

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 CallExpression

source§

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

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

impl<'de> Deserialize<'de> for CallExpression

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 Display for CallExpression

source§

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

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

impl Node for CallExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for CallExpression

source§

fn eq(&self, other: &CallExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for CallExpression

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 Eq for CallExpression

source§

impl StructuralPartialEq for CallExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/cast/index.html b/leo_ast/expressions/cast/index.html index dfa519b8bf..4c0501eafa 100644 --- a/leo_ast/expressions/cast/index.html +++ b/leo_ast/expressions/cast/index.html @@ -1 +1 @@ -leo_ast::expressions::cast - Rust

Module leo_ast::expressions::cast

source ·

Structs§

\ No newline at end of file +leo_ast::expressions::cast - Rust
leo_ast::expressions

Module cast

source

Structs§

\ No newline at end of file diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html index a4c1a0d527..42701bbc90 100644 --- a/leo_ast/expressions/cast/struct.CastExpression.html +++ b/leo_ast/expressions/cast/struct.CastExpression.html @@ -1,53 +1,53 @@ -CastExpression in leo_ast::expressions::cast - Rust

Struct leo_ast::expressions::cast::CastExpression

source ·
pub struct CastExpression {
-    pub expression: Box<Expression>,
+CastExpression in leo_ast::expressions::cast - Rust
leo_ast::expressions::cast

Struct CastExpression

source
pub struct CastExpression {
+    pub expression: Box<Expression>,
     pub type_: Type,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

A cast expression, e.g. 42u8 as u16.

-

Fields§

§expression: Box<Expression>

The expression to be casted, e.g.42u8 in 42u8 as u16.

+

Fields§

§expression: Box<Expression>

The expression to be casted, e.g.42u8 in 42u8 as u16.

§type_: Type

The type to be casted to, e.g. u16 in 42u8 as u16.

§span: Span

Span of the entire cast 42u8 as u16.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for CastExpression

source§

fn clone(&self) -> CastExpression

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 CastExpression

source§

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

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

impl<'de> Deserialize<'de> for CastExpression

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 Display for CastExpression

source§

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

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

impl Node for CastExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for CastExpression

source§

fn eq(&self, other: &CastExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for CastExpression

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 Eq for CastExpression

source§

impl StructuralPartialEq for CastExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for CastExpression

source§

fn clone(&self) -> CastExpression

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 CastExpression

source§

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

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

impl<'de> Deserialize<'de> for CastExpression

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 Display for CastExpression

source§

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

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

impl Node for CastExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for CastExpression

source§

fn eq(&self, other: &CastExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for CastExpression

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 Eq for CastExpression

source§

impl StructuralPartialEq for CastExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html index c4eb839df6..382d47e05b 100644 --- a/leo_ast/expressions/enum.AccessExpression.html +++ b/leo_ast/expressions/enum.AccessExpression.html @@ -1,4 +1,4 @@ -AccessExpression in leo_ast::expressions - Rust

Enum leo_ast::expressions::AccessExpression

source ·
pub enum AccessExpression {
+AccessExpression in leo_ast::expressions - Rust
leo_ast::expressions

Enum AccessExpression

source
pub enum AccessExpression {
     Array(ArrayAccess),
     AssociatedConstant(AssociatedConstant),
     AssociatedFunction(AssociatedFunction),
@@ -10,46 +10,46 @@
 
§

AssociatedFunction(AssociatedFunction)

Access to an associated function of a struct e.g Pedersen64::hash().

§

Member(MemberAccess)

An expression accessing a field in a structure, e.g., struct_var.field.

§

Tuple(TupleAccess)

Access to a tuple field using its position, e.g., tuple.1.

-

Trait Implementations§

source§

impl Clone for AccessExpression

source§

fn clone(&self) -> AccessExpression

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 AccessExpression

source§

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

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

impl<'de> Deserialize<'de> for AccessExpression

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 Display for AccessExpression

source§

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

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

impl Node for AccessExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for AccessExpression

source§

fn eq(&self, other: &AccessExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for AccessExpression

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 Eq for AccessExpression

source§

impl StructuralPartialEq for AccessExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for AccessExpression

source§

fn clone(&self) -> AccessExpression

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 AccessExpression

source§

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

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

impl<'de> Deserialize<'de> for AccessExpression

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 Display for AccessExpression

source§

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

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

impl Node for AccessExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for AccessExpression

source§

fn eq(&self, other: &AccessExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for AccessExpression

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 Eq for AccessExpression

source§

impl StructuralPartialEq for AccessExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html index 2492e430a8..69ac399c62 100644 --- a/leo_ast/expressions/enum.BinaryOperation.html +++ b/leo_ast/expressions/enum.BinaryOperation.html @@ -1,4 +1,4 @@ -BinaryOperation in leo_ast::expressions - Rust

Enum leo_ast::expressions::BinaryOperation

source ·
pub enum BinaryOperation {
+BinaryOperation in leo_ast::expressions - Rust
leo_ast::expressions

Enum BinaryOperation

source
pub enum BinaryOperation {
 
Show 30 variants Add, AddWrapped, And, @@ -61,48 +61,48 @@
§

Sub

Subtraction, i.e. -, .sub().

§

SubWrapped

Wrapped subtraction, i.e. .sub_wrapped().

§

Xor

Bitwise XOR, i.e. .xor().

-

Implementations§

source§

impl BinaryOperation

source

pub fn from_symbol(symbol: Symbol) -> Option<Self>

Returns a BinaryOperation from the given Symbol. +

Implementations§

source§

impl BinaryOperation

source

pub fn from_symbol(symbol: Symbol) -> Option<Self>

Returns a BinaryOperation from the given Symbol. This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b).

-

Trait Implementations§

source§

impl Clone for BinaryOperation

source§

fn clone(&self) -> BinaryOperation

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 BinaryOperation

source§

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

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

impl<'de> Deserialize<'de> for BinaryOperation

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 Display for BinaryOperation

source§

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

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

impl PartialEq for BinaryOperation

source§

fn eq(&self, other: &BinaryOperation) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for BinaryOperation

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 Copy for BinaryOperation

source§

impl Eq for BinaryOperation

source§

impl StructuralPartialEq for BinaryOperation

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for BinaryOperation

source§

fn clone(&self) -> BinaryOperation

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 BinaryOperation

source§

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

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

impl<'de> Deserialize<'de> for BinaryOperation

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 Display for BinaryOperation

source§

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

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

impl PartialEq for BinaryOperation

source§

fn eq(&self, other: &BinaryOperation) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for BinaryOperation

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 Copy for BinaryOperation

source§

impl Eq for BinaryOperation

source§

impl StructuralPartialEq for BinaryOperation

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html index 8accdbda58..0531766fdb 100644 --- a/leo_ast/expressions/enum.Expression.html +++ b/leo_ast/expressions/enum.Expression.html @@ -1,4 +1,4 @@ -Expression in leo_ast::expressions - Rust

Enum leo_ast::expressions::Expression

source ·
pub enum Expression {
+Expression in leo_ast::expressions - Rust
leo_ast::expressions

Enum Expression

source
pub enum Expression {
 
Show 14 variants Access(AccessExpression), Array(ArrayExpression), Binary(BinaryExpression), @@ -29,46 +29,46 @@
§

Tuple(TupleExpression)

A tuple expression e.g., (foo, 42, true).

§

Unary(UnaryExpression)

An unary expression.

§

Unit(UnitExpression)

A unit expression e.g. ()

-

Trait Implementations§

source§

impl Clone for Expression

source§

fn clone(&self) -> Expression

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 Expression

source§

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

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

impl<'de> Deserialize<'de> for Expression

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 Display for Expression

source§

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

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

impl Node for Expression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Expression

source§

fn eq(&self, other: &Expression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for Expression

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 Eq for Expression

source§

impl StructuralPartialEq for Expression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for Expression

source§

fn clone(&self) -> Expression

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 Expression

source§

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

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

impl<'de> Deserialize<'de> for Expression

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 Display for Expression

source§

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

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

impl Node for Expression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Expression

source§

fn eq(&self, other: &Expression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for Expression

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 Eq for Expression

source§

impl StructuralPartialEq for Expression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html index 0ad18888f7..9844dd1b2d 100644 --- a/leo_ast/expressions/enum.Literal.html +++ b/leo_ast/expressions/enum.Literal.html @@ -1,65 +1,65 @@ -Literal in leo_ast::expressions - Rust

Enum leo_ast::expressions::Literal

source ·
pub enum Literal {
-    Address(String, Span, NodeID),
-    Boolean(bool, Span, NodeID),
-    Field(String, Span, NodeID),
-    Group(Box<GroupLiteral>),
-    Integer(IntegerType, String, Span, NodeID),
-    Scalar(String, Span, NodeID),
-    String(String, Span, NodeID),
+Literal in leo_ast::expressions - Rust
leo_ast::expressions

Enum Literal

source
pub enum Literal {
+    Address(String, Span, NodeID),
+    Boolean(bool, Span, NodeID),
+    Field(String, Span, NodeID),
+    Group(Box<GroupLiteral>),
+    Integer(IntegerType, String, Span, NodeID),
+    Scalar(String, Span, NodeID),
+    String(String, Span, NodeID),
 }
Expand description

A literal.

-

Variants§

§

Address(String, Span, NodeID)

An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9 or hello.aleo.

-
§

Boolean(bool, Span, NodeID)

A boolean literal, either true or false.

-
§

Field(String, Span, NodeID)

A field literal, e.g., 42field. +

Variants§

§

Address(String, Span, NodeID)

An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9 or hello.aleo.

+
§

Boolean(bool, Span, NodeID)

A boolean literal, either true or false.

+
§

Field(String, Span, NodeID)

A field literal, e.g., 42field. A signed number followed by the keyword field.

-
§

Group(Box<GroupLiteral>)

A group literal, either product or affine. +

§

Group(Box<GroupLiteral>)

A group literal, either product or affine. For example, 42group or (12, 52)group.

-
§

Integer(IntegerType, String, Span, NodeID)

An integer literal, e.g., 42.

-
§

Scalar(String, Span, NodeID)

A scalar literal, e.g. 1scalar. +

§

Integer(IntegerType, String, Span, NodeID)

An integer literal, e.g., 42.

+
§

Scalar(String, Span, NodeID)

A scalar literal, e.g. 1scalar. An unsigned number followed by the keyword scalar.

-
§

String(String, Span, NodeID)

A string literal, e.g., "foobar".

-

Implementations§

source§

impl Literal

source

pub fn display_decimal(&self) -> impl '_ + Display

For displaying a literal as decimal, regardless of the radix in which it was parsed.

+
§

String(String, Span, NodeID)

A string literal, e.g., "foobar".

+

Implementations§

source§

impl Literal

source

pub fn display_decimal(&self) -> impl '_ + Display

For displaying a literal as decimal, regardless of the radix in which it was parsed.

In particular this is useful for outputting .aleo files.

-
source§

impl Literal

source

fn from_value(v: Value, id: NodeID) -> Self

Trait Implementations§

source§

impl Clone for Literal

source§

fn clone(&self) -> Literal

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 Literal

source§

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

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

impl<'de> Deserialize<'de> for Literal

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 Display for Literal

source§

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

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

impl Node for Literal

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, new_span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Literal

source§

fn eq(&self, other: &Literal) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for Literal

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<&Literal> for Value

source§

fn try_from(literal: &Literal) -> Result<Self, Self::Error>

Converts a literal to a value.

-
source§

type Error = ParseIntError

The type returned in the event of a conversion error.
source§

impl Eq for Literal

source§

impl StructuralPartialEq for Literal

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

source§

impl Literal

source

fn from_value(v: Value, id: NodeID) -> Self

Trait Implementations§

source§

impl Clone for Literal

source§

fn clone(&self) -> Literal

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 Literal

source§

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

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

impl<'de> Deserialize<'de> for Literal

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 Display for Literal

source§

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

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

impl Node for Literal

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, new_span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Literal

source§

fn eq(&self, other: &Literal) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for Literal

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<&Literal> for Value

source§

fn try_from(literal: &Literal) -> Result<Self, Self::Error>

Converts a literal to a value.

+
source§

type Error = ParseIntError

The type returned in the event of a conversion error.
source§

impl Eq for Literal

source§

impl StructuralPartialEq for Literal

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html index af0dfbc5a3..2c7c234817 100644 --- a/leo_ast/expressions/enum.UnaryOperation.html +++ b/leo_ast/expressions/enum.UnaryOperation.html @@ -1,4 +1,4 @@ -UnaryOperation in leo_ast::expressions - Rust

Enum leo_ast::expressions::UnaryOperation

source ·
pub enum UnaryOperation {
+UnaryOperation in leo_ast::expressions - Rust
leo_ast::expressions

Enum UnaryOperation

source
pub enum UnaryOperation {
     Abs,
     AbsWrapped,
     Double,
@@ -20,46 +20,46 @@
 
§

SquareRoot

Square root operation, i.e. .sqrt().

§

ToXCoordinate

Converts a group element to its x-coordinate, i.e. .to_x_coordinate().

§

ToYCoordinate

Converts a group element to its y-coordinate, i.e. .to_y_coordinate().

-

Implementations§

source§

impl UnaryOperation

source

pub fn from_symbol(symbol: Symbol) -> Option<Self>

Returns a UnaryOperation from the given Symbol.

-
source

fn as_str(self) -> &'static str

Represents the opera.tor as a string.

-

Trait Implementations§

source§

impl Clone for UnaryOperation

source§

fn clone(&self) -> UnaryOperation

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 UnaryOperation

source§

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

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

impl<'de> Deserialize<'de> for UnaryOperation

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 UnaryOperation

source§

fn eq(&self, other: &UnaryOperation) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for UnaryOperation

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 Copy for UnaryOperation

source§

impl Eq for UnaryOperation

source§

impl StructuralPartialEq for UnaryOperation

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Implementations§

source§

impl UnaryOperation

source

pub fn from_symbol(symbol: Symbol) -> Option<Self>

Returns a UnaryOperation from the given Symbol.

+
source

fn as_str(self) -> &'static str

Represents the opera.tor as a string.

+

Trait Implementations§

source§

impl Clone for UnaryOperation

source§

fn clone(&self) -> UnaryOperation

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 UnaryOperation

source§

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

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

impl<'de> Deserialize<'de> for UnaryOperation

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 UnaryOperation

source§

fn eq(&self, other: &UnaryOperation) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for UnaryOperation

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 Copy for UnaryOperation

source§

impl Eq for UnaryOperation

source§

impl StructuralPartialEq for UnaryOperation

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/err/index.html b/leo_ast/expressions/err/index.html index cca5520f64..0e56daa211 100644 --- a/leo_ast/expressions/err/index.html +++ b/leo_ast/expressions/err/index.html @@ -1 +1 @@ -leo_ast::expressions::err - Rust

Module leo_ast::expressions::err

source ·

Structs§

\ No newline at end of file +leo_ast::expressions::err - Rust
leo_ast::expressions

Module err

source

Structs§

\ No newline at end of file diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html index 13d227052b..f348d531ea 100644 --- a/leo_ast/expressions/err/struct.ErrExpression.html +++ b/leo_ast/expressions/err/struct.ErrExpression.html @@ -1,49 +1,49 @@ -ErrExpression in leo_ast::expressions::err - Rust

Struct leo_ast::expressions::err::ErrExpression

source ·
pub struct ErrExpression {
+ErrExpression in leo_ast::expressions::err - Rust
leo_ast::expressions::err

Struct ErrExpression

source
pub struct ErrExpression {
     pub span: Span,
     pub id: NodeID,
 }
Expand description

Represents a syntactically invalid expression.

Fields§

§span: Span

The span of the invalid expression.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for ErrExpression

source§

fn clone(&self) -> ErrExpression

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 ErrExpression

source§

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

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

impl<'de> Deserialize<'de> for ErrExpression

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 Display for ErrExpression

source§

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

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

impl Node for ErrExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ErrExpression

source§

fn eq(&self, other: &ErrExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for ErrExpression

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 Eq for ErrExpression

source§

impl StructuralPartialEq for ErrExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for ErrExpression

source§

fn clone(&self) -> ErrExpression

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 ErrExpression

source§

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

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

impl<'de> Deserialize<'de> for ErrExpression

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 Display for ErrExpression

source§

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

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

impl Node for ErrExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ErrExpression

source§

fn eq(&self, other: &ErrExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for ErrExpression

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 Eq for ErrExpression

source§

impl StructuralPartialEq for ErrExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/index.html b/leo_ast/expressions/index.html index 1b714fc921..79d1ecd132 100644 --- a/leo_ast/expressions/index.html +++ b/leo_ast/expressions/index.html @@ -1,3 +1,3 @@ -leo_ast::expressions - Rust

Module leo_ast::expressions

source ·

Re-exports§

Modules§

Structs§

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/literal/index.html b/leo_ast/expressions/literal/index.html index df1c361bc5..333b97e8c7 100644 --- a/leo_ast/expressions/literal/index.html +++ b/leo_ast/expressions/literal/index.html @@ -1 +1 @@ -leo_ast::expressions::literal - Rust

Module leo_ast::expressions::literal

source ·

Macros§

Structs§

Enums§

Traits§

  • This trait allows to parse integer literals of any type generically.
\ No newline at end of file +leo_ast::expressions::literal - Rust
leo_ast::expressions

Module literal

source

Macros§

Structs§

Enums§

Traits§

  • This trait allows to parse integer literals of any type generically.
\ No newline at end of file diff --git a/leo_ast/expressions/literal/macro.implement_from_str_radix.html b/leo_ast/expressions/literal/macro.implement_from_str_radix.html index 76f6cfc143..367a8c10a2 100644 --- a/leo_ast/expressions/literal/macro.implement_from_str_radix.html +++ b/leo_ast/expressions/literal/macro.implement_from_str_radix.html @@ -1,3 +1,3 @@ -implement_from_str_radix in leo_ast::expressions::literal - Rust
macro_rules! implement_from_str_radix {
+implement_from_str_radix in leo_ast::expressions::literal - Rust
leo_ast::expressions::literal

Macro implement_from_str_radix

source
macro_rules! implement_from_str_radix {
     ($($ty:ident)*) => { ... };
 }
\ No newline at end of file diff --git a/leo_ast/expressions/literal/struct.DisplayDecimal.html b/leo_ast/expressions/literal/struct.DisplayDecimal.html index ba8984e7ce..eb0d7fe820 100644 --- a/leo_ast/expressions/literal/struct.DisplayDecimal.html +++ b/leo_ast/expressions/literal/struct.DisplayDecimal.html @@ -1,26 +1,26 @@ -DisplayDecimal in leo_ast::expressions::literal - Rust

Struct leo_ast::expressions::literal::DisplayDecimal

source ·
struct DisplayDecimal<'a>(&'a Literal);

Tuple Fields§

§0: &'a Literal

Trait Implementations§

source§

impl Display for DisplayDecimal<'_>

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for DisplayDecimal<'a>

§

impl<'a> RefUnwindSafe for DisplayDecimal<'a>

§

impl<'a> Send for DisplayDecimal<'a>

§

impl<'a> Sync for DisplayDecimal<'a>

§

impl<'a> Unpin for DisplayDecimal<'a>

§

impl<'a> UnwindSafe for DisplayDecimal<'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.

+DisplayDecimal in leo_ast::expressions::literal - Rust
leo_ast::expressions::literal

Struct DisplayDecimal

source
struct DisplayDecimal<'a>(&'a Literal);

Tuple Fields§

§0: &'a Literal

Trait Implementations§

source§

impl Display for DisplayDecimal<'_>

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for DisplayDecimal<'a>

§

impl<'a> RefUnwindSafe for DisplayDecimal<'a>

§

impl<'a> Send for DisplayDecimal<'a>

§

impl<'a> Sync for DisplayDecimal<'a>

§

impl<'a> Unpin for DisplayDecimal<'a>

§

impl<'a> UnwindSafe for DisplayDecimal<'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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_ast/expressions/literal/trait.FromStrRadix.html b/leo_ast/expressions/literal/trait.FromStrRadix.html index 59cc06f19d..6a4697c953 100644 --- a/leo_ast/expressions/literal/trait.FromStrRadix.html +++ b/leo_ast/expressions/literal/trait.FromStrRadix.html @@ -1,6 +1,6 @@ -FromStrRadix in leo_ast::expressions::literal - Rust

Trait leo_ast::expressions::literal::FromStrRadix

source ·
pub trait FromStrRadix: Sized {
+FromStrRadix in leo_ast::expressions::literal - Rust
leo_ast::expressions::literal

Trait FromStrRadix

source
pub trait FromStrRadix: Sized {
     // Required method
-    fn from_str_by_radix(src: &str) -> Result<Self, ParseIntError>;
+    fn from_str_by_radix(src: &str) -> Result<Self, ParseIntError>;
 }
Expand description

This trait allows to parse integer literals of any type generically.

The literal may optionally start with a - and/or 0x or 0o or 0b`.

-

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromStrRadix for i8

source§

impl FromStrRadix for i16

source§

impl FromStrRadix for i32

source§

impl FromStrRadix for i64

source§

impl FromStrRadix for i128

source§

impl FromStrRadix for u8

source§

impl FromStrRadix for u16

source§

impl FromStrRadix for u32

source§

impl FromStrRadix for u64

source§

impl FromStrRadix for u128

Implementors§

\ No newline at end of file +

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromStrRadix for i8

source§

impl FromStrRadix for i16

source§

impl FromStrRadix for i32

source§

impl FromStrRadix for i64

source§

impl FromStrRadix for i128

source§

impl FromStrRadix for u8

source§

impl FromStrRadix for u16

source§

impl FromStrRadix for u32

source§

impl FromStrRadix for u64

source§

impl FromStrRadix for u128

Implementors§

\ No newline at end of file diff --git a/leo_ast/expressions/locator/index.html b/leo_ast/expressions/locator/index.html index adbf3edd8a..eeeb78459b 100644 --- a/leo_ast/expressions/locator/index.html +++ b/leo_ast/expressions/locator/index.html @@ -1 +1 @@ -leo_ast::expressions::locator - Rust

Module leo_ast::expressions::locator

source ·

Structs§

\ No newline at end of file +leo_ast::expressions::locator - Rust
leo_ast::expressions

Module locator

source

Structs§

\ No newline at end of file diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html index 9ea796f4b4..6216c6cbf1 100644 --- a/leo_ast/expressions/locator/struct.LocatorExpression.html +++ b/leo_ast/expressions/locator/struct.LocatorExpression.html @@ -1,4 +1,4 @@ -LocatorExpression in leo_ast::expressions::locator - Rust

Struct leo_ast::expressions::locator::LocatorExpression

source ·
pub struct LocatorExpression {
+LocatorExpression in leo_ast::expressions::locator - Rust
leo_ast::expressions::locator

Struct LocatorExpression

source
pub struct LocatorExpression {
     pub program: ProgramId,
     pub name: Symbol,
     pub span: Span,
@@ -9,49 +9,49 @@
 
§span: Span

A span indicating where the locator occurred in the source.

§id: NodeID

The ID of the node.

Implementations§

source§

impl LocatorExpression

source

pub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self

Constructs a new Locator with name, program and id and a default span.

-
source

pub fn matches(&self, other: &Self) -> bool

Check if the Locator name and program matches the other name and program.

-

Trait Implementations§

source§

impl Clone for LocatorExpression

source§

fn clone(&self) -> LocatorExpression

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 LocatorExpression

source§

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

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

impl<'de> Deserialize<'de> for LocatorExpression

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 Display for LocatorExpression

source§

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

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

impl Hash for LocatorExpression

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where - H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Node for LocatorExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for LocatorExpression

source§

fn eq(&self, other: &LocatorExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for LocatorExpression

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 Copy for LocatorExpression

source§

impl Eq for LocatorExpression

source§

impl StructuralPartialEq for LocatorExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

source

pub fn matches(&self, other: &Self) -> bool

Check if the Locator name and program matches the other name and program.

+

Trait Implementations§

source§

impl Clone for LocatorExpression

source§

fn clone(&self) -> LocatorExpression

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 LocatorExpression

source§

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

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

impl<'de> Deserialize<'de> for LocatorExpression

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 Display for LocatorExpression

source§

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

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

impl Hash for LocatorExpression

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Node for LocatorExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for LocatorExpression

source§

fn eq(&self, other: &LocatorExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for LocatorExpression

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 Copy for LocatorExpression

source§

impl Eq for LocatorExpression

source§

impl StructuralPartialEq for LocatorExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html index 002b3e7a8f..9f4401a831 100644 --- a/leo_ast/expressions/struct.ArrayExpression.html +++ b/leo_ast/expressions/struct.ArrayExpression.html @@ -1,51 +1,51 @@ -ArrayExpression in leo_ast::expressions - Rust

Struct leo_ast::expressions::ArrayExpression

source ·
pub struct ArrayExpression {
-    pub elements: Vec<Expression>,
+ArrayExpression in leo_ast::expressions - Rust
leo_ast::expressions

Struct ArrayExpression

source
pub struct ArrayExpression {
+    pub elements: Vec<Expression>,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

An array expression, e.g., [true, false, true, false].

-

Fields§

§elements: Vec<Expression>

The elements of the array.

+

Fields§

§elements: Vec<Expression>

The elements of the array.

§span: Span

The span from [ to ].

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for ArrayExpression

source§

fn clone(&self) -> ArrayExpression

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 ArrayExpression

source§

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

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

impl<'de> Deserialize<'de> for ArrayExpression

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 Display for ArrayExpression

source§

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

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

impl Node for ArrayExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ArrayExpression

source§

fn eq(&self, other: &ArrayExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for ArrayExpression

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 Eq for ArrayExpression

source§

impl StructuralPartialEq for ArrayExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for ArrayExpression

source§

fn clone(&self) -> ArrayExpression

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 ArrayExpression

source§

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

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

impl<'de> Deserialize<'de> for ArrayExpression

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 Display for ArrayExpression

source§

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

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

impl Node for ArrayExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ArrayExpression

source§

fn eq(&self, other: &ArrayExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for ArrayExpression

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 Eq for ArrayExpression

source§

impl StructuralPartialEq for ArrayExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html index 4687dfe069..f0197cb777 100644 --- a/leo_ast/expressions/struct.BinaryExpression.html +++ b/leo_ast/expressions/struct.BinaryExpression.html @@ -1,56 +1,56 @@ -BinaryExpression in leo_ast::expressions - Rust

Struct leo_ast::expressions::BinaryExpression

source ·
pub struct BinaryExpression {
-    pub left: Box<Expression>,
-    pub right: Box<Expression>,
+BinaryExpression in leo_ast::expressions - Rust
leo_ast::expressions

Struct BinaryExpression

source
pub struct BinaryExpression {
+    pub left: Box<Expression>,
+    pub right: Box<Expression>,
     pub op: BinaryOperation,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

A binary expression left op right of two operands separated by some operator. For example, foo + bar.

-

Fields§

§left: Box<Expression>

The left operand of the expression.

-
§right: Box<Expression>

The right operand of the expression.

+

Fields§

§left: Box<Expression>

The left operand of the expression.

+
§right: Box<Expression>

The right operand of the expression.

§op: BinaryOperation

The operand defining the meaning of the resulting binary expression.

§span: Span

The span from left to right.

§id: NodeID

The ID of the expression.

-

Trait Implementations§

source§

impl Clone for BinaryExpression

source§

fn clone(&self) -> BinaryExpression

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 BinaryExpression

source§

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

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

impl<'de> Deserialize<'de> for BinaryExpression

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 Display for BinaryExpression

source§

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

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

impl Node for BinaryExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for BinaryExpression

source§

fn eq(&self, other: &BinaryExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for BinaryExpression

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 Eq for BinaryExpression

source§

impl StructuralPartialEq for BinaryExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for BinaryExpression

source§

fn clone(&self) -> BinaryExpression

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 BinaryExpression

source§

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

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

impl<'de> Deserialize<'de> for BinaryExpression

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 Display for BinaryExpression

source§

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

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

impl Node for BinaryExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for BinaryExpression

source§

fn eq(&self, other: &BinaryExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for BinaryExpression

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 Eq for BinaryExpression

source§

impl StructuralPartialEq for BinaryExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html index b57455467d..23994db6c3 100644 --- a/leo_ast/expressions/struct.CallExpression.html +++ b/leo_ast/expressions/struct.CallExpression.html @@ -1,56 +1,56 @@ -CallExpression in leo_ast::expressions - Rust

Struct leo_ast::expressions::CallExpression

source ·
pub struct CallExpression {
-    pub function: Box<Expression>,
-    pub arguments: Vec<Expression>,
-    pub program: Option<Symbol>,
+CallExpression in leo_ast::expressions - Rust
leo_ast::expressions

Struct CallExpression

source
pub struct CallExpression {
+    pub function: Box<Expression>,
+    pub arguments: Vec<Expression>,
+    pub program: Option<Symbol>,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

A function call expression, e.g.foo(args) or Foo::bar(args).

-

Fields§

§function: Box<Expression>

An expression evaluating to a callable function, +

Fields§

§function: Box<Expression>

An expression evaluating to a callable function, either a member of a structure or a free function.

-
§arguments: Vec<Expression>

Expressions for the arguments passed to the functions parameters.

-
§program: Option<Symbol>

The name of the parent program call, e.g.bar in bar.aleo.

+
§arguments: Vec<Expression>

Expressions for the arguments passed to the functions parameters.

+
§program: Option<Symbol>

The name of the parent program call, e.g.bar in bar.aleo.

§span: Span

Span of the entire call function(arguments).

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for CallExpression

source§

fn clone(&self) -> CallExpression

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 CallExpression

source§

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

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

impl<'de> Deserialize<'de> for CallExpression

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 Display for CallExpression

source§

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

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

impl Node for CallExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for CallExpression

source§

fn eq(&self, other: &CallExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for CallExpression

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 Eq for CallExpression

source§

impl StructuralPartialEq for CallExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for CallExpression

source§

fn clone(&self) -> CallExpression

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 CallExpression

source§

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

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

impl<'de> Deserialize<'de> for CallExpression

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 Display for CallExpression

source§

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

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

impl Node for CallExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for CallExpression

source§

fn eq(&self, other: &CallExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for CallExpression

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 Eq for CallExpression

source§

impl StructuralPartialEq for CallExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html index f8fe9c7981..d8c44a9861 100644 --- a/leo_ast/expressions/struct.CastExpression.html +++ b/leo_ast/expressions/struct.CastExpression.html @@ -1,53 +1,53 @@ -CastExpression in leo_ast::expressions - Rust

Struct leo_ast::expressions::CastExpression

source ·
pub struct CastExpression {
-    pub expression: Box<Expression>,
+CastExpression in leo_ast::expressions - Rust
leo_ast::expressions

Struct CastExpression

source
pub struct CastExpression {
+    pub expression: Box<Expression>,
     pub type_: Type,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

A cast expression, e.g. 42u8 as u16.

-

Fields§

§expression: Box<Expression>

The expression to be casted, e.g.42u8 in 42u8 as u16.

+

Fields§

§expression: Box<Expression>

The expression to be casted, e.g.42u8 in 42u8 as u16.

§type_: Type

The type to be casted to, e.g. u16 in 42u8 as u16.

§span: Span

Span of the entire cast 42u8 as u16.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for CastExpression

source§

fn clone(&self) -> CastExpression

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 CastExpression

source§

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

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

impl<'de> Deserialize<'de> for CastExpression

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 Display for CastExpression

source§

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

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

impl Node for CastExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for CastExpression

source§

fn eq(&self, other: &CastExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for CastExpression

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 Eq for CastExpression

source§

impl StructuralPartialEq for CastExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for CastExpression

source§

fn clone(&self) -> CastExpression

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 CastExpression

source§

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

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

impl<'de> Deserialize<'de> for CastExpression

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 Display for CastExpression

source§

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

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

impl Node for CastExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for CastExpression

source§

fn eq(&self, other: &CastExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for CastExpression

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 Eq for CastExpression

source§

impl StructuralPartialEq for CastExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html index c170f04a16..97db7d88e9 100644 --- a/leo_ast/expressions/struct.ErrExpression.html +++ b/leo_ast/expressions/struct.ErrExpression.html @@ -1,49 +1,49 @@ -ErrExpression in leo_ast::expressions - Rust

Struct leo_ast::expressions::ErrExpression

source ·
pub struct ErrExpression {
+ErrExpression in leo_ast::expressions - Rust
leo_ast::expressions

Struct ErrExpression

source
pub struct ErrExpression {
     pub span: Span,
     pub id: NodeID,
 }
Expand description

Represents a syntactically invalid expression.

Fields§

§span: Span

The span of the invalid expression.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for ErrExpression

source§

fn clone(&self) -> ErrExpression

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 ErrExpression

source§

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

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

impl<'de> Deserialize<'de> for ErrExpression

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 Display for ErrExpression

source§

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

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

impl Node for ErrExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ErrExpression

source§

fn eq(&self, other: &ErrExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for ErrExpression

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 Eq for ErrExpression

source§

impl StructuralPartialEq for ErrExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for ErrExpression

source§

fn clone(&self) -> ErrExpression

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 ErrExpression

source§

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

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

impl<'de> Deserialize<'de> for ErrExpression

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 Display for ErrExpression

source§

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

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

impl Node for ErrExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ErrExpression

source§

fn eq(&self, other: &ErrExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for ErrExpression

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 Eq for ErrExpression

source§

impl StructuralPartialEq for ErrExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html index e391291089..a5ac282c06 100644 --- a/leo_ast/expressions/struct.StructExpression.html +++ b/leo_ast/expressions/struct.StructExpression.html @@ -1,57 +1,57 @@ -StructExpression in leo_ast::expressions - Rust

Struct leo_ast::expressions::StructExpression

source ·
pub struct StructExpression {
+StructExpression in leo_ast::expressions - Rust
leo_ast::expressions

Struct StructExpression

source
pub struct StructExpression {
     pub name: Identifier,
-    pub members: Vec<StructVariableInitializer>,
+    pub members: Vec<StructVariableInitializer>,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

A struct initialization expression, e.g., Foo { bar: 42, baz }.

Fields§

§name: Identifier

The name of the structure type to initialize.

-
§members: Vec<StructVariableInitializer>

Initializer expressions for each of the fields in the struct.

+
§members: Vec<StructVariableInitializer>

Initializer expressions for each of the fields in the struct.

N.B. Any functions or member constants in the struct definition are excluded from this list.

§span: Span

A span from name to }.

§id: NodeID

The ID of the node.

-

Implementations§

source§

impl StructExpression

source

pub fn check_record(&self) -> bool

Returns true if the record has all required fields and visibility.

-
source

pub fn to_record_string(&self) -> String

Returns the struct as a record interface with visibility.

-

Trait Implementations§

source§

impl Clone for StructExpression

source§

fn clone(&self) -> StructExpression

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 StructExpression

source§

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

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

impl<'de> Deserialize<'de> for StructExpression

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 Display for StructExpression

source§

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

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

impl Node for StructExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for StructExpression

source§

fn eq(&self, other: &StructExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for StructExpression

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 Eq for StructExpression

source§

impl StructuralPartialEq for StructExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Implementations§

source§

impl StructExpression

source

pub fn check_record(&self) -> bool

Returns true if the record has all required fields and visibility.

+
source

pub fn to_record_string(&self) -> String

Returns the struct as a record interface with visibility.

+

Trait Implementations§

source§

impl Clone for StructExpression

source§

fn clone(&self) -> StructExpression

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 StructExpression

source§

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

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

impl<'de> Deserialize<'de> for StructExpression

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 Display for StructExpression

source§

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

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

impl Node for StructExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for StructExpression

source§

fn eq(&self, other: &StructExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for StructExpression

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 Eq for StructExpression

source§

impl StructuralPartialEq for StructExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html index c17fc1ba12..36e3c1790f 100644 --- a/leo_ast/expressions/struct.StructVariableInitializer.html +++ b/leo_ast/expressions/struct.StructVariableInitializer.html @@ -1,55 +1,55 @@ -StructVariableInitializer in leo_ast::expressions - Rust

Struct leo_ast::expressions::StructVariableInitializer

source ·
pub struct StructVariableInitializer {
+StructVariableInitializer in leo_ast::expressions - Rust
leo_ast::expressions

Struct StructVariableInitializer

source
pub struct StructVariableInitializer {
     pub identifier: Identifier,
-    pub expression: Option<Expression>,
+    pub expression: Option<Expression>,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

An initializer for a single field / variable of a struct initializer expression. That is, in Foo { bar: 42, baz }, this is either bar: 42, or baz.

Fields§

§identifier: Identifier

The name of the field / variable to be initialized.

-
§expression: Option<Expression>

The expression to initialize the field with. +

§expression: Option<Expression>

The expression to initialize the field with. When None, a binding, in scope, with the name will be used instead.

§span: Span

The span of the node.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for StructVariableInitializer

source§

fn clone(&self) -> StructVariableInitializer

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 StructVariableInitializer

source§

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

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

impl<'de> Deserialize<'de> for StructVariableInitializer

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 Display for StructVariableInitializer

source§

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

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

impl Node for StructVariableInitializer

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for StructVariableInitializer

source§

fn eq(&self, other: &StructVariableInitializer) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for StructVariableInitializer

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 Eq for StructVariableInitializer

source§

impl StructuralPartialEq for StructVariableInitializer

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for StructVariableInitializer

source§

fn clone(&self) -> StructVariableInitializer

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 StructVariableInitializer

source§

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

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

impl<'de> Deserialize<'de> for StructVariableInitializer

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 Display for StructVariableInitializer

source§

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

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

impl Node for StructVariableInitializer

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for StructVariableInitializer

source§

fn eq(&self, other: &StructVariableInitializer) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for StructVariableInitializer

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 Eq for StructVariableInitializer

source§

impl StructuralPartialEq for StructVariableInitializer

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/struct.TernaryExpression.html b/leo_ast/expressions/struct.TernaryExpression.html index 6eb94a280a..347e1333a0 100644 --- a/leo_ast/expressions/struct.TernaryExpression.html +++ b/leo_ast/expressions/struct.TernaryExpression.html @@ -1,55 +1,55 @@ -TernaryExpression in leo_ast::expressions - Rust

Struct leo_ast::expressions::TernaryExpression

source ·
pub struct TernaryExpression {
-    pub condition: Box<Expression>,
-    pub if_true: Box<Expression>,
-    pub if_false: Box<Expression>,
+TernaryExpression in leo_ast::expressions - Rust
leo_ast::expressions

Struct TernaryExpression

source
pub struct TernaryExpression {
+    pub condition: Box<Expression>,
+    pub if_true: Box<Expression>,
+    pub if_false: Box<Expression>,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

A ternary conditional expression, that is, condition ? if_true : if_false.

-

Fields§

§condition: Box<Expression>

The condition determining which branch to pick.

-
§if_true: Box<Expression>

The branch the expression evaluates to if condition evaluates to true.

-
§if_false: Box<Expression>

The branch the expression evaluates to if condition evaluates to false.

+

Fields§

§condition: Box<Expression>

The condition determining which branch to pick.

+
§if_true: Box<Expression>

The branch the expression evaluates to if condition evaluates to true.

+
§if_false: Box<Expression>

The branch the expression evaluates to if condition evaluates to false.

§span: Span

The span from condition to if_false.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for TernaryExpression

source§

fn clone(&self) -> TernaryExpression

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 TernaryExpression

source§

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

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

impl<'de> Deserialize<'de> for TernaryExpression

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 Display for TernaryExpression

source§

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

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

impl Node for TernaryExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for TernaryExpression

source§

fn eq(&self, other: &TernaryExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for TernaryExpression

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 Eq for TernaryExpression

source§

impl StructuralPartialEq for TernaryExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for TernaryExpression

source§

fn clone(&self) -> TernaryExpression

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 TernaryExpression

source§

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

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

impl<'de> Deserialize<'de> for TernaryExpression

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 Display for TernaryExpression

source§

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

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

impl Node for TernaryExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for TernaryExpression

source§

fn eq(&self, other: &TernaryExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for TernaryExpression

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 Eq for TernaryExpression

source§

impl StructuralPartialEq for TernaryExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/struct.TupleExpression.html b/leo_ast/expressions/struct.TupleExpression.html index 4022239a60..97c6eb0cfc 100644 --- a/leo_ast/expressions/struct.TupleExpression.html +++ b/leo_ast/expressions/struct.TupleExpression.html @@ -1,52 +1,52 @@ -TupleExpression in leo_ast::expressions - Rust

Struct leo_ast::expressions::TupleExpression

source ·
pub struct TupleExpression {
-    pub elements: Vec<Expression>,
+TupleExpression in leo_ast::expressions - Rust
leo_ast::expressions

Struct TupleExpression

source
pub struct TupleExpression {
+    pub elements: Vec<Expression>,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

A tuple expression, e.g., (foo, false, 42).

-

Fields§

§elements: Vec<Expression>

The elements of the tuple. +

Fields§

§elements: Vec<Expression>

The elements of the tuple. In the example above, it would be foo, false, and 42.

§span: Span

The span from ( to ).

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for TupleExpression

source§

fn clone(&self) -> TupleExpression

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 TupleExpression

source§

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

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

impl<'de> Deserialize<'de> for TupleExpression

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 Display for TupleExpression

source§

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

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

impl Node for TupleExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for TupleExpression

source§

fn eq(&self, other: &TupleExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for TupleExpression

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 Eq for TupleExpression

source§

impl StructuralPartialEq for TupleExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for TupleExpression

source§

fn clone(&self) -> TupleExpression

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 TupleExpression

source§

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

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

impl<'de> Deserialize<'de> for TupleExpression

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 Display for TupleExpression

source§

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

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

impl Node for TupleExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for TupleExpression

source§

fn eq(&self, other: &TupleExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for TupleExpression

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 Eq for TupleExpression

source§

impl StructuralPartialEq for TupleExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/struct.UnaryExpression.html b/leo_ast/expressions/struct.UnaryExpression.html index 9d0ee8714d..f0f9c05def 100644 --- a/leo_ast/expressions/struct.UnaryExpression.html +++ b/leo_ast/expressions/struct.UnaryExpression.html @@ -1,53 +1,53 @@ -UnaryExpression in leo_ast::expressions - Rust

Struct leo_ast::expressions::UnaryExpression

source ·
pub struct UnaryExpression {
-    pub receiver: Box<Expression>,
+UnaryExpression in leo_ast::expressions - Rust
leo_ast::expressions

Struct UnaryExpression

source
pub struct UnaryExpression {
+    pub receiver: Box<Expression>,
     pub op: UnaryOperation,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

An unary expression applying an operator to an inner expression.

-

Fields§

§receiver: Box<Expression>

The inner expression op is applied to.

+

Fields§

§receiver: Box<Expression>

The inner expression op is applied to.

§op: UnaryOperation

The unary operator to apply to inner.

§span: Span

The span covering op inner.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for UnaryExpression

source§

fn clone(&self) -> UnaryExpression

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 UnaryExpression

source§

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

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

impl<'de> Deserialize<'de> for UnaryExpression

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 Display for UnaryExpression

source§

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

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

impl Node for UnaryExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for UnaryExpression

source§

fn eq(&self, other: &UnaryExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for UnaryExpression

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 Eq for UnaryExpression

source§

impl StructuralPartialEq for UnaryExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for UnaryExpression

source§

fn clone(&self) -> UnaryExpression

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 UnaryExpression

source§

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

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

impl<'de> Deserialize<'de> for UnaryExpression

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 Display for UnaryExpression

source§

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

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

impl Node for UnaryExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for UnaryExpression

source§

fn eq(&self, other: &UnaryExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for UnaryExpression

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 Eq for UnaryExpression

source§

impl StructuralPartialEq for UnaryExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/struct.UnitExpression.html b/leo_ast/expressions/struct.UnitExpression.html index f177ff990e..c4fe33e003 100644 --- a/leo_ast/expressions/struct.UnitExpression.html +++ b/leo_ast/expressions/struct.UnitExpression.html @@ -1,49 +1,49 @@ -UnitExpression in leo_ast::expressions - Rust

Struct leo_ast::expressions::UnitExpression

source ·
pub struct UnitExpression {
+UnitExpression in leo_ast::expressions - Rust
leo_ast::expressions

Struct UnitExpression

source
pub struct UnitExpression {
     pub span: Span,
     pub id: NodeID,
 }
Expand description

Represents a unit expression.

Fields§

§span: Span

The span of the unit expression.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for UnitExpression

source§

fn clone(&self) -> UnitExpression

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 UnitExpression

source§

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

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

impl<'de> Deserialize<'de> for UnitExpression

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 Display for UnitExpression

source§

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

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

impl Node for UnitExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for UnitExpression

source§

fn eq(&self, other: &UnitExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for UnitExpression

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 Eq for UnitExpression

source§

impl StructuralPartialEq for UnitExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for UnitExpression

source§

fn clone(&self) -> UnitExpression

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 UnitExpression

source§

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

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

impl<'de> Deserialize<'de> for UnitExpression

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 Display for UnitExpression

source§

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

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

impl Node for UnitExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for UnitExpression

source§

fn eq(&self, other: &UnitExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for UnitExpression

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 Eq for UnitExpression

source§

impl StructuralPartialEq for UnitExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/struct_init/index.html b/leo_ast/expressions/struct_init/index.html index 56477640bd..7fd8c713b8 100644 --- a/leo_ast/expressions/struct_init/index.html +++ b/leo_ast/expressions/struct_init/index.html @@ -1,2 +1,2 @@ -leo_ast::expressions::struct_init - Rust

Module leo_ast::expressions::struct_init

source ·

Structs§

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/struct_init/struct.StructVariableInitializer.html b/leo_ast/expressions/struct_init/struct.StructVariableInitializer.html index b85cae04f6..a938c8a767 100644 --- a/leo_ast/expressions/struct_init/struct.StructVariableInitializer.html +++ b/leo_ast/expressions/struct_init/struct.StructVariableInitializer.html @@ -1,55 +1,55 @@ -StructVariableInitializer in leo_ast::expressions::struct_init - Rust
pub struct StructVariableInitializer {
+StructVariableInitializer in leo_ast::expressions::struct_init - Rust
leo_ast::expressions::struct_init

Struct StructVariableInitializer

source
pub struct StructVariableInitializer {
     pub identifier: Identifier,
-    pub expression: Option<Expression>,
+    pub expression: Option<Expression>,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

An initializer for a single field / variable of a struct initializer expression. That is, in Foo { bar: 42, baz }, this is either bar: 42, or baz.

Fields§

§identifier: Identifier

The name of the field / variable to be initialized.

-
§expression: Option<Expression>

The expression to initialize the field with. +

§expression: Option<Expression>

The expression to initialize the field with. When None, a binding, in scope, with the name will be used instead.

§span: Span

The span of the node.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for StructVariableInitializer

source§

fn clone(&self) -> StructVariableInitializer

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 StructVariableInitializer

source§

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

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

impl<'de> Deserialize<'de> for StructVariableInitializer

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 Display for StructVariableInitializer

source§

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

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

impl Node for StructVariableInitializer

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for StructVariableInitializer

source§

fn eq(&self, other: &StructVariableInitializer) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for StructVariableInitializer

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 Eq for StructVariableInitializer

source§

impl StructuralPartialEq for StructVariableInitializer

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for StructVariableInitializer

source§

fn clone(&self) -> StructVariableInitializer

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 StructVariableInitializer

source§

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

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

impl<'de> Deserialize<'de> for StructVariableInitializer

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 Display for StructVariableInitializer

source§

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

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

impl Node for StructVariableInitializer

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for StructVariableInitializer

source§

fn eq(&self, other: &StructVariableInitializer) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for StructVariableInitializer

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 Eq for StructVariableInitializer

source§

impl StructuralPartialEq for StructVariableInitializer

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/ternary/index.html b/leo_ast/expressions/ternary/index.html index 5169d610d4..aea52707b2 100644 --- a/leo_ast/expressions/ternary/index.html +++ b/leo_ast/expressions/ternary/index.html @@ -1 +1 @@ -leo_ast::expressions::ternary - Rust

Module leo_ast::expressions::ternary

source ·

Structs§

  • A ternary conditional expression, that is, condition ? if_true : if_false.
\ No newline at end of file +leo_ast::expressions::ternary - Rust
leo_ast::expressions

Module ternary

source

Structs§

  • A ternary conditional expression, that is, condition ? if_true : if_false.
\ No newline at end of file diff --git a/leo_ast/expressions/ternary/struct.TernaryExpression.html b/leo_ast/expressions/ternary/struct.TernaryExpression.html index 4ef09f6d34..8e02e1a98f 100644 --- a/leo_ast/expressions/ternary/struct.TernaryExpression.html +++ b/leo_ast/expressions/ternary/struct.TernaryExpression.html @@ -1,55 +1,55 @@ -TernaryExpression in leo_ast::expressions::ternary - Rust

Struct leo_ast::expressions::ternary::TernaryExpression

source ·
pub struct TernaryExpression {
-    pub condition: Box<Expression>,
-    pub if_true: Box<Expression>,
-    pub if_false: Box<Expression>,
+TernaryExpression in leo_ast::expressions::ternary - Rust
leo_ast::expressions::ternary

Struct TernaryExpression

source
pub struct TernaryExpression {
+    pub condition: Box<Expression>,
+    pub if_true: Box<Expression>,
+    pub if_false: Box<Expression>,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

A ternary conditional expression, that is, condition ? if_true : if_false.

-

Fields§

§condition: Box<Expression>

The condition determining which branch to pick.

-
§if_true: Box<Expression>

The branch the expression evaluates to if condition evaluates to true.

-
§if_false: Box<Expression>

The branch the expression evaluates to if condition evaluates to false.

+

Fields§

§condition: Box<Expression>

The condition determining which branch to pick.

+
§if_true: Box<Expression>

The branch the expression evaluates to if condition evaluates to true.

+
§if_false: Box<Expression>

The branch the expression evaluates to if condition evaluates to false.

§span: Span

The span from condition to if_false.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for TernaryExpression

source§

fn clone(&self) -> TernaryExpression

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 TernaryExpression

source§

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

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

impl<'de> Deserialize<'de> for TernaryExpression

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 Display for TernaryExpression

source§

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

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

impl Node for TernaryExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for TernaryExpression

source§

fn eq(&self, other: &TernaryExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for TernaryExpression

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 Eq for TernaryExpression

source§

impl StructuralPartialEq for TernaryExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for TernaryExpression

source§

fn clone(&self) -> TernaryExpression

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 TernaryExpression

source§

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

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

impl<'de> Deserialize<'de> for TernaryExpression

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 Display for TernaryExpression

source§

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

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

impl Node for TernaryExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for TernaryExpression

source§

fn eq(&self, other: &TernaryExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for TernaryExpression

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 Eq for TernaryExpression

source§

impl StructuralPartialEq for TernaryExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/trait.FromStrRadix.html b/leo_ast/expressions/trait.FromStrRadix.html index 134b77973b..a59d353329 100644 --- a/leo_ast/expressions/trait.FromStrRadix.html +++ b/leo_ast/expressions/trait.FromStrRadix.html @@ -1,6 +1,6 @@ -FromStrRadix in leo_ast::expressions - Rust

Trait leo_ast::expressions::FromStrRadix

source ·
pub trait FromStrRadix: Sized {
+FromStrRadix in leo_ast::expressions - Rust
leo_ast::expressions

Trait FromStrRadix

source
pub trait FromStrRadix: Sized {
     // Required method
-    fn from_str_by_radix(src: &str) -> Result<Self, ParseIntError>;
+    fn from_str_by_radix(src: &str) -> Result<Self, ParseIntError>;
 }
Expand description

This trait allows to parse integer literals of any type generically.

The literal may optionally start with a - and/or 0x or 0o or 0b`.

-

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromStrRadix for i8

source§

impl FromStrRadix for i16

source§

impl FromStrRadix for i32

source§

impl FromStrRadix for i64

source§

impl FromStrRadix for i128

source§

impl FromStrRadix for u8

source§

impl FromStrRadix for u16

source§

impl FromStrRadix for u32

source§

impl FromStrRadix for u64

source§

impl FromStrRadix for u128

Implementors§

\ No newline at end of file +

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromStrRadix for i8

source§

impl FromStrRadix for i16

source§

impl FromStrRadix for i32

source§

impl FromStrRadix for i64

source§

impl FromStrRadix for i128

source§

impl FromStrRadix for u8

source§

impl FromStrRadix for u16

source§

impl FromStrRadix for u32

source§

impl FromStrRadix for u64

source§

impl FromStrRadix for u128

Implementors§

\ No newline at end of file diff --git a/leo_ast/expressions/tuple/index.html b/leo_ast/expressions/tuple/index.html index 2cd60c1c27..f9355ee05b 100644 --- a/leo_ast/expressions/tuple/index.html +++ b/leo_ast/expressions/tuple/index.html @@ -1 +1 @@ -leo_ast::expressions::tuple - Rust

Module leo_ast::expressions::tuple

source ·

Structs§

\ No newline at end of file +leo_ast::expressions::tuple - Rust
leo_ast::expressions

Module tuple

source

Structs§

\ No newline at end of file diff --git a/leo_ast/expressions/tuple/struct.TupleExpression.html b/leo_ast/expressions/tuple/struct.TupleExpression.html index f85863b569..7abea888e4 100644 --- a/leo_ast/expressions/tuple/struct.TupleExpression.html +++ b/leo_ast/expressions/tuple/struct.TupleExpression.html @@ -1,52 +1,52 @@ -TupleExpression in leo_ast::expressions::tuple - Rust

Struct leo_ast::expressions::tuple::TupleExpression

source ·
pub struct TupleExpression {
-    pub elements: Vec<Expression>,
+TupleExpression in leo_ast::expressions::tuple - Rust
leo_ast::expressions::tuple

Struct TupleExpression

source
pub struct TupleExpression {
+    pub elements: Vec<Expression>,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

A tuple expression, e.g., (foo, false, 42).

-

Fields§

§elements: Vec<Expression>

The elements of the tuple. +

Fields§

§elements: Vec<Expression>

The elements of the tuple. In the example above, it would be foo, false, and 42.

§span: Span

The span from ( to ).

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for TupleExpression

source§

fn clone(&self) -> TupleExpression

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 TupleExpression

source§

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

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

impl<'de> Deserialize<'de> for TupleExpression

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 Display for TupleExpression

source§

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

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

impl Node for TupleExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for TupleExpression

source§

fn eq(&self, other: &TupleExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for TupleExpression

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 Eq for TupleExpression

source§

impl StructuralPartialEq for TupleExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for TupleExpression

source§

fn clone(&self) -> TupleExpression

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 TupleExpression

source§

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

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

impl<'de> Deserialize<'de> for TupleExpression

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 Display for TupleExpression

source§

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

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

impl Node for TupleExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for TupleExpression

source§

fn eq(&self, other: &TupleExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for TupleExpression

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 Eq for TupleExpression

source§

impl StructuralPartialEq for TupleExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/unary/enum.UnaryOperation.html b/leo_ast/expressions/unary/enum.UnaryOperation.html index 38f0a7a498..4e7edb4323 100644 --- a/leo_ast/expressions/unary/enum.UnaryOperation.html +++ b/leo_ast/expressions/unary/enum.UnaryOperation.html @@ -1,4 +1,4 @@ -UnaryOperation in leo_ast::expressions::unary - Rust

Enum leo_ast::expressions::unary::UnaryOperation

source ·
pub enum UnaryOperation {
+UnaryOperation in leo_ast::expressions::unary - Rust
leo_ast::expressions::unary

Enum UnaryOperation

source
pub enum UnaryOperation {
     Abs,
     AbsWrapped,
     Double,
@@ -20,46 +20,46 @@
 
§

SquareRoot

Square root operation, i.e. .sqrt().

§

ToXCoordinate

Converts a group element to its x-coordinate, i.e. .to_x_coordinate().

§

ToYCoordinate

Converts a group element to its y-coordinate, i.e. .to_y_coordinate().

-

Implementations§

source§

impl UnaryOperation

source

pub fn from_symbol(symbol: Symbol) -> Option<Self>

Returns a UnaryOperation from the given Symbol.

-
source

fn as_str(self) -> &'static str

Represents the opera.tor as a string.

-

Trait Implementations§

source§

impl Clone for UnaryOperation

source§

fn clone(&self) -> UnaryOperation

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 UnaryOperation

source§

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

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

impl<'de> Deserialize<'de> for UnaryOperation

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 UnaryOperation

source§

fn eq(&self, other: &UnaryOperation) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for UnaryOperation

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 Copy for UnaryOperation

source§

impl Eq for UnaryOperation

source§

impl StructuralPartialEq for UnaryOperation

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Implementations§

source§

impl UnaryOperation

source

pub fn from_symbol(symbol: Symbol) -> Option<Self>

Returns a UnaryOperation from the given Symbol.

+
source

fn as_str(self) -> &'static str

Represents the opera.tor as a string.

+

Trait Implementations§

source§

impl Clone for UnaryOperation

source§

fn clone(&self) -> UnaryOperation

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 UnaryOperation

source§

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

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

impl<'de> Deserialize<'de> for UnaryOperation

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 UnaryOperation

source§

fn eq(&self, other: &UnaryOperation) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for UnaryOperation

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 Copy for UnaryOperation

source§

impl Eq for UnaryOperation

source§

impl StructuralPartialEq for UnaryOperation

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/unary/index.html b/leo_ast/expressions/unary/index.html index 2f963f859c..00d8812ade 100644 --- a/leo_ast/expressions/unary/index.html +++ b/leo_ast/expressions/unary/index.html @@ -1 +1 @@ -leo_ast::expressions::unary - Rust

Module leo_ast::expressions::unary

source ·

Structs§

  • An unary expression applying an operator to an inner expression.

Enums§

\ No newline at end of file +leo_ast::expressions::unary - Rust
leo_ast::expressions

Module unary

source

Structs§

  • An unary expression applying an operator to an inner expression.

Enums§

\ No newline at end of file diff --git a/leo_ast/expressions/unary/struct.UnaryExpression.html b/leo_ast/expressions/unary/struct.UnaryExpression.html index b343d2e71b..0a8d9d9675 100644 --- a/leo_ast/expressions/unary/struct.UnaryExpression.html +++ b/leo_ast/expressions/unary/struct.UnaryExpression.html @@ -1,53 +1,53 @@ -UnaryExpression in leo_ast::expressions::unary - Rust

Struct leo_ast::expressions::unary::UnaryExpression

source ·
pub struct UnaryExpression {
-    pub receiver: Box<Expression>,
+UnaryExpression in leo_ast::expressions::unary - Rust
leo_ast::expressions::unary

Struct UnaryExpression

source
pub struct UnaryExpression {
+    pub receiver: Box<Expression>,
     pub op: UnaryOperation,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

An unary expression applying an operator to an inner expression.

-

Fields§

§receiver: Box<Expression>

The inner expression op is applied to.

+

Fields§

§receiver: Box<Expression>

The inner expression op is applied to.

§op: UnaryOperation

The unary operator to apply to inner.

§span: Span

The span covering op inner.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for UnaryExpression

source§

fn clone(&self) -> UnaryExpression

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 UnaryExpression

source§

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

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

impl<'de> Deserialize<'de> for UnaryExpression

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 Display for UnaryExpression

source§

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

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

impl Node for UnaryExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for UnaryExpression

source§

fn eq(&self, other: &UnaryExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for UnaryExpression

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 Eq for UnaryExpression

source§

impl StructuralPartialEq for UnaryExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for UnaryExpression

source§

fn clone(&self) -> UnaryExpression

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 UnaryExpression

source§

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

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

impl<'de> Deserialize<'de> for UnaryExpression

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 Display for UnaryExpression

source§

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

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

impl Node for UnaryExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for UnaryExpression

source§

fn eq(&self, other: &UnaryExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for UnaryExpression

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 Eq for UnaryExpression

source§

impl StructuralPartialEq for UnaryExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/expressions/unit/index.html b/leo_ast/expressions/unit/index.html index a7f3b046f5..8b1af8af9e 100644 --- a/leo_ast/expressions/unit/index.html +++ b/leo_ast/expressions/unit/index.html @@ -1 +1 @@ -leo_ast::expressions::unit - Rust

Module leo_ast::expressions::unit

source ·

Structs§

\ No newline at end of file +leo_ast::expressions::unit - Rust
leo_ast::expressions

Module unit

source

Structs§

\ No newline at end of file diff --git a/leo_ast/expressions/unit/struct.UnitExpression.html b/leo_ast/expressions/unit/struct.UnitExpression.html index 8b9d3ece65..7a0991bdc6 100644 --- a/leo_ast/expressions/unit/struct.UnitExpression.html +++ b/leo_ast/expressions/unit/struct.UnitExpression.html @@ -1,49 +1,49 @@ -UnitExpression in leo_ast::expressions::unit - Rust

Struct leo_ast::expressions::unit::UnitExpression

source ·
pub struct UnitExpression {
+UnitExpression in leo_ast::expressions::unit - Rust
leo_ast::expressions::unit

Struct UnitExpression

source
pub struct UnitExpression {
     pub span: Span,
     pub id: NodeID,
 }
Expand description

Represents a unit expression.

Fields§

§span: Span

The span of the unit expression.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for UnitExpression

source§

fn clone(&self) -> UnitExpression

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 UnitExpression

source§

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

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

impl<'de> Deserialize<'de> for UnitExpression

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 Display for UnitExpression

source§

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

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

impl Node for UnitExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for UnitExpression

source§

fn eq(&self, other: &UnitExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for UnitExpression

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 Eq for UnitExpression

source§

impl StructuralPartialEq for UnitExpression

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for UnitExpression

source§

fn clone(&self) -> UnitExpression

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 UnitExpression

source§

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

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

impl<'de> Deserialize<'de> for UnitExpression

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 Display for UnitExpression

source§

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

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

impl Node for UnitExpression

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for UnitExpression

source§

fn eq(&self, other: &UnitExpression) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for UnitExpression

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 Eq for UnitExpression

source§

impl StructuralPartialEq for UnitExpression

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/fn.normalize_json_value.html b/leo_ast/fn.normalize_json_value.html index e79fda94e5..6266be47cf 100644 --- a/leo_ast/fn.normalize_json_value.html +++ b/leo_ast/fn.normalize_json_value.html @@ -1,4 +1,4 @@ -normalize_json_value in leo_ast - Rust

Function leo_ast::normalize_json_value

source ·
pub fn normalize_json_value(value: Value) -> Value
Expand description

Helper function to normalize AST JSON into a form compatible with tgc. +normalize_json_value in leo_ast - Rust

leo_ast

Function normalize_json_value

source
pub fn normalize_json_value(value: Value) -> Value
Expand description

Helper function to normalize AST JSON into a form compatible with tgc. This function will traverse the original JSON value and produce a new one under the following rules:

    diff --git a/leo_ast/fn.remove_key_from_json.html b/leo_ast/fn.remove_key_from_json.html index c87caabfc5..174a6e2bd1 100644 --- a/leo_ast/fn.remove_key_from_json.html +++ b/leo_ast/fn.remove_key_from_json.html @@ -1,2 +1,2 @@ -remove_key_from_json in leo_ast - Rust

    Function leo_ast::remove_key_from_json

    source ·
    pub fn remove_key_from_json(value: Value, key: &str) -> Value
    Expand description

    Helper function to recursively filter keys from AST JSON

    +remove_key_from_json in leo_ast - Rust
    leo_ast

    Function remove_key_from_json

    source
    pub fn remove_key_from_json(value: Value, key: &str) -> Value
    Expand description

    Helper function to recursively filter keys from AST JSON

    \ No newline at end of file diff --git a/leo_ast/functions/annotation/index.html b/leo_ast/functions/annotation/index.html index 29237b0b5d..c9820d649d 100644 --- a/leo_ast/functions/annotation/index.html +++ b/leo_ast/functions/annotation/index.html @@ -1 +1 @@ -leo_ast::functions::annotation - Rust

    Module leo_ast::functions::annotation

    source ·

    Structs§

    \ No newline at end of file +leo_ast::functions::annotation - Rust
    leo_ast::functions

    Module annotation

    source

    Structs§

    \ No newline at end of file diff --git a/leo_ast/functions/annotation/struct.Annotation.html b/leo_ast/functions/annotation/struct.Annotation.html index 93ac64e651..c02efc4727 100644 --- a/leo_ast/functions/annotation/struct.Annotation.html +++ b/leo_ast/functions/annotation/struct.Annotation.html @@ -1,4 +1,4 @@ -Annotation in leo_ast::functions::annotation - Rust

    Struct leo_ast::functions::annotation::Annotation

    source ·
    pub struct Annotation {
    +Annotation in leo_ast::functions::annotation - Rust
    leo_ast::functions::annotation

    Struct Annotation

    source
    pub struct Annotation {
         pub identifier: Identifier,
         pub span: Span,
         pub id: NodeID,
    @@ -6,46 +6,46 @@
     

    Fields§

    §identifier: Identifier

    The name of the annotation.

    §span: Span

    A span locating where the annotation occurred in the source.

    §id: NodeID

    The ID of the node.

    -

    Trait Implementations§

    source§

    impl Clone for Annotation

    source§

    fn clone(&self) -> Annotation

    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 Annotation

    source§

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

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

    impl<'de> Deserialize<'de> for Annotation

    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 Display for Annotation

    source§

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

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

    impl Node for Annotation

    source§

    fn span(&self) -> Span

    Returns the span of the node.
    source§

    fn set_span(&mut self, span: Span)

    Sets the span of the node.
    source§

    fn id(&self) -> NodeID

    Returns the ID of the node.
    source§

    fn set_id(&mut self, id: NodeID)

    Sets the ID of the node.
    source§

    impl PartialEq for Annotation

    source§

    fn eq(&self, other: &Annotation) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    source§

    impl Serialize for Annotation

    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 Eq for Annotation

    source§

    impl StructuralPartialEq for Annotation

    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 - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<'de, T> DeserializeExt<'de> for T
    where +

    Trait Implementations§

    source§

    impl Clone for Annotation

    source§

    fn clone(&self) -> Annotation

    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 Annotation

    source§

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

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

    impl<'de> Deserialize<'de> for Annotation

    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 Display for Annotation

    source§

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

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

    impl Node for Annotation

    source§

    fn span(&self) -> Span

    Returns the span of the node.
    source§

    fn set_span(&mut self, span: Span)

    Sets the span of the node.
    source§

    fn id(&self) -> NodeID

    Returns the ID of the node.
    source§

    fn set_id(&mut self, id: NodeID)

    Sets the ID of the node.
    source§

    impl PartialEq for Annotation

    source§

    fn eq(&self, other: &Annotation) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl Serialize for Annotation

    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 Eq for Annotation

    source§

    impl StructuralPartialEq for Annotation

    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 + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<'de, T> DeserializeExt<'de> for T

    §

    fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
    where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
    where D: Deserializer<'de>,

    §

    impl<Q, K> Equivalent<K> for Q
    where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

    §

    fn equivalent(&self, key: &K) -> bool

    Checks if this value is equivalent to the given key. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

    §

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    §

    impl<Q, K> Equivalent<K> for Q
    where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

    §

    fn equivalent(&self, key: &K) -> bool

    Checks if this value is equivalent to the given key. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
    §

    fn equivalent(&self, key: &K) -> bool

    Checks if this value is equivalent to the given key. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

    §

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    §

    impl<Q, K> Equivalent<K> for Q
    where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

    §

    fn equivalent(&self, key: &K) -> bool

    Checks if this value is equivalent to the given key. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    source§

    impl<T> IntoEither for T

    source§

    fn into_either(self, into_left: bool) -> Either<Self, Self>

    Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

    +
    source§

    impl<T> IntoEither for T

    source§

    fn into_either(self, into_left: bool) -> Either<Self, Self>

    Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/functions/core_function/enum.CoreFunction.html b/leo_ast/functions/core_function/enum.CoreFunction.html index 3ee0a561eb..b74f1c48c9 100644 --- a/leo_ast/functions/core_function/enum.CoreFunction.html +++ b/leo_ast/functions/core_function/enum.CoreFunction.html @@ -1,4 +1,4 @@ -CoreFunction in leo_ast::functions::core_function - Rust

Enum leo_ast::functions::core_function::CoreFunction

source ·
pub enum CoreFunction {
+CoreFunction in leo_ast::functions::core_function - Rust
leo_ast::functions::core_function

Enum CoreFunction

source
pub enum CoreFunction {
 
Show 252 variants BHP256CommitToAddress, BHP256CommitToField, BHP256CommitToGroup, @@ -252,39 +252,39 @@ SignatureVerify, FutureAwait,
}
Expand description

A core instruction that maps directly to an AVM bytecode instruction.

-

Variants§

§

BHP256CommitToAddress

§

BHP256CommitToField

§

BHP256CommitToGroup

§

BHP256HashToAddress

§

BHP256HashToField

§

BHP256HashToGroup

§

BHP256HashToI8

§

BHP256HashToI16

§

BHP256HashToI32

§

BHP256HashToI64

§

BHP256HashToI128

§

BHP256HashToU8

§

BHP256HashToU16

§

BHP256HashToU32

§

BHP256HashToU64

§

BHP256HashToU128

§

BHP256HashToScalar

§

BHP512CommitToAddress

§

BHP512CommitToField

§

BHP512CommitToGroup

§

BHP512HashToAddress

§

BHP512HashToField

§

BHP512HashToGroup

§

BHP512HashToI8

§

BHP512HashToI16

§

BHP512HashToI32

§

BHP512HashToI64

§

BHP512HashToI128

§

BHP512HashToU8

§

BHP512HashToU16

§

BHP512HashToU32

§

BHP512HashToU64

§

BHP512HashToU128

§

BHP512HashToScalar

§

BHP768CommitToAddress

§

BHP768CommitToField

§

BHP768CommitToGroup

§

BHP768HashToAddress

§

BHP768HashToField

§

BHP768HashToGroup

§

BHP768HashToI8

§

BHP768HashToI16

§

BHP768HashToI32

§

BHP768HashToI64

§

BHP768HashToI128

§

BHP768HashToU8

§

BHP768HashToU16

§

BHP768HashToU32

§

BHP768HashToU64

§

BHP768HashToU128

§

BHP768HashToScalar

§

BHP1024CommitToAddress

§

BHP1024CommitToField

§

BHP1024CommitToGroup

§

BHP1024HashToAddress

§

BHP1024HashToField

§

BHP1024HashToGroup

§

BHP1024HashToI8

§

BHP1024HashToI16

§

BHP1024HashToI32

§

BHP1024HashToI64

§

BHP1024HashToI128

§

BHP1024HashToU8

§

BHP1024HashToU16

§

BHP1024HashToU32

§

BHP1024HashToU64

§

BHP1024HashToU128

§

BHP1024HashToScalar

§

ChaChaRandAddress

§

ChaChaRandBool

§

ChaChaRandField

§

ChaChaRandGroup

§

ChaChaRandI8

§

ChaChaRandI16

§

ChaChaRandI32

§

ChaChaRandI64

§

ChaChaRandI128

§

ChaChaRandU8

§

ChaChaRandU16

§

ChaChaRandU32

§

ChaChaRandU64

§

ChaChaRandU128

§

ChaChaRandScalar

§

Keccak256HashToAddress

§

Keccak256HashToField

§

Keccak256HashToGroup

§

Keccak256HashToI8

§

Keccak256HashToI16

§

Keccak256HashToI32

§

Keccak256HashToI64

§

Keccak256HashToI128

§

Keccak256HashToU8

§

Keccak256HashToU16

§

Keccak256HashToU32

§

Keccak256HashToU64

§

Keccak256HashToU128

§

Keccak256HashToScalar

§

Keccak384HashToAddress

§

Keccak384HashToField

§

Keccak384HashToGroup

§

Keccak384HashToI8

§

Keccak384HashToI16

§

Keccak384HashToI32

§

Keccak384HashToI64

§

Keccak384HashToI128

§

Keccak384HashToU8

§

Keccak384HashToU16

§

Keccak384HashToU32

§

Keccak384HashToU64

§

Keccak384HashToU128

§

Keccak384HashToScalar

§

Keccak512HashToAddress

§

Keccak512HashToField

§

Keccak512HashToGroup

§

Keccak512HashToI8

§

Keccak512HashToI16

§

Keccak512HashToI32

§

Keccak512HashToI64

§

Keccak512HashToI128

§

Keccak512HashToU8

§

Keccak512HashToU16

§

Keccak512HashToU32

§

Keccak512HashToU64

§

Keccak512HashToU128

§

Keccak512HashToScalar

§

Pedersen64CommitToAddress

§

Pedersen64CommitToField

§

Pedersen64CommitToGroup

§

Pedersen64HashToAddress

§

Pedersen64HashToField

§

Pedersen64HashToGroup

§

Pedersen64HashToI8

§

Pedersen64HashToI16

§

Pedersen64HashToI32

§

Pedersen64HashToI64

§

Pedersen64HashToI128

§

Pedersen64HashToU8

§

Pedersen64HashToU16

§

Pedersen64HashToU32

§

Pedersen64HashToU64

§

Pedersen64HashToU128

§

Pedersen64HashToScalar

§

Pedersen128CommitToAddress

§

Pedersen128CommitToField

§

Pedersen128CommitToGroup

§

Pedersen128HashToAddress

§

Pedersen128HashToField

§

Pedersen128HashToGroup

§

Pedersen128HashToI8

§

Pedersen128HashToI16

§

Pedersen128HashToI32

§

Pedersen128HashToI64

§

Pedersen128HashToI128

§

Pedersen128HashToU8

§

Pedersen128HashToU16

§

Pedersen128HashToU32

§

Pedersen128HashToU64

§

Pedersen128HashToU128

§

Pedersen128HashToScalar

§

Poseidon2HashToAddress

§

Poseidon2HashToField

§

Poseidon2HashToGroup

§

Poseidon2HashToI8

§

Poseidon2HashToI16

§

Poseidon2HashToI32

§

Poseidon2HashToI64

§

Poseidon2HashToI128

§

Poseidon2HashToU8

§

Poseidon2HashToU16

§

Poseidon2HashToU32

§

Poseidon2HashToU64

§

Poseidon2HashToU128

§

Poseidon2HashToScalar

§

Poseidon4HashToAddress

§

Poseidon4HashToField

§

Poseidon4HashToGroup

§

Poseidon4HashToI8

§

Poseidon4HashToI16

§

Poseidon4HashToI32

§

Poseidon4HashToI64

§

Poseidon4HashToI128

§

Poseidon4HashToU8

§

Poseidon4HashToU16

§

Poseidon4HashToU32

§

Poseidon4HashToU64

§

Poseidon4HashToU128

§

Poseidon4HashToScalar

§

Poseidon8HashToAddress

§

Poseidon8HashToField

§

Poseidon8HashToGroup

§

Poseidon8HashToI8

§

Poseidon8HashToI16

§

Poseidon8HashToI32

§

Poseidon8HashToI64

§

Poseidon8HashToI128

§

Poseidon8HashToU8

§

Poseidon8HashToU16

§

Poseidon8HashToU32

§

Poseidon8HashToU64

§

Poseidon8HashToU128

§

Poseidon8HashToScalar

§

SHA3_256HashToAddress

§

SHA3_256HashToField

§

SHA3_256HashToGroup

§

SHA3_256HashToI8

§

SHA3_256HashToI16

§

SHA3_256HashToI32

§

SHA3_256HashToI64

§

SHA3_256HashToI128

§

SHA3_256HashToU8

§

SHA3_256HashToU16

§

SHA3_256HashToU32

§

SHA3_256HashToU64

§

SHA3_256HashToU128

§

SHA3_256HashToScalar

§

SHA3_384HashToAddress

§

SHA3_384HashToField

§

SHA3_384HashToGroup

§

SHA3_384HashToI8

§

SHA3_384HashToI16

§

SHA3_384HashToI32

§

SHA3_384HashToI64

§

SHA3_384HashToI128

§

SHA3_384HashToU8

§

SHA3_384HashToU16

§

SHA3_384HashToU32

§

SHA3_384HashToU64

§

SHA3_384HashToU128

§

SHA3_384HashToScalar

§

SHA3_512HashToAddress

§

SHA3_512HashToField

§

SHA3_512HashToGroup

§

SHA3_512HashToI8

§

SHA3_512HashToI16

§

SHA3_512HashToI32

§

SHA3_512HashToI64

§

SHA3_512HashToI128

§

SHA3_512HashToU8

§

SHA3_512HashToU16

§

SHA3_512HashToU32

§

SHA3_512HashToU64

§

SHA3_512HashToU128

§

SHA3_512HashToScalar

§

MappingGet

§

MappingGetOrUse

§

MappingSet

§

MappingRemove

§

MappingContains

§

GroupToXCoordinate

§

GroupToYCoordinate

§

SignatureVerify

§

FutureAwait

Implementations§

source§

impl CoreFunction

source

pub fn from_symbols(module: Symbol, function: Symbol) -> Option<Self>

Returns a CoreFunction from the given module and method symbols.

-
source

pub fn num_args(&self) -> usize

Returns the number of arguments required by the instruction.

-
source

pub fn is_finalize_command(&self) -> bool

Returns whether or not this function is finalize command.

-

Trait Implementations§

source§

impl Clone for CoreFunction

source§

fn clone(&self) -> CoreFunction

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 PartialEq for CoreFunction

source§

fn eq(&self, other: &CoreFunction) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Eq for CoreFunction

source§

impl StructuralPartialEq for CoreFunction

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+

Variants§

§

BHP256CommitToAddress

§

BHP256CommitToField

§

BHP256CommitToGroup

§

BHP256HashToAddress

§

BHP256HashToField

§

BHP256HashToGroup

§

BHP256HashToI8

§

BHP256HashToI16

§

BHP256HashToI32

§

BHP256HashToI64

§

BHP256HashToI128

§

BHP256HashToU8

§

BHP256HashToU16

§

BHP256HashToU32

§

BHP256HashToU64

§

BHP256HashToU128

§

BHP256HashToScalar

§

BHP512CommitToAddress

§

BHP512CommitToField

§

BHP512CommitToGroup

§

BHP512HashToAddress

§

BHP512HashToField

§

BHP512HashToGroup

§

BHP512HashToI8

§

BHP512HashToI16

§

BHP512HashToI32

§

BHP512HashToI64

§

BHP512HashToI128

§

BHP512HashToU8

§

BHP512HashToU16

§

BHP512HashToU32

§

BHP512HashToU64

§

BHP512HashToU128

§

BHP512HashToScalar

§

BHP768CommitToAddress

§

BHP768CommitToField

§

BHP768CommitToGroup

§

BHP768HashToAddress

§

BHP768HashToField

§

BHP768HashToGroup

§

BHP768HashToI8

§

BHP768HashToI16

§

BHP768HashToI32

§

BHP768HashToI64

§

BHP768HashToI128

§

BHP768HashToU8

§

BHP768HashToU16

§

BHP768HashToU32

§

BHP768HashToU64

§

BHP768HashToU128

§

BHP768HashToScalar

§

BHP1024CommitToAddress

§

BHP1024CommitToField

§

BHP1024CommitToGroup

§

BHP1024HashToAddress

§

BHP1024HashToField

§

BHP1024HashToGroup

§

BHP1024HashToI8

§

BHP1024HashToI16

§

BHP1024HashToI32

§

BHP1024HashToI64

§

BHP1024HashToI128

§

BHP1024HashToU8

§

BHP1024HashToU16

§

BHP1024HashToU32

§

BHP1024HashToU64

§

BHP1024HashToU128

§

BHP1024HashToScalar

§

ChaChaRandAddress

§

ChaChaRandBool

§

ChaChaRandField

§

ChaChaRandGroup

§

ChaChaRandI8

§

ChaChaRandI16

§

ChaChaRandI32

§

ChaChaRandI64

§

ChaChaRandI128

§

ChaChaRandU8

§

ChaChaRandU16

§

ChaChaRandU32

§

ChaChaRandU64

§

ChaChaRandU128

§

ChaChaRandScalar

§

Keccak256HashToAddress

§

Keccak256HashToField

§

Keccak256HashToGroup

§

Keccak256HashToI8

§

Keccak256HashToI16

§

Keccak256HashToI32

§

Keccak256HashToI64

§

Keccak256HashToI128

§

Keccak256HashToU8

§

Keccak256HashToU16

§

Keccak256HashToU32

§

Keccak256HashToU64

§

Keccak256HashToU128

§

Keccak256HashToScalar

§

Keccak384HashToAddress

§

Keccak384HashToField

§

Keccak384HashToGroup

§

Keccak384HashToI8

§

Keccak384HashToI16

§

Keccak384HashToI32

§

Keccak384HashToI64

§

Keccak384HashToI128

§

Keccak384HashToU8

§

Keccak384HashToU16

§

Keccak384HashToU32

§

Keccak384HashToU64

§

Keccak384HashToU128

§

Keccak384HashToScalar

§

Keccak512HashToAddress

§

Keccak512HashToField

§

Keccak512HashToGroup

§

Keccak512HashToI8

§

Keccak512HashToI16

§

Keccak512HashToI32

§

Keccak512HashToI64

§

Keccak512HashToI128

§

Keccak512HashToU8

§

Keccak512HashToU16

§

Keccak512HashToU32

§

Keccak512HashToU64

§

Keccak512HashToU128

§

Keccak512HashToScalar

§

Pedersen64CommitToAddress

§

Pedersen64CommitToField

§

Pedersen64CommitToGroup

§

Pedersen64HashToAddress

§

Pedersen64HashToField

§

Pedersen64HashToGroup

§

Pedersen64HashToI8

§

Pedersen64HashToI16

§

Pedersen64HashToI32

§

Pedersen64HashToI64

§

Pedersen64HashToI128

§

Pedersen64HashToU8

§

Pedersen64HashToU16

§

Pedersen64HashToU32

§

Pedersen64HashToU64

§

Pedersen64HashToU128

§

Pedersen64HashToScalar

§

Pedersen128CommitToAddress

§

Pedersen128CommitToField

§

Pedersen128CommitToGroup

§

Pedersen128HashToAddress

§

Pedersen128HashToField

§

Pedersen128HashToGroup

§

Pedersen128HashToI8

§

Pedersen128HashToI16

§

Pedersen128HashToI32

§

Pedersen128HashToI64

§

Pedersen128HashToI128

§

Pedersen128HashToU8

§

Pedersen128HashToU16

§

Pedersen128HashToU32

§

Pedersen128HashToU64

§

Pedersen128HashToU128

§

Pedersen128HashToScalar

§

Poseidon2HashToAddress

§

Poseidon2HashToField

§

Poseidon2HashToGroup

§

Poseidon2HashToI8

§

Poseidon2HashToI16

§

Poseidon2HashToI32

§

Poseidon2HashToI64

§

Poseidon2HashToI128

§

Poseidon2HashToU8

§

Poseidon2HashToU16

§

Poseidon2HashToU32

§

Poseidon2HashToU64

§

Poseidon2HashToU128

§

Poseidon2HashToScalar

§

Poseidon4HashToAddress

§

Poseidon4HashToField

§

Poseidon4HashToGroup

§

Poseidon4HashToI8

§

Poseidon4HashToI16

§

Poseidon4HashToI32

§

Poseidon4HashToI64

§

Poseidon4HashToI128

§

Poseidon4HashToU8

§

Poseidon4HashToU16

§

Poseidon4HashToU32

§

Poseidon4HashToU64

§

Poseidon4HashToU128

§

Poseidon4HashToScalar

§

Poseidon8HashToAddress

§

Poseidon8HashToField

§

Poseidon8HashToGroup

§

Poseidon8HashToI8

§

Poseidon8HashToI16

§

Poseidon8HashToI32

§

Poseidon8HashToI64

§

Poseidon8HashToI128

§

Poseidon8HashToU8

§

Poseidon8HashToU16

§

Poseidon8HashToU32

§

Poseidon8HashToU64

§

Poseidon8HashToU128

§

Poseidon8HashToScalar

§

SHA3_256HashToAddress

§

SHA3_256HashToField

§

SHA3_256HashToGroup

§

SHA3_256HashToI8

§

SHA3_256HashToI16

§

SHA3_256HashToI32

§

SHA3_256HashToI64

§

SHA3_256HashToI128

§

SHA3_256HashToU8

§

SHA3_256HashToU16

§

SHA3_256HashToU32

§

SHA3_256HashToU64

§

SHA3_256HashToU128

§

SHA3_256HashToScalar

§

SHA3_384HashToAddress

§

SHA3_384HashToField

§

SHA3_384HashToGroup

§

SHA3_384HashToI8

§

SHA3_384HashToI16

§

SHA3_384HashToI32

§

SHA3_384HashToI64

§

SHA3_384HashToI128

§

SHA3_384HashToU8

§

SHA3_384HashToU16

§

SHA3_384HashToU32

§

SHA3_384HashToU64

§

SHA3_384HashToU128

§

SHA3_384HashToScalar

§

SHA3_512HashToAddress

§

SHA3_512HashToField

§

SHA3_512HashToGroup

§

SHA3_512HashToI8

§

SHA3_512HashToI16

§

SHA3_512HashToI32

§

SHA3_512HashToI64

§

SHA3_512HashToI128

§

SHA3_512HashToU8

§

SHA3_512HashToU16

§

SHA3_512HashToU32

§

SHA3_512HashToU64

§

SHA3_512HashToU128

§

SHA3_512HashToScalar

§

MappingGet

§

MappingGetOrUse

§

MappingSet

§

MappingRemove

§

MappingContains

§

GroupToXCoordinate

§

GroupToYCoordinate

§

SignatureVerify

§

FutureAwait

Implementations§

source§

impl CoreFunction

source

pub fn from_symbols(module: Symbol, function: Symbol) -> Option<Self>

Returns a CoreFunction from the given module and method symbols.

+
source

pub fn num_args(&self) -> usize

Returns the number of arguments required by the instruction.

+
source

pub fn is_finalize_command(&self) -> bool

Returns whether or not this function is finalize command.

+

Trait Implementations§

source§

impl Clone for CoreFunction

source§

fn clone(&self) -> CoreFunction

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 PartialEq for CoreFunction

source§

fn eq(&self, other: &CoreFunction) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Eq for CoreFunction

source§

impl StructuralPartialEq for CoreFunction

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_ast/functions/core_function/index.html b/leo_ast/functions/core_function/index.html index 3cd13ae690..10c1bff3ff 100644 --- a/leo_ast/functions/core_function/index.html +++ b/leo_ast/functions/core_function/index.html @@ -1 +1 @@ -leo_ast::functions::core_function - Rust

Module leo_ast::functions::core_function

source ·

Enums§

  • A core instruction that maps directly to an AVM bytecode instruction.
\ No newline at end of file +leo_ast::functions::core_function - Rust
leo_ast::functions

Module core_function

source

Enums§

  • A core instruction that maps directly to an AVM bytecode instruction.
\ No newline at end of file diff --git a/leo_ast/functions/index.html b/leo_ast/functions/index.html index 77747a1896..5288fec820 100644 --- a/leo_ast/functions/index.html +++ b/leo_ast/functions/index.html @@ -1 +1 @@ -leo_ast::functions - Rust

Module leo_ast::functions

source ·

Re-exports§

Modules§

Structs§

\ No newline at end of file +leo_ast::functions - Rust
leo_ast

Module functions

source

Re-exports§

Modules§

Structs§

\ No newline at end of file diff --git a/leo_ast/functions/input/index.html b/leo_ast/functions/input/index.html index 22302f90e5..8fd8d45a2e 100644 --- a/leo_ast/functions/input/index.html +++ b/leo_ast/functions/input/index.html @@ -1 +1 @@ -leo_ast::functions::input - Rust

Module leo_ast::functions::input

source ·

Structs§

  • A function parameter.
\ No newline at end of file +leo_ast::functions::input - Rust
leo_ast::functions

Module input

source

Structs§

  • A function parameter.
\ No newline at end of file diff --git a/leo_ast/functions/input/struct.Input.html b/leo_ast/functions/input/struct.Input.html index a7006b0cc6..cffcf89051 100644 --- a/leo_ast/functions/input/struct.Input.html +++ b/leo_ast/functions/input/struct.Input.html @@ -1,4 +1,4 @@ -Input in leo_ast::functions::input - Rust

Struct leo_ast::functions::input::Input

source ·
pub struct Input {
+Input in leo_ast::functions::input - Rust
leo_ast::functions::input

Struct Input

source
pub struct Input {
     pub identifier: Identifier,
     pub mode: Mode,
     pub type_: Type,
@@ -10,46 +10,46 @@
 
§type_: Type

What’s the parameter’s type?

§span: Span

The parameters span from any annotations to its type.

§id: NodeID

The ID of the node.

-

Implementations§

source§

impl Input

source

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

source

pub fn identifier(&self) -> &Identifier

source

pub fn mode(&self) -> Mode

source

pub fn type_(&self) -> &Type

Trait Implementations§

source§

impl Clone for Input

source§

fn clone(&self) -> Input

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 Input

source§

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

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

impl<'de> Deserialize<'de> for Input

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 Display for Input

source§

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

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

impl Node for Input

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Input

source§

fn eq(&self, other: &Input) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for Input

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 Eq for Input

source§

impl StructuralPartialEq for Input

Auto Trait Implementations§

§

impl Freeze for Input

§

impl RefUnwindSafe for Input

§

impl Send for Input

§

impl Sync for Input

§

impl Unpin for Input

§

impl UnwindSafe for Input

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Implementations§

source§

impl Input

source

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

source

pub fn identifier(&self) -> &Identifier

source

pub fn mode(&self) -> Mode

source

pub fn type_(&self) -> &Type

Trait Implementations§

source§

impl Clone for Input

source§

fn clone(&self) -> Input

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 Input

source§

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

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

impl<'de> Deserialize<'de> for Input

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 Display for Input

source§

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

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

impl Node for Input

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Input

source§

fn eq(&self, other: &Input) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for Input

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 Eq for Input

source§

impl StructuralPartialEq for Input

Auto Trait Implementations§

§

impl Freeze for Input

§

impl RefUnwindSafe for Input

§

impl Send for Input

§

impl Sync for Input

§

impl Unpin for Input

§

impl UnwindSafe for Input

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/functions/mode/enum.Mode.html b/leo_ast/functions/mode/enum.Mode.html index f1e6dc7241..2d33b75f19 100644 --- a/leo_ast/functions/mode/enum.Mode.html +++ b/leo_ast/functions/mode/enum.Mode.html @@ -1,49 +1,49 @@ -Mode in leo_ast::functions::mode - Rust

Enum leo_ast::functions::mode::Mode

source ·
pub enum Mode {
+Mode in leo_ast::functions::mode - Rust
leo_ast::functions::mode

Enum Mode

source
pub enum Mode {
     None,
     Constant,
     Private,
     Public,
 }
Expand description

The mode associated with a type.

-

Variants§

§

None

§

Constant

§

Private

§

Public

Trait Implementations§

source§

impl Clone for Mode

source§

fn clone(&self) -> Mode

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 Mode

source§

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

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

impl<'de> Deserialize<'de> for Mode

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 Display for Mode

source§

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

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

impl PartialEq for Mode

source§

fn eq(&self, other: &Mode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for Mode

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 Copy for Mode

source§

impl Eq for Mode

source§

impl StructuralPartialEq for Mode

Auto Trait Implementations§

§

impl Freeze for Mode

§

impl RefUnwindSafe for Mode

§

impl Send for Mode

§

impl Sync for Mode

§

impl Unpin for Mode

§

impl UnwindSafe for Mode

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Variants§

§

None

§

Constant

§

Private

§

Public

Trait Implementations§

source§

impl Clone for Mode

source§

fn clone(&self) -> Mode

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 Mode

source§

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

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

impl<'de> Deserialize<'de> for Mode

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 Display for Mode

source§

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

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

impl PartialEq for Mode

source§

fn eq(&self, other: &Mode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for Mode

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 Copy for Mode

source§

impl Eq for Mode

source§

impl StructuralPartialEq for Mode

Auto Trait Implementations§

§

impl Freeze for Mode

§

impl RefUnwindSafe for Mode

§

impl Send for Mode

§

impl Sync for Mode

§

impl Unpin for Mode

§

impl UnwindSafe for Mode

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/functions/mode/index.html b/leo_ast/functions/mode/index.html index d6d53850b9..8dfccf2c0b 100644 --- a/leo_ast/functions/mode/index.html +++ b/leo_ast/functions/mode/index.html @@ -1 +1 @@ -leo_ast::functions::mode - Rust

Module leo_ast::functions::mode

source ·

Enums§

  • The mode associated with a type.
\ No newline at end of file +leo_ast::functions::mode - Rust
leo_ast::functions

Module mode

source

Enums§

  • The mode associated with a type.
\ No newline at end of file diff --git a/leo_ast/functions/output/index.html b/leo_ast/functions/output/index.html index b3fc85c7ea..771fb35fc8 100644 --- a/leo_ast/functions/output/index.html +++ b/leo_ast/functions/output/index.html @@ -1 +1 @@ -leo_ast::functions::output - Rust

Module leo_ast::functions::output

source ·

Structs§

\ No newline at end of file +leo_ast::functions::output - Rust
leo_ast::functions

Module output

source

Structs§

\ No newline at end of file diff --git a/leo_ast/functions/output/struct.Output.html b/leo_ast/functions/output/struct.Output.html index 16fce5120c..84bd4dbc3d 100644 --- a/leo_ast/functions/output/struct.Output.html +++ b/leo_ast/functions/output/struct.Output.html @@ -1,4 +1,4 @@ -Output in leo_ast::functions::output - Rust

Struct leo_ast::functions::output::Output

source ·
pub struct Output {
+Output in leo_ast::functions::output - Rust
leo_ast::functions::output

Struct Output

source
pub struct Output {
     pub mode: Mode,
     pub type_: Type,
     pub span: Span,
@@ -8,46 +8,46 @@
 
§type_: Type

The type of the function output.

§span: Span

The parameters span from any annotations to its type.

§id: NodeID

The ID of the node.

-

Implementations§

source§

impl Output

source

pub fn type_(&self) -> &Type

source

pub fn mode(&self) -> Mode

Trait Implementations§

source§

impl Clone for Output

source§

fn clone(&self) -> Output

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 Output

source§

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

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

impl<'de> Deserialize<'de> for Output

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 Display for Output

source§

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

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

impl Node for Output

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Output

source§

fn eq(&self, other: &Output) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for Output

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 Eq for Output

source§

impl StructuralPartialEq for Output

Auto Trait Implementations§

§

impl Freeze for Output

§

impl RefUnwindSafe for Output

§

impl Send for Output

§

impl Sync for Output

§

impl Unpin for Output

§

impl UnwindSafe for Output

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Implementations§

source§

impl Output

source

pub fn type_(&self) -> &Type

source

pub fn mode(&self) -> Mode

Trait Implementations§

source§

impl Clone for Output

source§

fn clone(&self) -> Output

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 Output

source§

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

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

impl<'de> Deserialize<'de> for Output

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 Display for Output

source§

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

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

impl Node for Output

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Output

source§

fn eq(&self, other: &Output) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for Output

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 Eq for Output

source§

impl StructuralPartialEq for Output

Auto Trait Implementations§

§

impl Freeze for Output

§

impl RefUnwindSafe for Output

§

impl Send for Output

§

impl Sync for Output

§

impl Unpin for Output

§

impl UnwindSafe for Output

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/functions/struct.Function.html b/leo_ast/functions/struct.Function.html index 50721b9151..a59bec9d92 100644 --- a/leo_ast/functions/struct.Function.html +++ b/leo_ast/functions/struct.Function.html @@ -1,75 +1,75 @@ -Function in leo_ast::functions - Rust

Struct leo_ast::functions::Function

source ·
pub struct Function {
-    pub annotations: Vec<Annotation>,
+Function in leo_ast::functions - Rust
leo_ast::functions

Struct Function

source
pub struct Function {
+    pub annotations: Vec<Annotation>,
     pub variant: Variant,
     pub identifier: Identifier,
-    pub input: Vec<Input>,
-    pub output: Vec<Output>,
+    pub input: Vec<Input>,
+    pub output: Vec<Output>,
     pub output_type: Type,
     pub block: Block,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

A function definition.

-

Fields§

§annotations: Vec<Annotation>

Annotations on the function.

+

Fields§

§annotations: Vec<Annotation>

Annotations on the function.

§variant: Variant

Is this function a transition, inlined, or a regular function?.

§identifier: Identifier

The function identifier, e.g., foo in function foo(...) { ... }.

-
§input: Vec<Input>

The function’s input parameters.

-
§output: Vec<Output>

The function’s output declarations.

+
§input: Vec<Input>

The function’s input parameters.

+
§output: Vec<Output>

The function’s output declarations.

§output_type: Type

The function’s output type.

§block: Block

The body of the function.

§span: Span

The entire span of the function definition.

§id: NodeID

The ID of the node.

Implementations§

source§

impl Function

source

pub fn new( - annotations: Vec<Annotation>, + annotations: Vec<Annotation>, variant: Variant, identifier: Identifier, - input: Vec<Input>, - output: Vec<Output>, + input: Vec<Input>, + output: Vec<Output>, block: Block, span: Span, id: NodeID, ) -> Self

Initialize a new function.

source

pub fn name(&self) -> Symbol

Returns function name.

-
source

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

Private formatting method used for optimizing fmt::Debug and fmt::Display implementations.

-

Trait Implementations§

source§

impl Clone for Function

source§

fn clone(&self) -> Function

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 Function

source§

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

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

impl<'de> Deserialize<'de> for Function

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 Display for Function

source§

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

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

impl From<Function> for FunctionStub

source§

fn from(function: Function) -> Self

Converts to this type from the input type.
source§

impl From<FunctionStub> for Function

source§

fn from(function: FunctionStub) -> Self

Converts to this type from the input type.
source§

impl Node for Function

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Function

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for Function

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 Eq for Function

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

source

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

Private formatting method used for optimizing fmt::Debug and fmt::Display implementations.

+

Trait Implementations§

source§

impl Clone for Function

source§

fn clone(&self) -> Function

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 Function

source§

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

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

impl<'de> Deserialize<'de> for Function

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 Display for Function

source§

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

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

impl From<Function> for FunctionStub

source§

fn from(function: Function) -> Self

Converts to this type from the input type.
source§

impl From<FunctionStub> for Function

source§

fn from(function: FunctionStub) -> Self

Converts to this type from the input type.
source§

impl Node for Function

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Function

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for Function

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 Eq for Function

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/functions/variant/enum.Variant.html b/leo_ast/functions/variant/enum.Variant.html index 903e90908e..1dc6c21576 100644 --- a/leo_ast/functions/variant/enum.Variant.html +++ b/leo_ast/functions/variant/enum.Variant.html @@ -1,4 +1,4 @@ -Variant in leo_ast::functions::variant - Rust

Enum leo_ast::functions::variant::Variant

source ·
pub enum Variant {
+Variant in leo_ast::functions::variant - Rust
leo_ast::functions::variant

Enum Variant

source
pub enum Variant {
     Inline,
     Function,
     Transition,
@@ -10,48 +10,48 @@
 A regular function is not permitted to manipulate records.
 An asynchronous function contains on-chain operations.
 An inline function is directly copied at the call site.

-

Variants§

§

Inline

§

Function

§

Transition

§

AsyncTransition

§

AsyncFunction

Implementations§

source§

impl Variant

source

pub fn is_async(self) -> bool

Returns true if the variant is async.

-
source

pub fn is_transition(self) -> bool

Returns true if the variant is a transition.

-
source

pub fn is_function(self) -> bool

Returns true if the variant is a function.

-
source

pub fn is_async_function(self) -> bool

Returns true if the variant is an async function.

-

Trait Implementations§

source§

impl Clone for Variant

source§

fn clone(&self) -> Variant

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 Variant

source§

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

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

impl<'de> Deserialize<'de> for Variant

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 Variant

source§

fn eq(&self, other: &Variant) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for Variant

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 Copy for Variant

source§

impl Eq for Variant

source§

impl StructuralPartialEq for Variant

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Variants§

§

Inline

§

Function

§

Transition

§

AsyncTransition

§

AsyncFunction

Implementations§

source§

impl Variant

source

pub fn is_async(self) -> bool

Returns true if the variant is async.

+
source

pub fn is_transition(self) -> bool

Returns true if the variant is a transition.

+
source

pub fn is_function(self) -> bool

Returns true if the variant is a function.

+
source

pub fn is_async_function(self) -> bool

Returns true if the variant is an async function.

+

Trait Implementations§

source§

impl Clone for Variant

source§

fn clone(&self) -> Variant

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 Variant

source§

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

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

impl<'de> Deserialize<'de> for Variant

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 Variant

source§

fn eq(&self, other: &Variant) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for Variant

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 Copy for Variant

source§

impl Eq for Variant

source§

impl StructuralPartialEq for Variant

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/functions/variant/index.html b/leo_ast/functions/variant/index.html index 4b13e33c4b..019ca6dbbc 100644 --- a/leo_ast/functions/variant/index.html +++ b/leo_ast/functions/variant/index.html @@ -1,4 +1,4 @@ -leo_ast::functions::variant - Rust

Module leo_ast::functions::variant

source ·

Enums§

\ No newline at end of file diff --git a/leo_ast/groups/group_coordinate/index.html b/leo_ast/groups/group_coordinate/index.html index fae891f261..987e8a9246 100644 --- a/leo_ast/groups/group_coordinate/index.html +++ b/leo_ast/groups/group_coordinate/index.html @@ -1 +1 @@ -leo_ast::groups::group_coordinate - Rust

Module leo_ast::groups::group_coordinate

source ·

Enums§

\ No newline at end of file +leo_ast::groups::group_coordinate - Rust
leo_ast::groups

Module group_coordinate

source

Enums§

\ No newline at end of file diff --git a/leo_ast/groups/group_literal/enum.GroupLiteral.html b/leo_ast/groups/group_literal/enum.GroupLiteral.html index c6e84e8a8b..287f9baeb6 100644 --- a/leo_ast/groups/group_literal/enum.GroupLiteral.html +++ b/leo_ast/groups/group_literal/enum.GroupLiteral.html @@ -1,49 +1,49 @@ -GroupLiteral in leo_ast::groups::group_literal - Rust

Enum leo_ast::groups::group_literal::GroupLiteral

source ·
pub enum GroupLiteral {
-    Single(String, Span, NodeID),
+GroupLiteral in leo_ast::groups::group_literal - Rust
leo_ast::groups::group_literal

Enum GroupLiteral

source
pub enum GroupLiteral {
+    Single(String, Span, NodeID),
     Tuple(GroupTuple),
 }
Expand description

A group literal.

-

Variants§

§

Single(String, Span, NodeID)

Product group literal, e.g., 42group.

+

Variants§

§

Single(String, Span, NodeID)

Product group literal, e.g., 42group.

§

Tuple(GroupTuple)

An affine group literal with (x, y) coordinates.

-

Implementations§

source§

impl GroupLiteral

source

pub fn set_span(&mut self, new_span: Span)

source

pub fn span(&self) -> &Span

source

pub fn id(&self) -> &NodeID

source

pub fn set_id(&mut self, id: NodeID)

Trait Implementations§

source§

impl Clone for GroupLiteral

source§

fn clone(&self) -> GroupLiteral

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 GroupLiteral

source§

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

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

impl<'de> Deserialize<'de> for GroupLiteral

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 Display for GroupLiteral

source§

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

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

impl PartialEq for GroupLiteral

source§

fn eq(&self, other: &GroupLiteral) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for GroupLiteral

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 Eq for GroupLiteral

source§

impl StructuralPartialEq for GroupLiteral

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Implementations§

source§

impl GroupLiteral

source

pub fn set_span(&mut self, new_span: Span)

source

pub fn span(&self) -> &Span

source

pub fn id(&self) -> &NodeID

source

pub fn set_id(&mut self, id: NodeID)

Trait Implementations§

source§

impl Clone for GroupLiteral

source§

fn clone(&self) -> GroupLiteral

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 GroupLiteral

source§

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

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

impl<'de> Deserialize<'de> for GroupLiteral

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 Display for GroupLiteral

source§

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

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

impl PartialEq for GroupLiteral

source§

fn eq(&self, other: &GroupLiteral) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for GroupLiteral

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 Eq for GroupLiteral

source§

impl StructuralPartialEq for GroupLiteral

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/groups/group_literal/index.html b/leo_ast/groups/group_literal/index.html index cac08ffece..477a8646d0 100644 --- a/leo_ast/groups/group_literal/index.html +++ b/leo_ast/groups/group_literal/index.html @@ -1 +1 @@ -leo_ast::groups::group_literal - Rust

Module leo_ast::groups::group_literal

source ·

Structs§

  • An affine group literal, e.g., (42, 24)group.

Enums§

\ No newline at end of file +leo_ast::groups::group_literal - Rust
leo_ast::groups

Module group_literal

source

Structs§

  • An affine group literal, e.g., (42, 24)group.

Enums§

\ No newline at end of file diff --git a/leo_ast/groups/group_literal/struct.GroupTuple.html b/leo_ast/groups/group_literal/struct.GroupTuple.html index be80702971..28ee027e30 100644 --- a/leo_ast/groups/group_literal/struct.GroupTuple.html +++ b/leo_ast/groups/group_literal/struct.GroupTuple.html @@ -1,4 +1,4 @@ -GroupTuple in leo_ast::groups::group_literal - Rust

Struct leo_ast::groups::group_literal::GroupTuple

source ·
pub struct GroupTuple {
+GroupTuple in leo_ast::groups::group_literal - Rust
leo_ast::groups::group_literal

Struct GroupTuple

source
pub struct GroupTuple {
     pub x: GroupCoordinate,
     pub y: GroupCoordinate,
     pub span: Span,
@@ -8,44 +8,44 @@
 
§y: GroupCoordinate

The right component of the type, e.g., 24 in the case above.

§span: Span

The span from ( to ).

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for GroupTuple

source§

fn clone(&self) -> GroupTuple

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 GroupTuple

source§

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

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

impl<'de> Deserialize<'de> for GroupTuple

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 GroupTuple

source§

fn eq(&self, other: &GroupTuple) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for GroupTuple

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 Eq for GroupTuple

source§

impl StructuralPartialEq for GroupTuple

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for GroupTuple

source§

fn clone(&self) -> GroupTuple

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 GroupTuple

source§

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

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

impl<'de> Deserialize<'de> for GroupTuple

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 GroupTuple

source§

fn eq(&self, other: &GroupTuple) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for GroupTuple

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 Eq for GroupTuple

source§

impl StructuralPartialEq for GroupTuple

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/groups/index.html b/leo_ast/groups/index.html index efafb780af..1bb4abd8ba 100644 --- a/leo_ast/groups/index.html +++ b/leo_ast/groups/index.html @@ -1 +1 @@ -leo_ast::groups - Rust

Module leo_ast::groups

source ·

Re-exports§

Modules§

\ No newline at end of file +leo_ast::groups - Rust
leo_ast

Module groups

source

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_ast/index.html b/leo_ast/index.html index cd7019df2e..f279b72cfb 100644 --- a/leo_ast/index.html +++ b/leo_ast/index.html @@ -1,4 +1,4 @@ -leo_ast - Rust

Crate leo_ast

source ·
Expand description

The abstract syntax tree (ast) for a Leo program.

+leo_ast - Rust

Crate leo_ast

source
Expand description

The abstract syntax tree (ast) for a Leo program.

This module contains the Ast type, a wrapper around the Program type. The Ast type is intended to be parsed and modified by different passes of the Leo compiler. The Leo compiler can generate a set of R1CS constraints from any Ast.

diff --git a/leo_ast/macro.simple_node_impl.html b/leo_ast/macro.simple_node_impl.html index 4d162d8901..ee11101192 100644 --- a/leo_ast/macro.simple_node_impl.html +++ b/leo_ast/macro.simple_node_impl.html @@ -1,3 +1,3 @@ -simple_node_impl in leo_ast - Rust

Macro leo_ast::simple_node_impl

source ·
macro_rules! simple_node_impl {
+simple_node_impl in leo_ast - Rust
leo_ast

Macro simple_node_impl

source
macro_rules! simple_node_impl {
     ($ty:ty) => { ... };
 }
\ No newline at end of file diff --git a/leo_ast/mapping/index.html b/leo_ast/mapping/index.html index c3d612e41b..785febb034 100644 --- a/leo_ast/mapping/index.html +++ b/leo_ast/mapping/index.html @@ -1 +1 @@ -leo_ast::mapping - Rust

Module leo_ast::mapping

source ·

Structs§

  • A mapping declaration, e.g mapping balances: address => u128.
\ No newline at end of file +leo_ast::mapping - Rust
leo_ast

Module mapping

source

Structs§

  • A mapping declaration, e.g mapping balances: address => u128.
\ No newline at end of file diff --git a/leo_ast/mapping/struct.Mapping.html b/leo_ast/mapping/struct.Mapping.html index 777fdbdc5a..5e059c3924 100644 --- a/leo_ast/mapping/struct.Mapping.html +++ b/leo_ast/mapping/struct.Mapping.html @@ -1,4 +1,4 @@ -Mapping in leo_ast::mapping - Rust

Struct leo_ast::mapping::Mapping

source ·
pub struct Mapping {
+Mapping in leo_ast::mapping - Rust
leo_ast::mapping

Struct Mapping

source
pub struct Mapping {
     pub identifier: Identifier,
     pub key_type: Type,
     pub value_type: Type,
@@ -10,46 +10,46 @@
 
§value_type: Type

The type of the value.

§span: Span

The entire span of the mapping declaration.

§id: NodeID

The ID of the node.

-

Implementations§

source§

impl Mapping

source

pub fn from_snarkvm<N: Network>(mapping: &MappingCore<N>) -> Self

Trait Implementations§

source§

impl Clone for Mapping

source§

fn clone(&self) -> Mapping

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 Mapping

source§

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

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

impl<'de> Deserialize<'de> for Mapping

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 Display for Mapping

source§

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

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

impl Node for Mapping

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Mapping

source§

fn eq(&self, other: &Mapping) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for Mapping

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 Eq for Mapping

source§

impl StructuralPartialEq for Mapping

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Implementations§

source§

impl Mapping

source

pub fn from_snarkvm<N: Network>(mapping: &MappingCore<N>) -> Self

Trait Implementations§

source§

impl Clone for Mapping

source§

fn clone(&self) -> Mapping

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 Mapping

source§

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

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

impl<'de> Deserialize<'de> for Mapping

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 Display for Mapping

source§

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

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

impl Node for Mapping

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Mapping

source§

fn eq(&self, other: &Mapping) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for Mapping

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 Eq for Mapping

source§

impl StructuralPartialEq for Mapping

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/passes/consumer/index.html b/leo_ast/passes/consumer/index.html index 5d298dcf6e..4af2edb42a 100644 --- a/leo_ast/passes/consumer/index.html +++ b/leo_ast/passes/consumer/index.html @@ -1,3 +1,3 @@ -leo_ast::passes::consumer - Rust

Module leo_ast::passes::consumer

source ·
Expand description

This module contains a Consumer trait for the AST. +leo_ast::passes::consumer - Rust

leo_ast::passes

Module consumer

source
Expand description

This module contains a Consumer trait for the AST. Consumers are used to completely transform the AST without any restrictions on the output.

Traits§

\ No newline at end of file diff --git a/leo_ast/passes/consumer/trait.ExpressionConsumer.html b/leo_ast/passes/consumer/trait.ExpressionConsumer.html index 1340617f34..913074cd46 100644 --- a/leo_ast/passes/consumer/trait.ExpressionConsumer.html +++ b/leo_ast/passes/consumer/trait.ExpressionConsumer.html @@ -1,4 +1,4 @@ -ExpressionConsumer in leo_ast::passes::consumer - Rust

Trait leo_ast::passes::consumer::ExpressionConsumer

source ·
pub trait ExpressionConsumer {
+ExpressionConsumer in leo_ast::passes::consumer - Rust
leo_ast::passes::consumer

Trait ExpressionConsumer

source
pub trait ExpressionConsumer {
     type Output;
 
 
Show 15 methods // Required methods diff --git a/leo_ast/passes/consumer/trait.FunctionConsumer.html b/leo_ast/passes/consumer/trait.FunctionConsumer.html index 452dec1720..b009fa1f15 100644 --- a/leo_ast/passes/consumer/trait.FunctionConsumer.html +++ b/leo_ast/passes/consumer/trait.FunctionConsumer.html @@ -1,4 +1,4 @@ -FunctionConsumer in leo_ast::passes::consumer - Rust

Trait leo_ast::passes::consumer::FunctionConsumer

source ·
pub trait FunctionConsumer {
+FunctionConsumer in leo_ast::passes::consumer - Rust
leo_ast::passes::consumer

Trait FunctionConsumer

source
pub trait FunctionConsumer {
     type Output;
 
     // Required method
diff --git a/leo_ast/passes/consumer/trait.ImportConsumer.html b/leo_ast/passes/consumer/trait.ImportConsumer.html
index eb63624300..5a39d238fe 100644
--- a/leo_ast/passes/consumer/trait.ImportConsumer.html
+++ b/leo_ast/passes/consumer/trait.ImportConsumer.html
@@ -1,4 +1,4 @@
-ImportConsumer in leo_ast::passes::consumer - Rust

Trait leo_ast::passes::consumer::ImportConsumer

source ·
pub trait ImportConsumer {
+ImportConsumer in leo_ast::passes::consumer - Rust
leo_ast::passes::consumer

Trait ImportConsumer

source
pub trait ImportConsumer {
     type Output;
 
     // Required method
diff --git a/leo_ast/passes/consumer/trait.MappingConsumer.html b/leo_ast/passes/consumer/trait.MappingConsumer.html
index e070b2e62c..6cbf9a7851 100644
--- a/leo_ast/passes/consumer/trait.MappingConsumer.html
+++ b/leo_ast/passes/consumer/trait.MappingConsumer.html
@@ -1,4 +1,4 @@
-MappingConsumer in leo_ast::passes::consumer - Rust

Trait leo_ast::passes::consumer::MappingConsumer

source ·
pub trait MappingConsumer {
+MappingConsumer in leo_ast::passes::consumer - Rust
leo_ast::passes::consumer

Trait MappingConsumer

source
pub trait MappingConsumer {
     type Output;
 
     // Required method
diff --git a/leo_ast/passes/consumer/trait.ProgramConsumer.html b/leo_ast/passes/consumer/trait.ProgramConsumer.html
index 5373774c74..908d22d877 100644
--- a/leo_ast/passes/consumer/trait.ProgramConsumer.html
+++ b/leo_ast/passes/consumer/trait.ProgramConsumer.html
@@ -1,4 +1,4 @@
-ProgramConsumer in leo_ast::passes::consumer - Rust

Trait leo_ast::passes::consumer::ProgramConsumer

source ·
pub trait ProgramConsumer {
+ProgramConsumer in leo_ast::passes::consumer - Rust
leo_ast::passes::consumer

Trait ProgramConsumer

source
pub trait ProgramConsumer {
     type Output;
 
     // Required method
diff --git a/leo_ast/passes/consumer/trait.ProgramScopeConsumer.html b/leo_ast/passes/consumer/trait.ProgramScopeConsumer.html
index 510497b82d..f1cb9dc7b1 100644
--- a/leo_ast/passes/consumer/trait.ProgramScopeConsumer.html
+++ b/leo_ast/passes/consumer/trait.ProgramScopeConsumer.html
@@ -1,4 +1,4 @@
-ProgramScopeConsumer in leo_ast::passes::consumer - Rust

Trait leo_ast::passes::consumer::ProgramScopeConsumer

source ·
pub trait ProgramScopeConsumer {
+ProgramScopeConsumer in leo_ast::passes::consumer - Rust
leo_ast::passes::consumer

Trait ProgramScopeConsumer

source
pub trait ProgramScopeConsumer {
     type Output;
 
     // Required method
diff --git a/leo_ast/passes/consumer/trait.StatementConsumer.html b/leo_ast/passes/consumer/trait.StatementConsumer.html
index 0de086888d..abf1366c29 100644
--- a/leo_ast/passes/consumer/trait.StatementConsumer.html
+++ b/leo_ast/passes/consumer/trait.StatementConsumer.html
@@ -1,4 +1,4 @@
-StatementConsumer in leo_ast::passes::consumer - Rust

Trait leo_ast::passes::consumer::StatementConsumer

source ·
pub trait StatementConsumer {
+StatementConsumer in leo_ast::passes::consumer - Rust
leo_ast::passes::consumer

Trait StatementConsumer

source
pub trait StatementConsumer {
     type Output;
 
     // Required methods
diff --git a/leo_ast/passes/consumer/trait.StructConsumer.html b/leo_ast/passes/consumer/trait.StructConsumer.html
index a6848d23a2..5c48adf623 100644
--- a/leo_ast/passes/consumer/trait.StructConsumer.html
+++ b/leo_ast/passes/consumer/trait.StructConsumer.html
@@ -1,4 +1,4 @@
-StructConsumer in leo_ast::passes::consumer - Rust

Trait leo_ast::passes::consumer::StructConsumer

source ·
pub trait StructConsumer {
+StructConsumer in leo_ast::passes::consumer - Rust
leo_ast::passes::consumer

Trait StructConsumer

source
pub trait StructConsumer {
     type Output;
 
     // Required method
diff --git a/leo_ast/passes/index.html b/leo_ast/passes/index.html
index a8c68734d0..e613dce0fc 100644
--- a/leo_ast/passes/index.html
+++ b/leo_ast/passes/index.html
@@ -1,4 +1,4 @@
-leo_ast::passes - Rust

Module leo_ast::passes

source ·
Expand description

This module contains both a Reducer and Visitor design pattern. +leo_ast::passes - Rust

leo_ast

Module passes

source
Expand description

This module contains both a Reducer and Visitor design pattern. These both iterate over the AST.

Re-exports§

Modules§

§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/program/program_scope/index.html b/leo_ast/program/program_scope/index.html index cd03488be6..114416ae31 100644 --- a/leo_ast/program/program_scope/index.html +++ b/leo_ast/program/program_scope/index.html @@ -1,2 +1,2 @@ -leo_ast::program::program_scope - Rust

Module leo_ast::program::program_scope

source ·
Expand description

A Leo program scope consists of struct, function, and mapping definitions.

+leo_ast::program::program_scope - Rust
leo_ast::program

Module program_scope

source
Expand description

A Leo program scope consists of struct, function, and mapping definitions.

Structs§

  • Stores the Leo program scope abstract syntax tree.
\ No newline at end of file diff --git a/leo_ast/program/program_scope/struct.ProgramScope.html b/leo_ast/program/program_scope/struct.ProgramScope.html index 18c0b367a9..9eca7f23f5 100644 --- a/leo_ast/program/program_scope/struct.ProgramScope.html +++ b/leo_ast/program/program_scope/struct.ProgramScope.html @@ -1,57 +1,57 @@ -ProgramScope in leo_ast::program::program_scope - Rust

Struct leo_ast::program::program_scope::ProgramScope

source ·
pub struct ProgramScope {
+ProgramScope in leo_ast::program::program_scope - Rust
leo_ast::program::program_scope

Struct ProgramScope

source
pub struct ProgramScope {
     pub program_id: ProgramId,
-    pub consts: Vec<(Symbol, ConstDeclaration)>,
-    pub structs: Vec<(Symbol, Composite)>,
-    pub mappings: Vec<(Symbol, Mapping)>,
-    pub functions: Vec<(Symbol, Function)>,
+    pub consts: Vec<(Symbol, ConstDeclaration)>,
+    pub structs: Vec<(Symbol, Composite)>,
+    pub mappings: Vec<(Symbol, Mapping)>,
+    pub functions: Vec<(Symbol, Function)>,
     pub span: Span,
 }
Expand description

Stores the Leo program scope abstract syntax tree.

Fields§

§program_id: ProgramId

The program id of the program scope.

-
§consts: Vec<(Symbol, ConstDeclaration)>

A vector of const definitions

-
§structs: Vec<(Symbol, Composite)>

A vector of struct definitions.

-
§mappings: Vec<(Symbol, Mapping)>

A vector of mapping definitions.

-
§functions: Vec<(Symbol, Function)>

A vector of function definitions.

+
§consts: Vec<(Symbol, ConstDeclaration)>

A vector of const definitions

+
§structs: Vec<(Symbol, Composite)>

A vector of struct definitions.

+
§mappings: Vec<(Symbol, Mapping)>

A vector of mapping definitions.

+
§functions: Vec<(Symbol, Function)>

A vector of function definitions.

§span: Span

The span associated with the program scope.

-

Trait Implementations§

source§

impl Clone for ProgramScope

source§

fn clone(&self) -> ProgramScope

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 ProgramScope

source§

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

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

impl<'de> Deserialize<'de> for ProgramScope

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 Display for ProgramScope

source§

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

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

impl From<Stub> for ProgramScope

source§

fn from(stub: Stub) -> Self

Converts to this type from the input type.
source§

impl PartialEq for ProgramScope

source§

fn eq(&self, other: &ProgramScope) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for ProgramScope

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 Eq for ProgramScope

source§

impl StructuralPartialEq for ProgramScope

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for ProgramScope

source§

fn clone(&self) -> ProgramScope

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 ProgramScope

source§

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

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

impl<'de> Deserialize<'de> for ProgramScope

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 Display for ProgramScope

source§

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

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

impl From<Stub> for ProgramScope

source§

fn from(stub: Stub) -> Self

Converts to this type from the input type.
source§

impl PartialEq for ProgramScope

source§

fn eq(&self, other: &ProgramScope) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for ProgramScope

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 Eq for ProgramScope

source§

impl StructuralPartialEq for ProgramScope

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/program/struct.Program.html b/leo_ast/program/struct.Program.html index dcc7523843..8dae41f4a1 100644 --- a/leo_ast/program/struct.Program.html +++ b/leo_ast/program/struct.Program.html @@ -1,4 +1,4 @@ -Program in leo_ast::program - Rust

Struct leo_ast::program::Program

source ·
pub struct Program {
+Program in leo_ast::program - Rust
leo_ast::program

Struct Program

source
pub struct Program {
     pub imports: IndexMap<Symbol, (Program, Span)>,
     pub stubs: IndexMap<Symbol, Stub>,
     pub program_scopes: IndexMap<Symbol, ProgramScope>,
@@ -6,47 +6,47 @@
 

Fields§

§imports: IndexMap<Symbol, (Program, Span)>

A map from import names to import definitions.

§stubs: IndexMap<Symbol, Stub>

A map from program stub names to program stub scopes.

§program_scopes: IndexMap<Symbol, ProgramScope>

A map from program names to program scopes.

-

Trait Implementations§

source§

impl AsRef<Program> for Ast

source§

fn as_ref(&self) -> &Program

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for Program

source§

fn clone(&self) -> Program

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 Program

source§

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

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

impl Default for Program

source§

fn default() -> Self

Constructs an empty program node.

-
source§

impl<'de> Deserialize<'de> for Program

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 Display for Program

source§

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

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

impl PartialEq for Program

source§

fn eq(&self, other: &Program) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for Program

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 Eq for Program

source§

impl StructuralPartialEq for Program

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl AsRef<Program> for Ast

source§

fn as_ref(&self) -> &Program

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for Program

source§

fn clone(&self) -> Program

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 Program

source§

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

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

impl Default for Program

source§

fn default() -> Self

Constructs an empty program node.

+
source§

impl<'de> Deserialize<'de> for Program

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 Display for Program

source§

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

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

impl PartialEq for Program

source§

fn eq(&self, other: &Program) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for Program

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 Eq for Program

source§

impl StructuralPartialEq for Program

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/statement/assert/enum.AssertVariant.html b/leo_ast/statement/assert/enum.AssertVariant.html index e81d186f16..badb2bb3a5 100644 --- a/leo_ast/statement/assert/enum.AssertVariant.html +++ b/leo_ast/statement/assert/enum.AssertVariant.html @@ -1,4 +1,4 @@ -AssertVariant in leo_ast::statement::assert - Rust

Enum leo_ast::statement::assert::AssertVariant

source ·
pub enum AssertVariant {
+AssertVariant in leo_ast::statement::assert - Rust
leo_ast::statement::assert

Enum AssertVariant

source
pub enum AssertVariant {
     Assert(Expression),
     AssertEq(Expression, Expression),
     AssertNeq(Expression, Expression),
@@ -6,44 +6,44 @@
 

Variants§

§

Assert(Expression)

A assert(expr) variant, asserting that the expression evaluates to true.

§

AssertEq(Expression, Expression)

A assert_eq(expr1, expr2) variant, asserting that the operands are equal.

§

AssertNeq(Expression, Expression)

A assert_neq(expr1, expr2) variant, asserting that the operands are not equal.

-

Trait Implementations§

source§

impl Clone for AssertVariant

source§

fn clone(&self) -> AssertVariant

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 AssertVariant

source§

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

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

impl<'de> Deserialize<'de> for AssertVariant

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 AssertVariant

source§

fn eq(&self, other: &AssertVariant) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for AssertVariant

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 Eq for AssertVariant

source§

impl StructuralPartialEq for AssertVariant

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for AssertVariant

source§

fn clone(&self) -> AssertVariant

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 AssertVariant

source§

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

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

impl<'de> Deserialize<'de> for AssertVariant

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 AssertVariant

source§

fn eq(&self, other: &AssertVariant) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for AssertVariant

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 Eq for AssertVariant

source§

impl StructuralPartialEq for AssertVariant

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/statement/assert/index.html b/leo_ast/statement/assert/index.html index 4910a0a2e5..cc1ffa4b3f 100644 --- a/leo_ast/statement/assert/index.html +++ b/leo_ast/statement/assert/index.html @@ -1 +1 @@ -leo_ast::statement::assert - Rust

Module leo_ast::statement::assert

source ·

Structs§

  • An assert statement, assert(<expr>), assert_eq(<expr>) or assert_neq(<expr>).

Enums§

\ No newline at end of file +leo_ast::statement::assert - Rust
leo_ast::statement

Module assert

source

Structs§

  • An assert statement, assert(<expr>), assert_eq(<expr>) or assert_neq(<expr>).

Enums§

\ No newline at end of file diff --git a/leo_ast/statement/assert/struct.AssertStatement.html b/leo_ast/statement/assert/struct.AssertStatement.html index ef03869641..6a849a3352 100644 --- a/leo_ast/statement/assert/struct.AssertStatement.html +++ b/leo_ast/statement/assert/struct.AssertStatement.html @@ -1,4 +1,4 @@ -AssertStatement in leo_ast::statement::assert - Rust

Struct leo_ast::statement::assert::AssertStatement

source ·
pub struct AssertStatement {
+AssertStatement in leo_ast::statement::assert - Rust
leo_ast::statement::assert

Struct AssertStatement

source
pub struct AssertStatement {
     pub variant: AssertVariant,
     pub span: Span,
     pub id: NodeID,
@@ -6,46 +6,46 @@
 

Fields§

§variant: AssertVariant

The variant of the assert statement.

§span: Span

The span, excluding the semicolon.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for AssertStatement

source§

fn clone(&self) -> AssertStatement

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 AssertStatement

source§

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

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

impl<'de> Deserialize<'de> for AssertStatement

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 Display for AssertStatement

source§

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

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

impl Node for AssertStatement

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for AssertStatement

source§

fn eq(&self, other: &AssertStatement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for AssertStatement

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 Eq for AssertStatement

source§

impl StructuralPartialEq for AssertStatement

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for AssertStatement

source§

fn clone(&self) -> AssertStatement

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 AssertStatement

source§

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

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

impl<'de> Deserialize<'de> for AssertStatement

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 Display for AssertStatement

source§

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

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

impl Node for AssertStatement

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for AssertStatement

source§

fn eq(&self, other: &AssertStatement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for AssertStatement

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 Eq for AssertStatement

source§

impl StructuralPartialEq for AssertStatement

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/statement/assign/index.html b/leo_ast/statement/assign/index.html index fc537b43e5..36879b61b3 100644 --- a/leo_ast/statement/assign/index.html +++ b/leo_ast/statement/assign/index.html @@ -1,2 +1,2 @@ -leo_ast::statement::assign - Rust

Module leo_ast::statement::assign

source ·

Structs§

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/statement/block/index.html b/leo_ast/statement/block/index.html index f12b7c80e7..6d22cd5eff 100644 --- a/leo_ast/statement/block/index.html +++ b/leo_ast/statement/block/index.html @@ -1 +1 @@ -leo_ast::statement::block - Rust

Module leo_ast::statement::block

source ·

Structs§

  • A block { [stmt]* } consisting of a list of statements to execute in order.
\ No newline at end of file +leo_ast::statement::block - Rust
leo_ast::statement

Module block

source

Structs§

  • A block { [stmt]* } consisting of a list of statements to execute in order.
\ No newline at end of file diff --git a/leo_ast/statement/block/struct.Block.html b/leo_ast/statement/block/struct.Block.html index b31c47e264..4ebe794d67 100644 --- a/leo_ast/statement/block/struct.Block.html +++ b/leo_ast/statement/block/struct.Block.html @@ -1,51 +1,51 @@ -Block in leo_ast::statement::block - Rust

Struct leo_ast::statement::block::Block

source ·
pub struct Block {
-    pub statements: Vec<Statement>,
+Block in leo_ast::statement::block - Rust
leo_ast::statement::block

Struct Block

source
pub struct Block {
+    pub statements: Vec<Statement>,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

A block { [stmt]* } consisting of a list of statements to execute in order.

-

Fields§

§statements: Vec<Statement>

The list of statements to execute.

+

Fields§

§statements: Vec<Statement>

The list of statements to execute.

§span: Span

The span from { to }.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for Block

source§

fn clone(&self) -> Block

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 Block

source§

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

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

impl Default for Block

source§

fn default() -> Block

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Block

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 Display for Block

source§

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

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

impl Node for Block

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Block

source§

fn eq(&self, other: &Block) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for Block

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 Eq for Block

source§

impl StructuralPartialEq for Block

Auto Trait Implementations§

§

impl Freeze for Block

§

impl !RefUnwindSafe for Block

§

impl Send for Block

§

impl !Sync for Block

§

impl Unpin for Block

§

impl UnwindSafe for Block

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for Block

source§

fn clone(&self) -> Block

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 Block

source§

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

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

impl Default for Block

source§

fn default() -> Block

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Block

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 Display for Block

source§

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

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

impl Node for Block

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Block

source§

fn eq(&self, other: &Block) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for Block

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 Eq for Block

source§

impl StructuralPartialEq for Block

Auto Trait Implementations§

§

impl Freeze for Block

§

impl !RefUnwindSafe for Block

§

impl Send for Block

§

impl !Sync for Block

§

impl Unpin for Block

§

impl UnwindSafe for Block

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/statement/conditional/index.html b/leo_ast/statement/conditional/index.html index 61cb601e33..59fa760f7b 100644 --- a/leo_ast/statement/conditional/index.html +++ b/leo_ast/statement/conditional/index.html @@ -1 +1 @@ -leo_ast::statement::conditional - Rust

Module leo_ast::statement::conditional

source ·

Structs§

\ No newline at end of file +leo_ast::statement::conditional - Rust
leo_ast::statement

Module conditional

source

Structs§

\ No newline at end of file diff --git a/leo_ast/statement/conditional/struct.ConditionalStatement.html b/leo_ast/statement/conditional/struct.ConditionalStatement.html index 8392a316c1..4e6a88d572 100644 --- a/leo_ast/statement/conditional/struct.ConditionalStatement.html +++ b/leo_ast/statement/conditional/struct.ConditionalStatement.html @@ -1,55 +1,55 @@ -ConditionalStatement in leo_ast::statement::conditional - Rust

Struct leo_ast::statement::conditional::ConditionalStatement

source ·
pub struct ConditionalStatement {
+ConditionalStatement in leo_ast::statement::conditional - Rust
leo_ast::statement::conditional

Struct ConditionalStatement

source
pub struct ConditionalStatement {
     pub condition: Expression,
     pub then: Block,
-    pub otherwise: Option<Box<Statement>>,
+    pub otherwise: Option<Box<Statement>>,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

An if condition block (else next)? statement.

Fields§

§condition: Expression

The bool-typed condition deciding what to evaluate.

§then: Block

The block to evaluate in case condition yields true.

-
§otherwise: Option<Box<Statement>>

The statement, if any, to evaluate when condition yields false.

+
§otherwise: Option<Box<Statement>>

The statement, if any, to evaluate when condition yields false.

§span: Span

The span from if to next or to block.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for ConditionalStatement

source§

fn clone(&self) -> ConditionalStatement

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 ConditionalStatement

source§

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

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

impl<'de> Deserialize<'de> for ConditionalStatement

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 Display for ConditionalStatement

source§

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

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

impl Node for ConditionalStatement

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ConditionalStatement

source§

fn eq(&self, other: &ConditionalStatement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for ConditionalStatement

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 Eq for ConditionalStatement

source§

impl StructuralPartialEq for ConditionalStatement

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for ConditionalStatement

source§

fn clone(&self) -> ConditionalStatement

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 ConditionalStatement

source§

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

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

impl<'de> Deserialize<'de> for ConditionalStatement

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 Display for ConditionalStatement

source§

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

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

impl Node for ConditionalStatement

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ConditionalStatement

source§

fn eq(&self, other: &ConditionalStatement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for ConditionalStatement

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 Eq for ConditionalStatement

source§

impl StructuralPartialEq for ConditionalStatement

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/statement/console/console_function/enum.ConsoleFunction.html b/leo_ast/statement/console/console_function/enum.ConsoleFunction.html index d160f81493..6eb211fd6d 100644 --- a/leo_ast/statement/console/console_function/enum.ConsoleFunction.html +++ b/leo_ast/statement/console/console_function/enum.ConsoleFunction.html @@ -1,4 +1,4 @@ -ConsoleFunction in leo_ast::statement::console::console_function - Rust
pub enum ConsoleFunction {
+ConsoleFunction in leo_ast::statement::console::console_function - Rust
leo_ast::statement::console::console_function

Enum ConsoleFunction

source
pub enum ConsoleFunction {
     Assert(Expression),
     AssertEq(Expression, Expression),
     AssertNeq(Expression, Expression),
@@ -6,46 +6,46 @@
 

Variants§

§

Assert(Expression)

A console.assert(expr) call to invoke, asserting that the expression evaluates to true.

§

AssertEq(Expression, Expression)

A console.assert_eq(expr1, expr2) call to invoke, asserting that the operands are equal.

§

AssertNeq(Expression, Expression)

A console.assert_neq(expr1, expr2) call to invoke, asserting that the operands are not equal.

-

Trait Implementations§

source§

impl Clone for ConsoleFunction

source§

fn clone(&self) -> ConsoleFunction

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 ConsoleFunction

source§

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

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

impl<'de> Deserialize<'de> for ConsoleFunction

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 Display for ConsoleFunction

source§

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

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

impl PartialEq for ConsoleFunction

source§

fn eq(&self, other: &ConsoleFunction) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for ConsoleFunction

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 Eq for ConsoleFunction

source§

impl StructuralPartialEq for ConsoleFunction

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for ConsoleFunction

source§

fn clone(&self) -> ConsoleFunction

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 ConsoleFunction

source§

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

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

impl<'de> Deserialize<'de> for ConsoleFunction

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 Display for ConsoleFunction

source§

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

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

impl PartialEq for ConsoleFunction

source§

fn eq(&self, other: &ConsoleFunction) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for ConsoleFunction

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 Eq for ConsoleFunction

source§

impl StructuralPartialEq for ConsoleFunction

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/statement/console/console_function/index.html b/leo_ast/statement/console/console_function/index.html index 6449c4e36e..6c478ad012 100644 --- a/leo_ast/statement/console/console_function/index.html +++ b/leo_ast/statement/console/console_function/index.html @@ -1 +1 @@ -leo_ast::statement::console::console_function - Rust

Module leo_ast::statement::console::console_function

source ·

Enums§

\ No newline at end of file +leo_ast::statement::console::console_function - Rust
leo_ast::statement::console

Module console_function

source

Enums§

\ No newline at end of file diff --git a/leo_ast/statement/console/console_statement/index.html b/leo_ast/statement/console/console_statement/index.html index ce4d4a5991..3d5a719372 100644 --- a/leo_ast/statement/console/console_statement/index.html +++ b/leo_ast/statement/console/console_statement/index.html @@ -1 +1 @@ -leo_ast::statement::console::console_statement - Rust

Module leo_ast::statement::console::console_statement

source ·

Structs§

\ No newline at end of file +leo_ast::statement::console::console_statement - Rust
leo_ast::statement::console

Module console_statement

source

Structs§

\ No newline at end of file diff --git a/leo_ast/statement/console/console_statement/struct.ConsoleStatement.html b/leo_ast/statement/console/console_statement/struct.ConsoleStatement.html index 8da700533a..a06a8d1dc3 100644 --- a/leo_ast/statement/console/console_statement/struct.ConsoleStatement.html +++ b/leo_ast/statement/console/console_statement/struct.ConsoleStatement.html @@ -1,4 +1,4 @@ -ConsoleStatement in leo_ast::statement::console::console_statement - Rust
pub struct ConsoleStatement {
+ConsoleStatement in leo_ast::statement::console::console_statement - Rust
leo_ast::statement::console::console_statement

Struct ConsoleStatement

source
pub struct ConsoleStatement {
     pub function: ConsoleFunction,
     pub span: Span,
     pub id: NodeID,
@@ -6,46 +6,46 @@
 

Fields§

§function: ConsoleFunction

The logging function to run.

§span: Span

The span excluding the semicolon.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for ConsoleStatement

source§

fn clone(&self) -> ConsoleStatement

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 ConsoleStatement

source§

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

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

impl<'de> Deserialize<'de> for ConsoleStatement

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 Display for ConsoleStatement

source§

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

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

impl Node for ConsoleStatement

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ConsoleStatement

source§

fn eq(&self, other: &ConsoleStatement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for ConsoleStatement

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 Eq for ConsoleStatement

source§

impl StructuralPartialEq for ConsoleStatement

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for ConsoleStatement

source§

fn clone(&self) -> ConsoleStatement

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 ConsoleStatement

source§

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

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

impl<'de> Deserialize<'de> for ConsoleStatement

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 Display for ConsoleStatement

source§

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

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

impl Node for ConsoleStatement

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ConsoleStatement

source§

fn eq(&self, other: &ConsoleStatement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for ConsoleStatement

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 Eq for ConsoleStatement

source§

impl StructuralPartialEq for ConsoleStatement

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/statement/console/index.html b/leo_ast/statement/console/index.html index 7d4378a16d..8c10cdcf6d 100644 --- a/leo_ast/statement/console/index.html +++ b/leo_ast/statement/console/index.html @@ -1 +1 @@ -leo_ast::statement::console - Rust

Module leo_ast::statement::console

source ·

Re-exports§

Modules§

\ No newline at end of file +leo_ast::statement::console - Rust
leo_ast::statement

Module console

source

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_ast/statement/const_/index.html b/leo_ast/statement/const_/index.html index 30bd380e5a..a56d14ac51 100644 --- a/leo_ast/statement/const_/index.html +++ b/leo_ast/statement/const_/index.html @@ -1 +1 @@ -leo_ast::statement::const_ - Rust

Module leo_ast::statement::const_

source ·

Structs§

\ No newline at end of file +leo_ast::statement::const_ - Rust
leo_ast::statement

Module const_

source

Structs§

\ No newline at end of file diff --git a/leo_ast/statement/const_/struct.ConstDeclaration.html b/leo_ast/statement/const_/struct.ConstDeclaration.html index 2e884ce171..bb9c2381a7 100644 --- a/leo_ast/statement/const_/struct.ConstDeclaration.html +++ b/leo_ast/statement/const_/struct.ConstDeclaration.html @@ -1,4 +1,4 @@ -ConstDeclaration in leo_ast::statement::const_ - Rust

Struct leo_ast::statement::const_::ConstDeclaration

source ·
pub struct ConstDeclaration {
+ConstDeclaration in leo_ast::statement::const_ - Rust
leo_ast::statement::const_

Struct ConstDeclaration

source
pub struct ConstDeclaration {
     pub place: Identifier,
     pub type_: Type,
     pub value: Expression,
@@ -10,46 +10,46 @@
 
§value: Expression

An initializer value for the binding.

§span: Span

The span excluding the semicolon.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for ConstDeclaration

source§

fn clone(&self) -> ConstDeclaration

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 ConstDeclaration

source§

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

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

impl<'de> Deserialize<'de> for ConstDeclaration

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 Display for ConstDeclaration

source§

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

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

impl Node for ConstDeclaration

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ConstDeclaration

source§

fn eq(&self, other: &ConstDeclaration) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for ConstDeclaration

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 Eq for ConstDeclaration

source§

impl StructuralPartialEq for ConstDeclaration

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for ConstDeclaration

source§

fn clone(&self) -> ConstDeclaration

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 ConstDeclaration

source§

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

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

impl<'de> Deserialize<'de> for ConstDeclaration

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 Display for ConstDeclaration

source§

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

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

impl Node for ConstDeclaration

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ConstDeclaration

source§

fn eq(&self, other: &ConstDeclaration) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for ConstDeclaration

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 Eq for ConstDeclaration

source§

impl StructuralPartialEq for ConstDeclaration

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/statement/definition/declaration_type/enum.DeclarationType.html b/leo_ast/statement/definition/declaration_type/enum.DeclarationType.html index 3dcf98531d..0ee3ebc86f 100644 --- a/leo_ast/statement/definition/declaration_type/enum.DeclarationType.html +++ b/leo_ast/statement/definition/declaration_type/enum.DeclarationType.html @@ -1,49 +1,49 @@ -DeclarationType in leo_ast::statement::definition::declaration_type - Rust
pub enum DeclarationType {
+DeclarationType in leo_ast::statement::definition::declaration_type - Rust
leo_ast::statement::definition::declaration_type

Enum DeclarationType

source
pub enum DeclarationType {
     Const,
     Let,
 }
Expand description

The sort of bindings to introduce, either let or const.

Variants§

§

Const

This is a const binding.

§

Let

This is a let binding.

-

Trait Implementations§

source§

impl Clone for DeclarationType

source§

fn clone(&self) -> DeclarationType

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 DeclarationType

source§

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

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

impl<'de> Deserialize<'de> for DeclarationType

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 Display for DeclarationType

source§

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

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

impl PartialEq for DeclarationType

source§

fn eq(&self, other: &DeclarationType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for DeclarationType

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 Copy for DeclarationType

source§

impl Eq for DeclarationType

source§

impl StructuralPartialEq for DeclarationType

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for DeclarationType

source§

fn clone(&self) -> DeclarationType

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 DeclarationType

source§

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

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

impl<'de> Deserialize<'de> for DeclarationType

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 Display for DeclarationType

source§

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

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

impl PartialEq for DeclarationType

source§

fn eq(&self, other: &DeclarationType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for DeclarationType

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 Copy for DeclarationType

source§

impl Eq for DeclarationType

source§

impl StructuralPartialEq for DeclarationType

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/statement/definition/declaration_type/index.html b/leo_ast/statement/definition/declaration_type/index.html index bad43148b4..6d542cd5b0 100644 --- a/leo_ast/statement/definition/declaration_type/index.html +++ b/leo_ast/statement/definition/declaration_type/index.html @@ -1 +1 @@ -leo_ast::statement::definition::declaration_type - Rust

Module leo_ast::statement::definition::declaration_type

source ·

Enums§

\ No newline at end of file +leo_ast::statement::definition::declaration_type - Rust
leo_ast::statement::definition

Module declaration_type

source

Enums§

\ No newline at end of file diff --git a/leo_ast/statement/definition/enum.DeclarationType.html b/leo_ast/statement/definition/enum.DeclarationType.html index e834601528..3d3349d113 100644 --- a/leo_ast/statement/definition/enum.DeclarationType.html +++ b/leo_ast/statement/definition/enum.DeclarationType.html @@ -1,49 +1,49 @@ -DeclarationType in leo_ast::statement::definition - Rust

Enum leo_ast::statement::definition::DeclarationType

source ·
pub enum DeclarationType {
+DeclarationType in leo_ast::statement::definition - Rust
leo_ast::statement::definition

Enum DeclarationType

source
pub enum DeclarationType {
     Const,
     Let,
 }
Expand description

The sort of bindings to introduce, either let or const.

Variants§

§

Const

This is a const binding.

§

Let

This is a let binding.

-

Trait Implementations§

source§

impl Clone for DeclarationType

source§

fn clone(&self) -> DeclarationType

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 DeclarationType

source§

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

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

impl<'de> Deserialize<'de> for DeclarationType

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 Display for DeclarationType

source§

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

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

impl PartialEq for DeclarationType

source§

fn eq(&self, other: &DeclarationType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for DeclarationType

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 Copy for DeclarationType

source§

impl Eq for DeclarationType

source§

impl StructuralPartialEq for DeclarationType

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for DeclarationType

source§

fn clone(&self) -> DeclarationType

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 DeclarationType

source§

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

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

impl<'de> Deserialize<'de> for DeclarationType

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 Display for DeclarationType

source§

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

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

impl PartialEq for DeclarationType

source§

fn eq(&self, other: &DeclarationType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for DeclarationType

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 Copy for DeclarationType

source§

impl Eq for DeclarationType

source§

impl StructuralPartialEq for DeclarationType

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/statement/definition/index.html b/leo_ast/statement/definition/index.html index cf3088db63..dd096ef2d3 100644 --- a/leo_ast/statement/definition/index.html +++ b/leo_ast/statement/definition/index.html @@ -1 +1 @@ -leo_ast::statement::definition - Rust

Module leo_ast::statement::definition

source ·

Modules§

Structs§

Enums§

\ No newline at end of file +leo_ast::statement::definition - Rust
leo_ast::statement

Module definition

source

Modules§

Structs§

Enums§

\ No newline at end of file diff --git a/leo_ast/statement/definition/struct.DefinitionStatement.html b/leo_ast/statement/definition/struct.DefinitionStatement.html index d502360463..8fdf83406a 100644 --- a/leo_ast/statement/definition/struct.DefinitionStatement.html +++ b/leo_ast/statement/definition/struct.DefinitionStatement.html @@ -1,4 +1,4 @@ -DefinitionStatement in leo_ast::statement::definition - Rust

Struct leo_ast::statement::definition::DefinitionStatement

source ·
pub struct DefinitionStatement {
+DefinitionStatement in leo_ast::statement::definition - Rust
leo_ast::statement::definition

Struct DefinitionStatement

source
pub struct DefinitionStatement {
     pub declaration_type: DeclarationType,
     pub place: Expression,
     pub type_: Type,
@@ -12,46 +12,46 @@
 
§value: Expression

An initializer value for the bindings.

§span: Span

The span excluding the semicolon.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for DefinitionStatement

source§

fn clone(&self) -> DefinitionStatement

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 DefinitionStatement

source§

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

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

impl<'de> Deserialize<'de> for DefinitionStatement

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 Display for DefinitionStatement

source§

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

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

impl Node for DefinitionStatement

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for DefinitionStatement

source§

fn eq(&self, other: &DefinitionStatement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for DefinitionStatement

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 Eq for DefinitionStatement

source§

impl StructuralPartialEq for DefinitionStatement

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for DefinitionStatement

source§

fn clone(&self) -> DefinitionStatement

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 DefinitionStatement

source§

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

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

impl<'de> Deserialize<'de> for DefinitionStatement

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 Display for DefinitionStatement

source§

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

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

impl Node for DefinitionStatement

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for DefinitionStatement

source§

fn eq(&self, other: &DefinitionStatement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for DefinitionStatement

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 Eq for DefinitionStatement

source§

impl StructuralPartialEq for DefinitionStatement

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/statement/enum.Statement.html b/leo_ast/statement/enum.Statement.html index dd624aaa5e..335f40bbfb 100644 --- a/leo_ast/statement/enum.Statement.html +++ b/leo_ast/statement/enum.Statement.html @@ -1,66 +1,66 @@ -Statement in leo_ast::statement - Rust

Enum leo_ast::statement::Statement

source ·
pub enum Statement {
+Statement in leo_ast::statement - Rust
leo_ast::statement

Enum Statement

source
pub enum Statement {
     Assert(AssertStatement),
-    Assign(Box<AssignStatement>),
+    Assign(Box<AssignStatement>),
     Block(Block),
     Conditional(ConditionalStatement),
     Console(ConsoleStatement),
     Const(ConstDeclaration),
     Definition(DefinitionStatement),
     Expression(ExpressionStatement),
-    Iteration(Box<IterationStatement>),
+    Iteration(Box<IterationStatement>),
     Return(ReturnStatement),
 }
Expand description

Program statement that defines some action (or expression) to be carried out.

Variants§

§

Assert(AssertStatement)

An assert statement.

-
§

Assign(Box<AssignStatement>)

An assignment statement.

+
§

Assign(Box<AssignStatement>)

An assignment statement.

§

Block(Block)

A block statement.

§

Conditional(ConditionalStatement)

An if statement.

§

Console(ConsoleStatement)

A console logging statement.

§

Const(ConstDeclaration)

A binding from identifier to constant value.

§

Definition(DefinitionStatement)

A binding or set of bindings / variables to declare.

§

Expression(ExpressionStatement)

An expression statement

-
§

Iteration(Box<IterationStatement>)

A for statement.

+
§

Iteration(Box<IterationStatement>)

A for statement.

§

Return(ReturnStatement)

A return statement return expr;.

Implementations§

source§

impl Statement

source

pub fn dummy(span: Span, id: NodeID) -> Self

Returns a dummy statement made from an empty block {}.

-

Trait Implementations§

source§

impl Clone for Statement

source§

fn clone(&self) -> Statement

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 Statement

source§

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

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

impl<'de> Deserialize<'de> for Statement

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 Display for Statement

source§

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

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

impl Node for Statement

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Statement

source§

fn eq(&self, other: &Statement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for Statement

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 Eq for Statement

source§

impl StructuralPartialEq for Statement

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for Statement

source§

fn clone(&self) -> Statement

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 Statement

source§

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

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

impl<'de> Deserialize<'de> for Statement

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 Display for Statement

source§

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

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

impl Node for Statement

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Statement

source§

fn eq(&self, other: &Statement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for Statement

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 Eq for Statement

source§

impl StructuralPartialEq for Statement

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/statement/expression/index.html b/leo_ast/statement/expression/index.html index 3aa6f633f1..f844b9ae86 100644 --- a/leo_ast/statement/expression/index.html +++ b/leo_ast/statement/expression/index.html @@ -1 +1 @@ -leo_ast::statement::expression - Rust

Module leo_ast::statement::expression

source ·

Structs§

\ No newline at end of file +leo_ast::statement::expression - Rust
leo_ast::statement

Module expression

source

Structs§

\ No newline at end of file diff --git a/leo_ast/statement/expression/struct.ExpressionStatement.html b/leo_ast/statement/expression/struct.ExpressionStatement.html index c2ff8f5874..d906cffb59 100644 --- a/leo_ast/statement/expression/struct.ExpressionStatement.html +++ b/leo_ast/statement/expression/struct.ExpressionStatement.html @@ -1,4 +1,4 @@ -ExpressionStatement in leo_ast::statement::expression - Rust

Struct leo_ast::statement::expression::ExpressionStatement

source ·
pub struct ExpressionStatement {
+ExpressionStatement in leo_ast::statement::expression - Rust
leo_ast::statement::expression

Struct ExpressionStatement

source
pub struct ExpressionStatement {
     pub expression: Expression,
     pub span: Span,
     pub id: NodeID,
@@ -6,46 +6,46 @@
 

Fields§

§expression: Expression

The expression associated with the statement.

§span: Span

The span.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for ExpressionStatement

source§

fn clone(&self) -> ExpressionStatement

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 ExpressionStatement

source§

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

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

impl<'de> Deserialize<'de> for ExpressionStatement

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 Display for ExpressionStatement

source§

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

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

impl Node for ExpressionStatement

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ExpressionStatement

source§

fn eq(&self, other: &ExpressionStatement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for ExpressionStatement

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 Eq for ExpressionStatement

source§

impl StructuralPartialEq for ExpressionStatement

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for ExpressionStatement

source§

fn clone(&self) -> ExpressionStatement

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 ExpressionStatement

source§

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

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

impl<'de> Deserialize<'de> for ExpressionStatement

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 Display for ExpressionStatement

source§

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

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

impl Node for ExpressionStatement

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ExpressionStatement

source§

fn eq(&self, other: &ExpressionStatement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for ExpressionStatement

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 Eq for ExpressionStatement

source§

impl StructuralPartialEq for ExpressionStatement

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/statement/index.html b/leo_ast/statement/index.html index 4e06923d12..e3bf7168dc 100644 --- a/leo_ast/statement/index.html +++ b/leo_ast/statement/index.html @@ -1 +1 @@ -leo_ast::statement - Rust

Module leo_ast::statement

source ·

Re-exports§

Modules§

Enums§

  • Program statement that defines some action (or expression) to be carried out.
\ No newline at end of file +leo_ast::statement - Rust
leo_ast

Module statement

source

Re-exports§

Modules§

Enums§

  • Program statement that defines some action (or expression) to be carried out.
\ No newline at end of file diff --git a/leo_ast/statement/iteration/index.html b/leo_ast/statement/iteration/index.html index ae275930b4..76f62a12f2 100644 --- a/leo_ast/statement/iteration/index.html +++ b/leo_ast/statement/iteration/index.html @@ -1 +1 @@ -leo_ast::statement::iteration - Rust

Module leo_ast::statement::iteration

source ·

Structs§

\ No newline at end of file +leo_ast::statement::iteration - Rust
leo_ast::statement

Module iteration

source

Structs§

\ No newline at end of file diff --git a/leo_ast/statement/iteration/struct.IterationStatement.html b/leo_ast/statement/iteration/struct.IterationStatement.html index 3318662627..c5f96eb9dc 100644 --- a/leo_ast/statement/iteration/struct.IterationStatement.html +++ b/leo_ast/statement/iteration/struct.IterationStatement.html @@ -1,11 +1,11 @@ -IterationStatement in leo_ast::statement::iteration - Rust

Struct leo_ast::statement::iteration::IterationStatement

source ·
pub struct IterationStatement {
+IterationStatement in leo_ast::statement::iteration - Rust
leo_ast::statement::iteration

Struct IterationStatement

source
pub struct IterationStatement {
     pub variable: Identifier,
     pub type_: Type,
     pub start: Expression,
-    pub start_value: RefCell<Option<Value>>,
+    pub start_value: RefCell<Option<Value>>,
     pub stop: Expression,
-    pub stop_value: RefCell<Option<Value>>,
-    pub inclusive: bool,
+    pub stop_value: RefCell<Option<Value>>,
+    pub inclusive: bool,
     pub block: Block,
     pub span: Span,
     pub id: NodeID,
@@ -13,54 +13,54 @@
 

Fields§

§variable: Identifier

The binding / variable to introduce in the body block.

§type_: Type

The type of the iteration.

§start: Expression

The start of the iteration.

-
§start_value: RefCell<Option<Value>>

The concrete value of start.

+
§start_value: RefCell<Option<Value>>

The concrete value of start.

§stop: Expression

The end of the iteration, possibly inclusive.

-
§stop_value: RefCell<Option<Value>>

The concrete value of stop.

-
§inclusive: bool

Whether stop is inclusive or not. +

§stop_value: RefCell<Option<Value>>

The concrete value of stop.

+
§inclusive: bool

Whether stop is inclusive or not. Signified with = when parsing.

§block: Block

The block to run on each iteration.

§span: Span

The span from for to block.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for IterationStatement

source§

fn clone(&self) -> IterationStatement

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 IterationStatement

source§

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

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

impl<'de> Deserialize<'de> for IterationStatement

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 Display for IterationStatement

source§

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

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

impl Node for IterationStatement

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for IterationStatement

source§

fn eq(&self, other: &IterationStatement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for IterationStatement

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 Eq for IterationStatement

source§

impl StructuralPartialEq for IterationStatement

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for IterationStatement

source§

fn clone(&self) -> IterationStatement

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 IterationStatement

source§

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

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

impl<'de> Deserialize<'de> for IterationStatement

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 Display for IterationStatement

source§

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

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

impl Node for IterationStatement

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for IterationStatement

source§

fn eq(&self, other: &IterationStatement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for IterationStatement

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 Eq for IterationStatement

source§

impl StructuralPartialEq for IterationStatement

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/statement/return_/index.html b/leo_ast/statement/return_/index.html index 70c367b59d..b4b066bac2 100644 --- a/leo_ast/statement/return_/index.html +++ b/leo_ast/statement/return_/index.html @@ -1 +1 @@ -leo_ast::statement::return_ - Rust

Module leo_ast::statement::return_

source ·

Structs§

\ No newline at end of file +leo_ast::statement::return_ - Rust
leo_ast::statement

Module return_

source

Structs§

\ No newline at end of file diff --git a/leo_ast/statement/return_/struct.ReturnStatement.html b/leo_ast/statement/return_/struct.ReturnStatement.html index da534a5330..77b2c254da 100644 --- a/leo_ast/statement/return_/struct.ReturnStatement.html +++ b/leo_ast/statement/return_/struct.ReturnStatement.html @@ -1,4 +1,4 @@ -ReturnStatement in leo_ast::statement::return_ - Rust

Struct leo_ast::statement::return_::ReturnStatement

source ·
pub struct ReturnStatement {
+ReturnStatement in leo_ast::statement::return_ - Rust
leo_ast::statement::return_

Struct ReturnStatement

source
pub struct ReturnStatement {
     pub expression: Expression,
     pub span: Span,
     pub id: NodeID,
@@ -6,46 +6,46 @@
 

Fields§

§expression: Expression

The expression to return to the function caller.

§span: Span

The span of return expression excluding the semicolon.

§id: NodeID

The ID of the node.

-

Trait Implementations§

source§

impl Clone for ReturnStatement

source§

fn clone(&self) -> ReturnStatement

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 ReturnStatement

source§

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

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

impl<'de> Deserialize<'de> for ReturnStatement

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 Display for ReturnStatement

source§

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

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

impl Node for ReturnStatement

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ReturnStatement

source§

fn eq(&self, other: &ReturnStatement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for ReturnStatement

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 Eq for ReturnStatement

source§

impl StructuralPartialEq for ReturnStatement

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for ReturnStatement

source§

fn clone(&self) -> ReturnStatement

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 ReturnStatement

source§

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

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

impl<'de> Deserialize<'de> for ReturnStatement

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 Display for ReturnStatement

source§

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

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

impl Node for ReturnStatement

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for ReturnStatement

source§

fn eq(&self, other: &ReturnStatement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for ReturnStatement

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 Eq for ReturnStatement

source§

impl StructuralPartialEq for ReturnStatement

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/struct.Ast.html b/leo_ast/struct.Ast.html index a2c949ab95..1fb22b364e 100644 --- a/leo_ast/struct.Ast.html +++ b/leo_ast/struct.Ast.html @@ -1,50 +1,50 @@ -Ast in leo_ast - Rust

Struct leo_ast::Ast

source ·
pub struct Ast {
+Ast in leo_ast - Rust
leo_ast

Struct Ast

source
pub struct Ast {
     pub ast: Program,
 }
Expand description

The abstract syntax tree (AST) for a Leo program.

The Ast type represents a Leo program as a series of recursive data types. These data types form a tree that begins from a Program type root.

Fields§

§ast: Program

Implementations§

source§

impl Ast

source

pub fn new(program: Program) -> Self

Creates a new AST from a given program tree.

source

pub fn as_repr(&self) -> &Program

Returns a reference to the inner program AST representation.

-
source

pub fn into_repr(self) -> Program

source

pub fn to_json_string(&self) -> Result<String>

Serializes the ast into a JSON string.

-
source

pub fn to_json_value(&self) -> Result<Value>

source

pub fn to_json_file(&self, path: PathBuf, file_name: &str) -> Result<()>

Serializes the ast into a JSON file.

+
source

pub fn into_repr(self) -> Program

source

pub fn to_json_string(&self) -> Result<String>

Serializes the ast into a JSON string.

+
source

pub fn to_json_value(&self) -> Result<Value>

source

pub fn to_json_file(&self, path: PathBuf, file_name: &str) -> Result<()>

Serializes the ast into a JSON file.

source

pub fn to_json_file_without_keys( &self, - path: PathBuf, - file_name: &str, - excluded_keys: &[&str], -) -> Result<()>

Serializes the ast 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 ast.

-
source

pub fn from_json_file(path: PathBuf) -> Result<Self>

Deserializes the JSON string into a ast from a file.

-

Trait Implementations§

source§

impl AsRef<Program> for Ast

source§

fn as_ref(&self) -> &Program

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for Ast

source§

fn clone(&self) -> Ast

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 Ast

source§

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

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

impl Default for Ast

source§

fn default() -> Ast

Returns the “default value” for a type. Read more
source§

impl PartialEq for Ast

source§

fn eq(&self, other: &Ast) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Eq for Ast

source§

impl StructuralPartialEq for Ast

Auto Trait Implementations§

§

impl Freeze for Ast

§

impl !RefUnwindSafe for Ast

§

impl Send for Ast

§

impl !Sync for Ast

§

impl Unpin for Ast

§

impl UnwindSafe for Ast

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ path: PathBuf, + file_name: &str, + excluded_keys: &[&str], +) -> Result<()>

Serializes the ast 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 ast.

+
source

pub fn from_json_file(path: PathBuf) -> Result<Self>

Deserializes the JSON string into a ast from a file.

+

Trait Implementations§

source§

impl AsRef<Program> for Ast

source§

fn as_ref(&self) -> &Program

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for Ast

source§

fn clone(&self) -> Ast

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 Ast

source§

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

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

impl Default for Ast

source§

fn default() -> Ast

Returns the “default value” for a type. Read more
source§

impl PartialEq for Ast

source§

fn eq(&self, other: &Ast) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Eq for Ast

source§

impl StructuralPartialEq for Ast

Auto Trait Implementations§

§

impl Freeze for Ast

§

impl !RefUnwindSafe for Ast

§

impl Send for Ast

§

impl !Sync for Ast

§

impl Unpin for Ast

§

impl UnwindSafe for Ast

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_ast/struct/index.html b/leo_ast/struct/index.html index e10c0a4dd5..5611729dfa 100644 --- a/leo_ast/struct/index.html +++ b/leo_ast/struct/index.html @@ -1,2 +1,2 @@ -leo_ast::struct - Rust

Module leo_ast::struct

source ·

Re-exports§

Modules§

Structs§

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/struct/struct.Composite.html b/leo_ast/struct/struct.Composite.html index 8ae56c827a..70b0bfdf6b 100644 --- a/leo_ast/struct/struct.Composite.html +++ b/leo_ast/struct/struct.Composite.html @@ -1,8 +1,8 @@ -Composite in leo_ast::struct - Rust

Struct leo_ast::struct::Composite

source ·
pub struct Composite {
+Composite in leo_ast::struct - Rust
leo_ast::struct

Struct Composite

source
pub struct Composite {
     pub identifier: Identifier,
-    pub members: Vec<Member>,
-    pub external: Option<Symbol>,
-    pub is_record: bool,
+    pub members: Vec<Member>,
+    pub external: Option<Symbol>,
+    pub is_record: bool,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

A composite type definition, e.g., struct Foo { my_field: Bar } and record Token { owner: address, amount: u64}. @@ -11,9 +11,9 @@ as the record is nominal, not structural. The fields are named so struct Foo(u8, u16) is not allowed.

Fields§

§identifier: Identifier

The name of the type in the type system in this module.

-
§members: Vec<Member>

The fields, constant variables, and functions of this structure.

-
§external: Option<Symbol>

The external program the struct is defined in.

-
§is_record: bool

Was this a record Foo { ... }? +

§members: Vec<Member>

The fields, constant variables, and functions of this structure.

+
§external: Option<Symbol>

The external program the struct is defined in.

+
§is_record: bool

Was this a record Foo { ... }? If so, it wasn’t a composite.

§span: Span

The entire span of the composite definition.

§id: NodeID

The ID of the node.

@@ -21,46 +21,46 @@
source

pub fn from_external_record<N: Network>( input: &RecordType<N>, external_program: Symbol, -) -> Self

source

pub fn from_snarkvm<N: Network>(input: &StructType<N>) -> Self

Trait Implementations§

source§

impl Clone for Composite

source§

fn clone(&self) -> Composite

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 Composite

source§

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

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

impl<'de> Deserialize<'de> for Composite

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 Display for Composite

source§

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

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

impl Node for Composite

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Composite

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for Composite

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 Eq for Composite

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +) -> Self

source

pub fn from_snarkvm<N: Network>(input: &StructType<N>) -> Self

Trait Implementations§

source§

impl Clone for Composite

source§

fn clone(&self) -> Composite

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 Composite

source§

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

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

impl<'de> Deserialize<'de> for Composite

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 Display for Composite

source§

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

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

impl Node for Composite

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for Composite

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for Composite

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 Eq for Composite

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/stub/function_stub/index.html b/leo_ast/stub/function_stub/index.html index 52d1bc0cb1..ad0dd9799f 100644 --- a/leo_ast/stub/function_stub/index.html +++ b/leo_ast/stub/function_stub/index.html @@ -1 +1 @@ -leo_ast::stub::function_stub - Rust

Module leo_ast::stub::function_stub

source ·

Structs§

\ No newline at end of file +leo_ast::stub::function_stub - Rust
leo_ast::stub

Module function_stub

source

Structs§

\ No newline at end of file diff --git a/leo_ast/stub/function_stub/struct.FunctionStub.html b/leo_ast/stub/function_stub/struct.FunctionStub.html index bad749ca02..0146d3a663 100644 --- a/leo_ast/stub/function_stub/struct.FunctionStub.html +++ b/leo_ast/stub/function_stub/struct.FunctionStub.html @@ -1,34 +1,34 @@ -FunctionStub in leo_ast::stub::function_stub - Rust

Struct leo_ast::stub::function_stub::FunctionStub

source ·
pub struct FunctionStub {
-    pub annotations: Vec<Annotation>,
+FunctionStub in leo_ast::stub::function_stub - Rust
leo_ast::stub::function_stub

Struct FunctionStub

source
pub struct FunctionStub {
+    pub annotations: Vec<Annotation>,
     pub variant: Variant,
     pub identifier: Identifier,
-    pub input: Vec<Input>,
-    pub output: Vec<Output>,
+    pub input: Vec<Input>,
+    pub output: Vec<Output>,
     pub output_type: Type,
     pub span: Span,
     pub id: NodeID,
 }
Expand description

A function stub definition.

-

Fields§

§annotations: Vec<Annotation>

Annotations on the function.

+

Fields§

§annotations: Vec<Annotation>

Annotations on the function.

§variant: Variant

Is this function a transition, inlined, or a regular function?.

§identifier: Identifier

The function identifier, e.g., foo in function foo(...) { ... }.

-
§input: Vec<Input>

The function’s input parameters.

-
§output: Vec<Output>

The function’s output declarations.

+
§input: Vec<Input>

The function’s input parameters.

+
§output: Vec<Output>

The function’s output declarations.

§output_type: Type

The function’s output type.

§span: Span

The entire span of the function definition.

§id: NodeID

The ID of the node.

Implementations§

source§

impl FunctionStub

source

pub fn new( - annotations: Vec<Annotation>, - _is_async: bool, + annotations: Vec<Annotation>, + _is_async: bool, variant: Variant, identifier: Identifier, - input: Vec<Input>, - output: Vec<Output>, + input: Vec<Input>, + output: Vec<Output>, span: Span, id: NodeID, ) -> Self

Initialize a new function.

source

pub fn name(&self) -> Symbol

Returns function name.

-
source

pub fn is_main(&self) -> bool

Returns true if the function name is main.

-
source

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

Private formatting method used for optimizing fmt::Debug and fmt::Display implementations.

+
source

pub fn is_main(&self) -> bool

Returns true if the function name is main.

+
source

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

Private formatting method used for optimizing fmt::Debug and fmt::Display implementations.

source

pub fn from_function_core<N: Network, Instruction: InstructionTrait<N>, Command: CommandTrait<N>>( function: &FunctionCore<N, Instruction, Command>, program: Symbol, @@ -40,46 +40,46 @@ ) -> Self

source

pub fn from_closure<N: Network, Instruction: InstructionTrait<N>>( closure: &ClosureCore<N, Instruction>, program: Symbol, -) -> Self

Trait Implementations§

source§

impl Clone for FunctionStub

source§

fn clone(&self) -> FunctionStub

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 FunctionStub

source§

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

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

impl<'de> Deserialize<'de> for FunctionStub

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 Display for FunctionStub

source§

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

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

impl From<Function> for FunctionStub

source§

fn from(function: Function) -> Self

Converts to this type from the input type.
source§

impl From<FunctionStub> for Function

source§

fn from(function: FunctionStub) -> Self

Converts to this type from the input type.
source§

impl Node for FunctionStub

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for FunctionStub

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for FunctionStub

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 Eq for FunctionStub

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +) -> Self

Trait Implementations§

source§

impl Clone for FunctionStub

source§

fn clone(&self) -> FunctionStub

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 FunctionStub

source§

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

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

impl<'de> Deserialize<'de> for FunctionStub

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 Display for FunctionStub

source§

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

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

impl From<Function> for FunctionStub

source§

fn from(function: Function) -> Self

Converts to this type from the input type.
source§

impl From<FunctionStub> for Function

source§

fn from(function: FunctionStub) -> Self

Converts to this type from the input type.
source§

impl Node for FunctionStub

source§

fn span(&self) -> Span

Returns the span of the node.
source§

fn set_span(&mut self, span: Span)

Sets the span of the node.
source§

fn id(&self) -> NodeID

Returns the ID of the node.
source§

fn set_id(&mut self, id: NodeID)

Sets the ID of the node.
source§

impl PartialEq for FunctionStub

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for FunctionStub

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 Eq for FunctionStub

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/stub/index.html b/leo_ast/stub/index.html index aa014aee63..d49e3caa36 100644 --- a/leo_ast/stub/index.html +++ b/leo_ast/stub/index.html @@ -1,2 +1,2 @@ -leo_ast::stub - Rust

Module leo_ast::stub

source ·
Expand description

A stub contains function templates as well as definitions for mappings, structs, records, and constants.

+leo_ast::stub - Rust
leo_ast

Module stub

source
Expand description

A stub contains function templates as well as definitions for mappings, structs, records, and constants.

Re-exports§

Modules§

Structs§

  • Stores the Leo stub abstract syntax tree.
\ No newline at end of file diff --git a/leo_ast/stub/struct.Stub.html b/leo_ast/stub/struct.Stub.html index 32d98e094c..47e0858e12 100644 --- a/leo_ast/stub/struct.Stub.html +++ b/leo_ast/stub/struct.Stub.html @@ -1,60 +1,60 @@ -Stub in leo_ast::stub - Rust

Struct leo_ast::stub::Stub

source ·
pub struct Stub {
-    pub imports: Vec<ProgramId>,
+Stub in leo_ast::stub - Rust
leo_ast::stub

Struct Stub

source
pub struct Stub {
+    pub imports: Vec<ProgramId>,
     pub stub_id: ProgramId,
-    pub consts: Vec<(Symbol, ConstDeclaration)>,
-    pub structs: Vec<(Symbol, Composite)>,
-    pub mappings: Vec<(Symbol, Mapping)>,
-    pub functions: Vec<(Symbol, FunctionStub)>,
+    pub consts: Vec<(Symbol, ConstDeclaration)>,
+    pub structs: Vec<(Symbol, Composite)>,
+    pub mappings: Vec<(Symbol, Mapping)>,
+    pub functions: Vec<(Symbol, FunctionStub)>,
     pub span: Span,
 }
Expand description

Stores the Leo stub abstract syntax tree.

-

Fields§

§imports: Vec<ProgramId>

A vector of imported programs.

+

Fields§

§imports: Vec<ProgramId>

A vector of imported programs.

§stub_id: ProgramId

The stub id

-
§consts: Vec<(Symbol, ConstDeclaration)>

A vector of const definitions.

-
§structs: Vec<(Symbol, Composite)>

A vector of struct definitions.

-
§mappings: Vec<(Symbol, Mapping)>

A vector of mapping definitions.

-
§functions: Vec<(Symbol, FunctionStub)>

A vector of function stub definitions.

+
§consts: Vec<(Symbol, ConstDeclaration)>

A vector of const definitions.

+
§structs: Vec<(Symbol, Composite)>

A vector of struct definitions.

+
§mappings: Vec<(Symbol, Mapping)>

A vector of mapping definitions.

+
§functions: Vec<(Symbol, FunctionStub)>

A vector of function stub definitions.

§span: Span

The span associated with the stub.

-

Trait Implementations§

source§

impl Clone for Stub

source§

fn clone(&self) -> Stub

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 Stub

source§

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

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

impl Default for Stub

source§

fn default() -> Self

Constructs an empty program stub

-
source§

impl<'de> Deserialize<'de> for Stub

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 Display for Stub

source§

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

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

impl From<Stub> for ProgramScope

source§

fn from(stub: Stub) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Stub

source§

fn eq(&self, other: &Stub) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for Stub

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 Eq for Stub

source§

impl StructuralPartialEq for Stub

Auto Trait Implementations§

§

impl Freeze for Stub

§

impl RefUnwindSafe for Stub

§

impl Send for Stub

§

impl Sync for Stub

§

impl Unpin for Stub

§

impl UnwindSafe for Stub

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for Stub

source§

fn clone(&self) -> Stub

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 Stub

source§

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

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

impl Default for Stub

source§

fn default() -> Self

Constructs an empty program stub

+
source§

impl<'de> Deserialize<'de> for Stub

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 Display for Stub

source§

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

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

impl From<Stub> for ProgramScope

source§

fn from(stub: Stub) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Stub

source§

fn eq(&self, other: &Stub) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for Stub

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 Eq for Stub

source§

impl StructuralPartialEq for Stub

Auto Trait Implementations§

§

impl Freeze for Stub

§

impl RefUnwindSafe for Stub

§

impl Send for Stub

§

impl Sync for Stub

§

impl Unpin for Stub

§

impl UnwindSafe for Stub

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/types/array/index.html b/leo_ast/types/array/index.html index 75b5187371..3c7c39df4c 100644 --- a/leo_ast/types/array/index.html +++ b/leo_ast/types/array/index.html @@ -1 +1 @@ -leo_ast::types::array - Rust

Module leo_ast::types::array

source ·

Structs§

\ No newline at end of file +leo_ast::types::array - Rust
leo_ast::types

Module array

source

Structs§

\ No newline at end of file diff --git a/leo_ast/types/array/struct.ArrayType.html b/leo_ast/types/array/struct.ArrayType.html index c53e5b2684..ebf104ac34 100644 --- a/leo_ast/types/array/struct.ArrayType.html +++ b/leo_ast/types/array/struct.ArrayType.html @@ -1,56 +1,56 @@ -ArrayType in leo_ast::types::array - Rust

Struct leo_ast::types::array::ArrayType

source ·
pub struct ArrayType {
-    element_type: Box<Type>,
+ArrayType in leo_ast::types::array - Rust
leo_ast::types::array

Struct ArrayType

source
pub struct ArrayType {
+    element_type: Box<Type>,
     length: NonNegativeNumber,
 }
Expand description

An array type.

-

Fields§

§element_type: Box<Type>§length: NonNegativeNumber

Implementations§

source§

impl ArrayType

source

pub fn new(element: Type, length: NonNegativeNumber) -> Self

Creates a new array type.

+

Fields§

§element_type: Box<Type>§length: NonNegativeNumber

Implementations§

source§

impl ArrayType

source

pub fn new(element: Type, length: NonNegativeNumber) -> Self

Creates a new array type.

source

pub fn element_type(&self) -> &Type

Returns the element type of the array.

-
source

pub fn length(&self) -> usize

Returns the length of the array.

+
source

pub fn length(&self) -> usize

Returns the length of the array.

source

pub fn base_element_type(&self) -> &Type

Returns the base element type of the array.

source

pub fn from_snarkvm<N: Network>( array_type: &ConsoleArrayType<N>, - program: Option<Symbol>, -) -> Self

Trait Implementations§

source§

impl Clone for ArrayType

source§

fn clone(&self) -> ArrayType

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 ArrayType

source§

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

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

impl<'de> Deserialize<'de> for ArrayType

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 Display for ArrayType

source§

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

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

impl Hash for ArrayType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where - H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for ArrayType

source§

fn eq(&self, other: &ArrayType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for ArrayType

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 Eq for ArrayType

source§

impl StructuralPartialEq for ArrayType

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where + program: Option<Symbol>, +) -> Self

Trait Implementations§

source§

impl Clone for ArrayType

source§

fn clone(&self) -> ArrayType

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 ArrayType

source§

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

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

impl<'de> Deserialize<'de> for ArrayType

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 Display for ArrayType

source§

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

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

impl Hash for ArrayType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for ArrayType

source§

fn eq(&self, other: &ArrayType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for ArrayType

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 Eq for ArrayType

source§

impl StructuralPartialEq for ArrayType

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/types/core_constant/enum.CoreConstant.html b/leo_ast/types/core_constant/enum.CoreConstant.html index ca74f87d1e..27055ddc5f 100644 --- a/leo_ast/types/core_constant/enum.CoreConstant.html +++ b/leo_ast/types/core_constant/enum.CoreConstant.html @@ -1,38 +1,38 @@ -CoreConstant in leo_ast::types::core_constant - Rust

Enum leo_ast::types::core_constant::CoreConstant

source ·
pub enum CoreConstant {
+CoreConstant in leo_ast::types::core_constant - Rust
leo_ast::types::core_constant

Enum CoreConstant

source
pub enum CoreConstant {
     GroupGenerator,
 }
Expand description

A core constant that maps directly to an AVM bytecode constant.

-

Variants§

§

GroupGenerator

Implementations§

source§

impl CoreConstant

source

pub fn from_symbols(type_: Symbol, constant: Symbol) -> Option<Self>

Returns a CoreConstant from the given type and constant symbols.

+

Variants§

§

GroupGenerator

Implementations§

source§

impl CoreConstant

source

pub fn from_symbols(type_: Symbol, constant: Symbol) -> Option<Self>

Returns a CoreConstant from the given type and constant symbols.

source

pub fn to_type(&self) -> Type

Returns the Type of the CoreConstant.

-

Trait Implementations§

source§

impl Clone for CoreConstant

source§

fn clone(&self) -> CoreConstant

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 PartialEq for CoreConstant

source§

fn eq(&self, other: &CoreConstant) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Eq for CoreConstant

source§

impl StructuralPartialEq for CoreConstant

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+

Trait Implementations§

source§

impl Clone for CoreConstant

source§

fn clone(&self) -> CoreConstant

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 PartialEq for CoreConstant

source§

fn eq(&self, other: &CoreConstant) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Eq for CoreConstant

source§

impl StructuralPartialEq for CoreConstant

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_ast/types/core_constant/index.html b/leo_ast/types/core_constant/index.html index dc40f02aaa..00163ca89f 100644 --- a/leo_ast/types/core_constant/index.html +++ b/leo_ast/types/core_constant/index.html @@ -1 +1 @@ -leo_ast::types::core_constant - Rust

Module leo_ast::types::core_constant

source ·

Enums§

  • A core constant that maps directly to an AVM bytecode constant.
\ No newline at end of file +leo_ast::types::core_constant - Rust
leo_ast::types

Module core_constant

source

Enums§

  • A core constant that maps directly to an AVM bytecode constant.
\ No newline at end of file diff --git a/leo_ast/types/future/index.html b/leo_ast/types/future/index.html index bd37155d27..bd89f429d0 100644 --- a/leo_ast/types/future/index.html +++ b/leo_ast/types/future/index.html @@ -1 +1 @@ -leo_ast::types::future - Rust

Module leo_ast::types::future

source ·

Structs§

  • A future type consisting of the type of the inputs.
\ No newline at end of file +leo_ast::types::future - Rust
leo_ast::types

Module future

source

Structs§

  • A future type consisting of the type of the inputs.
\ No newline at end of file diff --git a/leo_ast/types/future/struct.FutureType.html b/leo_ast/types/future/struct.FutureType.html index 62f9f606f2..3a22738d88 100644 --- a/leo_ast/types/future/struct.FutureType.html +++ b/leo_ast/types/future/struct.FutureType.html @@ -1,57 +1,57 @@ -FutureType in leo_ast::types::future - Rust

Struct leo_ast::types::future::FutureType

source ·
pub struct FutureType {
-    pub inputs: Vec<Type>,
-    pub location: Option<Location>,
-    pub is_explicit: bool,
+FutureType in leo_ast::types::future - Rust
leo_ast::types::future

Struct FutureType

source
pub struct FutureType {
+    pub inputs: Vec<Type>,
+    pub location: Option<Location>,
+    pub is_explicit: bool,
 }
Expand description

A future type consisting of the type of the inputs.

-

Fields§

§inputs: Vec<Type>§location: Option<Location>§is_explicit: bool

Implementations§

source§

impl FutureType

source

pub fn new( - inputs: Vec<Type>, - location: Option<Location>, - is_explicit: bool, +

Fields§

§inputs: Vec<Type>§location: Option<Location>§is_explicit: bool

Implementations§

source§

impl FutureType

source

pub fn new( + inputs: Vec<Type>, + location: Option<Location>, + is_explicit: bool, ) -> Self

Initialize a new future type.

source

pub fn inputs(&self) -> &[Type]

Returns the inputs of the future type.

-
source

pub fn location(&self) -> &Option<Location>

Returns the location of the future type.

-

Trait Implementations§

source§

impl Clone for FutureType

source§

fn clone(&self) -> FutureType

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 FutureType

source§

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

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

impl Default for FutureType

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for FutureType

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 Display for FutureType

source§

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

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

impl Hash for FutureType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where - H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for FutureType

source§

fn eq(&self, other: &FutureType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for FutureType

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 Eq for FutureType

source§

impl StructuralPartialEq for FutureType

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

source

pub fn location(&self) -> &Option<Location>

Returns the location of the future type.

+

Trait Implementations§

source§

impl Clone for FutureType

source§

fn clone(&self) -> FutureType

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 FutureType

source§

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

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

impl Default for FutureType

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for FutureType

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 Display for FutureType

source§

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

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

impl Hash for FutureType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for FutureType

source§

fn eq(&self, other: &FutureType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for FutureType

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 Eq for FutureType

source§

impl StructuralPartialEq for FutureType

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/types/index.html b/leo_ast/types/index.html index b47e0a6c67..1318d25c14 100644 --- a/leo_ast/types/index.html +++ b/leo_ast/types/index.html @@ -1 +1 @@ -leo_ast::types - Rust

Module leo_ast::types

source ·

Re-exports§

Modules§

\ No newline at end of file +leo_ast::types - Rust
leo_ast

Module types

source

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_ast/types/integer_type/enum.IntegerType.html b/leo_ast/types/integer_type/enum.IntegerType.html index 4dbaeefe40..43eb256510 100644 --- a/leo_ast/types/integer_type/enum.IntegerType.html +++ b/leo_ast/types/integer_type/enum.IntegerType.html @@ -1,4 +1,4 @@ -IntegerType in leo_ast::types::integer_type - Rust

Enum leo_ast::types::integer_type::IntegerType

source ·
pub enum IntegerType {
+IntegerType in leo_ast::types::integer_type - Rust
leo_ast::types::integer_type

Enum IntegerType

source
pub enum IntegerType {
     U8,
     U16,
     U32,
@@ -10,50 +10,50 @@
     I64,
     I128,
 }
Expand description

Explicit integer type.

-

Variants§

§

U8

§

U16

§

U32

§

U64

§

U128

§

I8

§

I16

§

I32

§

I64

§

I128

Implementations§

source§

impl IntegerType

source

pub fn is_signed(&self) -> bool

Is the integer type a signed one?

+

Variants§

§

U8

§

U16

§

U32

§

U64

§

U128

§

I8

§

I16

§

I32

§

I64

§

I128

Implementations§

source§

impl IntegerType

source

pub fn is_signed(&self) -> bool

Is the integer type a signed one?

source

pub fn symbol(self) -> Symbol

Returns the symbol for the integer type.

-

Trait Implementations§

source§

impl Clone for IntegerType

source§

fn clone(&self) -> IntegerType

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 IntegerType

source§

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

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

impl<'de> Deserialize<'de> for IntegerType

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 Display for IntegerType

source§

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

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

impl Hash for IntegerType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where - H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for IntegerType

source§

fn eq(&self, other: &IntegerType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for IntegerType

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 Copy for IntegerType

source§

impl Eq for IntegerType

source§

impl StructuralPartialEq for IntegerType

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for IntegerType

source§

fn clone(&self) -> IntegerType

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 IntegerType

source§

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

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

impl<'de> Deserialize<'de> for IntegerType

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 Display for IntegerType

source§

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

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

impl Hash for IntegerType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for IntegerType

source§

fn eq(&self, other: &IntegerType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for IntegerType

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 Copy for IntegerType

source§

impl Eq for IntegerType

source§

impl StructuralPartialEq for IntegerType

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/types/integer_type/index.html b/leo_ast/types/integer_type/index.html index 8fce1997ad..19de41f212 100644 --- a/leo_ast/types/integer_type/index.html +++ b/leo_ast/types/integer_type/index.html @@ -1 +1 @@ -leo_ast::types::integer_type - Rust

Module leo_ast::types::integer_type

source ·

Enums§

\ No newline at end of file +leo_ast::types::integer_type - Rust
leo_ast::types

Module integer_type

source

Enums§

\ No newline at end of file diff --git a/leo_ast/types/mapping/index.html b/leo_ast/types/mapping/index.html index 8688879e7a..b6a3581fbb 100644 --- a/leo_ast/types/mapping/index.html +++ b/leo_ast/types/mapping/index.html @@ -1 +1 @@ -leo_ast::types::mapping - Rust

Module leo_ast::types::mapping

source ·

Structs§

\ No newline at end of file +leo_ast::types::mapping - Rust
leo_ast::types

Module mapping

source

Structs§

\ No newline at end of file diff --git a/leo_ast/types/mapping/struct.MappingType.html b/leo_ast/types/mapping/struct.MappingType.html index 0cf46403f8..365494e0b5 100644 --- a/leo_ast/types/mapping/struct.MappingType.html +++ b/leo_ast/types/mapping/struct.MappingType.html @@ -1,50 +1,50 @@ -MappingType in leo_ast::types::mapping - Rust

Struct leo_ast::types::mapping::MappingType

source ·
pub struct MappingType {
-    pub key: Box<Type>,
-    pub value: Box<Type>,
+MappingType in leo_ast::types::mapping - Rust
leo_ast::types::mapping

Struct MappingType

source
pub struct MappingType {
+    pub key: Box<Type>,
+    pub value: Box<Type>,
     pub program: Symbol,
 }
Expand description

A mapping type of a key and value type.

-

Fields§

§key: Box<Type>§value: Box<Type>§program: Symbol

Trait Implementations§

source§

impl Clone for MappingType

source§

fn clone(&self) -> MappingType

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 MappingType

source§

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

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

impl<'de> Deserialize<'de> for MappingType

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 Display for MappingType

source§

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

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

impl Hash for MappingType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where - H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for MappingType

source§

fn eq(&self, other: &MappingType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for MappingType

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 Eq for MappingType

source§

impl StructuralPartialEq for MappingType

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Fields§

§key: Box<Type>§value: Box<Type>§program: Symbol

Trait Implementations§

source§

impl Clone for MappingType

source§

fn clone(&self) -> MappingType

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 MappingType

source§

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

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

impl<'de> Deserialize<'de> for MappingType

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 Display for MappingType

source§

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

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

impl Hash for MappingType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for MappingType

source§

fn eq(&self, other: &MappingType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for MappingType

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 Eq for MappingType

source§

impl StructuralPartialEq for MappingType

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/types/struct_type/index.html b/leo_ast/types/struct_type/index.html index 81e7e738e2..cf0a248b52 100644 --- a/leo_ast/types/struct_type/index.html +++ b/leo_ast/types/struct_type/index.html @@ -1 +1 @@ -leo_ast::types::struct_type - Rust

Module leo_ast::types::struct_type

source ·

Structs§

  • A composite type of a identifier and external program name.
\ No newline at end of file +leo_ast::types::struct_type - Rust
leo_ast::types

Module struct_type

source

Structs§

  • A composite type of a identifier and external program name.
\ No newline at end of file diff --git a/leo_ast/types/struct_type/struct.CompositeType.html b/leo_ast/types/struct_type/struct.CompositeType.html index 10ca7c3ab6..6242f182a4 100644 --- a/leo_ast/types/struct_type/struct.CompositeType.html +++ b/leo_ast/types/struct_type/struct.CompositeType.html @@ -1,49 +1,49 @@ -CompositeType in leo_ast::types::struct_type - Rust

Struct leo_ast::types::struct_type::CompositeType

source ·
pub struct CompositeType {
+CompositeType in leo_ast::types::struct_type - Rust
leo_ast::types::struct_type

Struct CompositeType

source
pub struct CompositeType {
     pub id: Identifier,
-    pub program: Option<Symbol>,
+    pub program: Option<Symbol>,
 }
Expand description

A composite type of a identifier and external program name.

-

Fields§

§id: Identifier§program: Option<Symbol>

Trait Implementations§

source§

impl Clone for CompositeType

source§

fn clone(&self) -> CompositeType

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 CompositeType

source§

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

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

impl<'de> Deserialize<'de> for CompositeType

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 Display for CompositeType

source§

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

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

impl From<&CompositeType> for Location

source§

fn from(composite: &CompositeType) -> Location

Converts to this type from the input type.
source§

impl Hash for CompositeType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where - H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for CompositeType

source§

fn eq(&self, other: &CompositeType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for CompositeType

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 Copy for CompositeType

source§

impl Eq for CompositeType

source§

impl StructuralPartialEq for CompositeType

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Fields§

§id: Identifier§program: Option<Symbol>

Trait Implementations§

source§

impl Clone for CompositeType

source§

fn clone(&self) -> CompositeType

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 CompositeType

source§

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

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

impl<'de> Deserialize<'de> for CompositeType

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 Display for CompositeType

source§

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

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

impl From<&CompositeType> for Location

source§

fn from(composite: &CompositeType) -> Location

Converts to this type from the input type.
source§

impl Hash for CompositeType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for CompositeType

source§

fn eq(&self, other: &CompositeType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for CompositeType

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 Copy for CompositeType

source§

impl Eq for CompositeType

source§

impl StructuralPartialEq for CompositeType

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/types/tuple/index.html b/leo_ast/types/tuple/index.html index c29db98821..23a74d767f 100644 --- a/leo_ast/types/tuple/index.html +++ b/leo_ast/types/tuple/index.html @@ -1 +1 @@ -leo_ast::types::tuple - Rust

Module leo_ast::types::tuple

source ·

Structs§

\ No newline at end of file +leo_ast::types::tuple - Rust
leo_ast::types

Module tuple

source

Structs§

\ No newline at end of file diff --git a/leo_ast/types/tuple/struct.TupleType.html b/leo_ast/types/tuple/struct.TupleType.html index 5dce134e92..a34c599a99 100644 --- a/leo_ast/types/tuple/struct.TupleType.html +++ b/leo_ast/types/tuple/struct.TupleType.html @@ -1,51 +1,51 @@ -TupleType in leo_ast::types::tuple - Rust

Struct leo_ast::types::tuple::TupleType

source ·
pub struct TupleType {
-    elements: Vec<Type>,
+TupleType in leo_ast::types::tuple - Rust
leo_ast::types::tuple

Struct TupleType

source
pub struct TupleType {
+    elements: Vec<Type>,
 }
Expand description

A type list of at least two types.

-

Fields§

§elements: Vec<Type>

Implementations§

source§

impl TupleType

source

pub fn new(elements: Vec<Type>) -> Self

Creates a new tuple type.

+

Fields§

§elements: Vec<Type>

Implementations§

source§

impl TupleType

source

pub fn new(elements: Vec<Type>) -> Self

Creates a new tuple type.

source

pub fn elements(&self) -> &[Type]

Returns the elements of the tuple type.

-
source

pub fn length(&self) -> usize

Returns the length of the tuple type.

-

Trait Implementations§

source§

impl Clone for TupleType

source§

fn clone(&self) -> TupleType

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 TupleType

source§

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

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

impl<'de> Deserialize<'de> for TupleType

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 Display for TupleType

source§

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

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

impl Hash for TupleType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where - H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for TupleType

source§

fn eq(&self, other: &TupleType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for TupleType

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 Eq for TupleType

source§

impl StructuralPartialEq for TupleType

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

source

pub fn length(&self) -> usize

Returns the length of the tuple type.

+

Trait Implementations§

source§

impl Clone for TupleType

source§

fn clone(&self) -> TupleType

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 TupleType

source§

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

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

impl<'de> Deserialize<'de> for TupleType

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 Display for TupleType

source§

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

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

impl Hash for TupleType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for TupleType

source§

fn eq(&self, other: &TupleType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for TupleType

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 Eq for TupleType

source§

impl StructuralPartialEq for TupleType

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/types/type_/enum.Type.html b/leo_ast/types/type_/enum.Type.html index 8f48d82071..393ed22c81 100644 --- a/leo_ast/types/type_/enum.Type.html +++ b/leo_ast/types/type_/enum.Type.html @@ -1,4 +1,4 @@ -Type in leo_ast::types::type_ - Rust

Enum leo_ast::types::type_::Type

source ·
pub enum Type {
+Type in leo_ast::types::type_ - Rust
leo_ast::types::type_

Enum Type

source
pub enum Type {
 
Show 16 variants Address, Array(ArrayType), Boolean, @@ -33,56 +33,56 @@
§

Unit

The unit type.

§

Err

Placeholder for a type that could not be resolved or was not well-formed. Will eventually lead to a compile error.

-

Implementations§

source§

impl Type

source

pub fn eq_flat(&self, other: &Self) -> bool

Returns true if the self Type is equal to the other Type.

+

Implementations§

source§

impl Type

source

pub fn eq_flat(&self, other: &Self) -> bool

Returns true if the self Type is equal to the other Type.

Flattens array syntax: [[u8; 1]; 2] == [u8; (2, 1)] == true

-
source

pub fn eq_flat_relaxed(&self, other: &Self) -> bool

Returns true if the self Type is equal to the other Type in all aspects besides composite program of origin.

+
source

pub fn eq_flat_relaxed(&self, other: &Self) -> bool

Returns true if the self Type is equal to the other Type in all aspects besides composite program of origin.

In the case of futures, it also makes sure that if both are not explicit, they are equal.

Flattens array syntax: [[u8; 1]; 2] == [u8; (2, 1)] == true

source

pub fn from_snarkvm<N: Network>( t: &PlaintextType<N>, - program: Option<Symbol>, -) -> Self

Trait Implementations§

source§

impl Clone for Type

source§

fn clone(&self) -> Type

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 Type

source§

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

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

impl<'de> Deserialize<'de> for Type

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 Display for Type

source§

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

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

impl From<&Value> for Type

source§

fn from(v: &Value) -> Self

Converts to this type from the input type.
source§

impl From<Value> for Type

source§

fn from(v: Value) -> Self

Converts to this type from the input type.
source§

impl Hash for Type

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where - H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Type

source§

fn eq(&self, other: &Type) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for Type

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 Eq for Type

source§

impl StructuralPartialEq for Type

Auto Trait Implementations§

§

impl Freeze for Type

§

impl RefUnwindSafe for Type

§

impl Send for Type

§

impl Sync for Type

§

impl Unpin for Type

§

impl UnwindSafe for Type

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where + program: Option<Symbol>, +) -> Self

Trait Implementations§

source§

impl Clone for Type

source§

fn clone(&self) -> Type

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 Type

source§

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

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

impl<'de> Deserialize<'de> for Type

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 Display for Type

source§

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

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

impl From<&Value> for Type

source§

fn from(v: &Value) -> Self

Converts to this type from the input type.
source§

impl From<Value> for Type

source§

fn from(v: Value) -> Self

Converts to this type from the input type.
source§

impl Hash for Type

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Type

source§

fn eq(&self, other: &Type) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for Type

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 Eq for Type

source§

impl StructuralPartialEq for Type

Auto Trait Implementations§

§

impl Freeze for Type

§

impl RefUnwindSafe for Type

§

impl Send for Type

§

impl Sync for Type

§

impl Unpin for Type

§

impl UnwindSafe for Type

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_ast/types/type_/index.html b/leo_ast/types/type_/index.html index 43480f5727..33b6c0defd 100644 --- a/leo_ast/types/type_/index.html +++ b/leo_ast/types/type_/index.html @@ -1 +1 @@ -leo_ast::types::type_ - Rust

Module leo_ast::types::type_

source ·

Enums§

  • Explicit type used for defining a variable or expression type
\ No newline at end of file +leo_ast::types::type_ - Rust
leo_ast::types

Module type_

source

Enums§

  • Explicit type used for defining a variable or expression type
\ No newline at end of file diff --git a/leo_ast/value/enum.Value.html b/leo_ast/value/enum.Value.html index cc7b133716..516876db8a 100644 --- a/leo_ast/value/enum.Value.html +++ b/leo_ast/value/enum.Value.html @@ -1,55 +1,55 @@ -Value in leo_ast::value - Rust

Enum leo_ast::value::Value

source ·
pub enum Value {
+Value in leo_ast::value - Rust
leo_ast::value

Enum Value

source
pub enum Value {
 
Show 18 variants Input(Type, Identifier), - Address(String, Span), - Boolean(bool, Span), + Address(String, Span), + Boolean(bool, Span), Struct(Identifier, IndexMap<Symbol, Value>), - Field(String, Span), - Group(Box<GroupLiteral>), - I8(i8, Span), - I16(i16, Span), - I32(i32, Span), - I64(i64, Span), - I128(i128, Span), - U8(u8, Span), - U16(u16, Span), - U32(u32, Span), - U64(u64, Span), - U128(u128, Span), - Scalar(String, Span), - String(String, Span), -
}

Variants§

§

Input(Type, Identifier)

§

Address(String, Span)

§

Boolean(bool, Span)

§

Struct(Identifier, IndexMap<Symbol, Value>)

§

Field(String, Span)

§

Group(Box<GroupLiteral>)

§

I8(i8, Span)

§

I16(i16, Span)

§

I32(i32, Span)

§

I64(i64, Span)

§

I128(i128, Span)

§

U8(u8, Span)

§

U16(u16, Span)

§

U32(u32, Span)

§

U64(u64, Span)

§

U128(u128, Span)

§

Scalar(String, Span)

§

String(String, Span)

Implementations§

source§

impl Value

source

pub(crate) fn abs(self, span: Span) -> Result<Self>

source

pub(crate) fn abs_wrapped(self, span: Span) -> Result<Self>

source

pub(crate) fn neg(self, span: Span) -> Result<Self>

source

pub(crate) fn not(self, span: Span) -> Result<Self>

source

pub(crate) fn add(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn add_wrapped(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn bitand(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn div(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn div_wrapped(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn eq(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn ge(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn gt(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn le(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn lt(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn mul(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn mul_wrapped(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn bitor(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn pow(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn pow_wrapped(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn shl(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn shl_wrapped(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn shr(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn shr_wrapped(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn sub(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn sub_wrapped(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn xor(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn is_supported_const_fold_type(&self) -> bool

Trait Implementations§

source§

impl AsRef<Value> for Value

source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for Value

source§

fn clone(&self) -> Value

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 Value

source§

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

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

impl Display for Value

source§

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

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

impl From<&Value> for Type

source§

fn from(v: &Value) -> Self

Converts to this type from the input type.
source§

impl From<Value> for Type

source§

fn from(v: Value) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Value

source§

fn eq(&self, other: &Value) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl TryFrom<&Literal> for Value

source§

fn try_from(literal: &Literal) -> Result<Self, Self::Error>

Converts a literal to a value.

-
source§

type Error = ParseIntError

The type returned in the event of a conversion error.
source§

impl TryFrom<&Value> for i128

source§

type Error = LeoError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Value> for u128

source§

type Error = LeoError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Value> for i128

source§

type Error = LeoError

The type returned in the event of a conversion error.
source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Value> for u128

source§

type Error = LeoError

The type returned in the event of a conversion error.
source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Eq for Value

source§

impl StructuralPartialEq for Value

Auto Trait Implementations§

§

impl Freeze for Value

§

impl RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnwindSafe for Value

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Field(String, Span), + Group(Box<GroupLiteral>), + I8(i8, Span), + I16(i16, Span), + I32(i32, Span), + I64(i64, Span), + I128(i128, Span), + U8(u8, Span), + U16(u16, Span), + U32(u32, Span), + U64(u64, Span), + U128(u128, Span), + Scalar(String, Span), + String(String, Span), +
}

Variants§

§

Input(Type, Identifier)

§

Address(String, Span)

§

Boolean(bool, Span)

§

Struct(Identifier, IndexMap<Symbol, Value>)

§

Field(String, Span)

§

Group(Box<GroupLiteral>)

§

I8(i8, Span)

§

I16(i16, Span)

§

I32(i32, Span)

§

I64(i64, Span)

§

I128(i128, Span)

§

U8(u8, Span)

§

U16(u16, Span)

§

U32(u32, Span)

§

U64(u64, Span)

§

U128(u128, Span)

§

Scalar(String, Span)

§

String(String, Span)

Implementations§

source§

impl Value

source

pub(crate) fn abs(self, span: Span) -> Result<Self>

source

pub(crate) fn abs_wrapped(self, span: Span) -> Result<Self>

source

pub(crate) fn neg(self, span: Span) -> Result<Self>

source

pub(crate) fn not(self, span: Span) -> Result<Self>

source

pub(crate) fn add(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn add_wrapped(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn bitand(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn div(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn div_wrapped(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn eq(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn ge(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn gt(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn le(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn lt(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn mul(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn mul_wrapped(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn bitor(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn pow(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn pow_wrapped(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn shl(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn shl_wrapped(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn shr(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn shr_wrapped(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn sub(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn sub_wrapped(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn xor(self, other: Self, span: Span) -> Result<Self>

source

pub(crate) fn is_supported_const_fold_type(&self) -> bool

Trait Implementations§

source§

impl AsRef<Value> for Value

source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for Value

source§

fn clone(&self) -> Value

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 Value

source§

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

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

impl Display for Value

source§

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

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

impl From<&Value> for Type

source§

fn from(v: &Value) -> Self

Converts to this type from the input type.
source§

impl From<Value> for Type

source§

fn from(v: Value) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Value

source§

fn eq(&self, other: &Value) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl TryFrom<&Literal> for Value

source§

fn try_from(literal: &Literal) -> Result<Self, Self::Error>

Converts a literal to a value.

+
source§

type Error = ParseIntError

The type returned in the event of a conversion error.
source§

impl TryFrom<&Value> for i128

source§

type Error = LeoError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Value> for u128

source§

type Error = LeoError

The type returned in the event of a conversion error.
source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Value> for i128

source§

type Error = LeoError

The type returned in the event of a conversion error.
source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Value> for u128

source§

type Error = LeoError

The type returned in the event of a conversion error.
source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Eq for Value

source§

impl StructuralPartialEq for Value

Auto Trait Implementations§

§

impl Freeze for Value

§

impl RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnwindSafe for Value

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_ast/value/index.html b/leo_ast/value/index.html index 14c4adb037..f7a4322783 100644 --- a/leo_ast/value/index.html +++ b/leo_ast/value/index.html @@ -1 +1 @@ -leo_ast::value - Rust

Module leo_ast::value

source ·

Macros§

Enums§

\ No newline at end of file +leo_ast::value - Rust
leo_ast

Module value

source

Macros§

Enums§

\ No newline at end of file diff --git a/leo_ast/value/macro.implement_const_binary.html b/leo_ast/value/macro.implement_const_binary.html index 901049b43d..0061975016 100644 --- a/leo_ast/value/macro.implement_const_binary.html +++ b/leo_ast/value/macro.implement_const_binary.html @@ -1,4 +1,4 @@ -implement_const_binary in leo_ast::value - Rust

Macro leo_ast::value::implement_const_binary

source ·
macro_rules! implement_const_binary {
+implement_const_binary in leo_ast::value - Rust
leo_ast::value

Macro implement_const_binary

source
macro_rules! implement_const_binary {
     (
         @overflowing
         name: $name:ident,
diff --git a/leo_ast/value/macro.implement_const_unary.html b/leo_ast/value/macro.implement_const_unary.html
index 26f984e800..e65954af92 100644
--- a/leo_ast/value/macro.implement_const_unary.html
+++ b/leo_ast/value/macro.implement_const_unary.html
@@ -1,4 +1,4 @@
-implement_const_unary in leo_ast::value - Rust

Macro leo_ast::value::implement_const_unary

source ·
macro_rules! implement_const_unary {
+implement_const_unary in leo_ast::value - Rust
leo_ast::value

Macro implement_const_unary

source
macro_rules! implement_const_unary {
     (
         @overflowing
         name: $name:ident,
diff --git a/leo_compiler/all.html b/leo_compiler/all.html
index e1c1d5ab4b..64c49bea0a 100644
--- a/leo_compiler/all.html
+++ b/leo_compiler/all.html
@@ -1 +1 @@
-List of all items in this crate
\ No newline at end of file +List of all items in this crate
\ No newline at end of file diff --git a/leo_compiler/compiler/index.html b/leo_compiler/compiler/index.html index 05e2705bd4..94563206e6 100644 --- a/leo_compiler/compiler/index.html +++ b/leo_compiler/compiler/index.html @@ -1,3 +1,3 @@ -leo_compiler::compiler - Rust

Module leo_compiler::compiler

source ·
Expand description

The compiler for Leo programs.

+leo_compiler::compiler - Rust
leo_compiler

Module compiler

source
Expand description

The compiler for Leo programs.

The Compiler type compiles Leo programs into R1CS circuits.

Structs§

  • The abstract syntax tree (AST) for a Leo program.
  • The primary entry point of the Leo compiler.
\ No newline at end of file diff --git a/leo_compiler/compiler/struct.Ast.html b/leo_compiler/compiler/struct.Ast.html index 626d890e47..8fb2b6ae60 100644 --- a/leo_compiler/compiler/struct.Ast.html +++ b/leo_compiler/compiler/struct.Ast.html @@ -1,54 +1,54 @@ -Ast in leo_compiler::compiler - Rust

Struct leo_compiler::compiler::Ast

source ·
pub struct Ast {
+Ast in leo_compiler::compiler - Rust
leo_compiler::compiler

Struct Ast

source
pub struct Ast {
     pub ast: Program,
 }
Expand description

The abstract syntax tree (AST) for a Leo program.

The Ast type represents a Leo program as a series of recursive data types. These data types form a tree that begins from a Program type root.

Fields§

§ast: Program

Implementations§

source§

impl Ast

source

pub fn new(program: Program) -> Ast

Creates a new AST from a given program tree.

source

pub fn as_repr(&self) -> &Program

Returns a reference to the inner program AST representation.

-
source

pub fn into_repr(self) -> Program

source

pub fn to_json_string(&self) -> Result<String, LeoError>

Serializes the ast into a JSON string.

-
source

pub fn to_json_value(&self) -> Result<Value, LeoError>

source

pub fn to_json_file( +

source

pub fn into_repr(self) -> Program

source

pub fn to_json_string(&self) -> Result<String, LeoError>

Serializes the ast into a JSON string.

+
source

pub fn to_json_value(&self) -> Result<Value, LeoError>

source

pub fn to_json_file( &self, - path: PathBuf, - file_name: &str, -) -> Result<(), LeoError>

Serializes the ast into a JSON file.

+ path: PathBuf, + file_name: &str, +) -> Result<(), LeoError>

Serializes the ast into a JSON file.

source

pub fn to_json_file_without_keys( &self, - path: PathBuf, - file_name: &str, - excluded_keys: &[&str], -) -> Result<(), LeoError>

Serializes the ast into a JSON value and removes keys from object mappings before writing to a file.

-
source

pub fn from_json_string(json: &str) -> Result<Ast, LeoError>

Deserializes the JSON string into a ast.

-
source

pub fn from_json_file(path: PathBuf) -> Result<Ast, LeoError>

Deserializes the JSON string into a ast from a file.

-

Trait Implementations§

source§

impl AsRef<Program> for Ast

source§

fn as_ref(&self) -> &Program

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for Ast

source§

fn clone(&self) -> Ast

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 Ast

source§

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

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

impl Default for Ast

source§

fn default() -> Ast

Returns the “default value” for a type. Read more
source§

impl PartialEq for Ast

source§

fn eq(&self, other: &Ast) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Eq for Ast

source§

impl StructuralPartialEq for Ast

Auto Trait Implementations§

§

impl Freeze for Ast

§

impl !RefUnwindSafe for Ast

§

impl Send for Ast

§

impl !Sync for Ast

§

impl Unpin for Ast

§

impl UnwindSafe for Ast

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ path: PathBuf, + file_name: &str, + excluded_keys: &[&str], +) -> Result<(), LeoError>

Serializes the ast into a JSON value and removes keys from object mappings before writing to a file.

+
source

pub fn from_json_string(json: &str) -> Result<Ast, LeoError>

Deserializes the JSON string into a ast.

+
source

pub fn from_json_file(path: PathBuf) -> Result<Ast, LeoError>

Deserializes the JSON string into a ast from a file.

+

Trait Implementations§

source§

impl AsRef<Program> for Ast

source§

fn as_ref(&self) -> &Program

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for Ast

source§

fn clone(&self) -> Ast

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 Ast

source§

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

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

impl Default for Ast

source§

fn default() -> Ast

Returns the “default value” for a type. Read more
source§

impl PartialEq for Ast

source§

fn eq(&self, other: &Ast) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Eq for Ast

source§

impl StructuralPartialEq for Ast

Auto Trait Implementations§

§

impl Freeze for Ast

§

impl !RefUnwindSafe for Ast

§

impl Send for Ast

§

impl !Sync for Ast

§

impl Unpin for Ast

§

impl UnwindSafe for Ast

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_compiler/compiler/struct.Compiler.html b/leo_compiler/compiler/struct.Compiler.html index 69dd70be6a..899d21d778 100644 --- a/leo_compiler/compiler/struct.Compiler.html +++ b/leo_compiler/compiler/struct.Compiler.html @@ -1,50 +1,50 @@ -Compiler in leo_compiler::compiler - Rust

Struct leo_compiler::compiler::Compiler

source ·
pub struct Compiler<'a, N: Network> {
+Compiler in leo_compiler::compiler - Rust
leo_compiler::compiler

Struct Compiler

source
pub struct Compiler<'a, N: Network> {
     handler: &'a Handler,
-    main_file_path: PathBuf,
-    output_directory: PathBuf,
-    pub program_name: String,
-    pub network: String,
+    main_file_path: PathBuf,
+    output_directory: PathBuf,
+    pub program_name: String,
+    pub network: String,
     pub ast: Ast,
     compiler_options: CompilerOptions,
     node_builder: NodeBuilder,
     assigner: Assigner,
     type_table: TypeTable,
     import_stubs: IndexMap<Symbol, Stub>,
-    phantom: PhantomData<N>,
+    phantom: PhantomData<N>,
 }
Expand description

The primary entry point of the Leo compiler.

Fields§

§handler: &'a Handler

The handler is used for error and warning emissions.

-
§main_file_path: PathBuf

The path to the main leo file.

-
§output_directory: PathBuf

The path to where the compiler outputs all generated files.

-
§program_name: String

The program name,

-
§network: String

The network name,

+
§main_file_path: PathBuf

The path to the main leo file.

+
§output_directory: PathBuf

The path to where the compiler outputs all generated files.

+
§program_name: String

The program name,

+
§network: String

The network name,

§ast: Ast

The AST for the program.

§compiler_options: CompilerOptions

Options configuring compilation.

§node_builder: NodeBuilder

The NodeCounter used to generate sequentially increasing NodeIDs.

§assigner: Assigner

The Assigner is used to construct (unique) assignment statements.

§type_table: TypeTable

The type table.

§import_stubs: IndexMap<Symbol, Stub>

The stubs for imported programs. Produced by Retriever module.

-
§phantom: PhantomData<N>

Implementations§

source§

impl<'a, N: Network> Compiler<'a, N>

source

pub fn new( - program_name: String, - network: String, +

§phantom: PhantomData<N>

Implementations§

source§

impl<'a, N: Network> Compiler<'a, N>

source

pub fn new( + program_name: String, + network: String, handler: &'a Handler, - main_file_path: PathBuf, - output_directory: PathBuf, - compiler_options: Option<CompilerOptions>, + main_file_path: PathBuf, + output_directory: PathBuf, + compiler_options: Option<CompilerOptions>, import_stubs: IndexMap<Symbol, Stub>, ) -> Self

Returns a new Leo compiler.

-
source

pub fn checksum(&self) -> Result<String>

Returns a SHA256 checksum of the program file.

+
source

pub fn checksum(&self) -> Result<String>

Returns a SHA256 checksum of the program file.

source

pub fn parse_program_from_string( &mut self, - program_string: &str, + program_string: &str, name: FileName, -) -> Result<()>

Parses and stores a program file content from a string, constructs a syntax tree, and generates a program.

-
source

pub fn parse_program(&mut self) -> Result<()>

Parses and stores the main program file, constructs a syntax tree, and generates a program.

+) -> Result<()>

Parses and stores a program file content from a string, constructs a syntax tree, and generates a program.

+
source

pub fn parse_program(&mut self) -> Result<()>

Parses and stores the main program file, constructs a syntax tree, and generates a program.

source

pub fn symbol_table_pass(&self) -> Result<SymbolTable>

Runs the symbol table pass.

source

pub fn type_checker_pass( &'a self, symbol_table: SymbolTable, ) -> Result<(SymbolTable, StructGraph, CallGraph)>

Runs the type checker pass.

-
source

pub fn static_analysis_pass(&mut self, symbol_table: &SymbolTable) -> Result<()>

Runs the static analysis pass.

+
source

pub fn static_analysis_pass(&mut self, symbol_table: &SymbolTable) -> Result<()>

Runs the static analysis pass.

source

pub fn loop_unrolling_pass( &mut self, symbol_table: SymbolTable, @@ -52,52 +52,52 @@

source

pub fn static_single_assignment_pass( &mut self, symbol_table: &SymbolTable, -) -> Result<()>

Runs the static single assignment pass.

-
source

pub fn flattening_pass(&mut self, symbol_table: &SymbolTable) -> Result<()>

Runs the flattening pass.

-
source

pub fn destructuring_pass(&mut self) -> Result<()>

Runs the destructuring pass.

-
source

pub fn function_inlining_pass(&mut self, call_graph: &CallGraph) -> Result<()>

Runs the function inlining pass.

-
source

pub fn dead_code_elimination_pass(&mut self) -> Result<()>

Runs the dead code elimination pass.

+) -> Result<()>

Runs the static single assignment pass.

+
source

pub fn flattening_pass(&mut self, symbol_table: &SymbolTable) -> Result<()>

Runs the flattening pass.

+
source

pub fn destructuring_pass(&mut self) -> Result<()>

Runs the destructuring pass.

+
source

pub fn function_inlining_pass(&mut self, call_graph: &CallGraph) -> Result<()>

Runs the function inlining pass.

+
source

pub fn dead_code_elimination_pass(&mut self) -> Result<()>

Runs the dead code elimination pass.

source

pub fn code_generation_pass( &mut self, symbol_table: &SymbolTable, struct_graph: &StructGraph, call_graph: &CallGraph, -) -> Result<String>

Runs the code generation pass.

+) -> Result<String>

Runs the code generation pass.

source

pub fn compiler_stages( &mut self, ) -> Result<(SymbolTable, StructGraph, CallGraph)>

Runs the compiler stages.

-
source

pub fn compile(&mut self) -> Result<String>

Returns a compiled Leo program.

-
source

fn write_ast_to_json(&self, file_suffix: &str) -> Result<()>

Writes the AST to a JSON file.

+
source

pub fn compile(&mut self) -> Result<String>

Returns a compiled Leo program.

+
source

fn write_ast_to_json(&self, file_suffix: &str) -> Result<()>

Writes the AST to a JSON file.

source

fn write_symbol_table_to_json( &self, - file_suffix: &str, + file_suffix: &str, symbol_table: &SymbolTable, -) -> Result<()>

Writes the Symbol Table to a JSON file.

-
source

pub fn add_import_stubs(&mut self) -> Result<()>

Merges the dependencies defined in program.json with the dependencies imported in .leo file

-

Trait Implementations§

source§

impl<'a, N: Clone + Network> Clone for Compiler<'a, N>

source§

fn clone(&self) -> Compiler<'a, N>

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§

§

impl<'a, N> !Freeze for Compiler<'a, N>

§

impl<'a, N> !RefUnwindSafe for Compiler<'a, N>

§

impl<'a, N> !Send for Compiler<'a, N>

§

impl<'a, N> !Sync for Compiler<'a, N>

§

impl<'a, N> Unpin for Compiler<'a, N>
where - N: Unpin,

§

impl<'a, N> !UnwindSafe for Compiler<'a, N>

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+) -> Result<()>

Writes the Symbol Table to a JSON file.

+
source

pub fn add_import_stubs(&mut self) -> Result<()>

Merges the dependencies defined in program.json with the dependencies imported in .leo file

+

Trait Implementations§

source§

impl<'a, N: Clone + Network> Clone for Compiler<'a, N>

source§

fn clone(&self) -> Compiler<'a, N>

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§

§

impl<'a, N> !Freeze for Compiler<'a, N>

§

impl<'a, N> !RefUnwindSafe for Compiler<'a, N>

§

impl<'a, N> !Send for Compiler<'a, N>

§

impl<'a, N> !Sync for Compiler<'a, N>

§

impl<'a, N> Unpin for Compiler<'a, N>
where + N: Unpin,

§

impl<'a, N> !UnwindSafe for Compiler<'a, N>

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_compiler/compiler/struct.SymbolTable.html b/leo_compiler/compiler/struct.SymbolTable.html index 554b868061..1e8a713ac9 100644 --- a/leo_compiler/compiler/struct.SymbolTable.html +++ b/leo_compiler/compiler/struct.SymbolTable.html @@ -1,119 +1,119 @@ -SymbolTable in leo_compiler::compiler - Rust

Struct leo_compiler::compiler::SymbolTable

source ·
pub struct SymbolTable {
-    pub(crate) parent: Option<Box<SymbolTable>>,
+SymbolTable in leo_compiler::compiler - Rust
leo_compiler::compiler

Struct SymbolTable

source
pub struct SymbolTable {
+    pub(crate) parent: Option<Box<SymbolTable>>,
     pub functions: IndexMap<Location, FunctionSymbol>,
     pub structs: IndexMap<Location, Composite>,
     pub(crate) variables: IndexMap<Location, VariableSymbol>,
-    pub(crate) scope_index: usize,
-    pub(crate) scopes: Vec<RefCell<SymbolTable>>,
-}

Fields§

§parent: Option<Box<SymbolTable>>§functions: IndexMap<Location, FunctionSymbol>

Maps parent program name and function name to the AST’s function definition. + pub(crate) scope_index: usize, + pub(crate) scopes: Vec<RefCell<SymbolTable>>, +}

Fields§

§parent: Option<Box<SymbolTable>>§functions: IndexMap<Location, FunctionSymbol>

Maps parent program name and function name to the AST’s function definition. This field is populated at a first pass.

§structs: IndexMap<Location, Composite>

Maps parent program name and composite name to composite definitions. This field is populated at a first pass.

-
§variables: IndexMap<Location, VariableSymbol>§scope_index: usize§scopes: Vec<RefCell<SymbolTable>>

Implementations§

source§

impl SymbolTable

§variables: IndexMap<Location, VariableSymbol>§scope_index: usize§scopes: Vec<RefCell<SymbolTable>>

Implementations§

source§

impl SymbolTable

source

pub fn check_shadowing( &self, location: &Location, - program: Option<Symbol>, - is_struct: bool, + program: Option<Symbol>, + is_struct: bool, span: Span, -) -> Result<(), LeoError>

Recursively checks if the symbol table contains an entry for the given symbol. +) -> Result<(), LeoError>

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. +

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<(), LeoError>

Inserts a function into the symbol table.

+) -> Result<(), LeoError>

Inserts a function into the symbol table.

source

pub fn insert_struct( &mut self, location: Location, insert: &Composite, -) -> Result<(), LeoError>

Inserts a struct into the symbol table.

+) -> Result<(), LeoError>

Inserts a struct into the symbol table.

source

pub fn attach_finalize( &mut self, caller: Location, callee: Location, -) -> Result<(), LeoError>

Attach a finalize to a function.

+) -> Result<(), LeoError>

Attach a finalize to a function.

source

pub fn insert_variable( &mut self, location: Location, - program: Option<Symbol>, + program: Option<Symbol>, insert: VariableSymbol, -) -> Result<(), LeoError>

Inserts a variable into the symbol table.

+) -> Result<(), LeoError>

Inserts a variable into the symbol table.

source

pub fn insert_futures( &mut self, program: Symbol, function: Symbol, - futures: Vec<Location>, -) -> Result<(), LeoError>

Inserts futures into the function definition.

+ futures: Vec<Location>, +) -> Result<(), LeoError>

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.

+
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.

source

pub fn lookup_struct( &self, location: Location, - main_program: Option<Symbol>, -) -> Option<&Composite>

Attempts to lookup a struct in the symbol table.

-
source

pub fn lookup_variable(&self, location: Location) -> Option<&VariableSymbol>

Attempts to lookup a variable in the symbol table.

+ main_program: Option<Symbol>, +) -> Option<&Composite>

Attempts to lookup a struct in the symbol table.

+
source

pub fn lookup_variable(&self, location: Location) -> Option<&VariableSymbol>

Attempts to lookup a variable in the symbol table.

source

pub fn lookup_variable_in_current_scope( &self, location: Location, -) -> Option<&VariableSymbol>

Attempts to lookup a variable in the current scope.

+) -> Option<&VariableSymbol>

Attempts to lookup a variable in the current scope.

source

pub fn lookup_scope_by_index( &self, - index: usize, -) -> Option<&RefCell<SymbolTable>>

Returns the scope associated with index, if it exists in the symbol table.

-
source

pub fn to_json_string(&self) -> Result<String, LeoError>

Serializes the symbol table into a JSON string.

-
source

pub fn to_json_value(&self) -> Result<Value, LeoError>

Converts the symbol table into a JSON value

+ index: usize, +) -> Option<&RefCell<SymbolTable>>

Returns the scope associated with index, if it exists in the symbol table.

+
source

pub fn to_json_string(&self) -> Result<String, LeoError>

Serializes the symbol table into a JSON string.

+
source

pub fn to_json_value(&self) -> Result<Value, LeoError>

Converts the symbol table into a JSON value

source

pub fn to_json_file( &self, - path: PathBuf, - file_name: &str, -) -> Result<(), LeoError>

source

pub fn to_json_file_without_keys( + path: PathBuf, + file_name: &str, +) -> Result<(), LeoError>

source

pub fn to_json_file_without_keys( &self, - path: PathBuf, - file_name: &str, - excluded_keys: &[&str], -) -> Result<(), LeoError>

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<SymbolTable, LeoError>

Deserializes the JSON string into a symbol table.

-
source

pub fn from_json_file(path: PathBuf) -> Result<SymbolTable, LeoError>

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<(), Error>

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>( + path: PathBuf, + file_name: &str, + excluded_keys: &[&str], +) -> Result<(), LeoError>

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<SymbolTable, LeoError>

Deserializes the JSON string into a symbol table.

+
source

pub fn from_json_file(path: PathBuf) -> Result<SymbolTable, LeoError>

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<(), Error>

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<SymbolTable, <__D as Deserializer<'de>>::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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +) -> Result<SymbolTable, <__D as Deserializer<'de>>::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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for SymbolTable

source§

fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for SymbolTable

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for SymbolTable

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_compiler/index.html b/leo_compiler/index.html index fc9d220f88..494a2c8067 100644 --- a/leo_compiler/index.html +++ b/leo_compiler/index.html @@ -1,4 +1,4 @@ -leo_compiler - Rust

Crate leo_compiler

source ·
Expand description

§leo-compiler

+leo_compiler - Rust

Crate leo_compiler

source
Expand description

§leo-compiler

Crates.io Authors License

diff --git a/leo_compiler/options/index.html b/leo_compiler/options/index.html index 04626bd006..9f7b416b63 100644 --- a/leo_compiler/options/index.html +++ b/leo_compiler/options/index.html @@ -1 +1 @@ -leo_compiler::options - Rust
\ No newline at end of file +leo_compiler::options - Rust
\ No newline at end of file diff --git a/leo_compiler/options/struct.BuildOptions.html b/leo_compiler/options/struct.BuildOptions.html index b490eb6d09..67b3114613 100644 --- a/leo_compiler/options/struct.BuildOptions.html +++ b/leo_compiler/options/struct.BuildOptions.html @@ -1,33 +1,33 @@ -BuildOptions in leo_compiler::options - Rust

Struct leo_compiler::options::BuildOptions

source ·
pub struct BuildOptions {
-    pub dce_enabled: bool,
-    pub conditional_block_max_depth: usize,
-    pub disable_conditional_branch_type_checking: bool,
-}

Fields§

§dce_enabled: bool

Whether to enable dead code elimination.

-
§conditional_block_max_depth: usize

Max depth to type check nested conditionals.

-
§disable_conditional_branch_type_checking: bool

Whether to disable type checking for nested conditionals.

-

Trait Implementations§

source§

impl Clone for BuildOptions

source§

fn clone(&self) -> BuildOptions

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 Default for BuildOptions

source§

fn default() -> BuildOptions

Returns the “default value” for a type. 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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+BuildOptions in leo_compiler::options - Rust
leo_compiler::options

Struct BuildOptions

source
pub struct BuildOptions {
+    pub dce_enabled: bool,
+    pub conditional_block_max_depth: usize,
+    pub disable_conditional_branch_type_checking: bool,
+}

Fields§

§dce_enabled: bool

Whether to enable dead code elimination.

+
§conditional_block_max_depth: usize

Max depth to type check nested conditionals.

+
§disable_conditional_branch_type_checking: bool

Whether to disable type checking for nested conditionals.

+

Trait Implementations§

source§

impl Clone for BuildOptions

source§

fn clone(&self) -> BuildOptions

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 Default for BuildOptions

source§

fn default() -> BuildOptions

Returns the “default value” for a type. 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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_compiler/options/struct.CompilerOptions.html b/leo_compiler/options/struct.CompilerOptions.html index e32b31ead6..bf94864f76 100644 --- a/leo_compiler/options/struct.CompilerOptions.html +++ b/leo_compiler/options/struct.CompilerOptions.html @@ -1,31 +1,31 @@ -CompilerOptions in leo_compiler::options - Rust

Struct leo_compiler::options::CompilerOptions

source ·
pub struct CompilerOptions {
+CompilerOptions in leo_compiler::options - Rust
leo_compiler::options

Struct CompilerOptions

source
pub struct CompilerOptions {
     pub build: BuildOptions,
     pub output: OutputOptions,
 }

Fields§

§build: BuildOptions

Build options.

§output: OutputOptions

Output options.

-

Trait Implementations§

source§

impl Clone for CompilerOptions

source§

fn clone(&self) -> CompilerOptions

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 Default for CompilerOptions

source§

fn default() -> CompilerOptions

Returns the “default value” for a type. 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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+

Trait Implementations§

source§

impl Clone for CompilerOptions

source§

fn clone(&self) -> CompilerOptions

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 Default for CompilerOptions

source§

fn default() -> CompilerOptions

Returns the “default value” for a type. 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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_compiler/options/struct.OutputOptions.html b/leo_compiler/options/struct.OutputOptions.html index 809c9c5008..3d76e1def0 100644 --- a/leo_compiler/options/struct.OutputOptions.html +++ b/leo_compiler/options/struct.OutputOptions.html @@ -1,49 +1,49 @@ -OutputOptions in leo_compiler::options - Rust

Struct leo_compiler::options::OutputOptions

source ·
pub struct OutputOptions {
-    pub symbol_table_spans_enabled: bool,
-    pub initial_symbol_table: bool,
-    pub type_checked_symbol_table: bool,
-    pub unrolled_symbol_table: bool,
-    pub ast_spans_enabled: bool,
-    pub initial_ast: bool,
-    pub unrolled_ast: bool,
-    pub ssa_ast: bool,
-    pub flattened_ast: bool,
-    pub destructured_ast: bool,
-    pub inlined_ast: bool,
-    pub dce_ast: bool,
-}

Fields§

§symbol_table_spans_enabled: bool§initial_symbol_table: bool§type_checked_symbol_table: bool

If enabled writes the symbol table after type checking.

-
§unrolled_symbol_table: bool

If enabled writes the symbol table after loop unrolling.

-
§ast_spans_enabled: bool

Whether spans are enabled in the output ASTs.

-
§initial_ast: bool

If enabled writes the AST after parsing.

-
§unrolled_ast: bool

If enabled writes the AST after loop unrolling.

-
§ssa_ast: bool

If enabled writes the AST after static single assignment.

-
§flattened_ast: bool

If enabled writes the AST after flattening.

-
§destructured_ast: bool

If enabled writes the AST after destructuring.

-
§inlined_ast: bool

If enabled writes the AST after inlining.

-
§dce_ast: bool

If enabled writes the AST after dead code elimination.

-

Trait Implementations§

source§

impl Clone for OutputOptions

source§

fn clone(&self) -> OutputOptions

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 Default for OutputOptions

source§

fn default() -> OutputOptions

Returns the “default value” for a type. 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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+OutputOptions in leo_compiler::options - Rust
leo_compiler::options

Struct OutputOptions

source
pub struct OutputOptions {
+    pub symbol_table_spans_enabled: bool,
+    pub initial_symbol_table: bool,
+    pub type_checked_symbol_table: bool,
+    pub unrolled_symbol_table: bool,
+    pub ast_spans_enabled: bool,
+    pub initial_ast: bool,
+    pub unrolled_ast: bool,
+    pub ssa_ast: bool,
+    pub flattened_ast: bool,
+    pub destructured_ast: bool,
+    pub inlined_ast: bool,
+    pub dce_ast: bool,
+}

Fields§

§symbol_table_spans_enabled: bool§initial_symbol_table: bool§type_checked_symbol_table: bool

If enabled writes the symbol table after type checking.

+
§unrolled_symbol_table: bool

If enabled writes the symbol table after loop unrolling.

+
§ast_spans_enabled: bool

Whether spans are enabled in the output ASTs.

+
§initial_ast: bool

If enabled writes the AST after parsing.

+
§unrolled_ast: bool

If enabled writes the AST after loop unrolling.

+
§ssa_ast: bool

If enabled writes the AST after static single assignment.

+
§flattened_ast: bool

If enabled writes the AST after flattening.

+
§destructured_ast: bool

If enabled writes the AST after destructuring.

+
§inlined_ast: bool

If enabled writes the AST after inlining.

+
§dce_ast: bool

If enabled writes the AST after dead code elimination.

+

Trait Implementations§

source§

impl Clone for OutputOptions

source§

fn clone(&self) -> OutputOptions

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 Default for OutputOptions

source§

fn default() -> OutputOptions

Returns the “default value” for a type. 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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_compiler/struct.Ast.html b/leo_compiler/struct.Ast.html index 8b3200ec33..7966edfba6 100644 --- a/leo_compiler/struct.Ast.html +++ b/leo_compiler/struct.Ast.html @@ -1,54 +1,54 @@ -Ast in leo_compiler - Rust

Struct leo_compiler::Ast

source ·
pub struct Ast {
+Ast in leo_compiler - Rust
leo_compiler

Struct Ast

source
pub struct Ast {
     pub ast: Program,
 }
Expand description

The abstract syntax tree (AST) for a Leo program.

The Ast type represents a Leo program as a series of recursive data types. These data types form a tree that begins from a Program type root.

Fields§

§ast: Program

Implementations§

source§

impl Ast

source

pub fn new(program: Program) -> Ast

Creates a new AST from a given program tree.

source

pub fn as_repr(&self) -> &Program

Returns a reference to the inner program AST representation.

-
source

pub fn into_repr(self) -> Program

source

pub fn to_json_string(&self) -> Result<String, LeoError>

Serializes the ast into a JSON string.

-
source

pub fn to_json_value(&self) -> Result<Value, LeoError>

source

pub fn to_json_file( +

source

pub fn into_repr(self) -> Program

source

pub fn to_json_string(&self) -> Result<String, LeoError>

Serializes the ast into a JSON string.

+
source

pub fn to_json_value(&self) -> Result<Value, LeoError>

source

pub fn to_json_file( &self, - path: PathBuf, - file_name: &str, -) -> Result<(), LeoError>

Serializes the ast into a JSON file.

+ path: PathBuf, + file_name: &str, +) -> Result<(), LeoError>

Serializes the ast into a JSON file.

source

pub fn to_json_file_without_keys( &self, - path: PathBuf, - file_name: &str, - excluded_keys: &[&str], -) -> Result<(), LeoError>

Serializes the ast into a JSON value and removes keys from object mappings before writing to a file.

-
source

pub fn from_json_string(json: &str) -> Result<Ast, LeoError>

Deserializes the JSON string into a ast.

-
source

pub fn from_json_file(path: PathBuf) -> Result<Ast, LeoError>

Deserializes the JSON string into a ast from a file.

-

Trait Implementations§

source§

impl AsRef<Program> for Ast

source§

fn as_ref(&self) -> &Program

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for Ast

source§

fn clone(&self) -> Ast

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 Ast

source§

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

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

impl Default for Ast

source§

fn default() -> Ast

Returns the “default value” for a type. Read more
source§

impl PartialEq for Ast

source§

fn eq(&self, other: &Ast) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Eq for Ast

source§

impl StructuralPartialEq for Ast

Auto Trait Implementations§

§

impl Freeze for Ast

§

impl !RefUnwindSafe for Ast

§

impl Send for Ast

§

impl !Sync for Ast

§

impl Unpin for Ast

§

impl UnwindSafe for Ast

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ path: PathBuf, + file_name: &str, + excluded_keys: &[&str], +) -> Result<(), LeoError>

Serializes the ast into a JSON value and removes keys from object mappings before writing to a file.

+
source

pub fn from_json_string(json: &str) -> Result<Ast, LeoError>

Deserializes the JSON string into a ast.

+
source

pub fn from_json_file(path: PathBuf) -> Result<Ast, LeoError>

Deserializes the JSON string into a ast from a file.

+

Trait Implementations§

source§

impl AsRef<Program> for Ast

source§

fn as_ref(&self) -> &Program

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for Ast

source§

fn clone(&self) -> Ast

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 Ast

source§

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

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

impl Default for Ast

source§

fn default() -> Ast

Returns the “default value” for a type. Read more
source§

impl PartialEq for Ast

source§

fn eq(&self, other: &Ast) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Eq for Ast

source§

impl StructuralPartialEq for Ast

Auto Trait Implementations§

§

impl Freeze for Ast

§

impl !RefUnwindSafe for Ast

§

impl Send for Ast

§

impl !Sync for Ast

§

impl Unpin for Ast

§

impl UnwindSafe for Ast

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_compiler/struct.BuildOptions.html b/leo_compiler/struct.BuildOptions.html index 16088cc74f..5994e076fa 100644 --- a/leo_compiler/struct.BuildOptions.html +++ b/leo_compiler/struct.BuildOptions.html @@ -1,33 +1,33 @@ -BuildOptions in leo_compiler - Rust

Struct leo_compiler::BuildOptions

source ·
pub struct BuildOptions {
-    pub dce_enabled: bool,
-    pub conditional_block_max_depth: usize,
-    pub disable_conditional_branch_type_checking: bool,
-}

Fields§

§dce_enabled: bool

Whether to enable dead code elimination.

-
§conditional_block_max_depth: usize

Max depth to type check nested conditionals.

-
§disable_conditional_branch_type_checking: bool

Whether to disable type checking for nested conditionals.

-

Trait Implementations§

source§

impl Clone for BuildOptions

source§

fn clone(&self) -> BuildOptions

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 Default for BuildOptions

source§

fn default() -> BuildOptions

Returns the “default value” for a type. 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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+BuildOptions in leo_compiler - Rust
leo_compiler

Struct BuildOptions

source
pub struct BuildOptions {
+    pub dce_enabled: bool,
+    pub conditional_block_max_depth: usize,
+    pub disable_conditional_branch_type_checking: bool,
+}

Fields§

§dce_enabled: bool

Whether to enable dead code elimination.

+
§conditional_block_max_depth: usize

Max depth to type check nested conditionals.

+
§disable_conditional_branch_type_checking: bool

Whether to disable type checking for nested conditionals.

+

Trait Implementations§

source§

impl Clone for BuildOptions

source§

fn clone(&self) -> BuildOptions

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 Default for BuildOptions

source§

fn default() -> BuildOptions

Returns the “default value” for a type. 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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_compiler/struct.Compiler.html b/leo_compiler/struct.Compiler.html index 3c069b290d..b0b306b708 100644 --- a/leo_compiler/struct.Compiler.html +++ b/leo_compiler/struct.Compiler.html @@ -1,50 +1,50 @@ -Compiler in leo_compiler - Rust

Struct leo_compiler::Compiler

source ·
pub struct Compiler<'a, N: Network> {
+Compiler in leo_compiler - Rust
leo_compiler

Struct Compiler

source
pub struct Compiler<'a, N: Network> {
     handler: &'a Handler,
-    main_file_path: PathBuf,
-    output_directory: PathBuf,
-    pub program_name: String,
-    pub network: String,
+    main_file_path: PathBuf,
+    output_directory: PathBuf,
+    pub program_name: String,
+    pub network: String,
     pub ast: Ast,
     compiler_options: CompilerOptions,
     node_builder: NodeBuilder,
     assigner: Assigner,
     type_table: TypeTable,
     import_stubs: IndexMap<Symbol, Stub>,
-    phantom: PhantomData<N>,
+    phantom: PhantomData<N>,
 }
Expand description

The primary entry point of the Leo compiler.

Fields§

§handler: &'a Handler

The handler is used for error and warning emissions.

-
§main_file_path: PathBuf

The path to the main leo file.

-
§output_directory: PathBuf

The path to where the compiler outputs all generated files.

-
§program_name: String

The program name,

-
§network: String

The network name,

+
§main_file_path: PathBuf

The path to the main leo file.

+
§output_directory: PathBuf

The path to where the compiler outputs all generated files.

+
§program_name: String

The program name,

+
§network: String

The network name,

§ast: Ast

The AST for the program.

§compiler_options: CompilerOptions

Options configuring compilation.

§node_builder: NodeBuilder

The NodeCounter used to generate sequentially increasing NodeIDs.

§assigner: Assigner

The Assigner is used to construct (unique) assignment statements.

§type_table: TypeTable

The type table.

§import_stubs: IndexMap<Symbol, Stub>

The stubs for imported programs. Produced by Retriever module.

-
§phantom: PhantomData<N>

Implementations§

source§

impl<'a, N: Network> Compiler<'a, N>

source

pub fn new( - program_name: String, - network: String, +

§phantom: PhantomData<N>

Implementations§

source§

impl<'a, N: Network> Compiler<'a, N>

source

pub fn new( + program_name: String, + network: String, handler: &'a Handler, - main_file_path: PathBuf, - output_directory: PathBuf, - compiler_options: Option<CompilerOptions>, + main_file_path: PathBuf, + output_directory: PathBuf, + compiler_options: Option<CompilerOptions>, import_stubs: IndexMap<Symbol, Stub>, ) -> Self

Returns a new Leo compiler.

-
source

pub fn checksum(&self) -> Result<String>

Returns a SHA256 checksum of the program file.

+
source

pub fn checksum(&self) -> Result<String>

Returns a SHA256 checksum of the program file.

source

pub fn parse_program_from_string( &mut self, - program_string: &str, + program_string: &str, name: FileName, -) -> Result<()>

Parses and stores a program file content from a string, constructs a syntax tree, and generates a program.

-
source

pub fn parse_program(&mut self) -> Result<()>

Parses and stores the main program file, constructs a syntax tree, and generates a program.

+) -> Result<()>

Parses and stores a program file content from a string, constructs a syntax tree, and generates a program.

+
source

pub fn parse_program(&mut self) -> Result<()>

Parses and stores the main program file, constructs a syntax tree, and generates a program.

source

pub fn symbol_table_pass(&self) -> Result<SymbolTable>

Runs the symbol table pass.

source

pub fn type_checker_pass( &'a self, symbol_table: SymbolTable, ) -> Result<(SymbolTable, StructGraph, CallGraph)>

Runs the type checker pass.

-
source

pub fn static_analysis_pass(&mut self, symbol_table: &SymbolTable) -> Result<()>

Runs the static analysis pass.

+
source

pub fn static_analysis_pass(&mut self, symbol_table: &SymbolTable) -> Result<()>

Runs the static analysis pass.

source

pub fn loop_unrolling_pass( &mut self, symbol_table: SymbolTable, @@ -52,52 +52,52 @@

source

pub fn static_single_assignment_pass( &mut self, symbol_table: &SymbolTable, -) -> Result<()>

Runs the static single assignment pass.

-
source

pub fn flattening_pass(&mut self, symbol_table: &SymbolTable) -> Result<()>

Runs the flattening pass.

-
source

pub fn destructuring_pass(&mut self) -> Result<()>

Runs the destructuring pass.

-
source

pub fn function_inlining_pass(&mut self, call_graph: &CallGraph) -> Result<()>

Runs the function inlining pass.

-
source

pub fn dead_code_elimination_pass(&mut self) -> Result<()>

Runs the dead code elimination pass.

+) -> Result<()>

Runs the static single assignment pass.

+
source

pub fn flattening_pass(&mut self, symbol_table: &SymbolTable) -> Result<()>

Runs the flattening pass.

+
source

pub fn destructuring_pass(&mut self) -> Result<()>

Runs the destructuring pass.

+
source

pub fn function_inlining_pass(&mut self, call_graph: &CallGraph) -> Result<()>

Runs the function inlining pass.

+
source

pub fn dead_code_elimination_pass(&mut self) -> Result<()>

Runs the dead code elimination pass.

source

pub fn code_generation_pass( &mut self, symbol_table: &SymbolTable, struct_graph: &StructGraph, call_graph: &CallGraph, -) -> Result<String>

Runs the code generation pass.

+) -> Result<String>

Runs the code generation pass.

source

pub fn compiler_stages( &mut self, ) -> Result<(SymbolTable, StructGraph, CallGraph)>

Runs the compiler stages.

-
source

pub fn compile(&mut self) -> Result<String>

Returns a compiled Leo program.

-
source

fn write_ast_to_json(&self, file_suffix: &str) -> Result<()>

Writes the AST to a JSON file.

+
source

pub fn compile(&mut self) -> Result<String>

Returns a compiled Leo program.

+
source

fn write_ast_to_json(&self, file_suffix: &str) -> Result<()>

Writes the AST to a JSON file.

source

fn write_symbol_table_to_json( &self, - file_suffix: &str, + file_suffix: &str, symbol_table: &SymbolTable, -) -> Result<()>

Writes the Symbol Table to a JSON file.

-
source

pub fn add_import_stubs(&mut self) -> Result<()>

Merges the dependencies defined in program.json with the dependencies imported in .leo file

-

Trait Implementations§

source§

impl<'a, N: Clone + Network> Clone for Compiler<'a, N>

source§

fn clone(&self) -> Compiler<'a, N>

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§

§

impl<'a, N> !Freeze for Compiler<'a, N>

§

impl<'a, N> !RefUnwindSafe for Compiler<'a, N>

§

impl<'a, N> !Send for Compiler<'a, N>

§

impl<'a, N> !Sync for Compiler<'a, N>

§

impl<'a, N> Unpin for Compiler<'a, N>
where - N: Unpin,

§

impl<'a, N> !UnwindSafe for Compiler<'a, N>

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+) -> Result<()>

Writes the Symbol Table to a JSON file.

+
source

pub fn add_import_stubs(&mut self) -> Result<()>

Merges the dependencies defined in program.json with the dependencies imported in .leo file

+

Trait Implementations§

source§

impl<'a, N: Clone + Network> Clone for Compiler<'a, N>

source§

fn clone(&self) -> Compiler<'a, N>

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§

§

impl<'a, N> !Freeze for Compiler<'a, N>

§

impl<'a, N> !RefUnwindSafe for Compiler<'a, N>

§

impl<'a, N> !Send for Compiler<'a, N>

§

impl<'a, N> !Sync for Compiler<'a, N>

§

impl<'a, N> Unpin for Compiler<'a, N>
where + N: Unpin,

§

impl<'a, N> !UnwindSafe for Compiler<'a, N>

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_compiler/struct.CompilerOptions.html b/leo_compiler/struct.CompilerOptions.html index 53111eeda1..2fa6a9d671 100644 --- a/leo_compiler/struct.CompilerOptions.html +++ b/leo_compiler/struct.CompilerOptions.html @@ -1,31 +1,31 @@ -CompilerOptions in leo_compiler - Rust

Struct leo_compiler::CompilerOptions

source ·
pub struct CompilerOptions {
+CompilerOptions in leo_compiler - Rust
leo_compiler

Struct CompilerOptions

source
pub struct CompilerOptions {
     pub build: BuildOptions,
     pub output: OutputOptions,
 }

Fields§

§build: BuildOptions

Build options.

§output: OutputOptions

Output options.

-

Trait Implementations§

source§

impl Clone for CompilerOptions

source§

fn clone(&self) -> CompilerOptions

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 Default for CompilerOptions

source§

fn default() -> CompilerOptions

Returns the “default value” for a type. 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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+

Trait Implementations§

source§

impl Clone for CompilerOptions

source§

fn clone(&self) -> CompilerOptions

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 Default for CompilerOptions

source§

fn default() -> CompilerOptions

Returns the “default value” for a type. 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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_compiler/struct.OutputOptions.html b/leo_compiler/struct.OutputOptions.html index ec48fd36ba..5e2314590e 100644 --- a/leo_compiler/struct.OutputOptions.html +++ b/leo_compiler/struct.OutputOptions.html @@ -1,49 +1,49 @@ -OutputOptions in leo_compiler - Rust

Struct leo_compiler::OutputOptions

source ·
pub struct OutputOptions {
-    pub symbol_table_spans_enabled: bool,
-    pub initial_symbol_table: bool,
-    pub type_checked_symbol_table: bool,
-    pub unrolled_symbol_table: bool,
-    pub ast_spans_enabled: bool,
-    pub initial_ast: bool,
-    pub unrolled_ast: bool,
-    pub ssa_ast: bool,
-    pub flattened_ast: bool,
-    pub destructured_ast: bool,
-    pub inlined_ast: bool,
-    pub dce_ast: bool,
-}

Fields§

§symbol_table_spans_enabled: bool§initial_symbol_table: bool§type_checked_symbol_table: bool

If enabled writes the symbol table after type checking.

-
§unrolled_symbol_table: bool

If enabled writes the symbol table after loop unrolling.

-
§ast_spans_enabled: bool

Whether spans are enabled in the output ASTs.

-
§initial_ast: bool

If enabled writes the AST after parsing.

-
§unrolled_ast: bool

If enabled writes the AST after loop unrolling.

-
§ssa_ast: bool

If enabled writes the AST after static single assignment.

-
§flattened_ast: bool

If enabled writes the AST after flattening.

-
§destructured_ast: bool

If enabled writes the AST after destructuring.

-
§inlined_ast: bool

If enabled writes the AST after inlining.

-
§dce_ast: bool

If enabled writes the AST after dead code elimination.

-

Trait Implementations§

source§

impl Clone for OutputOptions

source§

fn clone(&self) -> OutputOptions

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 Default for OutputOptions

source§

fn default() -> OutputOptions

Returns the “default value” for a type. 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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+OutputOptions in leo_compiler - Rust
leo_compiler

Struct OutputOptions

source
pub struct OutputOptions {
+    pub symbol_table_spans_enabled: bool,
+    pub initial_symbol_table: bool,
+    pub type_checked_symbol_table: bool,
+    pub unrolled_symbol_table: bool,
+    pub ast_spans_enabled: bool,
+    pub initial_ast: bool,
+    pub unrolled_ast: bool,
+    pub ssa_ast: bool,
+    pub flattened_ast: bool,
+    pub destructured_ast: bool,
+    pub inlined_ast: bool,
+    pub dce_ast: bool,
+}

Fields§

§symbol_table_spans_enabled: bool§initial_symbol_table: bool§type_checked_symbol_table: bool

If enabled writes the symbol table after type checking.

+
§unrolled_symbol_table: bool

If enabled writes the symbol table after loop unrolling.

+
§ast_spans_enabled: bool

Whether spans are enabled in the output ASTs.

+
§initial_ast: bool

If enabled writes the AST after parsing.

+
§unrolled_ast: bool

If enabled writes the AST after loop unrolling.

+
§ssa_ast: bool

If enabled writes the AST after static single assignment.

+
§flattened_ast: bool

If enabled writes the AST after flattening.

+
§destructured_ast: bool

If enabled writes the AST after destructuring.

+
§inlined_ast: bool

If enabled writes the AST after inlining.

+
§dce_ast: bool

If enabled writes the AST after dead code elimination.

+

Trait Implementations§

source§

impl Clone for OutputOptions

source§

fn clone(&self) -> OutputOptions

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 Default for OutputOptions

source§

fn default() -> OutputOptions

Returns the “default value” for a type. 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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_compiler/struct.SymbolTable.html b/leo_compiler/struct.SymbolTable.html index d4b8ac56bb..2372a7c32f 100644 --- a/leo_compiler/struct.SymbolTable.html +++ b/leo_compiler/struct.SymbolTable.html @@ -1,119 +1,119 @@ -SymbolTable in leo_compiler - Rust

Struct leo_compiler::SymbolTable

source ·
pub struct SymbolTable {
-    pub(crate) parent: Option<Box<SymbolTable>>,
+SymbolTable in leo_compiler - Rust
leo_compiler

Struct SymbolTable

source
pub struct SymbolTable {
+    pub(crate) parent: Option<Box<SymbolTable>>,
     pub functions: IndexMap<Location, FunctionSymbol>,
     pub structs: IndexMap<Location, Composite>,
     pub(crate) variables: IndexMap<Location, VariableSymbol>,
-    pub(crate) scope_index: usize,
-    pub(crate) scopes: Vec<RefCell<SymbolTable>>,
-}

Fields§

§parent: Option<Box<SymbolTable>>§functions: IndexMap<Location, FunctionSymbol>

Maps parent program name and function name to the AST’s function definition. + pub(crate) scope_index: usize, + pub(crate) scopes: Vec<RefCell<SymbolTable>>, +}

Fields§

§parent: Option<Box<SymbolTable>>§functions: IndexMap<Location, FunctionSymbol>

Maps parent program name and function name to the AST’s function definition. This field is populated at a first pass.

§structs: IndexMap<Location, Composite>

Maps parent program name and composite name to composite definitions. This field is populated at a first pass.

-
§variables: IndexMap<Location, VariableSymbol>§scope_index: usize§scopes: Vec<RefCell<SymbolTable>>

Implementations§

source§

impl SymbolTable

§variables: IndexMap<Location, VariableSymbol>§scope_index: usize§scopes: Vec<RefCell<SymbolTable>>

Implementations§

source§

impl SymbolTable

source

pub fn check_shadowing( &self, location: &Location, - program: Option<Symbol>, - is_struct: bool, + program: Option<Symbol>, + is_struct: bool, span: Span, -) -> Result<(), LeoError>

Recursively checks if the symbol table contains an entry for the given symbol. +) -> Result<(), LeoError>

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. +

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<(), LeoError>

Inserts a function into the symbol table.

+) -> Result<(), LeoError>

Inserts a function into the symbol table.

source

pub fn insert_struct( &mut self, location: Location, insert: &Composite, -) -> Result<(), LeoError>

Inserts a struct into the symbol table.

+) -> Result<(), LeoError>

Inserts a struct into the symbol table.

source

pub fn attach_finalize( &mut self, caller: Location, callee: Location, -) -> Result<(), LeoError>

Attach a finalize to a function.

+) -> Result<(), LeoError>

Attach a finalize to a function.

source

pub fn insert_variable( &mut self, location: Location, - program: Option<Symbol>, + program: Option<Symbol>, insert: VariableSymbol, -) -> Result<(), LeoError>

Inserts a variable into the symbol table.

+) -> Result<(), LeoError>

Inserts a variable into the symbol table.

source

pub fn insert_futures( &mut self, program: Symbol, function: Symbol, - futures: Vec<Location>, -) -> Result<(), LeoError>

Inserts futures into the function definition.

+ futures: Vec<Location>, +) -> Result<(), LeoError>

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.

+
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.

source

pub fn lookup_struct( &self, location: Location, - main_program: Option<Symbol>, -) -> Option<&Composite>

Attempts to lookup a struct in the symbol table.

-
source

pub fn lookup_variable(&self, location: Location) -> Option<&VariableSymbol>

Attempts to lookup a variable in the symbol table.

+ main_program: Option<Symbol>, +) -> Option<&Composite>

Attempts to lookup a struct in the symbol table.

+
source

pub fn lookup_variable(&self, location: Location) -> Option<&VariableSymbol>

Attempts to lookup a variable in the symbol table.

source

pub fn lookup_variable_in_current_scope( &self, location: Location, -) -> Option<&VariableSymbol>

Attempts to lookup a variable in the current scope.

+) -> Option<&VariableSymbol>

Attempts to lookup a variable in the current scope.

source

pub fn lookup_scope_by_index( &self, - index: usize, -) -> Option<&RefCell<SymbolTable>>

Returns the scope associated with index, if it exists in the symbol table.

-
source

pub fn to_json_string(&self) -> Result<String, LeoError>

Serializes the symbol table into a JSON string.

-
source

pub fn to_json_value(&self) -> Result<Value, LeoError>

Converts the symbol table into a JSON value

+ index: usize, +) -> Option<&RefCell<SymbolTable>>

Returns the scope associated with index, if it exists in the symbol table.

+
source

pub fn to_json_string(&self) -> Result<String, LeoError>

Serializes the symbol table into a JSON string.

+
source

pub fn to_json_value(&self) -> Result<Value, LeoError>

Converts the symbol table into a JSON value

source

pub fn to_json_file( &self, - path: PathBuf, - file_name: &str, -) -> Result<(), LeoError>

source

pub fn to_json_file_without_keys( + path: PathBuf, + file_name: &str, +) -> Result<(), LeoError>

source

pub fn to_json_file_without_keys( &self, - path: PathBuf, - file_name: &str, - excluded_keys: &[&str], -) -> Result<(), LeoError>

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<SymbolTable, LeoError>

Deserializes the JSON string into a symbol table.

-
source

pub fn from_json_file(path: PathBuf) -> Result<SymbolTable, LeoError>

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<(), Error>

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>( + path: PathBuf, + file_name: &str, + excluded_keys: &[&str], +) -> Result<(), LeoError>

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<SymbolTable, LeoError>

Deserializes the JSON string into a symbol table.

+
source

pub fn from_json_file(path: PathBuf) -> Result<SymbolTable, LeoError>

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<(), Error>

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<SymbolTable, <__D as Deserializer<'de>>::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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +) -> Result<SymbolTable, <__D as Deserializer<'de>>::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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for SymbolTable

source§

fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for SymbolTable

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for SymbolTable

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_disassembler/all.html b/leo_disassembler/all.html index 238feaa856..bd1f5f2aa8 100644 --- a/leo_disassembler/all.html +++ b/leo_disassembler/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Functions

\ No newline at end of file +List of all items in this crate

List of all items

Functions

\ No newline at end of file diff --git a/leo_disassembler/fn.disassemble.html b/leo_disassembler/fn.disassemble.html index 3c75398bbf..cbd599eaa0 100644 --- a/leo_disassembler/fn.disassemble.html +++ b/leo_disassembler/fn.disassemble.html @@ -1,3 +1,3 @@ -disassemble in leo_disassembler - Rust

Function leo_disassembler::disassemble

source ·
pub fn disassemble<N: Network, Instruction: InstructionTrait<N>, Command: CommandTrait<N>>(
+disassemble in leo_disassembler - Rust
leo_disassembler

Function disassemble

source
pub fn disassemble<N: Network, Instruction: InstructionTrait<N>, Command: CommandTrait<N>>(
     program: ProgramCore<N, Instruction, Command>,
 ) -> Stub
\ No newline at end of file diff --git a/leo_disassembler/fn.disassemble_from_str.html b/leo_disassembler/fn.disassemble_from_str.html index eb723c3e59..719bc6d2a2 100644 --- a/leo_disassembler/fn.disassemble_from_str.html +++ b/leo_disassembler/fn.disassemble_from_str.html @@ -1,4 +1,4 @@ -disassemble_from_str in leo_disassembler - Rust

Function leo_disassembler::disassemble_from_str

source ·
pub fn disassemble_from_str<N: Network>(
-    name: &str,
-    program: &str,
-) -> Result<Stub, UtilError>
\ No newline at end of file +disassemble_from_str in leo_disassembler - Rust
leo_disassembler

Function disassemble_from_str

source
pub fn disassemble_from_str<N: Network>(
+    name: &str,
+    program: &str,
+) -> Result<Stub, UtilError>
\ No newline at end of file diff --git a/leo_disassembler/index.html b/leo_disassembler/index.html index ec45cc7474..853fa7445c 100644 --- a/leo_disassembler/index.html +++ b/leo_disassembler/index.html @@ -1 +1 @@ -leo_disassembler - Rust

Crate leo_disassembler

source ·

Functions§

\ No newline at end of file +leo_disassembler - Rust

Crate leo_disassembler

source

Functions§

\ No newline at end of file diff --git a/leo_errors/all.html b/leo_errors/all.html index d4e837cdc9..a78c468515 100644 --- a/leo_errors/all.html +++ b/leo_errors/all.html @@ -1 +1 @@ -List of all items in this crate
\ No newline at end of file +List of all items in this crate
\ No newline at end of file diff --git a/leo_errors/common/backtraced/constant.INDENT.html b/leo_errors/common/backtraced/constant.INDENT.html index 8d8788b5d6..7da737f19f 100644 --- a/leo_errors/common/backtraced/constant.INDENT.html +++ b/leo_errors/common/backtraced/constant.INDENT.html @@ -1,2 +1,2 @@ -INDENT in leo_errors::common::backtraced - Rust

Constant leo_errors::common::backtraced::INDENT

source ·
pub(crate) const INDENT: &str = "    ";
Expand description

The indent for an error message.

+INDENT in leo_errors::common::backtraced - Rust
leo_errors::common::backtraced

Constant INDENT

source
pub(crate) const INDENT: &str = "    ";
Expand description

The indent for an error message.

\ No newline at end of file diff --git a/leo_errors/common/backtraced/index.html b/leo_errors/common/backtraced/index.html index 50eb74e1ec..2a5aea8b98 100644 --- a/leo_errors/common/backtraced/index.html +++ b/leo_errors/common/backtraced/index.html @@ -1,4 +1,4 @@ -leo_errors::common::backtraced - Rust

Module leo_errors::common::backtraced

source ·
Expand description

This module contains a backtraced error and its methods.

+leo_errors::common::backtraced - Rust
leo_errors::common

Module backtraced

source
Expand description

This module contains a backtraced error and its methods.

Structs§

Fields§

§message: String

The error message.

+
§help: Option<String>

The error help message if it exists.

+
§code: i32

The error exit code.

+
§code_identifier: i8

The error leading digits identifier.

+
§type_: String

The characters representing the type of error.

+
§error: bool

Is this Backtrace a warning or error?

§backtrace: Backtrace

The backtrace representing where the error occurred in Leo.

Implementations§

source§

impl Backtraced

source

pub fn new_from_backtrace<S>( message: S, - help: Option<String>, - code: i32, - code_identifier: i8, - type_: String, - error: bool, + help: Option<String>, + code: i32, + code_identifier: i8, + type_: String, + error: bool, backtrace: Backtrace, ) -> Self
where - S: ToString,

Creates a backtraced error from a backtrace.

-
source

pub fn exit_code(&self) -> i32

Gets the backtraced error exit code.

-
source

pub fn error_code(&self) -> String

Gets a unique error identifier.

-
source

pub fn warning_code(&self) -> String

Gets a unique warning identifier.

-

Trait Implementations§

source§

impl Clone for Backtraced

source§

fn clone(&self) -> Self

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 Backtraced

source§

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

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

impl Default for Backtraced

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Display for Backtraced

source§

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

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

impl Error for Backtraced

source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for AstError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for CliError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for CompilerError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for FlattenError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for LoopUnrollerError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for PackageError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for ParserError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for ParserWarning

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for StaticAnalyzerError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for StaticAnalyzerWarning

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for TypeCheckerError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for TypeCheckerWarning

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for UtilError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl Hash for Backtraced

source§

fn hash<__H>(&self, __state: &mut __H)
where - __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where - H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Backtraced

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+ S: ToString,

Creates a backtraced error from a backtrace.

+
source

pub fn exit_code(&self) -> i32

Gets the backtraced error exit code.

+
source

pub fn error_code(&self) -> String

Gets a unique error identifier.

+
source

pub fn warning_code(&self) -> String

Gets a unique warning identifier.

+

Trait Implementations§

source§

impl Clone for Backtraced

source§

fn clone(&self) -> Self

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 Backtraced

source§

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

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

impl Default for Backtraced

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Display for Backtraced

source§

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

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

impl Error for Backtraced

source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for AstError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for CliError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for CompilerError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for FlattenError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for LoopUnrollerError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for PackageError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for ParserError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for ParserWarning

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for StaticAnalyzerError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for StaticAnalyzerWarning

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for TypeCheckerError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for TypeCheckerWarning

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for UtilError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl Hash for Backtraced

source§

fn hash<__H>(&self, __state: &mut __H)
where + __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Backtraced

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/common/formatted/index.html b/leo_errors/common/formatted/index.html index b8aeb26e40..1980843d0a 100644 --- a/leo_errors/common/formatted/index.html +++ b/leo_errors/common/formatted/index.html @@ -1,4 +1,4 @@ -leo_errors::common::formatted - Rust

Module leo_errors::common::formatted

source ·
Expand description

This module contains a formatted error and its methods.

+leo_errors::common::formatted - Rust
leo_errors::common

Module formatted

source
Expand description

This module contains a formatted error and its methods.

Structs§

source

pub fn exit_code(&self) -> i32

Calls the backtraces error exit code.

+
source

pub fn error_code(&self) -> String

Returns an error identifier.

+
source

pub fn warning_code(&self) -> String

Returns an warning identifier.

+

Trait Implementations§

source§

impl Clone for Formatted

source§

fn clone(&self) -> Formatted

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 Formatted

source§

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

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

impl Default for Formatted

source§

fn default() -> Formatted

Returns the “default value” for a type. Read more
source§

impl Display for Formatted

source§

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

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

impl Error for Formatted

source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Formatted> for AstError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for CliError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for CompilerError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for FlattenError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for LoopUnrollerError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for PackageError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for ParserError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for ParserWarning

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for StaticAnalyzerError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for StaticAnalyzerWarning

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for TypeCheckerError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for TypeCheckerWarning

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for UtilError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl Hash for Formatted

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Formatted

source§

fn eq(&self, other: &Formatted) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Formatted

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/common/index.html b/leo_errors/common/index.html index b938ce1eb7..6060b4c8f0 100644 --- a/leo_errors/common/index.html +++ b/leo_errors/common/index.html @@ -1,2 +1,2 @@ -leo_errors::common - Rust

Module leo_errors::common

source ·
Expand description

Contains the common functionalities for defining errors.

+leo_errors::common - Rust
leo_errors

Module common

source
Expand description

Contains the common functionalities for defining errors.

Re-exports§

Modules§

  • This module contains a backtraced error and its methods.
  • This module contains a formatted error and its methods.
  • This module contains the macros for making errors easily.
  • This module contains traits for making errors easily.
\ No newline at end of file diff --git a/leo_errors/common/macros/index.html b/leo_errors/common/macros/index.html index fa4552481c..37465dcd47 100644 --- a/leo_errors/common/macros/index.html +++ b/leo_errors/common/macros/index.html @@ -1,2 +1,2 @@ -leo_errors::common::macros - Rust

Module leo_errors::common::macros

source ·
Expand description

This module contains the macros for making errors easily.

+leo_errors::common::macros - Rust
leo_errors::common

Module macros

source
Expand description

This module contains the macros for making errors easily.

\ No newline at end of file diff --git a/leo_errors/common/traits/index.html b/leo_errors/common/traits/index.html index 46f33cdf08..a5c7f7b2b6 100644 --- a/leo_errors/common/traits/index.html +++ b/leo_errors/common/traits/index.html @@ -1,2 +1,2 @@ -leo_errors::common::traits - Rust

Module leo_errors::common::traits

source ·
Expand description

This module contains traits for making errors easily.

+leo_errors::common::traits - Rust
leo_errors::common

Module traits

source
Expand description

This module contains traits for making errors easily.

Traits§

\ No newline at end of file diff --git a/leo_errors/common/traits/trait.LeoMessageCode.html b/leo_errors/common/traits/trait.LeoMessageCode.html index 9dfecf8bd4..3a249bb497 100644 --- a/leo_errors/common/traits/trait.LeoMessageCode.html +++ b/leo_errors/common/traits/trait.LeoMessageCode.html @@ -1,25 +1,25 @@ -LeoMessageCode in leo_errors::common::traits - Rust

Trait leo_errors::common::traits::LeoMessageCode

source ·
pub trait LeoMessageCode: Sized {
+LeoMessageCode in leo_errors::common::traits - Rust
leo_errors::common::traits

Trait LeoMessageCode

source
pub trait LeoMessageCode: Sized {
     // Required methods
-    fn exit_code(&self) -> i32;
-    fn error_code(&self) -> String;
-    fn warning_code(&self) -> String;
-    fn code_mask() -> i32;
-    fn message_type() -> String;
-    fn is_error() -> bool;
+    fn exit_code(&self) -> i32;
+    fn error_code(&self) -> String;
+    fn warning_code(&self) -> String;
+    fn code_mask() -> i32;
+    fn message_type() -> String;
+    fn is_error() -> bool;
 
     // Provided method
-    fn code_identifier() -> i8 { ... }
+    fn code_identifier() -> i8 { ... }
 }
Expand description

MessageCode trait that all Errors should implement.

-

Required Methods§

source

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.

-
source

fn error_code(&self) -> String

Returns the prefixed error identifier.

-
source

fn warning_code(&self) -> String

Returns the prefixed warning identifier.

-
source

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.

-
source

fn message_type() -> String

Returns the message’s code type for the program.

-
source

fn is_error() -> bool

Returns if the message is an error or warning.

-

Provided Methods§

source

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 +

Required Methods§

source

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.

+
source

fn error_code(&self) -> String

Returns the prefixed error identifier.

+
source

fn warning_code(&self) -> String

Returns the prefixed warning identifier.

+
source

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.

+
source

fn message_type() -> String

Returns the message’s code type for the program.

+
source

fn is_error() -> bool

Returns if the message is an error or warning.

+

Provided Methods§

source

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 (Leo upsidedown and backwards). This is to make the exit codes unique to Leo itself.

-

Object Safety§

This trait is not object safe.

Implementors§

source§

impl LeoMessageCode for AstError

Implements the trait for LeoError Codes.

+

Object Safety§

This trait is not object safe.

Implementors§

source§

impl LeoMessageCode for AstError

Implements the trait for LeoError Codes.

source§

impl LeoMessageCode for CliError

Implements the trait for LeoError Codes.

source§

impl LeoMessageCode for CompilerError

Implements the trait for LeoError Codes.

source§

impl LeoMessageCode for FlattenError

Implements the trait for LeoError Codes.

diff --git a/leo_errors/emitter/index.html b/leo_errors/emitter/index.html index 025b6eb362..216fcf644b 100644 --- a/leo_errors/emitter/index.html +++ b/leo_errors/emitter/index.html @@ -1,3 +1,3 @@ -leo_errors::emitter - Rust

Module leo_errors::emitter

source ·
Expand description

Contains traits and types for channels through which errors go.

+leo_errors::emitter - Rust
leo_errors

Module emitter

source
Expand description

Contains traits and types for channels through which errors go.

Structs§

  • A buffer of Ts.
  • An Emitter that collects into a list.
  • A handler deals with errors and other compiler output.
  • Contains the actual data for Handler. Modelled this way to afford an API using interior mutability.
  • A trivial Emitter using the standard error.

Traits§

  • Types that are sinks for compiler errors.

Type Aliases§

\ No newline at end of file diff --git a/leo_errors/emitter/struct.Buffer.html b/leo_errors/emitter/struct.Buffer.html index 1ffdb811ea..5904f1c7c1 100644 --- a/leo_errors/emitter/struct.Buffer.html +++ b/leo_errors/emitter/struct.Buffer.html @@ -1,28 +1,28 @@ -Buffer in leo_errors::emitter - Rust

Struct leo_errors::emitter::Buffer

source ·
pub struct Buffer<T>(Vec<T>);
Expand description

A buffer of Ts.

-

Tuple Fields§

§0: Vec<T>

Implementations§

source§

impl<T> Buffer<T>

source

pub fn push(&mut self, x: T)

Push x to the buffer.

-
source

pub fn into_inner(self) -> Vec<T>

Extract the underlying list of Ts.

-
source

pub fn last_entry(&self) -> Option<&T>

Last entry to the buffer.

-

Trait Implementations§

source§

impl<T: Debug> Debug for Buffer<T>

source§

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

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

impl<T> Default for Buffer<T>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<T: Display> Display for Buffer<T>

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> Freeze for Buffer<T>

§

impl<T> RefUnwindSafe for Buffer<T>
where - T: RefUnwindSafe,

§

impl<T> Send for Buffer<T>
where - T: Send,

§

impl<T> Sync for Buffer<T>
where - T: Sync,

§

impl<T> Unpin for Buffer<T>
where - T: Unpin,

§

impl<T> UnwindSafe for Buffer<T>
where - T: UnwindSafe,

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.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Buffer in leo_errors::emitter - Rust
leo_errors::emitter

Struct Buffer

source
pub struct Buffer<T>(Vec<T>);
Expand description

A buffer of Ts.

+

Tuple Fields§

§0: Vec<T>

Implementations§

source§

impl<T> Buffer<T>

source

pub fn push(&mut self, x: T)

Push x to the buffer.

+
source

pub fn into_inner(self) -> Vec<T>

Extract the underlying list of Ts.

+
source

pub fn last_entry(&self) -> Option<&T>

Last entry to the buffer.

+

Trait Implementations§

source§

impl<T: Debug> Debug for Buffer<T>

source§

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

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

impl<T> Default for Buffer<T>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<T: Display> Display for Buffer<T>

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> Freeze for Buffer<T>

§

impl<T> RefUnwindSafe for Buffer<T>
where + T: RefUnwindSafe,

§

impl<T> Send for Buffer<T>
where + T: Send,

§

impl<T> Sync for Buffer<T>
where + T: Sync,

§

impl<T> Unpin for Buffer<T>
where + T: Unpin,

§

impl<T> UnwindSafe for Buffer<T>
where + T: UnwindSafe,

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.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/emitter/struct.BufferEmitter.html b/leo_errors/emitter/struct.BufferEmitter.html index 3c5c4b7453..29e7db0c1f 100644 --- a/leo_errors/emitter/struct.BufferEmitter.html +++ b/leo_errors/emitter/struct.BufferEmitter.html @@ -1,24 +1,24 @@ -BufferEmitter in leo_errors::emitter - Rust

Struct leo_errors::emitter::BufferEmitter

source ·
pub struct BufferEmitter(Rc<RefCell<ErrBuffer>>, Rc<RefCell<WarningBuffer>>);
Expand description

An Emitter that collects into a list.

-

Tuple Fields§

§0: Rc<RefCell<ErrBuffer>>§1: Rc<RefCell<WarningBuffer>>

Implementations§

source§

impl BufferEmitter

source

pub fn new() -> Self

Returns a new buffered emitter.

+BufferEmitter in leo_errors::emitter - Rust
leo_errors::emitter

Struct BufferEmitter

source
pub struct BufferEmitter(Rc<RefCell<ErrBuffer>>, Rc<RefCell<WarningBuffer>>);
Expand description

An Emitter that collects into a list.

+

Tuple Fields§

§0: Rc<RefCell<ErrBuffer>>§1: Rc<RefCell<WarningBuffer>>

Implementations§

source§

impl BufferEmitter

source

pub fn new() -> Self

Returns a new buffered emitter.

source

pub fn extract_errs(&self) -> ErrBuffer

Extracts all the errors collected in this emitter.

source

pub fn extract_warnings(&self) -> WarningBuffer

Extracts all the errors collected in this emitter.

-

Trait Implementations§

source§

impl Clone for BufferEmitter

source§

fn clone(&self) -> BufferEmitter

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 Default for BufferEmitter

source§

fn default() -> BufferEmitter

Returns the “default value” for a type. Read more
source§

impl Emitter for BufferEmitter

source§

fn emit_err(&mut self, err: LeoError)

Emit the error err.
source§

fn last_emitted_err_code(&self) -> Option<i32>

Tracks last emitted error.
source§

fn emit_warning(&mut self, warning: LeoWarning)

Emit the warning.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

Trait Implementations§

source§

impl Clone for BufferEmitter

source§

fn clone(&self) -> BufferEmitter

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 Default for BufferEmitter

source§

fn default() -> BufferEmitter

Returns the “default value” for a type. Read more
source§

impl Emitter for BufferEmitter

source§

fn emit_err(&mut self, err: LeoError)

Emit the error err.
source§

fn last_emitted_err_code(&self) -> Option<i32>

Tracks last emitted error.
source§

fn emit_warning(&mut self, warning: LeoWarning)

Emit the warning.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/emitter/struct.Handler.html b/leo_errors/emitter/struct.Handler.html index 1d5cdee77a..e78ba31cdc 100644 --- a/leo_errors/emitter/struct.Handler.html +++ b/leo_errors/emitter/struct.Handler.html @@ -1,39 +1,39 @@ -Handler in leo_errors::emitter - Rust

Struct leo_errors::emitter::Handler

source ·
pub struct Handler {
-    inner: RefCell<HandlerInner>,
+Handler in leo_errors::emitter - Rust
leo_errors::emitter

Struct Handler

source
pub struct Handler {
+    inner: RefCell<HandlerInner>,
 }
Expand description

A handler deals with errors and other compiler output.

-

Fields§

§inner: RefCell<HandlerInner>

The inner handler. +

Fields§

§inner: RefCell<HandlerInner>

The inner handler. RefCell is used here to avoid &mut all over the compiler.

-

Implementations§

source§

impl Handler

source

pub fn new(emitter: Box<dyn Emitter>) -> Self

Construct a Handler using the given emitter.

+

Implementations§

source§

impl Handler

source

pub fn new(emitter: Box<dyn Emitter>) -> Self

Construct a Handler using the given emitter.

source

pub fn new_with_buf() -> (Self, BufferEmitter)

Construct a Handler that will append to buf.

source

pub fn with<T>( - logic: impl for<'a> FnOnce(&'a Handler) -> Result<T, LeoError>, -) -> Result<T, ErrBuffer>

Runs logic provided a handler that collects all errors into the String, + logic: impl for<'a> FnOnce(&'a Handler) -> Result<T, LeoError>, +) -> Result<T, ErrBuffer>

Runs logic provided a handler that collects all errors into the String, or if there were none, returns some T.

-
source

pub fn emit_err<E: Into<LeoError>>(&self, err: E)

Emit the error err.

+
source

pub fn emit_err<E: Into<LeoError>>(&self, err: E)

Emit the error err.

source

pub fn emit_warning(&self, warning: LeoWarning)

Emit the error err.

-
source

pub fn fatal_err(&self, err: LeoError) -> !

Emits the error err. +

source

pub fn fatal_err(&self, err: LeoError) -> !

Emits the error err. This will immediately abort compilation.

-
source

pub fn err_count(&self) -> usize

The number of errors thus far.

-
source

pub fn warning_count(&self) -> usize

The number of warnings thus far.

-
source

pub fn had_errors(&self) -> bool

Did we have any errors thus far?

-
source

pub fn last_err(&self) -> Result<(), Box<LeoError>>

Gets the last emitted error’s exit code if it exists. +

source

pub fn err_count(&self) -> usize

The number of errors thus far.

+
source

pub fn warning_count(&self) -> usize

The number of warnings thus far.

+
source

pub fn had_errors(&self) -> bool

Did we have any errors thus far?

+
source

pub fn last_err(&self) -> Result<(), Box<LeoError>>

Gets the last emitted error’s exit code if it exists. Then exits the program with it if it did exist.

-
source

pub fn extend_if_error<T>(&self, res: Result<T, LeoError>) -> Result<T, ()>

Extend handler with error given res = Err(error).

-

Trait Implementations§

source§

impl Default for Handler

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl !Freeze for Handler

§

impl !RefUnwindSafe for Handler

§

impl !Send for Handler

§

impl !Sync for Handler

§

impl Unpin for Handler

§

impl !UnwindSafe for Handler

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.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+
source

pub fn extend_if_error<T>(&self, res: Result<T, LeoError>) -> Result<T, ()>

Extend handler with error given res = Err(error).

+

Trait Implementations§

source§

impl Default for Handler

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl !Freeze for Handler

§

impl !RefUnwindSafe for Handler

§

impl !Send for Handler

§

impl !Sync for Handler

§

impl Unpin for Handler

§

impl !UnwindSafe for Handler

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.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/emitter/struct.HandlerInner.html b/leo_errors/emitter/struct.HandlerInner.html index 6ef6ea4dd9..86fcce955f 100644 --- a/leo_errors/emitter/struct.HandlerInner.html +++ b/leo_errors/emitter/struct.HandlerInner.html @@ -1,30 +1,30 @@ -HandlerInner in leo_errors::emitter - Rust

Struct leo_errors::emitter::HandlerInner

source ·
struct HandlerInner {
-    err_count: usize,
-    warn_count: usize,
-    emitter: Box<dyn Emitter>,
+HandlerInner in leo_errors::emitter - Rust
leo_errors::emitter

Struct HandlerInner

source
struct HandlerInner {
+    err_count: usize,
+    warn_count: usize,
+    emitter: Box<dyn Emitter>,
 }
Expand description

Contains the actual data for Handler. Modelled this way to afford an API using interior mutability.

-

Fields§

§err_count: usize

Number of errors emitted thus far.

-
§warn_count: usize

Number of warnings emitted thus far.

-
§emitter: Box<dyn Emitter>

The sink through which errors will be emitted.

+

Fields§

§err_count: usize

Number of errors emitted thus far.

+
§warn_count: usize

Number of warnings emitted thus far.

+
§emitter: Box<dyn Emitter>

The sink through which errors will be emitted.

Implementations§

source§

impl HandlerInner

source

fn emit_err(&mut self, err: LeoError)

Emit the error err.

-
source

fn last_emitted_err_code(&self) -> Option<i32>

Gets the last emitted error’s exit code.

+
source

fn last_emitted_err_code(&self) -> Option<i32>

Gets the last emitted error’s exit code.

source

fn emit_warning(&mut self, warning: LeoWarning)

Emit the error err.

-

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 - 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.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

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 + 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.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/emitter/struct.StderrEmitter.html b/leo_errors/emitter/struct.StderrEmitter.html index 0380589d8a..9983906184 100644 --- a/leo_errors/emitter/struct.StderrEmitter.html +++ b/leo_errors/emitter/struct.StderrEmitter.html @@ -1,22 +1,22 @@ -StderrEmitter in leo_errors::emitter - Rust

Struct leo_errors::emitter::StderrEmitter

source ·
pub struct StderrEmitter {
-    last_error_code: Option<i32>,
+StderrEmitter in leo_errors::emitter - Rust
leo_errors::emitter

Struct StderrEmitter

source
pub struct StderrEmitter {
+    last_error_code: Option<i32>,
 }
Expand description

A trivial Emitter using the standard error.

-

Fields§

§last_error_code: Option<i32>

Exit code of the last emitted error.

-

Trait Implementations§

source§

impl Emitter for StderrEmitter

source§

fn emit_err(&mut self, err: LeoError)

Emit the error err.
source§

fn last_emitted_err_code(&self) -> Option<i32>

Tracks last emitted error.
source§

fn emit_warning(&mut self, warning: LeoWarning)

Emit the warning.

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 - 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.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

Fields§

§last_error_code: Option<i32>

Exit code of the last emitted error.

+

Trait Implementations§

source§

impl Emitter for StderrEmitter

source§

fn emit_err(&mut self, err: LeoError)

Emit the error err.
source§

fn last_emitted_err_code(&self) -> Option<i32>

Tracks last emitted error.
source§

fn emit_warning(&mut self, warning: LeoWarning)

Emit the warning.

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 + 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.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/emitter/trait.Emitter.html b/leo_errors/emitter/trait.Emitter.html index f56882e6c9..5dd71c71fd 100644 --- a/leo_errors/emitter/trait.Emitter.html +++ b/leo_errors/emitter/trait.Emitter.html @@ -1,10 +1,10 @@ -Emitter in leo_errors::emitter - Rust

Trait leo_errors::emitter::Emitter

source ·
pub trait Emitter {
+Emitter in leo_errors::emitter - Rust
leo_errors::emitter

Trait Emitter

source
pub trait Emitter {
     // Required methods
     fn emit_err(&mut self, err: LeoError);
-    fn last_emitted_err_code(&self) -> Option<i32>;
+    fn last_emitted_err_code(&self) -> Option<i32>;
     fn emit_warning(&mut self, warning: LeoWarning);
 }
Expand description

Types that are sinks for compiler errors.

Required Methods§

source

fn emit_err(&mut self, err: LeoError)

Emit the error err.

-
source

fn last_emitted_err_code(&self) -> Option<i32>

Tracks last emitted error.

+
source

fn last_emitted_err_code(&self) -> Option<i32>

Tracks last emitted error.

source

fn emit_warning(&mut self, warning: LeoWarning)

Emit the warning.

Implementors§

\ No newline at end of file diff --git a/leo_errors/emitter/type.ErrBuffer.html b/leo_errors/emitter/type.ErrBuffer.html index 5dd9204037..e7c8978294 100644 --- a/leo_errors/emitter/type.ErrBuffer.html +++ b/leo_errors/emitter/type.ErrBuffer.html @@ -1,2 +1,2 @@ -ErrBuffer in leo_errors::emitter - Rust

Type Alias leo_errors::emitter::ErrBuffer

source ·
pub type ErrBuffer = Buffer<LeoError>;
Expand description

A buffer of LeoErrors.

-

Aliased Type§

struct ErrBuffer(Vec<LeoError>);

Fields§

§0: Vec<LeoError>
\ No newline at end of file +ErrBuffer in leo_errors::emitter - Rust
leo_errors::emitter

Type Alias ErrBuffer

source
pub type ErrBuffer = Buffer<LeoError>;
Expand description

A buffer of LeoErrors.

+

Aliased Type§

struct ErrBuffer(Vec<LeoError>);

Fields§

§0: Vec<LeoError>
\ No newline at end of file diff --git a/leo_errors/emitter/type.WarningBuffer.html b/leo_errors/emitter/type.WarningBuffer.html index fa2c24f1ae..2672c5d0ac 100644 --- a/leo_errors/emitter/type.WarningBuffer.html +++ b/leo_errors/emitter/type.WarningBuffer.html @@ -1,2 +1,2 @@ -WarningBuffer in leo_errors::emitter - Rust

Type Alias leo_errors::emitter::WarningBuffer

source ·
pub type WarningBuffer = Buffer<LeoWarning>;
Expand description

A buffer of LeoWarnings.

-

Aliased Type§

struct WarningBuffer(Vec<LeoWarning>);

Fields§

§0: Vec<LeoWarning>
\ No newline at end of file +WarningBuffer in leo_errors::emitter - Rust
leo_errors::emitter

Type Alias WarningBuffer

source
pub type WarningBuffer = Buffer<LeoWarning>;
Expand description

A buffer of LeoWarnings.

+

Aliased Type§

struct WarningBuffer(Vec<LeoWarning>);

Fields§

§0: Vec<LeoWarning>
\ No newline at end of file diff --git a/leo_errors/errors/ast/ast_errors/enum.AstError.html b/leo_errors/errors/ast/ast_errors/enum.AstError.html index c07b564188..558c0ca42e 100644 --- a/leo_errors/errors/ast/ast_errors/enum.AstError.html +++ b/leo_errors/errors/ast/ast_errors/enum.AstError.html @@ -1,59 +1,59 @@ -AstError in leo_errors::errors::ast::ast_errors - Rust

Enum leo_errors::errors::ast::ast_errors::AstError

source ·
pub enum AstError {
+AstError in leo_errors::errors::ast::ast_errors - Rust
leo_errors::errors::ast::ast_errors

Enum AstError

source
pub enum AstError {
     Formatted(Formatted),
     Backtraced(Backtraced),
 }
Expand description

AstError enum that represents all the errors for the leo-ast crate.

-

Variants§

§

Formatted(Formatted)

§

Backtraced(Backtraced)

Implementations§

source§

impl AstError

source

pub fn failed_to_convert_ast_to_json_string(error: impl ErrorArg) -> Self

For when the AST fails to be represented as a JSON string.

+

Variants§

§

Formatted(Formatted)

§

Backtraced(Backtraced)

Implementations§

source§

impl AstError

source

pub fn failed_to_convert_ast_to_json_string(error: impl ErrorArg) -> Self

For when the AST fails to be represented as a JSON string.

source

pub fn failed_to_create_ast_json_file( - path: impl Debug, - error: impl ErrorArg, + path: impl Debug, + error: impl ErrorArg, ) -> Self

For when the AST fails to create the AST JSON file.

source

pub fn failed_to_write_ast_to_json_file( - path: impl Debug, - error: impl ErrorArg, + path: impl Debug, + error: impl ErrorArg, ) -> Self

For when the AST fails to write the AST JSON file.

-
source

pub fn failed_to_read_json_string_to_ast(error: impl ErrorArg) -> Self

For when the a JSON string fails to be represented as an AST.

-
source

pub fn failed_to_read_json_file(path: impl Debug, error: impl ErrorArg) -> Self

For when the a JSON files fails to be represented as an AST.

-
source

pub fn failed_to_convert_ast_to_json_value(error: impl ErrorArg) -> Self

For when the AST fails to be represented as a JSON value.

-
source

pub fn shadowed_function(func: impl Display, span: Span) -> Self

For when a user shadows a function.

-
source

pub fn shadowed_struct(struct_: impl Display, span: Span) -> Self

For when a user shadows a struct.

-
source

pub fn shadowed_record(record: impl Display, span: Span) -> Self

For when a user shadows a record.

-
source

pub fn shadowed_variable(var: impl Display, span: Span) -> Self

For when a user shadows a variable.

+
source

pub fn failed_to_read_json_string_to_ast(error: impl ErrorArg) -> Self

For when the a JSON string fails to be represented as an AST.

+
source

pub fn failed_to_read_json_file(path: impl Debug, error: impl ErrorArg) -> Self

For when the a JSON files fails to be represented as an AST.

+
source

pub fn failed_to_convert_ast_to_json_value(error: impl ErrorArg) -> Self

For when the AST fails to be represented as a JSON value.

+
source

pub fn shadowed_function(func: impl Display, span: Span) -> Self

For when a user shadows a function.

+
source

pub fn shadowed_struct(struct_: impl Display, span: Span) -> Self

For when a user shadows a struct.

+
source

pub fn shadowed_record(record: impl Display, span: Span) -> Self

For when a user shadows a record.

+
source

pub fn shadowed_variable(var: impl Display, span: Span) -> Self

For when a user shadows a variable.

source

pub fn failed_to_convert_symbol_table_to_json_string( - error: impl ErrorArg, + error: impl ErrorArg, ) -> Self

For when the symbol table fails to be represented as a JSON string.

source

pub fn failed_to_create_symbol_table_json_file( - path: impl Debug, - error: impl ErrorArg, + path: impl Debug, + error: impl ErrorArg, ) -> Self

For when the symbol table fails to create the symbol table JSON file.

source

pub fn failed_to_write_symbol_table_to_json_file( - path: impl Debug, - error: impl ErrorArg, + path: impl Debug, + error: impl ErrorArg, ) -> Self

For when the symbol table fails to write the symbol table JSON file.

-
source

pub fn failed_to_read_json_string_to_symbol_table(error: impl ErrorArg) -> Self

For when the a JSON string fails to be represented as an symbol table.

+
source

pub fn failed_to_read_json_string_to_symbol_table(error: impl ErrorArg) -> Self

For when the a JSON string fails to be represented as an symbol table.

source

pub fn failed_to_convert_symbol_table_to_json_value( - error: impl ErrorArg, + error: impl ErrorArg, ) -> Self

For when the symbol table fails to be represented as a JSON value.

-
source

pub fn redefining_external_struct(struct_: impl Display, span: Span) -> Self

source

pub fn function_not_found(func: impl Display) -> Self

source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for AstError

source§

fn clone(&self) -> AstError

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 AstError

source§

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

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

impl Display for AstError

source§

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

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

impl Error for AstError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<AstError> for LeoError

source§

fn from(source: AstError) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for AstError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for AstError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for AstError

Implements the trait for LeoError Codes.

-
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 +
source

pub fn redefining_external_struct(struct_: impl Display, span: Span) -> Self

source

pub fn function_not_found(func: impl Display) -> Self

source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for AstError

source§

fn clone(&self) -> AstError

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 AstError

source§

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

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

impl Display for AstError

source§

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

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

impl Error for AstError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<AstError> for LeoError

source§

fn from(source: AstError) -> Self

Converts to this type from the input type.
source§

impl From<Backtraced> for AstError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for AstError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for AstError

Implements the trait for LeoError Codes.

+
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 (Leo upsidedown and backwards). This is to make the exit codes -unique to Leo itself.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+unique to Leo itself.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/errors/ast/ast_errors/index.html b/leo_errors/errors/ast/ast_errors/index.html index c411894d3d..4bbe6dbe0e 100644 --- a/leo_errors/errors/ast/ast_errors/index.html +++ b/leo_errors/errors/ast/ast_errors/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::ast::ast_errors - Rust

Module leo_errors::errors::ast::ast_errors

source ·
Expand description

This module contains the AST error definitions.

+leo_errors::errors::ast::ast_errors - Rust
leo_errors::errors::ast

Module ast_errors

source
Expand description

This module contains the AST error definitions.

Enums§

  • AstError enum that represents all the errors for the leo-ast crate.
\ No newline at end of file diff --git a/leo_errors/errors/ast/index.html b/leo_errors/errors/ast/index.html index 3820c75374..e51a224d75 100644 --- a/leo_errors/errors/ast/index.html +++ b/leo_errors/errors/ast/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::ast - Rust

Module leo_errors::errors::ast

source ·
Expand description

Contains the AST error definitions.

+leo_errors::errors::ast - Rust
leo_errors::errors

Module ast

source
Expand description

Contains the AST error definitions.

Re-exports§

Modules§

  • This module contains the AST error definitions.
\ No newline at end of file diff --git a/leo_errors/errors/cli/cli_errors/enum.CliError.html b/leo_errors/errors/cli/cli_errors/enum.CliError.html index 06cf15c613..6566a11bbd 100644 --- a/leo_errors/errors/cli/cli_errors/enum.CliError.html +++ b/leo_errors/errors/cli/cli_errors/enum.CliError.html @@ -1,44 +1,44 @@ -CliError in leo_errors::errors::cli::cli_errors - Rust

Enum leo_errors::errors::cli::cli_errors::CliError

source ·
pub enum CliError {
+CliError in leo_errors::errors::cli::cli_errors - Rust
leo_errors::errors::cli::cli_errors

Enum CliError

source
pub enum CliError {
     Formatted(Formatted),
     Backtraced(Backtraced),
 }
Expand description

CliError enum that represents all the errors for the leo-lang crate.

-

Variants§

§

Formatted(Formatted)

§

Backtraced(Backtraced)

Implementations§

source§

impl CliError

source

pub fn cli_io_error(error: impl ErrorArg) -> Self

For when the CLI experiences an IO error.

-
source

pub fn cli_invalid_input(error: impl Display) -> Self

For when the CLI is given invalid user input.

-
source

pub fn cli_runtime_error(error: impl Display) -> Self

For when the CLI fails to run something

-
source

pub fn could_not_fetch_versions(error: impl ErrorArg) -> Self

For when the CLI could not fetch the versions.

+

Variants§

§

Formatted(Formatted)

§

Backtraced(Backtraced)

Implementations§

source§

impl CliError

source

pub fn cli_io_error(error: impl ErrorArg) -> Self

For when the CLI experiences an IO error.

+
source

pub fn cli_invalid_input(error: impl Display) -> Self

For when the CLI is given invalid user input.

+
source

pub fn cli_runtime_error(error: impl Display) -> Self

For when the CLI fails to run something

+
source

pub fn could_not_fetch_versions(error: impl ErrorArg) -> Self

For when the CLI could not fetch the versions.

source

pub fn failed_to_enable_ansi_support() -> Self

For when the CLI fails to enable ansi support.

-
source

pub fn self_update_error(error: impl ErrorArg) -> Self

For when the CLI fails to self update.

-
source

pub fn self_update_build_error(error: impl ErrorArg) -> Self

For when the CLI fails to self update.

-
source

pub fn old_release_version(current: impl Display, latest: impl Display) -> Self

For when the CLI has an old release version.

-
source

pub fn failed_to_load_instructions(error: impl Display) -> Self

source

pub fn needs_leo_build() -> Self

source

pub fn failed_to_execute_build(error: impl Display) -> Self

source

pub fn failed_to_execute_new(error: impl Display) -> Self

source

pub fn failed_to_execute_run(error: impl Display) -> Self

source

pub fn failed_to_execute_node(error: impl Display) -> Self

source

pub fn failed_to_execute_deploy(error: impl Display) -> Self

source

pub fn failed_to_parse_new(error: impl Display) -> Self

source

pub fn failed_to_parse_run(error: impl Display) -> Self

source

pub fn failed_to_parse_node(error: impl Display) -> Self

source

pub fn failed_to_parse_deploy(error: impl Display) -> Self

source

pub fn failed_to_parse_execute(error: impl Display) -> Self

source

pub fn failed_to_execute_execute(error: impl Display) -> Self

source

pub fn failed_to_parse_seed(error: impl Display) -> Self

source

pub fn failed_to_write_file(error: impl Display) -> Self

source

pub fn failed_to_parse_private_key(error: impl Display) -> Self

source

pub fn failed_to_execute_account(error: impl Display) -> Self

source

pub fn failed_to_read_environment_private_key(error: impl Display) -> Self

source

pub fn recursive_deploy_with_record() -> Self

source

pub fn invalid_network_name(network: impl Display) -> Self

source

pub fn invalid_example(example: impl Display) -> Self

source

pub fn build_error(error: impl Display) -> Self

source

pub fn failed_to_parse_record(error: impl Display) -> Self

source

pub fn string_parse_error(error: impl Display) -> Self

source

pub fn broadcast_error(error: impl Display) -> Self

source

pub fn failed_to_get_endpoint_from_env() -> Self

source

pub fn failed_to_get_private_key_from_env() -> Self

source

pub fn failed_to_get_network_from_env() -> Self

source

pub fn constraint_limit_exceeded( - program: impl Display, - limit: u64, - network: impl Display, +

source

pub fn self_update_error(error: impl ErrorArg) -> Self

For when the CLI fails to self update.

+
source

pub fn self_update_build_error(error: impl ErrorArg) -> Self

For when the CLI fails to self update.

+
source

pub fn old_release_version(current: impl Display, latest: impl Display) -> Self

For when the CLI has an old release version.

+
source

pub fn failed_to_load_instructions(error: impl Display) -> Self

source

pub fn needs_leo_build() -> Self

source

pub fn failed_to_execute_build(error: impl Display) -> Self

source

pub fn failed_to_execute_new(error: impl Display) -> Self

source

pub fn failed_to_execute_run(error: impl Display) -> Self

source

pub fn failed_to_execute_node(error: impl Display) -> Self

source

pub fn failed_to_execute_deploy(error: impl Display) -> Self

source

pub fn failed_to_parse_new(error: impl Display) -> Self

source

pub fn failed_to_parse_run(error: impl Display) -> Self

source

pub fn failed_to_parse_node(error: impl Display) -> Self

source

pub fn failed_to_parse_deploy(error: impl Display) -> Self

source

pub fn failed_to_parse_execute(error: impl Display) -> Self

source

pub fn failed_to_execute_execute(error: impl Display) -> Self

source

pub fn failed_to_parse_seed(error: impl Display) -> Self

source

pub fn failed_to_write_file(error: impl Display) -> Self

source

pub fn failed_to_parse_private_key(error: impl Display) -> Self

source

pub fn failed_to_execute_account(error: impl Display) -> Self

source

pub fn failed_to_read_environment_private_key(error: impl Display) -> Self

source

pub fn recursive_deploy_with_record() -> Self

source

pub fn invalid_network_name(network: impl Display) -> Self

source

pub fn invalid_example(example: impl Display) -> Self

source

pub fn build_error(error: impl Display) -> Self

source

pub fn failed_to_parse_record(error: impl Display) -> Self

source

pub fn string_parse_error(error: impl Display) -> Self

source

pub fn broadcast_error(error: impl Display) -> Self

source

pub fn failed_to_get_endpoint_from_env() -> Self

source

pub fn failed_to_get_private_key_from_env() -> Self

source

pub fn failed_to_get_network_from_env() -> Self

source

pub fn constraint_limit_exceeded( + program: impl Display, + limit: u64, + network: impl Display, ) -> Self

source

pub fn variable_limit_exceeded( - program: impl Display, - limit: u64, - network: impl Display, -) -> Self

source

pub fn confirmation_failed() -> Self

source

pub fn invalid_balance(account: impl Display) -> Self

source

pub fn table_render_failed(error: impl Display) -> Self

source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for CliError

source§

fn clone(&self) -> CliError

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 CliError

source§

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

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

impl Display for CliError

source§

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

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

impl Error for CliError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for CliError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<CliError> for LeoError

source§

fn from(source: CliError) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for CliError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for CliError

Implements the trait for LeoError Codes.

-
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 + program: impl Display, + limit: u64, + network: impl Display, +) -> Self
source

pub fn confirmation_failed() -> Self

source

pub fn invalid_balance(account: impl Display) -> Self

source

pub fn table_render_failed(error: impl Display) -> Self

source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for CliError

source§

fn clone(&self) -> CliError

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 CliError

source§

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

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

impl Display for CliError

source§

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

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

impl Error for CliError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for CliError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<CliError> for LeoError

source§

fn from(source: CliError) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for CliError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for CliError

Implements the trait for LeoError Codes.

+
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 (Leo upsidedown and backwards). This is to make the exit codes -unique to Leo itself.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+unique to Leo itself.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/errors/cli/cli_errors/index.html b/leo_errors/errors/cli/cli_errors/index.html index eac4649705..18464e6c16 100644 --- a/leo_errors/errors/cli/cli_errors/index.html +++ b/leo_errors/errors/cli/cli_errors/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::cli::cli_errors - Rust

Module leo_errors::errors::cli::cli_errors

source ·
Expand description

This module contains the CLI error definitions.

+leo_errors::errors::cli::cli_errors - Rust
leo_errors::errors::cli

Module cli_errors

source
Expand description

This module contains the CLI error definitions.

Enums§

  • CliError enum that represents all the errors for the leo-lang crate.
\ No newline at end of file diff --git a/leo_errors/errors/cli/index.html b/leo_errors/errors/cli/index.html index 408d072159..15057cd0d8 100644 --- a/leo_errors/errors/cli/index.html +++ b/leo_errors/errors/cli/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::cli - Rust

Module leo_errors::errors::cli

source ·
Expand description

Contains the CLI error definitions.

+leo_errors::errors::cli - Rust
leo_errors::errors

Module cli

source
Expand description

Contains the CLI error definitions.

Re-exports§

Modules§

  • This module contains the CLI error definitions.
\ No newline at end of file diff --git a/leo_errors/errors/compiler/compiler_errors/enum.CompilerError.html b/leo_errors/errors/compiler/compiler_errors/enum.CompilerError.html index f2829008ca..e74a2a7e4e 100644 --- a/leo_errors/errors/compiler/compiler_errors/enum.CompilerError.html +++ b/leo_errors/errors/compiler/compiler_errors/enum.CompilerError.html @@ -1,45 +1,45 @@ -CompilerError in leo_errors::errors::compiler::compiler_errors - Rust
pub enum CompilerError {
+CompilerError in leo_errors::errors::compiler::compiler_errors - Rust
leo_errors::errors::compiler::compiler_errors

Enum CompilerError

source
pub enum CompilerError {
     Formatted(Formatted),
     Backtraced(Backtraced),
 }
Expand description

CompilerError enum that represents all the errors for the leo-compiler crate.

-

Variants§

§

Formatted(Formatted)

§

Backtraced(Backtraced)

Implementations§

source§

impl CompilerError

source

pub fn file_read_error(path: impl Debug, error: impl ErrorArg) -> Self

For when the compiler can’t read a file from the provided path.

+

Variants§

§

Formatted(Formatted)

§

Backtraced(Backtraced)

Implementations§

source§

impl CompilerError

source

pub fn file_read_error(path: impl Debug, error: impl ErrorArg) -> Self

For when the compiler can’t read a file from the provided path.

source

pub fn illegal_static_member_assignment( - member: impl Display, + member: impl Display, span: Span, ) -> Self

For when a user tries to assign to a struct static member.

-
source

pub fn import_not_found(file_path: impl Display, span: Span) -> Self

source

pub fn cannot_open_cwd(err: impl ErrorArg, span: Span) -> Self

source

pub fn program_name_should_match_file_name( - program_name: impl Display, - file_name: impl Display, +

source

pub fn import_not_found(file_path: impl Display, span: Span) -> Self

source

pub fn cannot_open_cwd(err: impl ErrorArg, span: Span) -> Self

source

pub fn program_name_should_match_file_name( + program_name: impl Display, + file_name: impl Display, span: Span, ) -> Self

source

pub fn program_scope_name_does_not_match( - program_scope_name: impl Display, - file_name: impl Display, + program_scope_name: impl Display, + file_name: impl Display, span: Span, ) -> Self

source

pub fn imported_program_not_found( - main_program_name: impl Display, - dependency_name: impl Display, + main_program_name: impl Display, + dependency_name: impl Display, span: Span, -) -> Self

source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for CompilerError

source§

fn clone(&self) -> CompilerError

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 CompilerError

source§

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

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

impl Display for CompilerError

source§

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

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

impl Error for CompilerError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for CompilerError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<CompilerError> for LeoError

source§

fn from(source: CompilerError) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for CompilerError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for CompilerError

Implements the trait for LeoError Codes.

-
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 +) -> Self
source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for CompilerError

source§

fn clone(&self) -> CompilerError

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 CompilerError

source§

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

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

impl Display for CompilerError

source§

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

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

impl Error for CompilerError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for CompilerError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<CompilerError> for LeoError

source§

fn from(source: CompilerError) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for CompilerError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for CompilerError

Implements the trait for LeoError Codes.

+
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 (Leo upsidedown and backwards). This is to make the exit codes -unique to Leo itself.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+unique to Leo itself.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/errors/compiler/compiler_errors/index.html b/leo_errors/errors/compiler/compiler_errors/index.html index 422ea3b7ae..07a741d877 100644 --- a/leo_errors/errors/compiler/compiler_errors/index.html +++ b/leo_errors/errors/compiler/compiler_errors/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::compiler::compiler_errors - Rust

Module leo_errors::errors::compiler::compiler_errors

source ·
Expand description

This module contains the Compiler error definitions.

+leo_errors::errors::compiler::compiler_errors - Rust
leo_errors::errors::compiler

Module compiler_errors

source
Expand description

This module contains the Compiler error definitions.

Enums§

  • CompilerError enum that represents all the errors for the leo-compiler crate.
\ No newline at end of file diff --git a/leo_errors/errors/compiler/index.html b/leo_errors/errors/compiler/index.html index 0f66f83bca..8cdd59bc6f 100644 --- a/leo_errors/errors/compiler/index.html +++ b/leo_errors/errors/compiler/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::compiler - Rust

Module leo_errors::errors::compiler

source ·
Expand description

Contains the Compiler error definitions.

+leo_errors::errors::compiler - Rust
leo_errors::errors

Module compiler

source
Expand description

Contains the Compiler error definitions.

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_errors/errors/enum.LeoError.html b/leo_errors/errors/enum.LeoError.html index ef52640a8b..f6e5b08db6 100644 --- a/leo_errors/errors/enum.LeoError.html +++ b/leo_errors/errors/enum.LeoError.html @@ -1,4 +1,4 @@ -LeoError in leo_errors::errors - Rust

Enum leo_errors::errors::LeoError

source ·
pub enum LeoError {
+LeoError in leo_errors::errors - Rust
leo_errors::errors

Enum LeoError

source
pub enum LeoError {
     AstError(AstError),
     CliError(CliError),
     CompilerError(CompilerError),
@@ -8,7 +8,7 @@
     TypeCheckerError(TypeCheckerError),
     LoopUnrollerError(LoopUnrollerError),
     FlattenError(FlattenError),
-    LastErrorCode(i32),
+    LastErrorCode(i32),
     UtilError(UtilError),
     Anyhow(Error),
 }
Expand description

The LeoError type that contains all sub error types. @@ -22,28 +22,28 @@

§

TypeCheckerError(TypeCheckerError)

Represents a Type Checker Error in a Leo Error.

§

LoopUnrollerError(LoopUnrollerError)

Represents a Loop Unroller Error in a Leo Error.

§

FlattenError(FlattenError)

Represents a Flatten Error in a Leo Error.

-
§

LastErrorCode(i32)

Purely for just exiting with the correct status code and +

§

LastErrorCode(i32)

Purely for just exiting with the correct status code and not re-displaying an error.

§

UtilError(UtilError)

Represents a Utils Error in a Leo Error.

§

Anyhow(Error)

Anyhow errors.

-

Implementations§

source§

impl LeoError

source

pub fn error_code(&self) -> String

Implement error code for each type of Error.

-
source

pub fn exit_code(&self) -> i32

Implement exit code for each type of Error.

-

Trait Implementations§

source§

impl Debug for LeoError

source§

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

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

impl Display for LeoError

source§

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

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

impl Error for LeoError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<AstError> for LeoError

source§

fn from(source: AstError) -> Self

Converts to this type from the input type.
source§

impl From<CliError> for LeoError

source§

fn from(source: CliError) -> Self

Converts to this type from the input type.
source§

impl From<CompilerError> for LeoError

source§

fn from(source: CompilerError) -> Self

Converts to this type from the input type.
source§

impl From<Error> for LeoError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<FlattenError> for LeoError

source§

fn from(source: FlattenError) -> Self

Converts to this type from the input type.
source§

impl From<LoopUnrollerError> for LeoError

source§

fn from(source: LoopUnrollerError) -> Self

Converts to this type from the input type.
source§

impl From<PackageError> for LeoError

source§

fn from(source: PackageError) -> Self

Converts to this type from the input type.
source§

impl From<ParserError> for LeoError

source§

fn from(source: ParserError) -> Self

Converts to this type from the input type.
source§

impl From<StaticAnalyzerError> for LeoError

source§

fn from(source: StaticAnalyzerError) -> Self

Converts to this type from the input type.
source§

impl From<TypeCheckerError> for LeoError

source§

fn from(source: TypeCheckerError) -> Self

Converts to this type from the input type.
source§

impl From<UtilError> for LeoError

source§

fn from(source: UtilError) -> Self

Converts to this type from the input type.

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 - 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.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

Implementations§

source§

impl LeoError

source

pub fn error_code(&self) -> String

Implement error code for each type of Error.

+
source

pub fn exit_code(&self) -> i32

Implement exit code for each type of Error.

+

Trait Implementations§

source§

impl Debug for LeoError

source§

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

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

impl Display for LeoError

source§

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

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

impl Error for LeoError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<AstError> for LeoError

source§

fn from(source: AstError) -> Self

Converts to this type from the input type.
source§

impl From<CliError> for LeoError

source§

fn from(source: CliError) -> Self

Converts to this type from the input type.
source§

impl From<CompilerError> for LeoError

source§

fn from(source: CompilerError) -> Self

Converts to this type from the input type.
source§

impl From<Error> for LeoError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<FlattenError> for LeoError

source§

fn from(source: FlattenError) -> Self

Converts to this type from the input type.
source§

impl From<LoopUnrollerError> for LeoError

source§

fn from(source: LoopUnrollerError) -> Self

Converts to this type from the input type.
source§

impl From<PackageError> for LeoError

source§

fn from(source: PackageError) -> Self

Converts to this type from the input type.
source§

impl From<ParserError> for LeoError

source§

fn from(source: ParserError) -> Self

Converts to this type from the input type.
source§

impl From<StaticAnalyzerError> for LeoError

source§

fn from(source: StaticAnalyzerError) -> Self

Converts to this type from the input type.
source§

impl From<TypeCheckerError> for LeoError

source§

fn from(source: TypeCheckerError) -> Self

Converts to this type from the input type.
source§

impl From<UtilError> for LeoError

source§

fn from(source: UtilError) -> Self

Converts to this type from the input type.

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 + 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.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/errors/enum.LeoWarning.html b/leo_errors/errors/enum.LeoWarning.html index b20aec18a3..68c0e04dec 100644 --- a/leo_errors/errors/enum.LeoWarning.html +++ b/leo_errors/errors/enum.LeoWarning.html @@ -1,4 +1,4 @@ -LeoWarning in leo_errors::errors - Rust

Enum leo_errors::errors::LeoWarning

source ·
pub enum LeoWarning {
+LeoWarning in leo_errors::errors - Rust
leo_errors::errors

Enum LeoWarning

source
pub enum LeoWarning {
     ParserWarning(ParserWarning),
     StaticAnalyzerWarning(StaticAnalyzerWarning),
     TypeCheckerWarning(TypeCheckerWarning),
@@ -7,23 +7,23 @@
 

Variants§

§

ParserWarning(ParserWarning)

Represents an Parser Warning in a Leo Warning.

§

StaticAnalyzerWarning(StaticAnalyzerWarning)

Represents a Static Analyzer Warning in a Leo Warning.

§

TypeCheckerWarning(TypeCheckerWarning)

Represents a Type Checker Warning in a Leo Warning.

-

Implementations§

source§

impl LeoWarning

source

pub fn error_code(&self) -> String

Implement warning code for each type of Warning.

-

Trait Implementations§

source§

impl Debug for LeoWarning

source§

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

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

impl Display for LeoWarning

source§

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

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

impl Error for LeoWarning

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<ParserWarning> for LeoWarning

source§

fn from(source: ParserWarning) -> Self

Converts to this type from the input type.
source§

impl From<StaticAnalyzerWarning> for LeoWarning

source§

fn from(source: StaticAnalyzerWarning) -> Self

Converts to this type from the input type.
source§

impl From<TypeCheckerWarning> for LeoWarning

source§

fn from(source: TypeCheckerWarning) -> Self

Converts to this type from the input type.

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 - 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.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

Implementations§

source§

impl LeoWarning

source

pub fn error_code(&self) -> String

Implement warning code for each type of Warning.

+

Trait Implementations§

source§

impl Debug for LeoWarning

source§

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

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

impl Display for LeoWarning

source§

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

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

impl Error for LeoWarning

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<ParserWarning> for LeoWarning

source§

fn from(source: ParserWarning) -> Self

Converts to this type from the input type.
source§

impl From<StaticAnalyzerWarning> for LeoWarning

source§

fn from(source: StaticAnalyzerWarning) -> Self

Converts to this type from the input type.
source§

impl From<TypeCheckerWarning> for LeoWarning

source§

fn from(source: TypeCheckerWarning) -> Self

Converts to this type from the input type.

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 + 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.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/errors/flattener/flattener_errors/enum.FlattenError.html b/leo_errors/errors/flattener/flattener_errors/enum.FlattenError.html index 7c9567e74b..39452ac22b 100644 --- a/leo_errors/errors/flattener/flattener_errors/enum.FlattenError.html +++ b/leo_errors/errors/flattener/flattener_errors/enum.FlattenError.html @@ -1,38 +1,38 @@ -FlattenError in leo_errors::errors::flattener::flattener_errors - Rust
pub enum FlattenError {
+FlattenError in leo_errors::errors::flattener::flattener_errors - Rust
leo_errors::errors::flattener::flattener_errors

Enum FlattenError

source
pub enum FlattenError {
     Formatted(Formatted),
     Backtraced(Backtraced),
 }
Expand description

CliError enum that represents all the errors for the leo-lang crate.

Variants§

§

Formatted(Formatted)

§

Backtraced(Backtraced)

Implementations§

source§

impl FlattenError

source

pub fn binary_overflow( - left: impl Display, - op: impl Display, - right: impl Display, - right_type: impl Display, + left: impl Display, + op: impl Display, + right: impl Display, + right_type: impl Display, span: Span, ) -> Self

For when a constant operation would cause an overflow.

-
source

pub fn unary_overflow(left: impl Display, op: impl Display, span: Span) -> Self

For when a constant operation would cause an overflow.

-
source

pub fn loop_has_neg_value(value: impl Display, span: Span) -> Self

For when a loop uses a negative value.

-
source

pub fn u128_to_i128(value: impl Display, span: Span) -> Self

For when a u128 value cannot be converted into an i128.

-
source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for FlattenError

source§

fn clone(&self) -> FlattenError

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 FlattenError

source§

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

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

impl Display for FlattenError

source§

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

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

impl Error for FlattenError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for FlattenError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<FlattenError> for LeoError

source§

fn from(source: FlattenError) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for FlattenError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for FlattenError

Implements the trait for LeoError Codes.

-
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 +
source

pub fn unary_overflow(left: impl Display, op: impl Display, span: Span) -> Self

For when a constant operation would cause an overflow.

+
source

pub fn loop_has_neg_value(value: impl Display, span: Span) -> Self

For when a loop uses a negative value.

+
source

pub fn u128_to_i128(value: impl Display, span: Span) -> Self

For when a u128 value cannot be converted into an i128.

+
source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for FlattenError

source§

fn clone(&self) -> FlattenError

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 FlattenError

source§

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

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

impl Display for FlattenError

source§

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

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

impl Error for FlattenError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for FlattenError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<FlattenError> for LeoError

source§

fn from(source: FlattenError) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for FlattenError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for FlattenError

Implements the trait for LeoError Codes.

+
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 (Leo upsidedown and backwards). This is to make the exit codes -unique to Leo itself.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+unique to Leo itself.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/errors/flattener/flattener_errors/fn.type_name.html b/leo_errors/errors/flattener/flattener_errors/fn.type_name.html index 729ff51158..19802e5e77 100644 --- a/leo_errors/errors/flattener/flattener_errors/fn.type_name.html +++ b/leo_errors/errors/flattener/flattener_errors/fn.type_name.html @@ -1,2 +1,2 @@ -type_name in leo_errors::errors::flattener::flattener_errors - Rust

Function leo_errors::errors::flattener::flattener_errors::type_name

source ·
pub fn type_name<T>(_: &T) -> &'static str
Expand description

Generates the type name of a value.

+type_name in leo_errors::errors::flattener::flattener_errors - Rust
leo_errors::errors::flattener::flattener_errors

Function type_name

source
pub fn type_name<T>(_: &T) -> &'static str
Expand description

Generates the type name of a value.

\ No newline at end of file diff --git a/leo_errors/errors/flattener/flattener_errors/index.html b/leo_errors/errors/flattener/flattener_errors/index.html index 506aa49e4b..03a9e81f15 100644 --- a/leo_errors/errors/flattener/flattener_errors/index.html +++ b/leo_errors/errors/flattener/flattener_errors/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::flattener::flattener_errors - Rust

Module leo_errors::errors::flattener::flattener_errors

source ·
Expand description

This module contains the Flattener error definitions.

+leo_errors::errors::flattener::flattener_errors - Rust
leo_errors::errors::flattener

Module flattener_errors

source
Expand description

This module contains the Flattener error definitions.

Enums§

  • CliError enum that represents all the errors for the leo-lang crate.

Functions§

\ No newline at end of file diff --git a/leo_errors/errors/flattener/index.html b/leo_errors/errors/flattener/index.html index c5626c8d68..f38c2b249d 100644 --- a/leo_errors/errors/flattener/index.html +++ b/leo_errors/errors/flattener/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::flattener - Rust

Module leo_errors::errors::flattener

source ·
Expand description

Contains the Flattener error definitions.

+leo_errors::errors::flattener - Rust
leo_errors::errors

Module flattener

source
Expand description

Contains the Flattener error definitions.

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_errors/errors/index.html b/leo_errors/errors/index.html index b9eb4b671d..231d4986aa 100644 --- a/leo_errors/errors/index.html +++ b/leo_errors/errors/index.html @@ -1,4 +1,4 @@ -leo_errors::errors - Rust

Module leo_errors::errors

source ·
Expand description

Contains the errors and warnings for the Leo language.

+leo_errors::errors - Rust
leo_errors

Module errors

source
Expand description

Contains the errors and warnings for the Leo language.

Re-exports§

Modules§

  • Contains the AST error definitions.
  • Contains the CLI error definitions.
  • Contains the Compiler error definitions.
  • Contains the Flattener error definitions.
  • Contains the Loop Unroller error definitions.
  • Contains the Package error definitions.
  • Contains the Parser error definitions.
  • Contains the Static Analyzer error definitions.
  • Contains the Type Checker error definitions.
  • Contains the Utils error definitions.

Enums§

  • The LeoError type that contains all sub error types. This allows a unified error type throughout the Leo crates.
  • The LeoWarning type that contains all sub warning types. This allows a unified warning type throughout the Leo crates.

Type Aliases§

  • A global result type for all Leo crates, that defaults the errors to be a LeoError.
\ No newline at end of file diff --git a/leo_errors/errors/loop_unroller/index.html b/leo_errors/errors/loop_unroller/index.html index 6cb4b37612..7ba90ae4da 100644 --- a/leo_errors/errors/loop_unroller/index.html +++ b/leo_errors/errors/loop_unroller/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::loop_unroller - Rust

Module leo_errors::errors::loop_unroller

source ·
Expand description

Contains the Loop Unroller error definitions.

+leo_errors::errors::loop_unroller - Rust
leo_errors::errors

Module loop_unroller

source
Expand description

Contains the Loop Unroller error definitions.

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_errors/errors/loop_unroller/loop_unroller_errors/enum.LoopUnrollerError.html b/leo_errors/errors/loop_unroller/loop_unroller_errors/enum.LoopUnrollerError.html index 75e350e031..a471b864f1 100644 --- a/leo_errors/errors/loop_unroller/loop_unroller_errors/enum.LoopUnrollerError.html +++ b/leo_errors/errors/loop_unroller/loop_unroller_errors/enum.LoopUnrollerError.html @@ -1,28 +1,28 @@ -LoopUnrollerError in leo_errors::errors::loop_unroller::loop_unroller_errors - Rust
pub enum LoopUnrollerError {
+LoopUnrollerError in leo_errors::errors::loop_unroller::loop_unroller_errors - Rust
leo_errors::errors::loop_unroller::loop_unroller_errors

Enum LoopUnrollerError

source
pub enum LoopUnrollerError {
     Formatted(Formatted),
     Backtraced(Backtraced),
 }
Expand description

LoopUnrollerError enum that represents all the errors for the loop unrolling errors in the leo-loop_unroller crate.

-

Variants§

§

Formatted(Formatted)

§

Backtraced(Backtraced)

Implementations§

source§

impl LoopUnrollerError

source

pub fn loop_range_decreasing(span: Span) -> Self

source

pub fn variable_array_access(span: Span) -> Self

source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for LoopUnrollerError

source§

fn clone(&self) -> LoopUnrollerError

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 LoopUnrollerError

source§

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

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

impl Display for LoopUnrollerError

source§

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

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

impl Error for LoopUnrollerError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for LoopUnrollerError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for LoopUnrollerError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<LoopUnrollerError> for LeoError

source§

fn from(source: LoopUnrollerError) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for LoopUnrollerError

Implements the trait for LeoError Codes.

-
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 +

Variants§

§

Formatted(Formatted)

§

Backtraced(Backtraced)

Implementations§

source§

impl LoopUnrollerError

source

pub fn loop_range_decreasing(span: Span) -> Self

source

pub fn variable_array_access(span: Span) -> Self

source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for LoopUnrollerError

source§

fn clone(&self) -> LoopUnrollerError

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 LoopUnrollerError

source§

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

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

impl Display for LoopUnrollerError

source§

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

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

impl Error for LoopUnrollerError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for LoopUnrollerError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for LoopUnrollerError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<LoopUnrollerError> for LeoError

source§

fn from(source: LoopUnrollerError) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for LoopUnrollerError

Implements the trait for LeoError Codes.

+
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 (Leo upsidedown and backwards). This is to make the exit codes -unique to Leo itself.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+unique to Leo itself.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/errors/loop_unroller/loop_unroller_errors/index.html b/leo_errors/errors/loop_unroller/loop_unroller_errors/index.html index f8a764a87d..02be56ccc5 100644 --- a/leo_errors/errors/loop_unroller/loop_unroller_errors/index.html +++ b/leo_errors/errors/loop_unroller/loop_unroller_errors/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::loop_unroller::loop_unroller_errors - Rust
Expand description

This module contains the Input error definitions.

+leo_errors::errors::loop_unroller::loop_unroller_errors - Rust
leo_errors::errors::loop_unroller

Module loop_unroller_errors

source
Expand description

This module contains the Input error definitions.

Enums§

  • LoopUnrollerError enum that represents all the errors for the loop unrolling errors in the leo-loop_unroller crate.
\ No newline at end of file diff --git a/leo_errors/errors/package/index.html b/leo_errors/errors/package/index.html index f6b93de806..66af99054b 100644 --- a/leo_errors/errors/package/index.html +++ b/leo_errors/errors/package/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::package - Rust

Module leo_errors::errors::package

source ·
Expand description

Contains the Package error definitions.

+leo_errors::errors::package - Rust
leo_errors::errors

Module package

source
Expand description

Contains the Package error definitions.

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_errors/errors/package/package_errors/enum.PackageError.html b/leo_errors/errors/package/package_errors/enum.PackageError.html index 4372380526..548ed48c8a 100644 --- a/leo_errors/errors/package/package_errors/enum.PackageError.html +++ b/leo_errors/errors/package/package_errors/enum.PackageError.html @@ -1,88 +1,88 @@ -PackageError in leo_errors::errors::package::package_errors - Rust
pub enum PackageError {
+PackageError in leo_errors::errors::package::package_errors - Rust
leo_errors::errors::package::package_errors

Enum PackageError

source
pub enum PackageError {
     Formatted(Formatted),
     Backtraced(Backtraced),
 }
Expand description

PackageError enum that represents all the errors for the leo-package crate.

-

Variants§

§

Formatted(Formatted)

§

Backtraced(Backtraced)

Implementations§

source§

impl PackageError

source

pub fn failed_to_get_input_file_entry(error: impl ErrorArg) -> Self

For when getting a input file entry failed.

+

Variants§

§

Formatted(Formatted)

§

Backtraced(Backtraced)

Implementations§

source§

impl PackageError

source

pub fn failed_to_get_input_file_entry(error: impl ErrorArg) -> Self

For when getting a input file entry failed.

source

pub fn failed_to_get_input_file_type( - file: impl Debug, - error: impl ErrorArg, + file: impl Debug, + error: impl ErrorArg, ) -> Self

For when getting the input file type failed.

-
source

pub fn invalid_input_file_type(file: impl Debug, type_: FileType) -> Self

For when getting the input file has an invalid file type.

-
source

pub fn failed_to_create_inputs_directory(error: impl ErrorArg) -> Self

For when creating the inputs directory failed.

-
source

pub fn failed_to_read_circuit_file(path: impl Debug) -> Self

For when reading the struct file failed.

-
source

pub fn failed_to_read_inputs_directory(error: impl ErrorArg) -> Self

For when reading the input directory failed.

-
source

pub fn failed_to_read_input_file(path: impl Debug) -> Self

For when reading the input file failed.

-
source

pub fn failed_to_read_snapshot_file(path: impl Debug) -> Self

For when reading the snapshot file failed.

-
source

pub fn failed_to_read_checksum_file(path: impl Debug) -> Self

For when reading the checksum file failed.

-
source

pub fn io_error_circuit_file(error: impl ErrorArg) -> Self

For when the struct file has an IO error.

-
source

pub fn io_error_checksum_file(error: impl ErrorArg) -> Self

For when the checksum file has an IO error.

-
source

pub fn io_error_main_file(error: impl ErrorArg) -> Self

For when the main file has an IO error.

-
source

pub fn failed_to_remove_circuit_file(path: impl Debug) -> Self

For when removing the struct file failed.

-
source

pub fn failed_to_remove_checksum_file(path: impl Debug) -> Self

For when removing the checksum file failed.

-
source

pub fn failed_to_remove_snapshot_file(path: impl Debug) -> Self

For when removing the snapshot file failed.

-
source

pub fn io_error_input_file(error: impl ErrorArg) -> Self

For when the input file has an IO error.

-
source

pub fn io_error_gitignore_file(error: impl ErrorArg) -> Self

For when the gitignore file has an IO error.

-
source

pub fn failed_to_create_source_directory(error: impl ErrorArg) -> Self

For when creating the source directory failed.

-
source

pub fn failed_to_get_leo_file_entry(error: impl ErrorArg) -> Self

For when getting a Leo file entry failed.

-
source

pub fn failed_to_get_leo_file_extension(extension: impl Debug) -> Self

For when getting the source file extension failed.

+
source

pub fn invalid_input_file_type(file: impl Debug, type_: FileType) -> Self

For when getting the input file has an invalid file type.

+
source

pub fn failed_to_create_inputs_directory(error: impl ErrorArg) -> Self

For when creating the inputs directory failed.

+
source

pub fn failed_to_read_circuit_file(path: impl Debug) -> Self

For when reading the struct file failed.

+
source

pub fn failed_to_read_inputs_directory(error: impl ErrorArg) -> Self

For when reading the input directory failed.

+
source

pub fn failed_to_read_input_file(path: impl Debug) -> Self

For when reading the input file failed.

+
source

pub fn failed_to_read_snapshot_file(path: impl Debug) -> Self

For when reading the snapshot file failed.

+
source

pub fn failed_to_read_checksum_file(path: impl Debug) -> Self

For when reading the checksum file failed.

+
source

pub fn io_error_circuit_file(error: impl ErrorArg) -> Self

For when the struct file has an IO error.

+
source

pub fn io_error_checksum_file(error: impl ErrorArg) -> Self

For when the checksum file has an IO error.

+
source

pub fn io_error_main_file(error: impl ErrorArg) -> Self

For when the main file has an IO error.

+
source

pub fn failed_to_remove_circuit_file(path: impl Debug) -> Self

For when removing the struct file failed.

+
source

pub fn failed_to_remove_checksum_file(path: impl Debug) -> Self

For when removing the checksum file failed.

+
source

pub fn failed_to_remove_snapshot_file(path: impl Debug) -> Self

For when removing the snapshot file failed.

+
source

pub fn io_error_input_file(error: impl ErrorArg) -> Self

For when the input file has an IO error.

+
source

pub fn io_error_gitignore_file(error: impl ErrorArg) -> Self

For when the gitignore file has an IO error.

+
source

pub fn failed_to_create_source_directory(error: impl ErrorArg) -> Self

For when creating the source directory failed.

+
source

pub fn failed_to_get_leo_file_entry(error: impl ErrorArg) -> Self

For when getting a Leo file entry failed.

+
source

pub fn failed_to_get_leo_file_extension(extension: impl Debug) -> Self

For when getting the source file extension failed.

source

pub fn invalid_leo_file_extension( - file: impl Debug, - extension: impl Debug, + file: impl Debug, + extension: impl Debug, ) -> Self

For when the Leo file has an invalid extension.

source

pub fn failed_to_initialize_package( - package: impl Display, - path: impl Debug, - error: impl Display, + package: impl Display, + path: impl Debug, + error: impl Display, ) -> Self

For when the package failed to initialize.

-
source

pub fn invalid_package_name(package: impl Display) -> Self

For when the package has an invalid name.

-
source

pub fn directory_not_found(dirname: impl Display, path: impl Display) -> Self

For when opening a directory failed.

+
source

pub fn invalid_package_name(package: impl Display) -> Self

For when the package has an invalid name.

+
source

pub fn directory_not_found(dirname: impl Display, path: impl Display) -> Self

For when opening a directory failed.

source

pub fn failed_to_create_directory( - dirname: impl Display, - error: impl ErrorArg, + dirname: impl Display, + error: impl ErrorArg, ) -> Self

For when creating a directory failed.

source

pub fn failed_to_remove_directory( - dirname: impl Display, - error: impl ErrorArg, + dirname: impl Display, + error: impl ErrorArg, ) -> Self

For when removing a directory failed.

-
source

pub fn failed_to_read_file(path: impl Display, error: impl ErrorArg) -> Self

For when file could not be read.

-
source

pub fn failed_to_get_file_name() -> Self

source

pub fn failed_to_set_cwd(dir: impl Display, error: impl ErrorArg) -> Self

source

pub fn failed_to_open_manifest(error: impl Display) -> Self

source

pub fn failed_to_read_manifest(error: impl Display) -> Self

source

pub fn failed_to_write_manifest(error: impl Display) -> Self

source

pub fn failed_to_create_manifest(error: impl Display) -> Self

source

pub fn failed_to_open_aleo_file(error: impl Display) -> Self

source

pub fn failed_to_create_aleo_file(error: impl Display) -> Self

source

pub fn failed_to_write_aleo_file(error: impl Display) -> Self

source

pub fn failed_to_remove_aleo_file(error: impl Display) -> Self

source

pub fn empty_source_directory() -> Self

source

pub fn source_directory_can_contain_only_one_file() -> Self

source

pub fn io_error_env_file(error: impl ErrorArg) -> Self

For when the environment file has an IO error.

+
source

pub fn failed_to_read_file(path: impl Display, error: impl ErrorArg) -> Self

For when file could not be read.

+
source

pub fn failed_to_get_file_name() -> Self

source

pub fn failed_to_set_cwd(dir: impl Display, error: impl ErrorArg) -> Self

source

pub fn failed_to_open_manifest(error: impl Display) -> Self

source

pub fn failed_to_read_manifest(error: impl Display) -> Self

source

pub fn failed_to_write_manifest(error: impl Display) -> Self

source

pub fn failed_to_create_manifest(error: impl Display) -> Self

source

pub fn failed_to_open_aleo_file(error: impl Display) -> Self

source

pub fn failed_to_create_aleo_file(error: impl Display) -> Self

source

pub fn failed_to_write_aleo_file(error: impl Display) -> Self

source

pub fn failed_to_remove_aleo_file(error: impl Display) -> Self

source

pub fn empty_source_directory() -> Self

source

pub fn source_directory_can_contain_only_one_file() -> Self

source

pub fn io_error_env_file(error: impl ErrorArg) -> Self

For when the environment file has an IO error.

source

pub fn failed_to_deserialize_manifest_file( - path: impl Display, - error: impl ErrorArg, + path: impl Display, + error: impl ErrorArg, ) -> Self

source

pub fn failed_to_serialize_manifest_file( - path: impl Display, - error: impl ErrorArg, -) -> Self

source

pub fn failed_to_deserialize_lock_file(error: impl ErrorArg) -> Self

source

pub fn invalid_lock_file_formatting() -> Self

source

pub fn unimplemented_command(command: impl Display) -> Self

source

pub fn invalid_file_name_dependency(name: impl Display) -> Self

source

pub fn dependency_not_found(name: impl Display) -> Self

source

pub fn conflicting_on_chain_program_name( - first: impl Display, - second: impl Display, + path: impl Display, + error: impl ErrorArg, +) -> Self

source

pub fn failed_to_deserialize_lock_file(error: impl ErrorArg) -> Self

source

pub fn invalid_lock_file_formatting() -> Self

source

pub fn unimplemented_command(command: impl Display) -> Self

source

pub fn invalid_file_name_dependency(name: impl Display) -> Self

source

pub fn dependency_not_found(name: impl Display) -> Self

source

pub fn conflicting_on_chain_program_name( + first: impl Display, + second: impl Display, ) -> Self

source

pub fn missing_on_chain_program_name() -> Self

source

pub fn failed_to_read_manifest_file( - path: impl Display, - error: impl ErrorArg, + path: impl Display, + error: impl ErrorArg, ) -> Self

source

pub fn insufficient_balance( - address: impl Display, - balance: impl Display, - fee: impl Display, -) -> Self

source

pub fn execution_error(error: impl Display) -> Self

source

pub fn snarkvm_error(error: impl Display) -> Self

source

pub fn failed_to_load_package(path: impl Display) -> Self

source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for PackageError

source§

fn clone(&self) -> PackageError

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 PackageError

source§

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

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

impl Display for PackageError

source§

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

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

impl Error for PackageError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for PackageError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for PackageError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<PackageError> for LeoError

source§

fn from(source: PackageError) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for PackageError

Implements the trait for LeoError Codes.

-
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 + address: impl Display, + balance: impl Display, + fee: impl Display, +) -> Self
source

pub fn execution_error(error: impl Display) -> Self

source

pub fn snarkvm_error(error: impl Display) -> Self

source

pub fn failed_to_load_package(path: impl Display) -> Self

source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for PackageError

source§

fn clone(&self) -> PackageError

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 PackageError

source§

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

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

impl Display for PackageError

source§

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

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

impl Error for PackageError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for PackageError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for PackageError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<PackageError> for LeoError

source§

fn from(source: PackageError) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for PackageError

Implements the trait for LeoError Codes.

+
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 (Leo upsidedown and backwards). This is to make the exit codes -unique to Leo itself.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+unique to Leo itself.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/errors/package/package_errors/index.html b/leo_errors/errors/package/package_errors/index.html index 8073be548c..d0adfab1cc 100644 --- a/leo_errors/errors/package/package_errors/index.html +++ b/leo_errors/errors/package/package_errors/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::package::package_errors - Rust

Module leo_errors::errors::package::package_errors

source ·
Expand description

This module contains the Package error definitions.

+leo_errors::errors::package::package_errors - Rust
leo_errors::errors::package

Module package_errors

source
Expand description

This module contains the Package error definitions.

Enums§

  • PackageError enum that represents all the errors for the leo-package crate.
\ No newline at end of file diff --git a/leo_errors/errors/parser/index.html b/leo_errors/errors/parser/index.html index c9e66ed83c..7ca5d338e6 100644 --- a/leo_errors/errors/parser/index.html +++ b/leo_errors/errors/parser/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::parser - Rust

Module leo_errors::errors::parser

source ·
Expand description

Contains the Parser error definitions.

+leo_errors::errors::parser - Rust
leo_errors::errors

Module parser

source
Expand description

Contains the Parser error definitions.

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_errors/errors/parser/parser_errors/enum.ParserError.html b/leo_errors/errors/parser/parser_errors/enum.ParserError.html index 7e0c68f896..c6bae040d8 100644 --- a/leo_errors/errors/parser/parser_errors/enum.ParserError.html +++ b/leo_errors/errors/parser/parser_errors/enum.ParserError.html @@ -1,95 +1,95 @@ -ParserError in leo_errors::errors::parser::parser_errors - Rust

Enum leo_errors::errors::parser::parser_errors::ParserError

source ·
pub enum ParserError {
+ParserError in leo_errors::errors::parser::parser_errors - Rust
leo_errors::errors::parser::parser_errors

Enum ParserError

source
pub enum ParserError {
     Formatted(Formatted),
     Backtraced(Backtraced),
 }
Expand description

ParserError enum that represents all the errors for the leo-parser crate.

-

Variants§

§

Formatted(Formatted)

§

Backtraced(Backtraced)

Implementations§

source§

impl ParserError

source

pub fn unexpected_token(message: impl Display, span: Span) -> Self

For when the parser encountered an unexpected token.

-
source

pub fn invalid_address_lit(token: impl Display, span: Span) -> Self

For when the parser encountered an invalid address literal.

+

Variants§

§

Formatted(Formatted)

§

Backtraced(Backtraced)

Implementations§

source§

impl ParserError

source

pub fn unexpected_token(message: impl Display, span: Span) -> Self

For when the parser encountered an unexpected token.

+
source

pub fn invalid_address_lit(token: impl Display, span: Span) -> Self

For when the parser encountered an invalid address literal.

source

pub fn invalid_import_list(span: Span) -> Self

For when the parser encountered an empty import list.

source

pub fn unexpected_eof(span: Span) -> Self

For when the parser encountered an unexpected End of File.

source

pub fn unexpected_whitespace( - left: impl Display, - right: impl Display, + left: impl Display, + right: impl Display, span: Span, ) -> Self

For when the parser encountered an unexpected whitespace.

source

pub fn unexpected( - found: impl Display, - expected: impl Display, + found: impl Display, + expected: impl Display, span: Span, ) -> Self

For when the parser encountered an unexpected list of tokens.

source

pub fn mixed_commas_and_semicolons(span: Span) -> Self

For when the parser encountered a mix of commas and semi-colons in struct member variables.

source

pub fn unexpected_ident( - found: impl Display, - expected: &[impl Display], + found: impl Display, + expected: &[impl Display], span: Span, ) -> Self

For when the parser encountered an unexpected identifier.

source

pub fn unexpected_statement( - found: impl Display, - expected: impl Display, + found: impl Display, + expected: impl Display, span: Span, ) -> Self

For when the parser encountered an unexpected statement.

source

pub fn unexpected_str( - found: impl Display, - expected: impl Display, + found: impl Display, + expected: impl Display, span: Span, ) -> Self

For when the parser encountered an unexpected string.

source

pub fn spread_in_array_init(span: Span) -> Self

For when the parser encountered an unexpected spread in an array init expression.

source

pub fn lexer_empty_input() -> Self

When more input was expected but not found.

-
source

pub fn lexer_expected_valid_escaped_char(input: impl Display) -> Self

When an integer is started with a leading zero.

-
source

pub fn lexer_string_not_closed(input: impl Display) -> Self

When a string is not properly closed.

+
source

pub fn lexer_expected_valid_escaped_char(input: impl Display) -> Self

When an integer is started with a leading zero.

+
source

pub fn lexer_string_not_closed(input: impl Display) -> Self

When a string is not properly closed.

source

pub fn lexer_empty_block_comment() -> Self

When a block comment is empty.

source

pub fn lexer_block_comment_does_not_close_before_eof( - input: impl Display, + input: impl Display, ) -> Self

When a block comment is not closed before end of file.

-
source

pub fn could_not_lex(input: impl Display) -> Self

When the lexer could not lex some text.

-
source

pub fn implicit_values_not_allowed(input: impl Display, span: Span) -> Self

When the user tries to pass an implicit value.

-
source

pub fn lexer_hex_number_provided(input: impl Display) -> Self

When a hex number is provided.

+
source

pub fn could_not_lex(input: impl Display) -> Self

When the lexer could not lex some text.

+
source

pub fn implicit_values_not_allowed(input: impl Display, span: Span) -> Self

When the user tries to pass an implicit value.

+
source

pub fn lexer_hex_number_provided(input: impl Display) -> Self

When a hex number is provided.

source

pub fn inputs_multiple_variable_modes_specified(span: Span) -> Self

For when a user specified more than one mode on a parameter.

source

pub fn lexer_bidi_override() -> Self

For when the lexer encountered a bidi override character

source

pub fn invalid_method_call( - expr: impl Display, - func: impl Display, - num_args: impl Display, + expr: impl Display, + func: impl Display, + num_args: impl Display, span: Span, ) -> Self

Parsed an unknown method call on the type of an expression.

-
source

pub fn invalid_associated_access(name: impl Display, span: Span) -> Self

source

pub fn leo_and_aleo_imports_only(span: Span) -> Self

source

pub fn space_in_annotation(span: Span) -> Self

source

pub fn circuit_is_deprecated(span: Span) -> Self

source

pub fn only_one_program_scope_is_allowed(span: Span) -> Self

source

pub fn missing_program_scope(span: Span) -> Self

source

pub fn invalid_network(span: Span) -> Self

source

pub fn tuple_must_have_at_least_two_elements( - kind: impl Display, +

source

pub fn invalid_associated_access(name: impl Display, span: Span) -> Self

source

pub fn leo_and_aleo_imports_only(span: Span) -> Self

source

pub fn space_in_annotation(span: Span) -> Self

source

pub fn circuit_is_deprecated(span: Span) -> Self

source

pub fn only_one_program_scope_is_allowed(span: Span) -> Self

source

pub fn missing_program_scope(span: Span) -> Self

source

pub fn invalid_network(span: Span) -> Self

source

pub fn tuple_must_have_at_least_two_elements( + kind: impl Display, span: Span, -) -> Self

source

pub fn async_finalize_is_deprecated(span: Span) -> Self

source

pub fn finalize_statements_are_deprecated(span: Span) -> Self

source

pub fn console_statements_are_not_yet_supported(span: Span) -> Self

source

pub fn tuple_index_must_be_whole_number(found: impl Display, span: Span) -> Self

Enforce that tuple index must not have leading 0, or underscore in between digits

+) -> Self
source

pub fn async_finalize_is_deprecated(span: Span) -> Self

source

pub fn finalize_statements_are_deprecated(span: Span) -> Self

source

pub fn console_statements_are_not_yet_supported(span: Span) -> Self

source

pub fn tuple_index_must_be_whole_number(found: impl Display, span: Span) -> Self

Enforce that tuple index must not have leading 0, or underscore in between digits

source

pub fn array_must_have_at_least_one_element( - kind: impl Display, + kind: impl Display, span: Span, ) -> Self

source

pub fn invalid_external_type(span: Span) -> Self

source

pub fn cannot_declare_external_struct(span: Span) -> Self

source

pub fn external_type_cannot_be_used_inside_function( - program: impl Display, - file_type: impl Display, + program: impl Display, + file_type: impl Display, span: Span, ) -> Self

source

pub fn cannot_import_inside_program_body(span: Span) -> Self

Enforce that cannot use import in program scope

source

pub fn only_aleo_external_calls(span: Span) -> Self

source

pub fn cannot_define_external_record(span: Span) -> Self

source

pub fn comma_expected_after_member(span: Span) -> Self

For when the parser encountered a member declaration not followed by a comma.

-
source

pub fn hexbin_literal_nonintegers(span: Span) -> Self

source

pub fn wrong_digit_for_radix(digit: char, radix: u32, token: String) -> Self

source

pub fn identifier_too_long( - ident: impl Display, - length: usize, - max_length: usize, +

source

pub fn hexbin_literal_nonintegers(span: Span) -> Self

source

pub fn wrong_digit_for_radix(digit: char, radix: u32, token: String) -> Self

source

pub fn identifier_too_long( + ident: impl Display, + length: usize, + max_length: usize, span: Span, -) -> Self

source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for ParserError

source§

fn clone(&self) -> ParserError

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 ParserError

source§

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

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

impl Display for ParserError

source§

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

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

impl Error for ParserError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for ParserError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for ParserError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<ParserError> for LeoError

source§

fn from(source: ParserError) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for ParserError

Implements the trait for LeoError Codes.

-
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 +) -> Self
source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for ParserError

source§

fn clone(&self) -> ParserError

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 ParserError

source§

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

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

impl Display for ParserError

source§

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

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

impl Error for ParserError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for ParserError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for ParserError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<ParserError> for LeoError

source§

fn from(source: ParserError) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for ParserError

Implements the trait for LeoError Codes.

+
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 (Leo upsidedown and backwards). This is to make the exit codes -unique to Leo itself.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+unique to Leo itself.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/errors/parser/parser_errors/index.html b/leo_errors/errors/parser/parser_errors/index.html index fbe7d1d26d..bceca3aefe 100644 --- a/leo_errors/errors/parser/parser_errors/index.html +++ b/leo_errors/errors/parser/parser_errors/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::parser::parser_errors - Rust

Module leo_errors::errors::parser::parser_errors

source ·
Expand description

This module contains the Parser error definitions.

+leo_errors::errors::parser::parser_errors - Rust
leo_errors::errors::parser

Module parser_errors

source
Expand description

This module contains the Parser error definitions.

Enums§

  • ParserError enum that represents all the errors for the leo-parser crate.
\ No newline at end of file diff --git a/leo_errors/errors/parser/parser_warnings/enum.ParserWarning.html b/leo_errors/errors/parser/parser_warnings/enum.ParserWarning.html index c66e71904a..d17ca4ceb3 100644 --- a/leo_errors/errors/parser/parser_warnings/enum.ParserWarning.html +++ b/leo_errors/errors/parser/parser_warnings/enum.ParserWarning.html @@ -1,30 +1,30 @@ -ParserWarning in leo_errors::errors::parser::parser_warnings - Rust
pub enum ParserWarning {
+ParserWarning in leo_errors::errors::parser::parser_warnings - Rust
leo_errors::errors::parser::parser_warnings

Enum ParserWarning

source
pub enum ParserWarning {
     Formatted(Formatted),
     Backtraced(Backtraced),
 }
Expand description

ParserWarning enum that represents all the warnings for the leo-parser crate.

Variants§

§

Formatted(Formatted)

§

Backtraced(Backtraced)

Implementations§

source§

impl ParserWarning

source

pub fn const_parameter_or_input(span: Span) -> Self

For when a user used const on a parameter or input instead of constant.

-
source

pub fn deprecated(keyword: impl Display, help: impl Display, span: Span) -> Self

For when a keyword is deprecated but could be used as a valid identifier.

-
source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for ParserWarning

source§

fn clone(&self) -> ParserWarning

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 ParserWarning

source§

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

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

impl Display for ParserWarning

source§

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

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

impl Error for ParserWarning

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for ParserWarning

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for ParserWarning

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<ParserWarning> for LeoWarning

source§

fn from(source: ParserWarning) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for ParserWarning

Implements the trait for LeoError Codes.

-
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 +
source

pub fn deprecated(keyword: impl Display, help: impl Display, span: Span) -> Self

For when a keyword is deprecated but could be used as a valid identifier.

+
source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for ParserWarning

source§

fn clone(&self) -> ParserWarning

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 ParserWarning

source§

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

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

impl Display for ParserWarning

source§

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

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

impl Error for ParserWarning

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for ParserWarning

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for ParserWarning

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<ParserWarning> for LeoWarning

source§

fn from(source: ParserWarning) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for ParserWarning

Implements the trait for LeoError Codes.

+
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 (Leo upsidedown and backwards). This is to make the exit codes -unique to Leo itself.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+unique to Leo itself.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/errors/parser/parser_warnings/index.html b/leo_errors/errors/parser/parser_warnings/index.html index 239fdd9ce1..9b68df9786 100644 --- a/leo_errors/errors/parser/parser_warnings/index.html +++ b/leo_errors/errors/parser/parser_warnings/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::parser::parser_warnings - Rust

Module leo_errors::errors::parser::parser_warnings

source ·
Expand description

This module contains the Parser warning definitions.

+leo_errors::errors::parser::parser_warnings - Rust
leo_errors::errors::parser

Module parser_warnings

source
Expand description

This module contains the Parser warning definitions.

Enums§

  • ParserWarning enum that represents all the warnings for the leo-parser crate.
\ No newline at end of file diff --git a/leo_errors/errors/static_analyzer/index.html b/leo_errors/errors/static_analyzer/index.html index 8af0771479..9923336821 100644 --- a/leo_errors/errors/static_analyzer/index.html +++ b/leo_errors/errors/static_analyzer/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::static_analyzer - Rust

Module leo_errors::errors::static_analyzer

source ·
Expand description

Contains the Static Analyzer error definitions.

+leo_errors::errors::static_analyzer - Rust
leo_errors::errors

Module static_analyzer

source
Expand description

Contains the Static Analyzer error definitions.

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_errors/errors/static_analyzer/static_analyzer_error/enum.StaticAnalyzerError.html b/leo_errors/errors/static_analyzer/static_analyzer_error/enum.StaticAnalyzerError.html index e86f271ddd..5eaa56d475 100644 --- a/leo_errors/errors/static_analyzer/static_analyzer_error/enum.StaticAnalyzerError.html +++ b/leo_errors/errors/static_analyzer/static_analyzer_error/enum.StaticAnalyzerError.html @@ -1,34 +1,34 @@ -StaticAnalyzerError in leo_errors::errors::static_analyzer::static_analyzer_error - Rust
pub enum StaticAnalyzerError {
+StaticAnalyzerError in leo_errors::errors::static_analyzer::static_analyzer_error - Rust
leo_errors::errors::static_analyzer::static_analyzer_error

Enum StaticAnalyzerError

source
pub enum StaticAnalyzerError {
     Formatted(Formatted),
     Backtraced(Backtraced),
 }
Expand description

StaticAnalyzer enum that represents all the errors for static analysis.

Variants§

§

Formatted(Formatted)

§

Backtraced(Backtraced)

Implementations§

source§

impl StaticAnalyzerError

source

pub fn no_path_awaits_all_futures_exactly_once( - num_total_paths: impl Display, + num_total_paths: impl Display, span: Span, -) -> Self

source

pub fn future_awaits_missing(unawaited: impl Display, span: Span) -> Self

source

pub fn invalid_await_call(span: Span) -> Self

source

pub fn expected_future(type_: impl Display, span: Span) -> Self

source

pub fn async_transition_call_with_future_argument( - function_name: impl Display, +) -> Self

source

pub fn future_awaits_missing(unawaited: impl Display, span: Span) -> Self

source

pub fn invalid_await_call(span: Span) -> Self

source

pub fn expected_future(type_: impl Display, span: Span) -> Self

source

pub fn async_transition_call_with_future_argument( + function_name: impl Display, span: Span, -) -> Self

source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for StaticAnalyzerError

source§

fn clone(&self) -> StaticAnalyzerError

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 StaticAnalyzerError

source§

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

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

impl Display for StaticAnalyzerError

source§

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

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

impl Error for StaticAnalyzerError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for StaticAnalyzerError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for StaticAnalyzerError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<StaticAnalyzerError> for LeoError

source§

fn from(source: StaticAnalyzerError) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for StaticAnalyzerError

Implements the trait for LeoError Codes.

-
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 +) -> Self
source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for StaticAnalyzerError

source§

fn clone(&self) -> StaticAnalyzerError

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 StaticAnalyzerError

source§

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

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

impl Display for StaticAnalyzerError

source§

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

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

impl Error for StaticAnalyzerError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for StaticAnalyzerError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for StaticAnalyzerError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<StaticAnalyzerError> for LeoError

source§

fn from(source: StaticAnalyzerError) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for StaticAnalyzerError

Implements the trait for LeoError Codes.

+
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 (Leo upsidedown and backwards). This is to make the exit codes -unique to Leo itself.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+unique to Leo itself.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/errors/static_analyzer/static_analyzer_error/index.html b/leo_errors/errors/static_analyzer/static_analyzer_error/index.html index 58332fbe0d..0b9fb73166 100644 --- a/leo_errors/errors/static_analyzer/static_analyzer_error/index.html +++ b/leo_errors/errors/static_analyzer/static_analyzer_error/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::static_analyzer::static_analyzer_error - Rust
Expand description

This module contains the static analysis error definitions.

+leo_errors::errors::static_analyzer::static_analyzer_error - Rust
leo_errors::errors::static_analyzer

Module static_analyzer_error

source
Expand description

This module contains the static analysis error definitions.

Enums§

\ No newline at end of file diff --git a/leo_errors/errors/static_analyzer/static_analyzer_warning/enum.StaticAnalyzerWarning.html b/leo_errors/errors/static_analyzer/static_analyzer_warning/enum.StaticAnalyzerWarning.html index 8ef38b0c1d..0e0cc917ff 100644 --- a/leo_errors/errors/static_analyzer/static_analyzer_warning/enum.StaticAnalyzerWarning.html +++ b/leo_errors/errors/static_analyzer/static_analyzer_warning/enum.StaticAnalyzerWarning.html @@ -1,42 +1,42 @@ -StaticAnalyzerWarning in leo_errors::errors::static_analyzer::static_analyzer_warning - Rust
pub enum StaticAnalyzerWarning {
+StaticAnalyzerWarning in leo_errors::errors::static_analyzer::static_analyzer_warning - Rust
leo_errors::errors::static_analyzer::static_analyzer_warning

Enum StaticAnalyzerWarning

source
pub enum StaticAnalyzerWarning {
     Formatted(Formatted),
     Backtraced(Backtraced),
 }
Expand description

ParserWarning enum that represents all the warnings for static analysis

Variants§

§

Formatted(Formatted)

§

Backtraced(Backtraced)

Implementations§

source§

impl StaticAnalyzerWarning

source

pub fn some_paths_do_not_await_all_futures( - num_total_paths: impl Display, - num_unawaited_paths: impl Display, + num_total_paths: impl Display, + num_unawaited_paths: impl Display, span: Span, ) -> Self

source

pub fn some_paths_contain_duplicate_future_awaits( - num_total_paths: impl Display, - num_duplicate_await_paths: impl Display, + num_total_paths: impl Display, + num_duplicate_await_paths: impl Display, span: Span, ) -> Self

source

pub fn max_conditional_block_depth_exceeded( - max: impl Display, + max: impl Display, span: Span, ) -> Self

source

pub fn future_not_awaited_in_order( - future_name: impl Display, + future_name: impl Display, span: Span, -) -> Self

source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for StaticAnalyzerWarning

source§

fn clone(&self) -> StaticAnalyzerWarning

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 StaticAnalyzerWarning

source§

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

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

impl Display for StaticAnalyzerWarning

source§

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

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

impl Error for StaticAnalyzerWarning

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for StaticAnalyzerWarning

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for StaticAnalyzerWarning

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<StaticAnalyzerWarning> for LeoWarning

source§

fn from(source: StaticAnalyzerWarning) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for StaticAnalyzerWarning

Implements the trait for LeoError Codes.

-
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 +) -> Self
source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for StaticAnalyzerWarning

source§

fn clone(&self) -> StaticAnalyzerWarning

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 StaticAnalyzerWarning

source§

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

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

impl Display for StaticAnalyzerWarning

source§

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

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

impl Error for StaticAnalyzerWarning

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for StaticAnalyzerWarning

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for StaticAnalyzerWarning

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<StaticAnalyzerWarning> for LeoWarning

source§

fn from(source: StaticAnalyzerWarning) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for StaticAnalyzerWarning

Implements the trait for LeoError Codes.

+
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 (Leo upsidedown and backwards). This is to make the exit codes -unique to Leo itself.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+unique to Leo itself.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/errors/static_analyzer/static_analyzer_warning/index.html b/leo_errors/errors/static_analyzer/static_analyzer_warning/index.html index 417979d1dc..970f1738e9 100644 --- a/leo_errors/errors/static_analyzer/static_analyzer_warning/index.html +++ b/leo_errors/errors/static_analyzer/static_analyzer_warning/index.html @@ -1 +1 @@ -leo_errors::errors::static_analyzer::static_analyzer_warning - Rust

Enums§

\ No newline at end of file +leo_errors::errors::static_analyzer::static_analyzer_warning - Rust
leo_errors::errors::static_analyzer

Module static_analyzer_warning

source

Enums§

\ No newline at end of file diff --git a/leo_errors/errors/type.Result.html b/leo_errors/errors/type.Result.html index 99427942fd..c0573cd7b6 100644 --- a/leo_errors/errors/type.Result.html +++ b/leo_errors/errors/type.Result.html @@ -1,4 +1,4 @@ -Result in leo_errors::errors - Rust

Type Alias leo_errors::errors::Result

source ·
pub type Result<T, E = LeoError> = Result<T, E>;
Expand description

A global result type for all Leo crates, that defaults the errors to be a LeoError.

+Result in leo_errors::errors - Rust
leo_errors::errors

Type Alias Result

source
pub type Result<T, E = LeoError> = Result<T, E>;
Expand description

A global result type for all Leo crates, that defaults the errors to be a LeoError.

Aliased Type§

enum Result<T, E = LeoError> {
     Ok(T),
     Err(E),
diff --git a/leo_errors/errors/type_checker/index.html b/leo_errors/errors/type_checker/index.html
index 8ca0fc682d..870491445e 100644
--- a/leo_errors/errors/type_checker/index.html
+++ b/leo_errors/errors/type_checker/index.html
@@ -1,2 +1,2 @@
-leo_errors::errors::type_checker - Rust

Module leo_errors::errors::type_checker

source ·
Expand description

Contains the Type Checker error definitions.

+leo_errors::errors::type_checker - Rust
leo_errors::errors

Module type_checker

source
Expand description

Contains the Type Checker error definitions.

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_errors/errors/type_checker/type_checker_error/enum.TypeCheckerError.html b/leo_errors/errors/type_checker/type_checker_error/enum.TypeCheckerError.html index d5e79dfc77..8ed6349620 100644 --- a/leo_errors/errors/type_checker/type_checker_error/enum.TypeCheckerError.html +++ b/leo_errors/errors/type_checker/type_checker_error/enum.TypeCheckerError.html @@ -1,161 +1,161 @@ -TypeCheckerError in leo_errors::errors::type_checker::type_checker_error - Rust
pub enum TypeCheckerError {
+TypeCheckerError in leo_errors::errors::type_checker::type_checker_error - Rust
leo_errors::errors::type_checker::type_checker_error

Enum TypeCheckerError

source
pub enum TypeCheckerError {
     Formatted(Formatted),
     Backtraced(Backtraced),
 }
Expand description

InputError enum that represents all the errors for the inputs part of leo-ast crate.

Variants§

§

Formatted(Formatted)

§

Backtraced(Backtraced)

Implementations§

source§

impl TypeCheckerError

source

pub fn invalid_assignment_target(span: Span) -> Self

For when the parser encountered an invalid assignment target.

-
source

pub fn cannot_assign_to_const_input(input: impl Display, span: Span) -> Self

For when the user tries to assign to a const input.

-
source

pub fn cannot_assign_to_const_var(var: impl Display, span: Span) -> Self

For when the user tries to assign to a const input.

+
source

pub fn cannot_assign_to_const_input(input: impl Display, span: Span) -> Self

For when the user tries to assign to a const input.

+
source

pub fn cannot_assign_to_const_var(var: impl Display, span: Span) -> Self

For when the user tries to assign to a const input.

source

pub fn type_should_be( - type_: impl Display, - expected: impl Display, + type_: impl Display, + expected: impl Display, span: Span, ) -> Self

For when the user tries to assign to a const input.

-
source

pub fn could_not_determine_type(expr: impl Display, span: Span) -> Self

For when the type checker cannot determine the type of an expression.

-
source

pub fn unknown_sym(kind: impl Display, sym: impl Display, span: Span) -> Self

For when the user tries to return a unknown variable.

+
source

pub fn could_not_determine_type(expr: impl Display, span: Span) -> Self

For when the type checker cannot determine the type of an expression.

+
source

pub fn unknown_sym(kind: impl Display, sym: impl Display, span: Span) -> Self

For when the user tries to return a unknown variable.

source

pub fn incorrect_num_args_to_call( - expected: impl Display, - received: impl Display, + expected: impl Display, + received: impl Display, span: Span, ) -> Self

For when the user tries calls a function with the incorrect number of args.

source

pub fn expected_one_type_of( - expected: impl Display, - received: impl Display, + expected: impl Display, + received: impl Display, span: Span, ) -> Self

For when one of the following types was expected.

source

pub fn invalid_int_value( - value: impl Display, - type_: impl Display, + value: impl Display, + type_: impl Display, span: Span, ) -> Self

For when an integer is not in a valid range.

source

pub fn invalid_core_function( - struct_: impl Display, - function: impl Display, + struct_: impl Display, + function: impl Display, span: Span, ) -> Self

For when an invalid core function is used.

-
source

pub fn core_type_name_conflict(type_: impl Display, span: Span) -> Self

For when a struct is created with the same name as a core type.

-
source

pub fn function_has_no_return(func: impl Display, span: Span) -> Self

For when a function doesn’t have a return statement.

+
source

pub fn core_type_name_conflict(type_: impl Display, span: Span) -> Self

For when a struct is created with the same name as a core type.

+
source

pub fn function_has_no_return(func: impl Display, span: Span) -> Self

For when a function doesn’t have a return statement.

source

pub fn incorrect_num_struct_members( - expected: impl Display, - received: impl Display, + expected: impl Display, + received: impl Display, span: Span, ) -> Self

For when the user tries initialize a struct with the incorrect number of args.

source

pub fn missing_struct_member( - struct_: impl Display, - member: impl Display, + struct_: impl Display, + member: impl Display, span: Span, ) -> Self

For when the user is missing a struct member during initialization.

-
source

pub fn invalid_core_function_call(expr: impl Display, span: Span) -> Self

An invalid access call is made e.g., `SHA256::hash()

-
source

pub fn duplicate_struct_member(struct_: impl Display, span: Span) -> Self

Attempted to define more that one struct member with the same name.

-
source

pub fn duplicate_record_variable(record: impl Display, span: Span) -> Self

Attempted to define more that one record variable with the same name.

-
source

pub fn undefined_type(type_: impl Display, span: Span) -> Self

Attempted to access an invalid struct.

+
source

pub fn invalid_core_function_call(expr: impl Display, span: Span) -> Self

An invalid access call is made e.g., `SHA256::hash()

+
source

pub fn duplicate_struct_member(struct_: impl Display, span: Span) -> Self

Attempted to define more that one struct member with the same name.

+
source

pub fn duplicate_record_variable(record: impl Display, span: Span) -> Self

Attempted to define more that one record variable with the same name.

+
source

pub fn undefined_type(type_: impl Display, span: Span) -> Self

Attempted to access an invalid struct.

source

pub fn invalid_struct_variable( - variable: impl Display, - struct_: impl Display, + variable: impl Display, + struct_: impl Display, span: Span, ) -> Self

Attempted to access an invalid struct variable.

source

pub fn required_record_variable( - name: impl Display, - type_: impl Display, + name: impl Display, + type_: impl Display, span: Span, ) -> Self

source

pub fn record_var_wrong_type( - name: impl Display, - type_: impl Display, + name: impl Display, + type_: impl Display, span: Span, -) -> Self

source

pub fn compare_address(operator: impl Display, span: Span) -> Self

source

pub fn incorrect_tuple_length( - expected: impl Display, - actual: impl Display, +) -> Self

source

pub fn compare_address(operator: impl Display, span: Span) -> Self

source

pub fn incorrect_tuple_length( + expected: impl Display, + actual: impl Display, span: Span, ) -> Self

source

pub fn invalid_tuple(span: Span) -> Self

source

pub fn tuple_out_of_range( - index: impl Display, - length: impl Display, + index: impl Display, + length: impl Display, span: Span, -) -> Self

source

pub fn unreachable_code_after_return(span: Span) -> Self

source

pub fn loop_body_contains_return(span: Span) -> Self

source

pub fn unknown_annotation(annotation: impl Display, span: Span) -> Self

source

pub fn regular_function_inputs_cannot_have_modes(span: Span) -> Self

source

pub fn async_function_input_cannot_be_private(span: Span) -> Self

source

pub fn struct_or_record_cannot_contain_record( - parent: impl Display, - child: impl Display, +) -> Self

source

pub fn unreachable_code_after_return(span: Span) -> Self

source

pub fn loop_body_contains_return(span: Span) -> Self

source

pub fn unknown_annotation(annotation: impl Display, span: Span) -> Self

source

pub fn regular_function_inputs_cannot_have_modes(span: Span) -> Self

source

pub fn async_function_input_cannot_be_private(span: Span) -> Self

source

pub fn struct_or_record_cannot_contain_record( + parent: impl Display, + child: impl Display, span: Span, ) -> Self

source

pub fn invalid_mapping_type( - component: impl Display, - type_: impl Display, + component: impl Display, + type_: impl Display, span: Span, ) -> Self

source

pub fn async_function_input_must_be_public(span: Span) -> Self

source

pub fn finalize_output_mode_must_be_public(span: Span) -> Self

source

pub fn invalid_operation_outside_finalize( - operation: impl Display, + operation: impl Display, span: Span, -) -> Self

source

pub fn loop_body_contains_finalize(span: Span) -> Self

source

pub fn missing_return(span: Span) -> Self

source

pub fn finalize_block_must_not_be_empty(span: Span) -> Self

source

pub fn cannot_have_constant_output_mode(span: Span) -> Self

source

pub fn transition_function_inputs_cannot_be_const(span: Span) -> Self

source

pub fn invalid_self_access(span: Span) -> Self

source

pub fn invalid_type(type_: impl Display, span: Span) -> Self

source

pub fn can_only_call_inline_function(span: Span) -> Self

source

pub fn cannot_invoke_call_to_local_transition_function(span: Span) -> Self

source

pub fn loop_bound_must_be_a_literal(span: Span) -> Self

source

pub fn strings_are_not_supported(span: Span) -> Self

source

pub fn imported_program_cannot_import_program(span: Span) -> Self

source

pub fn too_many_transitions(max: impl Display, span: Span) -> Self

source

pub fn assign_unit_expression_to_variable(span: Span) -> Self

source

pub fn nested_tuple_type(span: Span) -> Self

source

pub fn composite_data_type_cannot_contain_tuple( - data_type: impl Display, +) -> Self

source

pub fn loop_body_contains_finalize(span: Span) -> Self

source

pub fn missing_return(span: Span) -> Self

source

pub fn finalize_block_must_not_be_empty(span: Span) -> Self

source

pub fn cannot_have_constant_output_mode(span: Span) -> Self

source

pub fn transition_function_inputs_cannot_be_const(span: Span) -> Self

source

pub fn invalid_self_access(span: Span) -> Self

source

pub fn invalid_type(type_: impl Display, span: Span) -> Self

source

pub fn can_only_call_inline_function(span: Span) -> Self

source

pub fn cannot_invoke_call_to_local_transition_function(span: Span) -> Self

source

pub fn loop_bound_must_be_a_literal(span: Span) -> Self

source

pub fn strings_are_not_supported(span: Span) -> Self

source

pub fn imported_program_cannot_import_program(span: Span) -> Self

source

pub fn too_many_transitions(max: impl Display, span: Span) -> Self

source

pub fn assign_unit_expression_to_variable(span: Span) -> Self

source

pub fn nested_tuple_type(span: Span) -> Self

source

pub fn composite_data_type_cannot_contain_tuple( + data_type: impl Display, span: Span, -) -> Self

source

pub fn function_cannot_take_tuple_as_input(span: Span) -> Self

source

pub fn nested_tuple_expression(span: Span) -> Self

source

pub fn expression_statement_must_be_function_call(span: Span) -> Self

source

pub fn lhs_tuple_element_must_be_an_identifier(span: Span) -> Self

source

pub fn lhs_must_be_identifier_or_tuple(span: Span) -> Self

source

pub fn unit_expression_only_in_return_statements(span: Span) -> Self

source

pub fn function_cannot_input_or_output_a_record(span: Span) -> Self

source

pub fn cyclic_struct_dependency(path: Vec<impl Display>) -> Self

source

pub fn cyclic_function_dependency(path: Vec<impl Display>) -> Self

source

pub fn struct_cannot_have_member_mode(span: Span) -> Self

source

pub fn cannot_call_external_inline_function(span: Span) -> Self

source

pub fn too_many_mappings(max: impl Display, span: Span) -> Self

source

pub fn invalid_associated_constant(expr: impl Display, span: Span) -> Self

A call to an invalid associated constant is made e.g., bool::MAX

+) -> Self
source

pub fn function_cannot_take_tuple_as_input(span: Span) -> Self

source

pub fn nested_tuple_expression(span: Span) -> Self

source

pub fn expression_statement_must_be_function_call(span: Span) -> Self

source

pub fn lhs_tuple_element_must_be_an_identifier(span: Span) -> Self

source

pub fn lhs_must_be_identifier_or_tuple(span: Span) -> Self

source

pub fn unit_expression_only_in_return_statements(span: Span) -> Self

source

pub fn function_cannot_input_or_output_a_record(span: Span) -> Self

source

pub fn cyclic_struct_dependency(path: Vec<impl Display>) -> Self

source

pub fn cyclic_function_dependency(path: Vec<impl Display>) -> Self

source

pub fn struct_cannot_have_member_mode(span: Span) -> Self

source

pub fn cannot_call_external_inline_function(span: Span) -> Self

source

pub fn too_many_mappings(max: impl Display, span: Span) -> Self

source

pub fn invalid_associated_constant(expr: impl Display, span: Span) -> Self

A call to an invalid associated constant is made e.g., bool::MAX

source

pub fn invalid_core_constant( - type_: impl Display, - constant: impl Display, + type_: impl Display, + constant: impl Display, span: Span, ) -> Self

For when an invalid core constant is called.

source

pub fn invalid_block_access(span: Span) -> Self

For when an invalid field of block is called.

source

pub fn invalid_operation_inside_finalize( - operation: impl Display, + operation: impl Display, span: Span, ) -> Self

source

pub fn operation_must_be_in_finalize_block(span: Span) -> Self

source

pub fn loop_range_decreasing(span: Span) -> Self

source

pub fn loop_bound_type_mismatch(span: Span) -> Self

source

pub fn const_declaration_must_be_literal_or_tuple_of_literals( span: Span, ) -> Self

source

pub fn loop_bound_must_be_literal_or_const(span: Span) -> Self

source

pub fn incorrect_num_tuple_elements( - identifiers: impl Display, - types: impl Display, + identifiers: impl Display, + types: impl Display, span: Span, ) -> Self

source

pub fn const_declaration_can_only_have_one_binding(span: Span) -> Self

source

pub fn stub_functions_must_not_be_inlines(span: Span) -> Self

source

pub fn stub_functions_must_be_empty(span: Span) -> Self

source

pub fn array_empty(span: Span) -> Self

source

pub fn array_too_large( - size: impl Display, - max: impl Display, + size: impl Display, + max: impl Display, span: Span, ) -> Self

source

pub fn array_element_cannot_be_tuple(span: Span) -> Self

source

pub fn array_element_cannot_be_record(span: Span) -> Self

source

pub fn stubs_cannot_have_non_record_structs(span: Span) -> Self

source

pub fn stubs_cannot_have_const_declarations(span: Span) -> Self

source

pub fn stub_name_mismatch( - stub_name: impl Display, - program_name: impl Display, + stub_name: impl Display, + program_name: impl Display, span: Span, -) -> Self

source

pub fn no_transitions(span: Span) -> Self

source

pub fn cannot_define_external_struct(struct_: impl Display, span: Span) -> Self

source

pub fn struct_definitions_dont_match( - struct_: impl Display, - program_1: impl Display, - program_2: impl Display, +) -> Self

source

pub fn no_transitions(span: Span) -> Self

source

pub fn cannot_define_external_struct(struct_: impl Display, span: Span) -> Self

source

pub fn struct_definitions_dont_match( + struct_: impl Display, + program_1: impl Display, + program_2: impl Display, span: Span, ) -> Self

source

pub fn async_transition_invalid_output(span: Span) -> Self

source

pub fn must_propagate_all_futures( - never_propagated: impl Display, + never_propagated: impl Display, span: Span, ) -> Self

source

pub fn async_transition_must_call_async_function(span: Span) -> Self

source

pub fn async_function_input_length_mismatch( - expected: impl Display, - received: impl Display, + expected: impl Display, + received: impl Display, span: Span, ) -> Self

source

pub fn invalid_future_access( - num: impl Display, - len: impl Display, + num: impl Display, + len: impl Display, span: Span, -) -> Self

source

pub fn future_access_must_be_number(name: impl Display, span: Span) -> Self

source

pub fn no_path_awaits_all_futures_exactly_once( - num_total_paths: impl Display, +) -> Self

source

pub fn future_access_must_be_number(name: impl Display, span: Span) -> Self

source

pub fn no_path_awaits_all_futures_exactly_once( + num_total_paths: impl Display, span: Span, -) -> Self

source

pub fn future_awaits_missing(unawaited: impl Display, span: Span) -> Self

source

pub fn cannot_reassign_future_variable(var: impl Display, span: Span) -> Self

source

pub fn invalid_await_call(span: Span) -> Self

source

pub fn can_only_await_one_future_at_a_time(span: Span) -> Self

source

pub fn expected_future(type_: impl Display, span: Span) -> Self

source

pub fn invalid_method_call(span: Span) -> Self

source

pub fn async_call_in_conditional(span: Span) -> Self

source

pub fn must_call_async_function_once(span: Span) -> Self

source

pub fn async_call_can_only_be_done_from_async_transition(span: Span) -> Self

source

pub fn external_transition_call_must_be_before_finalize(span: Span) -> Self

source

pub fn unknown_future_consumed(future: impl Display, span: Span) -> Self

source

pub fn not_all_futures_consumed(unconsumed: impl Display, span: Span) -> Self

source

pub fn async_transition_missing_future_to_return(span: Span) -> Self

source

pub fn async_function_cannot_return_value(span: Span) -> Self

source

pub fn return_type_of_finalize_function_is_future(span: Span) -> Self

source

pub fn cannot_modify_external_mapping( - operation: impl Display, +) -> Self

source

pub fn future_awaits_missing(unawaited: impl Display, span: Span) -> Self

source

pub fn cannot_reassign_future_variable(var: impl Display, span: Span) -> Self

source

pub fn invalid_await_call(span: Span) -> Self

source

pub fn can_only_await_one_future_at_a_time(span: Span) -> Self

source

pub fn expected_future(type_: impl Display, span: Span) -> Self

source

pub fn invalid_method_call(span: Span) -> Self

source

pub fn async_call_in_conditional(span: Span) -> Self

source

pub fn must_call_async_function_once(span: Span) -> Self

source

pub fn async_call_can_only_be_done_from_async_transition(span: Span) -> Self

source

pub fn external_transition_call_must_be_before_finalize(span: Span) -> Self

source

pub fn unknown_future_consumed(future: impl Display, span: Span) -> Self

source

pub fn not_all_futures_consumed(unconsumed: impl Display, span: Span) -> Self

source

pub fn async_transition_missing_future_to_return(span: Span) -> Self

source

pub fn async_function_cannot_return_value(span: Span) -> Self

source

pub fn return_type_of_finalize_function_is_future(span: Span) -> Self

source

pub fn cannot_modify_external_mapping( + operation: impl Display, span: Span, ) -> Self

source

pub fn async_cannot_assign_outside_conditional( - variable: impl Display, + variable: impl Display, span: Span, -) -> Self

source

pub fn only_async_transition_can_return_future(span: Span) -> Self

source

pub fn async_function_not_found(name: impl Display, span: Span) -> Self

source

pub fn empty_struct(span: Span) -> Self

source

pub fn empty_function_arglist(span: Span) -> Self

source

pub fn composite_data_type_cannot_contain_future( - data_type: impl Display, +) -> Self

source

pub fn only_async_transition_can_return_future(span: Span) -> Self

source

pub fn async_function_not_found(name: impl Display, span: Span) -> Self

source

pub fn empty_struct(span: Span) -> Self

source

pub fn empty_function_arglist(span: Span) -> Self

source

pub fn composite_data_type_cannot_contain_future( + data_type: impl Display, span: Span, -) -> Self

source

pub fn array_element_cannot_be_future(span: Span) -> Self

source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for TypeCheckerError

source§

fn clone(&self) -> TypeCheckerError

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 TypeCheckerError

source§

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

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

impl Display for TypeCheckerError

source§

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

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

impl Error for TypeCheckerError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for TypeCheckerError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for TypeCheckerError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<TypeCheckerError> for LeoError

source§

fn from(source: TypeCheckerError) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for TypeCheckerError

Implements the trait for LeoError Codes.

-
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 +) -> Self
source

pub fn array_element_cannot_be_future(span: Span) -> Self

source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for TypeCheckerError

source§

fn clone(&self) -> TypeCheckerError

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 TypeCheckerError

source§

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

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

impl Display for TypeCheckerError

source§

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

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

impl Error for TypeCheckerError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for TypeCheckerError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for TypeCheckerError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<TypeCheckerError> for LeoError

source§

fn from(source: TypeCheckerError) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for TypeCheckerError

Implements the trait for LeoError Codes.

+
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 (Leo upsidedown and backwards). This is to make the exit codes -unique to Leo itself.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+unique to Leo itself.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/errors/type_checker/type_checker_error/index.html b/leo_errors/errors/type_checker/type_checker_error/index.html index d6a5e6c0e9..c613582326 100644 --- a/leo_errors/errors/type_checker/type_checker_error/index.html +++ b/leo_errors/errors/type_checker/type_checker_error/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::type_checker::type_checker_error - Rust

Module leo_errors::errors::type_checker::type_checker_error

source ·
Expand description

This module contains the Input error definitions.

+leo_errors::errors::type_checker::type_checker_error - Rust
leo_errors::errors::type_checker

Module type_checker_error

source
Expand description

This module contains the Input error definitions.

Enums§

  • InputError enum that represents all the errors for the inputs part of leo-ast crate.
\ No newline at end of file diff --git a/leo_errors/errors/type_checker/type_checker_warning/enum.TypeCheckerWarning.html b/leo_errors/errors/type_checker/type_checker_warning/enum.TypeCheckerWarning.html index fd4f809d85..d19ef9f609 100644 --- a/leo_errors/errors/type_checker/type_checker_warning/enum.TypeCheckerWarning.html +++ b/leo_errors/errors/type_checker/type_checker_warning/enum.TypeCheckerWarning.html @@ -1,42 +1,42 @@ -TypeCheckerWarning in leo_errors::errors::type_checker::type_checker_warning - Rust
pub enum TypeCheckerWarning {
+TypeCheckerWarning in leo_errors::errors::type_checker::type_checker_warning - Rust
leo_errors::errors::type_checker::type_checker_warning

Enum TypeCheckerWarning

source
pub enum TypeCheckerWarning {
     Formatted(Formatted),
     Backtraced(Backtraced),
 }
Expand description

ParserWarning enum that represents all the warnings for the leo-parser crate.

Variants§

§

Formatted(Formatted)

§

Backtraced(Backtraced)

Implementations§

source§

impl TypeCheckerWarning

source

pub fn some_paths_do_not_await_all_futures( - num_total_paths: impl Display, - num_unawaited_paths: impl Display, + num_total_paths: impl Display, + num_unawaited_paths: impl Display, span: Span, ) -> Self

source

pub fn some_paths_contain_duplicate_future_awaits( - num_total_paths: impl Display, - num_duplicate_await_paths: impl Display, + num_total_paths: impl Display, + num_duplicate_await_paths: impl Display, span: Span, ) -> Self

source

pub fn async_function_is_never_called_by_transition_function( - name: impl Display, + name: impl Display, span: Span, ) -> Self

source

pub fn max_conditional_block_depth_exceeded( - max: impl Display, + max: impl Display, span: Span, -) -> Self

source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for TypeCheckerWarning

source§

fn clone(&self) -> TypeCheckerWarning

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 TypeCheckerWarning

source§

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

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

impl Display for TypeCheckerWarning

source§

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

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

impl Error for TypeCheckerWarning

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for TypeCheckerWarning

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for TypeCheckerWarning

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<TypeCheckerWarning> for LeoWarning

source§

fn from(source: TypeCheckerWarning) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for TypeCheckerWarning

Implements the trait for LeoError Codes.

-
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 +) -> Self
source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for TypeCheckerWarning

source§

fn clone(&self) -> TypeCheckerWarning

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 TypeCheckerWarning

source§

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

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

impl Display for TypeCheckerWarning

source§

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

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

impl Error for TypeCheckerWarning

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for TypeCheckerWarning

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for TypeCheckerWarning

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<TypeCheckerWarning> for LeoWarning

source§

fn from(source: TypeCheckerWarning) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for TypeCheckerWarning

Implements the trait for LeoError Codes.

+
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 (Leo upsidedown and backwards). This is to make the exit codes -unique to Leo itself.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+unique to Leo itself.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/errors/type_checker/type_checker_warning/index.html b/leo_errors/errors/type_checker/type_checker_warning/index.html index ddab34eb11..79a8e226c8 100644 --- a/leo_errors/errors/type_checker/type_checker_warning/index.html +++ b/leo_errors/errors/type_checker/type_checker_warning/index.html @@ -1 +1 @@ -leo_errors::errors::type_checker::type_checker_warning - Rust

Module leo_errors::errors::type_checker::type_checker_warning

source ·

Enums§

  • ParserWarning enum that represents all the warnings for the leo-parser crate.
\ No newline at end of file +leo_errors::errors::type_checker::type_checker_warning - Rust
leo_errors::errors::type_checker

Module type_checker_warning

source

Enums§

  • ParserWarning enum that represents all the warnings for the leo-parser crate.
\ No newline at end of file diff --git a/leo_errors/errors/utils/index.html b/leo_errors/errors/utils/index.html index 0ca5da00f2..721dff5cb4 100644 --- a/leo_errors/errors/utils/index.html +++ b/leo_errors/errors/utils/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::utils - Rust

Module leo_errors::errors::utils

source ·
Expand description

Contains the Utils error definitions.

+leo_errors::errors::utils - Rust
leo_errors::errors

Module utils

source
Expand description

Contains the Utils error definitions.

Re-exports§

Modules§

  • This module contains the Input error definitions.
\ No newline at end of file diff --git a/leo_errors/errors/utils/util_errors/enum.UtilError.html b/leo_errors/errors/utils/util_errors/enum.UtilError.html index b78f222da0..867c93f546 100644 --- a/leo_errors/errors/utils/util_errors/enum.UtilError.html +++ b/leo_errors/errors/utils/util_errors/enum.UtilError.html @@ -1,54 +1,54 @@ -UtilError in leo_errors::errors::utils::util_errors - Rust

Enum leo_errors::errors::utils::util_errors::UtilError

source ·
pub enum UtilError {
+UtilError in leo_errors::errors::utils::util_errors - Rust
leo_errors::errors::utils::util_errors

Enum UtilError

source
pub enum UtilError {
     Formatted(Formatted),
     Backtraced(Backtraced),
 }
Expand description

InputError enum that represents all the errors for the utils crate.

Variants§

§

Formatted(Formatted)

§

Backtraced(Backtraced)

Implementations§

source§

impl UtilError

source

pub fn util_file_io_error( - msg: impl Display, - err: impl ErrorArg, + msg: impl Display, + err: impl ErrorArg, span: Span, -) -> Self

source

pub fn toml_serizalization_error(error: impl ErrorArg, span: Span) -> Self

source

pub fn json_serialization_error(error: impl ErrorArg, span: Span) -> Self

source

pub fn snarkvm_parsing_error(name: impl Display, span: Span) -> Self

source

pub fn circular_dependency_error(span: Span) -> Self

source

pub fn network_error( - url: impl Display, - status: impl Display, +) -> Self

source

pub fn toml_serizalization_error(error: impl ErrorArg, span: Span) -> Self

source

pub fn json_serialization_error(error: impl ErrorArg, span: Span) -> Self

source

pub fn snarkvm_parsing_error(name: impl Display, span: Span) -> Self

source

pub fn circular_dependency_error(span: Span) -> Self

source

pub fn network_error( + url: impl Display, + status: impl Display, span: Span, ) -> Self

source

pub fn duplicate_dependency_name_error( - dependency: impl Display, + dependency: impl Display, span: Span, -) -> Self

source

pub fn reqwest_error(error: impl Display) -> Self

source

pub fn failed_to_open_file(error: impl Display) -> Self

source

pub fn failed_to_read_file(error: impl Display) -> Self

source

pub fn failed_to_deserialize_file(error: impl Display) -> Self

source

pub fn failed_to_retrieve_dependencies(error: impl Display, span: Span) -> Self

source

pub fn missing_network_error(dependency: impl Display, span: Span) -> Self

source

pub fn missing_path_error(dependency: impl Display, span: Span) -> Self

source

pub fn program_name_mismatch_error( - program_json_name: impl Display, - dep_name: impl Display, - path: impl Display, +) -> Self

source

pub fn reqwest_error(error: impl Display) -> Self

source

pub fn failed_to_open_file(error: impl Display) -> Self

source

pub fn failed_to_read_file(error: impl Display) -> Self

source

pub fn failed_to_deserialize_file(error: impl Display) -> Self

source

pub fn failed_to_retrieve_dependencies(error: impl Display, span: Span) -> Self

source

pub fn missing_network_error(dependency: impl Display, span: Span) -> Self

source

pub fn missing_path_error(dependency: impl Display, span: Span) -> Self

source

pub fn program_name_mismatch_error( + program_json_name: impl Display, + dep_name: impl Display, + path: impl Display, span: Span, ) -> Self

source

pub fn snarkvm_error_building_program_id(span: Span) -> Self

source

pub fn failed_to_retrieve_from_endpoint( - error: impl ErrorArg, + error: impl ErrorArg, span: Span, -) -> Self

source

pub fn build_file_does_not_exist(path: impl Display, span: Span) -> Self

source

pub fn invalid_input_id_len( - input: impl Display, - expected_type: impl Display, +) -> Self

source

pub fn build_file_does_not_exist(path: impl Display, span: Span) -> Self

source

pub fn invalid_input_id_len( + input: impl Display, + expected_type: impl Display, ) -> Self

source

pub fn invalid_input_id( - input: impl Display, - expected_type: impl Display, - expected_preface: impl Display, -) -> Self

source

pub fn invalid_numerical_input(input: impl Display) -> Self

source

pub fn invalid_range() -> Self

source

pub fn invalid_height_or_hash(input: impl Display) -> Self

source

pub fn invalid_field(field: impl Display) -> Self

source

pub fn invalid_bound(bound: impl Display) -> Self

source

pub fn endpoint_moved_error(endpoint: impl Display) -> Self

source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for UtilError

source§

fn clone(&self) -> UtilError

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 UtilError

source§

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

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

impl Display for UtilError

source§

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

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

impl Error for UtilError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for UtilError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for UtilError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<UtilError> for LeoError

source§

fn from(source: UtilError) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for UtilError

Implements the trait for LeoError Codes.

-
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 + input: impl Display, + expected_type: impl Display, + expected_preface: impl Display, +) -> Self
source

pub fn invalid_numerical_input(input: impl Display) -> Self

source

pub fn invalid_range() -> Self

source

pub fn invalid_height_or_hash(input: impl Display) -> Self

source

pub fn invalid_field(field: impl Display) -> Self

source

pub fn invalid_bound(bound: impl Display) -> Self

source

pub fn endpoint_moved_error(endpoint: impl Display) -> Self

source

pub fn num_exit_codes() -> i32

Trait Implementations§

source§

impl Clone for UtilError

source§

fn clone(&self) -> UtilError

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 UtilError

source§

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

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

impl Display for UtilError

source§

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

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

impl Error for UtilError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Backtraced> for UtilError

source§

fn from(source: Backtraced) -> Self

Converts to this type from the input type.
source§

impl From<Formatted> for UtilError

source§

fn from(source: Formatted) -> Self

Converts to this type from the input type.
source§

impl From<UtilError> for LeoError

source§

fn from(source: UtilError) -> Self

Converts to this type from the input type.
source§

impl LeoMessageCode for UtilError

Implements the trait for LeoError Codes.

+
source§

fn exit_code(&self) -> i32

Returns the error’s exit code for the program.
source§

fn error_code(&self) -> String

Returns the prefixed error identifier.
source§

fn warning_code(&self) -> String

Returns the prefixed warning identifier.
source§

fn code_mask() -> i32

Returns the messages’s exit code mask, as to avoid conflicts.
source§

fn message_type() -> String

Returns the message’s code type for the program.
source§

fn is_error() -> bool

Returns if the message is an error or warning.
source§

fn code_identifier() -> i8

The LeoErrorCode which has a default code identifier of 037 (Leo upsidedown and backwards). This is to make the exit codes -unique to Leo itself.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+unique to Leo itself.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_errors/errors/utils/util_errors/index.html b/leo_errors/errors/utils/util_errors/index.html index c5406a250c..c927cb5891 100644 --- a/leo_errors/errors/utils/util_errors/index.html +++ b/leo_errors/errors/utils/util_errors/index.html @@ -1,2 +1,2 @@ -leo_errors::errors::utils::util_errors - Rust

Module leo_errors::errors::utils::util_errors

source ·
Expand description

This module contains the Input error definitions.

+leo_errors::errors::utils::util_errors - Rust
leo_errors::errors::utils

Module util_errors

source
Expand description

This module contains the Input error definitions.

Enums§

  • InputError enum that represents all the errors for the utils crate.
\ No newline at end of file diff --git a/leo_errors/index.html b/leo_errors/index.html index d8b4c18b00..a6e2a4946c 100644 --- a/leo_errors/index.html +++ b/leo_errors/index.html @@ -1,4 +1,4 @@ -leo_errors - Rust

Crate leo_errors

source ·
Expand description

§leo-errors

+leo_errors - Rust

Crate leo_errors

source
Expand description

§leo-errors

Crates.io Authors License

diff --git a/leo_errors/macro.create_messages.html b/leo_errors/macro.create_messages.html index 5e917836e5..44d2296dc2 100644 --- a/leo_errors/macro.create_messages.html +++ b/leo_errors/macro.create_messages.html @@ -1,4 +1,4 @@ -create_messages in leo_errors - Rust

Macro leo_errors::create_messages

source ·
macro_rules! create_messages {
+create_messages in leo_errors - Rust
leo_errors

Macro create_messages

source
macro_rules! create_messages {
     (@step $code:expr,) => { ... };
     ($(#[$error_type_docs:meta])* $type_:ident, code_mask: $code_mask:expr, code_prefix: $code_prefix:expr, $($(#[$docs:meta])* @$formatted_or_backtraced_list:ident $names:ident { args: ($($arg_names:ident: $arg_types:ty$(,)?)*), msg: $messages:expr, help: $helps:expr, })*) => { ... };
     (@step $code:expr, ($(#[$error_func_docs:meta])* formatted, $name:ident($($arg_names:ident: $arg_types:ty,)*), $message:expr, $help:expr), $(($(#[$docs:meta])* $formatted_or_backtraced_tail:ident, $names:ident($($tail_arg_names:ident: $tail_arg_types:ty,)*), $messages:expr, $helps:expr),)*) => { ... };
diff --git a/leo_lang/all.html b/leo_lang/all.html
index b32ca25acb..82a8b7fad6 100644
--- a/leo_lang/all.html
+++ b/leo_lang/all.html
@@ -1 +1 @@
-List of all items in this crate

List of all items

Structs

Enums

Traits

Functions

Statics

Constants

\ No newline at end of file +List of all items in this crate

List of all items

Structs

Enums

Traits

Functions

Statics

Constants

\ No newline at end of file diff --git a/leo_lang/cli/account/enum.Account.html b/leo_lang/cli/account/enum.Account.html index d46839ea24..ca480ffa10 100644 --- a/leo_lang/cli/account/enum.Account.html +++ b/leo_lang/cli/account/enum.Account.html @@ -1,105 +1,105 @@ -Account in leo_lang::cli::account - Rust

Enum leo_lang::cli::account::Account

source ·
pub enum Account {
+Account in leo_lang::cli::account - Rust
leo_lang::cli::account

Enum Account

source
pub enum Account {
     New {
-        seed: Option<u64>,
-        write: bool,
-        discreet: bool,
-        network: String,
-        endpoint: String,
+        seed: Option<u64>,
+        write: bool,
+        discreet: bool,
+        network: String,
+        endpoint: String,
     },
     Import {
-        private_key: Option<String>,
-        write: bool,
-        discreet: bool,
-        network: String,
-        endpoint: String,
+        private_key: Option<String>,
+        write: bool,
+        discreet: bool,
+        network: String,
+        endpoint: String,
     },
     Sign {
-        private_key: Option<String>,
-        private_key_file: Option<String>,
-        message: String,
-        raw: bool,
-        network: String,
+        private_key: Option<String>,
+        private_key_file: Option<String>,
+        message: String,
+        raw: bool,
+        network: String,
     },
     Verify {
-        address: String,
-        signature: String,
-        message: String,
-        raw: bool,
-        network: String,
+        address: String,
+        signature: String,
+        message: String,
+        raw: bool,
+        network: String,
     },
 }
Expand description

Commands to manage Aleo accounts.

Variants§

§

New

Generates a new Aleo account

-

Fields

§seed: Option<u64>

Seed the RNG with a numeric value.

-
§write: bool

Write the private key to the .env file.

-
§discreet: bool

Print sensitive information (such as private key) discreetly to an alternate screen

-
§network: String
§endpoint: String
§

Import

Derive an Aleo account from a private key.

-

Fields

§private_key: Option<String>

Private key plaintext

-
§write: bool

Write the private key to the .env file.

-
§discreet: bool

Print sensitive information (such as private key) discreetly to an alternate screen

-
§network: String
§endpoint: String
§

Sign

Sign a message using your Aleo private key.

-

Fields

§private_key: Option<String>

Specify the account private key of the node

-
§private_key_file: Option<String>

Specify the path to a file containing the account private key of the node

-
§message: String

Message (Aleo value) to sign

-
§raw: bool

When enabled, parses the message as bytes instead of Aleo literals

-
§network: String
§

Verify

Verify a message from an Aleo address.

-

Fields

§address: String

Address to use for verification

-
§signature: String

Signature to verify

-
§message: String

Message (Aleo value) to verify the signature against

-
§raw: bool

When enabled, parses the message as bytes instead of Aleo literals

-
§network: String

Trait Implementations§

source§

impl Command for Account

source§

type Input = ()

If the current command requires running another command beforehand +

Fields

§seed: Option<u64>

Seed the RNG with a numeric value.

+
§write: bool

Write the private key to the .env file.

+
§discreet: bool

Print sensitive information (such as private key) discreetly to an alternate screen

+
§network: String
§endpoint: String
§

Import

Derive an Aleo account from a private key.

+

Fields

§private_key: Option<String>

Private key plaintext

+
§write: bool

Write the private key to the .env file.

+
§discreet: bool

Print sensitive information (such as private key) discreetly to an alternate screen

+
§network: String
§endpoint: String
§

Sign

Sign a message using your Aleo private key.

+

Fields

§private_key: Option<String>

Specify the account private key of the node

+
§private_key_file: Option<String>

Specify the path to a file containing the account private key of the node

+
§message: String

Message (Aleo value) to sign

+
§raw: bool

When enabled, parses the message as bytes instead of Aleo literals

+
§network: String
§

Verify

Verify a message from an Aleo address.

+

Fields

§address: String

Address to use for verification

+
§signature: String

Signature to verify

+
§message: String

Message (Aleo value) to verify the signature against

+
§raw: bool

When enabled, parses the message as bytes instead of Aleo literals

+
§network: String

Trait Implementations§

source§

impl Command for Account

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 + 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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( +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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

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

fn update_from_arg_matches( +) -> Result<Self, Error>

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

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for Account

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.
source§

impl Subcommand for Account

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for Account

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.
source§

impl Subcommand for Account

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

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 - 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.

+[FromArgMatches::update_from_arg_matches_mut] Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/account/index.html b/leo_lang/cli/account/index.html index 77f16f3b5a..373ebcf6e6 100644 --- a/leo_lang/cli/account/index.html +++ b/leo_lang/cli/account/index.html @@ -1 +1 @@ -leo_lang::cli::account - Rust

Module leo_lang::cli::account

source ·

Enums§

  • Commands to manage Aleo accounts.
\ No newline at end of file +leo_lang::cli::account - Rust
leo_lang::cli

Module account

source

Enums§

  • Commands to manage Aleo accounts.
\ No newline at end of file diff --git a/leo_lang/cli/add/index.html b/leo_lang/cli/add/index.html index 75754b170d..352cc273bd 100644 --- a/leo_lang/cli/add/index.html +++ b/leo_lang/cli/add/index.html @@ -1 +1 @@ -leo_lang::cli::add - Rust

Module leo_lang::cli::add

source ·

Structs§

  • Add a new on-chain or local dependency to the current package.
\ No newline at end of file +leo_lang::cli::add - Rust
leo_lang::cli

Module add

source

Structs§

  • Add a new on-chain or local dependency to the current package.
\ No newline at end of file diff --git a/leo_lang/cli/add/struct.LeoAdd.html b/leo_lang/cli/add/struct.LeoAdd.html index 8d1b8c1778..8ea6e8a6fc 100644 --- a/leo_lang/cli/add/struct.LeoAdd.html +++ b/leo_lang/cli/add/struct.LeoAdd.html @@ -1,61 +1,61 @@ -LeoAdd in leo_lang::cli::add - Rust

Struct leo_lang::cli::add::LeoAdd

source ·
pub struct LeoAdd {
-    pub(crate) name: String,
-    pub(crate) local: Option<PathBuf>,
-    pub(crate) network: String,
-    pub(crate) clear: bool,
+LeoAdd in leo_lang::cli::add - Rust
leo_lang::cli::add

Struct LeoAdd

source
pub struct LeoAdd {
+    pub(crate) name: String,
+    pub(crate) local: Option<PathBuf>,
+    pub(crate) network: String,
+    pub(crate) clear: bool,
 }
Expand description

Add a new on-chain or local dependency to the current package.

-

Fields§

§name: String§local: Option<PathBuf>§network: String§clear: bool

Trait Implementations§

source§

impl Args for LeoAdd

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: String§local: Option<PathBuf>§network: String§clear: bool

Trait Implementations§

source§

impl Args for LeoAdd

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoAdd

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoAdd

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoAdd

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 LeoAdd

source§

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

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

impl FromArgMatches for LeoAdd

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoAdd

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 LeoAdd

source§

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

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

impl FromArgMatches for LeoAdd

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

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

fn update_from_arg_matches( +) -> Result<Self, Error>

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

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoAdd

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for LeoAdd

§

impl RefUnwindSafe for LeoAdd

§

impl Send for LeoAdd

§

impl Sync for LeoAdd

§

impl Unpin for LeoAdd

§

impl UnwindSafe for LeoAdd

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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoAdd

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for LeoAdd

§

impl RefUnwindSafe for LeoAdd

§

impl Send for LeoAdd

§

impl Sync for LeoAdd

§

impl Unpin for LeoAdd

§

impl UnwindSafe for LeoAdd

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/build/index.html b/leo_lang/cli/build/index.html index b9087ae259..f1144ee76d 100644 --- a/leo_lang/cli/build/index.html +++ b/leo_lang/cli/build/index.html @@ -1 +1 @@ -leo_lang::cli::build - Rust

Module leo_lang::cli::build

source ·

Structs§

  • Compile and build program command.
\ No newline at end of file +leo_lang::cli::build - Rust
leo_lang::cli

Module build

source

Structs§

  • Compile and build program command.
\ No newline at end of file diff --git a/leo_lang/cli/build/struct.LeoBuild.html b/leo_lang/cli/build/struct.LeoBuild.html index 20f9dbb0f0..e5326fc7c7 100644 --- a/leo_lang/cli/build/struct.LeoBuild.html +++ b/leo_lang/cli/build/struct.LeoBuild.html @@ -1,58 +1,58 @@ -LeoBuild in leo_lang::cli::build - Rust

Struct leo_lang::cli::build::LeoBuild

source ·
pub struct LeoBuild {
+LeoBuild in leo_lang::cli::build - Rust
leo_lang::cli::build

Struct LeoBuild

source
pub struct LeoBuild {
     pub(crate) options: BuildOptions,
 }
Expand description

Compile and build program command.

-

Fields§

§options: BuildOptions

Trait Implementations§

source§

impl Args for LeoBuild

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§options: BuildOptions

Trait Implementations§

source§

impl Args for LeoBuild

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoBuild

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoBuild

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoBuild

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 LeoBuild

source§

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

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

impl FromArgMatches for LeoBuild

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoBuild

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 LeoBuild

source§

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

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

impl FromArgMatches for LeoBuild

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

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

fn update_from_arg_matches( +) -> Result<Self, Error>

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

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoBuild

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoBuild

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/clean/index.html b/leo_lang/cli/clean/index.html index 78bde759fe..033b1b8e8b 100644 --- a/leo_lang/cli/clean/index.html +++ b/leo_lang/cli/clean/index.html @@ -1 +1 @@ -leo_lang::cli::clean - Rust

Module leo_lang::cli::clean

source ·

Structs§

\ No newline at end of file +leo_lang::cli::clean - Rust
leo_lang::cli

Module clean

source

Structs§

\ No newline at end of file diff --git a/leo_lang/cli/clean/struct.LeoClean.html b/leo_lang/cli/clean/struct.LeoClean.html index 0484b3cc8f..7eef0f776e 100644 --- a/leo_lang/cli/clean/struct.LeoClean.html +++ b/leo_lang/cli/clean/struct.LeoClean.html @@ -1,56 +1,56 @@ -LeoClean in leo_lang::cli::clean - Rust

Struct leo_lang::cli::clean::LeoClean

source ·
pub struct LeoClean {}
Expand description

Clean outputs folder command

-

Trait Implementations§

source§

impl Args for LeoClean

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +LeoClean in leo_lang::cli::clean - Rust
leo_lang::cli::clean

Struct LeoClean

source
pub struct LeoClean {}
Expand description

Clean outputs folder command

+

Trait Implementations§

source§

impl Args for LeoClean

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoClean

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoClean

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoClean

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 LeoClean

source§

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

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

impl FromArgMatches for LeoClean

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoClean

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 LeoClean

source§

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

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

impl FromArgMatches for LeoClean

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

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

fn update_from_arg_matches( +) -> Result<Self, Error>

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

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoClean

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoClean

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/cli/enum.Commands.html b/leo_lang/cli/cli/enum.Commands.html index 62ed26b500..50a1fa391f 100644 --- a/leo_lang/cli/cli/enum.Commands.html +++ b/leo_lang/cli/cli/enum.Commands.html @@ -1,4 +1,4 @@ -Commands in leo_lang::cli::cli - Rust

Enum leo_lang::cli::cli::Commands

source ·
enum Commands {
+Commands in leo_lang::cli::cli - Rust
leo_lang::cli::cli

Enum Commands

source
enum Commands {
     Account {
         command: Account,
     },
@@ -36,45 +36,45 @@
         command: LeoUpdate,
     },
 }
Expand description

Leo compiler and package manager

-

Variants§

§

Account

Fields

§command: Account
§

New

Fields

§command: LeoNew
§

Example

Fields

§command: LeoExample
§

Run

Fields

§command: LeoRun
§

Execute

Fields

§command: LeoExecute
§

Deploy

Fields

§command: Deploy
§

Query

Fields

§command: LeoQuery
§

Build

Fields

§command: LeoBuild
§

Add

Fields

§command: LeoAdd
§

Remove

Fields

§command: LeoRemove
§

Clean

Fields

§command: LeoClean
§

Update

Fields

§command: LeoUpdate

Trait Implementations§

source§

impl CommandFactory for Commands

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 Commands

source§

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

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

impl FromArgMatches for Commands

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( +

Variants§

§

Account

Fields

§command: Account
§

New

Fields

§command: LeoNew
§

Example

Fields

§command: LeoExample
§

Run

Fields

§command: LeoRun
§

Execute

Fields

§command: LeoExecute
§

Deploy

Fields

§command: Deploy
§

Query

Fields

§command: LeoQuery
§

Build

Fields

§command: LeoBuild
§

Add

Fields

§command: LeoAdd
§

Remove

Fields

§command: LeoRemove
§

Clean

Fields

§command: LeoClean
§

Update

Fields

§command: LeoUpdate

Trait Implementations§

source§

impl CommandFactory for Commands

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 Commands

source§

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

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

impl FromArgMatches for Commands

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for Commands

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.
source§

impl Subcommand for Commands

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for Commands

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.
source§

impl Subcommand for Commands

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

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 - 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.

+[FromArgMatches::update_from_arg_matches_mut] Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/cli/fn.handle_error.html b/leo_lang/cli/cli/fn.handle_error.html index 43546c2b93..ef7bb702c8 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
leo_lang::cli::cli

Function 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 31f228df80..743521f3ff 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
leo_lang::cli::cli

Function 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/cli/index.html b/leo_lang/cli/cli/index.html index 1cd40f46d3..3e3e0086fc 100644 --- a/leo_lang/cli/cli/index.html +++ b/leo_lang/cli/cli/index.html @@ -1 +1 @@ -leo_lang::cli::cli - Rust

Module leo_lang::cli::cli

source ·

Structs§

  • CLI Arguments entry point - includes global parameters and subcommands

Enums§

  • Commands 🔒
    Leo compiler and package manager

Functions§

\ No newline at end of file +leo_lang::cli::cli - Rust
leo_lang::cli

Module cli

source

Structs§

  • CLI Arguments entry point - includes global parameters and subcommands

Enums§

  • Commands 🔒
    Leo compiler and package manager

Functions§

\ No newline at end of file diff --git a/leo_lang/cli/cli/struct.CLI.html b/leo_lang/cli/cli/struct.CLI.html index 93d9aadc01..283fd66a6d 100644 --- a/leo_lang/cli/cli/struct.CLI.html +++ b/leo_lang/cli/cli/struct.CLI.html @@ -1,49 +1,49 @@ -CLI in leo_lang::cli::cli - Rust

Struct leo_lang::cli::cli::CLI

source ·
pub struct CLI {
-    debug: bool,
-    quiet: bool,
+CLI in leo_lang::cli::cli - Rust
leo_lang::cli::cli

Struct CLI

source
pub struct CLI {
+    debug: bool,
+    quiet: bool,
     command: Commands,
-    path: Option<PathBuf>,
-    pub home: Option<PathBuf>,
+    path: Option<PathBuf>,
+    pub home: Option<PathBuf>,
 }
Expand description

CLI Arguments entry point - includes global parameters and subcommands

-

Fields§

§debug: bool§quiet: bool§command: Commands§path: Option<PathBuf>§home: Option<PathBuf>

Trait Implementations§

source§

impl Args for CLI

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§debug: bool§quiet: bool§command: Commands§path: Option<PathBuf>§home: Option<PathBuf>

Trait Implementations§

source§

impl Args for CLI

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl CommandFactory for CLI

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 CLI

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for CLI

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( +[FromArgMatches::update_from_arg_matches_mut] Read more

source§

impl CommandFactory for CLI

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 CLI

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for CLI

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for CLI

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for CLI

§

impl RefUnwindSafe for CLI

§

impl Send for CLI

§

impl Sync for CLI

§

impl Unpin for CLI

§

impl UnwindSafe for CLI

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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for CLI

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for CLI

§

impl RefUnwindSafe for CLI

§

impl Send for CLI

§

impl Sync for CLI

§

impl Unpin for CLI

§

impl UnwindSafe for CLI

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ 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 6cc6173b66..33ee89e13a 100644 --- a/leo_lang/cli/commands/account/enum.Account.html +++ b/leo_lang/cli/commands/account/enum.Account.html @@ -1,105 +1,105 @@ -Account in leo_lang::cli::commands::account - Rust

Enum leo_lang::cli::commands::account::Account

source ·
pub enum Account {
+Account in leo_lang::cli::commands::account - Rust
leo_lang::cli::commands::account

Enum Account

source
pub enum Account {
     New {
-        seed: Option<u64>,
-        write: bool,
-        discreet: bool,
-        network: String,
-        endpoint: String,
+        seed: Option<u64>,
+        write: bool,
+        discreet: bool,
+        network: String,
+        endpoint: String,
     },
     Import {
-        private_key: Option<String>,
-        write: bool,
-        discreet: bool,
-        network: String,
-        endpoint: String,
+        private_key: Option<String>,
+        write: bool,
+        discreet: bool,
+        network: String,
+        endpoint: String,
     },
     Sign {
-        private_key: Option<String>,
-        private_key_file: Option<String>,
-        message: String,
-        raw: bool,
-        network: String,
+        private_key: Option<String>,
+        private_key_file: Option<String>,
+        message: String,
+        raw: bool,
+        network: String,
     },
     Verify {
-        address: String,
-        signature: String,
-        message: String,
-        raw: bool,
-        network: String,
+        address: String,
+        signature: String,
+        message: String,
+        raw: bool,
+        network: String,
     },
 }
Expand description

Commands to manage Aleo accounts.

Variants§

§

New

Generates a new Aleo account

-

Fields

§seed: Option<u64>

Seed the RNG with a numeric value.

-
§write: bool

Write the private key to the .env file.

-
§discreet: bool

Print sensitive information (such as private key) discreetly to an alternate screen

-
§network: String
§endpoint: String
§

Import

Derive an Aleo account from a private key.

-

Fields

§private_key: Option<String>

Private key plaintext

-
§write: bool

Write the private key to the .env file.

-
§discreet: bool

Print sensitive information (such as private key) discreetly to an alternate screen

-
§network: String
§endpoint: String
§

Sign

Sign a message using your Aleo private key.

-

Fields

§private_key: Option<String>

Specify the account private key of the node

-
§private_key_file: Option<String>

Specify the path to a file containing the account private key of the node

-
§message: String

Message (Aleo value) to sign

-
§raw: bool

When enabled, parses the message as bytes instead of Aleo literals

-
§network: String
§

Verify

Verify a message from an Aleo address.

-

Fields

§address: String

Address to use for verification

-
§signature: String

Signature to verify

-
§message: String

Message (Aleo value) to verify the signature against

-
§raw: bool

When enabled, parses the message as bytes instead of Aleo literals

-
§network: String

Trait Implementations§

source§

impl Command for Account

source§

type Input = ()

If the current command requires running another command beforehand +

Fields

§seed: Option<u64>

Seed the RNG with a numeric value.

+
§write: bool

Write the private key to the .env file.

+
§discreet: bool

Print sensitive information (such as private key) discreetly to an alternate screen

+
§network: String
§endpoint: String
§

Import

Derive an Aleo account from a private key.

+

Fields

§private_key: Option<String>

Private key plaintext

+
§write: bool

Write the private key to the .env file.

+
§discreet: bool

Print sensitive information (such as private key) discreetly to an alternate screen

+
§network: String
§endpoint: String
§

Sign

Sign a message using your Aleo private key.

+

Fields

§private_key: Option<String>

Specify the account private key of the node

+
§private_key_file: Option<String>

Specify the path to a file containing the account private key of the node

+
§message: String

Message (Aleo value) to sign

+
§raw: bool

When enabled, parses the message as bytes instead of Aleo literals

+
§network: String
§

Verify

Verify a message from an Aleo address.

+

Fields

§address: String

Address to use for verification

+
§signature: String

Signature to verify

+
§message: String

Message (Aleo value) to verify the signature against

+
§raw: bool

When enabled, parses the message as bytes instead of Aleo literals

+
§network: String

Trait Implementations§

source§

impl Command for Account

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 + 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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( +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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for Account

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.
source§

impl Subcommand for Account

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for Account

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.
source§

impl Subcommand for Account

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

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 - 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.

+[FromArgMatches::update_from_arg_matches_mut] Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file 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 e40bb91593..8cf048fe2a 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.

+display_string_discreetly in leo_lang::cli::commands::account - Rust
leo_lang::cli::commands::account

Function 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.

\ 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 0ee9a6530c..51bf365970 100644 --- a/leo_lang/cli/commands/account/fn.generate_new_account.html +++ b/leo_lang/cli/commands/account/fn.generate_new_account.html @@ -1,7 +1,7 @@ -generate_new_account in leo_lang::cli::commands::account - Rust

Function leo_lang::cli::commands::account::generate_new_account

source ·
fn generate_new_account<N: Network>(
-    seed: Option<u64>,
-    write: bool,
-    discreet: bool,
+generate_new_account in leo_lang::cli::commands::account - Rust
leo_lang::cli::commands::account

Function generate_new_account

source
fn generate_new_account<N: Network>(
+    seed: Option<u64>,
+    write: bool,
+    discreet: bool,
     ctx: &Context,
-    endpoint: String,
-) -> Result<()>
\ No newline at end of file + endpoint: String, +) -> 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 16a96c64f8..2125193fa3 100644 --- a/leo_lang/cli/commands/account/fn.import_account.html +++ b/leo_lang/cli/commands/account/fn.import_account.html @@ -1,7 +1,7 @@ -import_account in leo_lang::cli::commands::account - Rust

Function leo_lang::cli::commands::account::import_account

source ·
fn import_account<N: Network>(
-    private_key: Option<String>,
-    write: bool,
-    discreet: bool,
+import_account in leo_lang::cli::commands::account - Rust
leo_lang::cli::commands::account

Function import_account

source
fn import_account<N: Network>(
+    private_key: Option<String>,
+    write: bool,
+    discreet: bool,
     ctx: &Context,
-    endpoint: String,
-) -> Result<()>
\ No newline at end of file + endpoint: String, +) -> 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 fc21b3f2ea..5cf689817d 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>(
+print_keys in leo_lang::cli::commands::account - Rust
leo_lang::cli::commands::account

Function print_keys

source
fn print_keys<N: Network>(
     private_key: PrivateKey<N>,
-    discreet: bool,
-) -> Result<()>
\ No newline at end of file + discreet: bool, +) -> 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 4dc8b83b61..1180615261 100644 --- a/leo_lang/cli/commands/account/fn.sign_message.html +++ b/leo_lang/cli/commands/account/fn.sign_message.html @@ -1,6 +1,6 @@ -sign_message in leo_lang::cli::commands::account - Rust

Function leo_lang::cli::commands::account::sign_message

source ·
pub(crate) fn sign_message<N: Network>(
-    message: String,
-    raw: bool,
-    private_key: Option<String>,
-    private_key_file: Option<String>,
-) -> Result<String>
\ No newline at end of file +sign_message in leo_lang::cli::commands::account - Rust
leo_lang::cli::commands::account

Function sign_message

source
pub(crate) fn sign_message<N: Network>(
+    message: String,
+    raw: bool,
+    private_key: Option<String>,
+    private_key_file: Option<String>,
+) -> 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 a068cf5df2..2391c7705e 100644 --- a/leo_lang/cli/commands/account/fn.verify_message.html +++ b/leo_lang/cli/commands/account/fn.verify_message.html @@ -1,6 +1,6 @@ -verify_message in leo_lang::cli::commands::account - Rust

Function leo_lang::cli::commands::account::verify_message

source ·
pub(crate) fn verify_message<N: Network>(
-    address: String,
-    signature: String,
-    message: String,
-    raw: bool,
-) -> Result<String>
\ No newline at end of file +verify_message in leo_lang::cli::commands::account - Rust
leo_lang::cli::commands::account

Function verify_message

source
pub(crate) fn verify_message<N: Network>(
+    address: String,
+    signature: String,
+    message: String,
+    raw: bool,
+) -> Result<String>
\ No newline at end of file diff --git a/leo_lang/cli/commands/account/fn.wait_for_keypress.html b/leo_lang/cli/commands/account/fn.wait_for_keypress.html index 576471325a..9ecee0d362 100644 --- a/leo_lang/cli/commands/account/fn.wait_for_keypress.html +++ b/leo_lang/cli/commands/account/fn.wait_for_keypress.html @@ -1 +1 @@ -wait_for_keypress in leo_lang::cli::commands::account - Rust

Function leo_lang::cli::commands::account::wait_for_keypress

source ·
fn wait_for_keypress()
\ No newline at end of file +wait_for_keypress in leo_lang::cli::commands::account - Rust
leo_lang::cli::commands::account

Function wait_for_keypress

source
fn wait_for_keypress()
\ 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 2ba3337a41..af9e7829f4 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,5 +1,5 @@ -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>(
+write_to_env_file in leo_lang::cli::commands::account - Rust
leo_lang::cli::commands::account

Function write_to_env_file

source
fn write_to_env_file<N: Network>(
     private_key: PrivateKey<N>,
     ctx: &Context,
-    endpoint: String,
-) -> Result<()>
\ No newline at end of file + endpoint: String, +) -> Result<()>
\ No newline at end of file diff --git a/leo_lang/cli/commands/account/index.html b/leo_lang/cli/commands/account/index.html index 2e154a3971..2d7b46cf98 100644 --- a/leo_lang/cli/commands/account/index.html +++ b/leo_lang/cli/commands/account/index.html @@ -1 +1 @@ -leo_lang::cli::commands::account - Rust

Module leo_lang::cli::commands::account

source ·

Enums§

  • Commands to manage Aleo accounts.

Functions§

\ No newline at end of file +leo_lang::cli::commands::account - Rust
leo_lang::cli::commands

Module account

source

Enums§

  • Commands to manage Aleo accounts.

Functions§

\ No newline at end of file diff --git a/leo_lang/cli/commands/add/index.html b/leo_lang/cli/commands/add/index.html index 4ac8a55cdd..39417d6187 100644 --- a/leo_lang/cli/commands/add/index.html +++ b/leo_lang/cli/commands/add/index.html @@ -1 +1 @@ -leo_lang::cli::commands::add - Rust

Module leo_lang::cli::commands::add

source ·

Structs§

  • Add a new on-chain or local dependency to the current package.
\ No newline at end of file +leo_lang::cli::commands::add - Rust
leo_lang::cli::commands

Module add

source

Structs§

  • Add a new on-chain or local dependency to the current package.
\ No newline at end of file diff --git a/leo_lang/cli/commands/add/struct.LeoAdd.html b/leo_lang/cli/commands/add/struct.LeoAdd.html index 3fecb3b610..55b31f7d5b 100644 --- a/leo_lang/cli/commands/add/struct.LeoAdd.html +++ b/leo_lang/cli/commands/add/struct.LeoAdd.html @@ -1,61 +1,61 @@ -LeoAdd in leo_lang::cli::commands::add - Rust

Struct leo_lang::cli::commands::add::LeoAdd

source ·
pub struct LeoAdd {
-    pub(crate) name: String,
-    pub(crate) local: Option<PathBuf>,
-    pub(crate) network: String,
-    pub(crate) clear: bool,
+LeoAdd in leo_lang::cli::commands::add - Rust
leo_lang::cli::commands::add

Struct LeoAdd

source
pub struct LeoAdd {
+    pub(crate) name: String,
+    pub(crate) local: Option<PathBuf>,
+    pub(crate) network: String,
+    pub(crate) clear: bool,
 }
Expand description

Add a new on-chain or local dependency to the current package.

-

Fields§

§name: String§local: Option<PathBuf>§network: String§clear: bool

Trait Implementations§

source§

impl Args for LeoAdd

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: String§local: Option<PathBuf>§network: String§clear: bool

Trait Implementations§

source§

impl Args for LeoAdd

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoAdd

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoAdd

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoAdd

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 LeoAdd

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoAdd

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoAdd

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 LeoAdd

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoAdd

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoAdd

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for LeoAdd

§

impl RefUnwindSafe for LeoAdd

§

impl Send for LeoAdd

§

impl Sync for LeoAdd

§

impl Unpin for LeoAdd

§

impl UnwindSafe for LeoAdd

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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoAdd

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for LeoAdd

§

impl RefUnwindSafe for LeoAdd

§

impl Send for LeoAdd

§

impl Sync for LeoAdd

§

impl Unpin for LeoAdd

§

impl UnwindSafe for LeoAdd

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file 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 110b81c35d..d796e8e895 100644 --- a/leo_lang/cli/commands/build/fn.compile_leo_file.html +++ b/leo_lang/cli/commands/build/fn.compile_leo_file.html @@ -1,10 +1,10 @@ -compile_leo_file in leo_lang::cli::commands::build - Rust

Function leo_lang::cli::commands::build::compile_leo_file

source ·
fn compile_leo_file<N: Network>(
-    file_path: PathBuf,
+compile_leo_file in leo_lang::cli::commands::build - Rust
leo_lang::cli::commands::build

Function compile_leo_file

source
fn compile_leo_file<N: Network>(
+    file_path: PathBuf,
     program_id: &ProgramID<N>,
-    outputs: &Path,
-    build: &Path,
+    outputs: &Path,
+    build: &Path,
     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 20fe95fa06..4b7ab0e44f 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>(
+handle_build in leo_lang::cli::commands::build - Rust
leo_lang::cli::commands::build

Function handle_build

source
fn handle_build<N: Network>(
     command: &LeoBuild,
     context: Context,
 ) -> Result<<LeoBuild as Command>::Output>
\ No newline at end of file diff --git a/leo_lang/cli/commands/build/index.html b/leo_lang/cli/commands/build/index.html index 2c241b255c..8a78bd8e11 100644 --- a/leo_lang/cli/commands/build/index.html +++ b/leo_lang/cli/commands/build/index.html @@ -1 +1 @@ -leo_lang::cli::commands::build - Rust

Module leo_lang::cli::commands::build

source ·

Structs§

  • Compile and build program command.

Functions§

\ No newline at end of file +leo_lang::cli::commands::build - Rust
leo_lang::cli::commands

Module build

source

Structs§

  • Compile and build program command.

Functions§

\ No newline at end of file diff --git a/leo_lang/cli/commands/build/struct.LeoBuild.html b/leo_lang/cli/commands/build/struct.LeoBuild.html index bd39f99666..989804ce39 100644 --- a/leo_lang/cli/commands/build/struct.LeoBuild.html +++ b/leo_lang/cli/commands/build/struct.LeoBuild.html @@ -1,58 +1,58 @@ -LeoBuild in leo_lang::cli::commands::build - Rust

Struct leo_lang::cli::commands::build::LeoBuild

source ·
pub struct LeoBuild {
+LeoBuild in leo_lang::cli::commands::build - Rust
leo_lang::cli::commands::build

Struct LeoBuild

source
pub struct LeoBuild {
     pub(crate) options: BuildOptions,
 }
Expand description

Compile and build program command.

-

Fields§

§options: BuildOptions

Trait Implementations§

source§

impl Args for LeoBuild

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§options: BuildOptions

Trait Implementations§

source§

impl Args for LeoBuild

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoBuild

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoBuild

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoBuild

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 LeoBuild

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoBuild

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoBuild

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 LeoBuild

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoBuild

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoBuild

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoBuild

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/clean/index.html b/leo_lang/cli/commands/clean/index.html index 4139ce28ce..0a4429c110 100644 --- a/leo_lang/cli/commands/clean/index.html +++ b/leo_lang/cli/commands/clean/index.html @@ -1 +1 @@ -leo_lang::cli::commands::clean - Rust

Module leo_lang::cli::commands::clean

source ·

Structs§

\ No newline at end of file +leo_lang::cli::commands::clean - Rust
leo_lang::cli::commands

Module clean

source

Structs§

\ No newline at end of file diff --git a/leo_lang/cli/commands/clean/struct.LeoClean.html b/leo_lang/cli/commands/clean/struct.LeoClean.html index b8a6344b24..37df10e2de 100644 --- a/leo_lang/cli/commands/clean/struct.LeoClean.html +++ b/leo_lang/cli/commands/clean/struct.LeoClean.html @@ -1,56 +1,56 @@ -LeoClean in leo_lang::cli::commands::clean - Rust

Struct leo_lang::cli::commands::clean::LeoClean

source ·
pub struct LeoClean {}
Expand description

Clean outputs folder command

-

Trait Implementations§

source§

impl Args for LeoClean

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +LeoClean in leo_lang::cli::commands::clean - Rust
leo_lang::cli::commands::clean

Struct LeoClean

source
pub struct LeoClean {}
Expand description

Clean outputs folder command

+

Trait Implementations§

source§

impl Args for LeoClean

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoClean

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoClean

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoClean

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 LeoClean

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoClean

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoClean

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 LeoClean

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoClean

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoClean

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoClean

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/deploy/fn.deploy_cost_breakdown.html b/leo_lang/cli/commands/deploy/fn.deploy_cost_breakdown.html index 140b00e576..e2d4ab479f 100644 --- a/leo_lang/cli/commands/deploy/fn.deploy_cost_breakdown.html +++ b/leo_lang/cli/commands/deploy/fn.deploy_cost_breakdown.html @@ -1,8 +1,8 @@ -deploy_cost_breakdown in leo_lang::cli::commands::deploy - Rust

Function leo_lang::cli::commands::deploy::deploy_cost_breakdown

source ·
fn deploy_cost_breakdown(
-    name: &String,
-    total_cost: f64,
-    storage_cost: f64,
-    synthesis_cost: f64,
-    namespace_cost: f64,
-    priority_fee: f64,
-) -> Result<()>
\ No newline at end of file +deploy_cost_breakdown in leo_lang::cli::commands::deploy - Rust
leo_lang::cli::commands::deploy

Function deploy_cost_breakdown

source
fn deploy_cost_breakdown(
+    name: &String,
+    total_cost: f64,
+    storage_cost: f64,
+    synthesis_cost: f64,
+    namespace_cost: f64,
+    priority_fee: f64,
+) -> Result<()>
\ No newline at end of file diff --git a/leo_lang/cli/commands/deploy/fn.handle_deploy.html b/leo_lang/cli/commands/deploy/fn.handle_deploy.html index ba14b04912..6819cf6b49 100644 --- a/leo_lang/cli/commands/deploy/fn.handle_deploy.html +++ b/leo_lang/cli/commands/deploy/fn.handle_deploy.html @@ -1,6 +1,6 @@ -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>(
+handle_deploy in leo_lang::cli::commands::deploy - Rust
leo_lang::cli::commands::deploy

Function handle_deploy

source
fn handle_deploy<A: Aleo<Network = N, BaseField = N::Field>, N: Network>(
     command: &Deploy,
     context: Context,
-    network: NetworkName,
-    endpoint: &str,
+    network: NetworkName,
+    endpoint: &str,
 ) -> Result<<Deploy as Command>::Output>
\ No newline at end of file diff --git a/leo_lang/cli/commands/deploy/index.html b/leo_lang/cli/commands/deploy/index.html index 7f9903ccef..8f768ea227 100644 --- a/leo_lang/cli/commands/deploy/index.html +++ b/leo_lang/cli/commands/deploy/index.html @@ -1 +1 @@ -leo_lang::cli::commands::deploy - Rust

Module leo_lang::cli::commands::deploy

source ·

Structs§

  • Deploys an Aleo program.

Functions§

\ No newline at end of file +leo_lang::cli::commands::deploy - Rust
leo_lang::cli::commands

Module deploy

source

Structs§

  • Deploys an Aleo program.

Functions§

\ 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 a727d71bed..3de40f29dc 100644 --- a/leo_lang/cli/commands/deploy/struct.Deploy.html +++ b/leo_lang/cli/commands/deploy/struct.Deploy.html @@ -1,62 +1,62 @@ -Deploy in leo_lang::cli::commands::deploy - Rust

Struct leo_lang::cli::commands::deploy::Deploy

source ·
pub struct Deploy {
+Deploy in leo_lang::cli::commands::deploy - Rust
leo_lang::cli::commands::deploy

Struct Deploy

source
pub struct Deploy {
     pub(crate) fee_options: FeeOptions,
-    pub(crate) no_build: bool,
-    pub(crate) recursive: bool,
-    pub(crate) wait: u64,
+    pub(crate) no_build: bool,
+    pub(crate) recursive: bool,
+    pub(crate) wait: u64,
     pub(crate) options: BuildOptions,
 }
Expand description

Deploys an Aleo program.

-

Fields§

§fee_options: FeeOptions§no_build: bool§recursive: bool§wait: u64§options: BuildOptions

Trait Implementations§

source§

impl Args for Deploy

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§fee_options: FeeOptions§no_build: bool§recursive: bool§wait: u64§options: BuildOptions

Trait Implementations§

source§

impl Args for Deploy

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for Deploy

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for Deploy

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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( +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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for Deploy

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for Deploy

§

impl RefUnwindSafe for Deploy

§

impl Send for Deploy

§

impl Sync for Deploy

§

impl Unpin for Deploy

§

impl UnwindSafe for Deploy

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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for Deploy

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for Deploy

§

impl RefUnwindSafe for Deploy

§

impl Send for Deploy

§

impl Sync for Deploy

§

impl Unpin for Deploy

§

impl UnwindSafe for Deploy

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/example/enum.ExampleVariant.html b/leo_lang/cli/commands/example/enum.ExampleVariant.html index cc7c88cbc6..d9b02ee088 100644 --- a/leo_lang/cli/commands/example/enum.ExampleVariant.html +++ b/leo_lang/cli/commands/example/enum.ExampleVariant.html @@ -1,49 +1,49 @@ -ExampleVariant in leo_lang::cli::commands::example - Rust

Enum leo_lang::cli::commands::example::ExampleVariant

source ·
pub enum ExampleVariant {
+ExampleVariant in leo_lang::cli::commands::example - Rust
leo_lang::cli::commands::example

Enum ExampleVariant

source
pub enum ExampleVariant {
     Lottery,
     TicTacToe,
     Token,
 }
Expand description

The example programs that can be generated.

-

Variants§

§

Lottery

§

TicTacToe

§

Token

Implementations§

Trait Implementations§

source§

impl Clone for ExampleVariant

source§

fn clone(&self) -> ExampleVariant

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 CommandFactory for ExampleVariant

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 ExampleVariant

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for ExampleVariant

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( +

Variants§

§

Lottery

§

TicTacToe

§

Token

Implementations§

Trait Implementations§

source§

impl Clone for ExampleVariant

source§

fn clone(&self) -> ExampleVariant

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 CommandFactory for ExampleVariant

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 ExampleVariant

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for ExampleVariant

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for ExampleVariant

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.
source§

impl Subcommand for ExampleVariant

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for ExampleVariant

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.
source§

impl Subcommand for ExampleVariant

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand
source§

impl TryFrom<&str> for ExampleVariant

source§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: &str) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for ExampleVariant

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+[FromArgMatches::update_from_arg_matches_mut] Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand
source§

impl TryFrom<&str> for ExampleVariant

source§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: &str) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for ExampleVariant

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/example/index.html b/leo_lang/cli/commands/example/index.html index e8d82a0678..1870900a3b 100644 --- a/leo_lang/cli/commands/example/index.html +++ b/leo_lang/cli/commands/example/index.html @@ -1 +1 @@ -leo_lang::cli::commands::example - Rust

Module leo_lang::cli::commands::example

source ·

Structs§

Enums§

\ No newline at end of file +leo_lang::cli::commands::example - Rust
leo_lang::cli::commands

Module example

source

Structs§

Enums§

\ No newline at end of file diff --git a/leo_lang/cli/commands/example/struct.LeoExample.html b/leo_lang/cli/commands/example/struct.LeoExample.html index e5db0d2d87..d087f470b9 100644 --- a/leo_lang/cli/commands/example/struct.LeoExample.html +++ b/leo_lang/cli/commands/example/struct.LeoExample.html @@ -1,61 +1,61 @@ -LeoExample in leo_lang::cli::commands::example - Rust

Struct leo_lang::cli::commands::example::LeoExample

source ·
pub struct LeoExample {
-    pub(crate) name: String,
-    pub(crate) network: String,
-    pub(crate) endpoint: String,
+LeoExample in leo_lang::cli::commands::example - Rust
leo_lang::cli::commands::example

Struct LeoExample

source
pub struct LeoExample {
+    pub(crate) name: String,
+    pub(crate) network: String,
+    pub(crate) endpoint: String,
 }
Expand description

Initialize a new Leo example.

-

Fields§

§name: String§network: String§endpoint: String

Trait Implementations§

source§

impl Args for LeoExample

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: String§network: String§endpoint: String

Trait Implementations§

source§

impl Args for LeoExample

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via [FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoExample

source§

type Input = <LeoNew as Command>::Output

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 + 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoExample

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 LeoExample

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoExample

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoExample

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 LeoExample

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoExample

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoExample

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoExample

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/execute/fn.execution_cost_breakdown.html b/leo_lang/cli/commands/execute/fn.execution_cost_breakdown.html index a5935764da..7b9bf6f4df 100644 --- a/leo_lang/cli/commands/execute/fn.execution_cost_breakdown.html +++ b/leo_lang/cli/commands/execute/fn.execution_cost_breakdown.html @@ -1,7 +1,7 @@ -execution_cost_breakdown in leo_lang::cli::commands::execute - Rust

Function leo_lang::cli::commands::execute::execution_cost_breakdown

source ·
fn execution_cost_breakdown(
-    name: &String,
-    total_cost: f64,
-    storage_cost: f64,
-    finalize_cost: f64,
-    priority_fee: f64,
-) -> Result<()>
\ No newline at end of file +execution_cost_breakdown in leo_lang::cli::commands::execute - Rust
leo_lang::cli::commands::execute

Function execution_cost_breakdown

source
fn execution_cost_breakdown(
+    name: &String,
+    total_cost: f64,
+    storage_cost: f64,
+    finalize_cost: f64,
+    priority_fee: f64,
+) -> Result<()>
\ No newline at end of file diff --git a/leo_lang/cli/commands/execute/fn.handle_execute.html b/leo_lang/cli/commands/execute/fn.handle_execute.html index a9cc4be344..7c8813caf6 100644 --- a/leo_lang/cli/commands/execute/fn.handle_execute.html +++ b/leo_lang/cli/commands/execute/fn.handle_execute.html @@ -1,6 +1,6 @@ -handle_execute in leo_lang::cli::commands::execute - Rust

Function leo_lang::cli::commands::execute::handle_execute

source ·
fn handle_execute<A: Aleo>(
+handle_execute in leo_lang::cli::commands::execute - Rust
leo_lang::cli::commands::execute

Function handle_execute

source
fn handle_execute<A: Aleo>(
     command: LeoExecute,
     context: Context,
-    network: NetworkName,
-    endpoint: &str,
+    network: NetworkName,
+    endpoint: &str,
 ) -> Result<<LeoExecute 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 864bca92ec..a2ba41277b 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 @@ -1,8 +1,8 @@ -load_program_from_network in leo_lang::cli::commands::execute - Rust

Function leo_lang::cli::commands::execute::load_program_from_network

source ·
fn load_program_from_network<N: Network>(
+load_program_from_network in leo_lang::cli::commands::execute - Rust
leo_lang::cli::commands::execute

Function load_program_from_network

source
fn load_program_from_network<N: Network>(
     context: Context,
     process: &mut Process<N>,
     program_id: &ProgramID<N>,
-    network: NetworkName,
-    endpoint: &str,
-) -> Result<()>
Expand description

A helper function to recursively load the program and all of its imports into the process. Lifted from snarkOS.

+ network: NetworkName, + endpoint: &str, +) -> 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/index.html b/leo_lang/cli/commands/execute/index.html index e84997c719..01169abea9 100644 --- a/leo_lang/cli/commands/execute/index.html +++ b/leo_lang/cli/commands/execute/index.html @@ -1 +1 @@ -leo_lang::cli::commands::execute - Rust

Module leo_lang::cli::commands::execute

source ·

Structs§

  • Build, Prove and Run Leo program with inputs

Functions§

\ No newline at end of file +leo_lang::cli::commands::execute - Rust
leo_lang::cli::commands

Module execute

source

Structs§

  • Build, Prove and Run Leo program with inputs

Functions§

\ No newline at end of file diff --git a/leo_lang/cli/commands/execute/struct.LeoExecute.html b/leo_lang/cli/commands/execute/struct.LeoExecute.html index 083eeadb8a..e81a72521c 100644 --- a/leo_lang/cli/commands/execute/struct.LeoExecute.html +++ b/leo_lang/cli/commands/execute/struct.LeoExecute.html @@ -1,66 +1,66 @@ -LeoExecute in leo_lang::cli::commands::execute - Rust

Struct leo_lang::cli::commands::execute::LeoExecute

source ·
pub struct LeoExecute {
-    name: String,
-    inputs: Vec<String>,
-    broadcast: bool,
-    local: bool,
-    program: Option<String>,
+LeoExecute in leo_lang::cli::commands::execute - Rust
leo_lang::cli::commands::execute

Struct LeoExecute

source
pub struct LeoExecute {
+    name: String,
+    inputs: Vec<String>,
+    broadcast: bool,
+    local: bool,
+    program: Option<String>,
     fee_options: FeeOptions,
     compiler_options: BuildOptions,
-    file: Option<String>,
-    pub(crate) no_build: bool,
+    file: Option<String>,
+    pub(crate) no_build: bool,
 }
Expand description

Build, Prove and Run Leo program with inputs

-

Fields§

§name: String§inputs: Vec<String>§broadcast: bool§local: bool§program: Option<String>§fee_options: FeeOptions§compiler_options: BuildOptions§file: Option<String>§no_build: bool

Trait Implementations§

source§

impl Args for LeoExecute

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: String§inputs: Vec<String>§broadcast: bool§local: bool§program: Option<String>§fee_options: FeeOptions§compiler_options: BuildOptions§file: Option<String>§no_build: bool

Trait Implementations§

source§

impl Args for LeoExecute

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via [FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoExecute

source§

type Input = <LeoBuild as Command>::Output

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoExecute

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 LeoExecute

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoExecute

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoExecute

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 LeoExecute

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoExecute

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoExecute

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoExecute

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/fn.check_balance.html b/leo_lang/cli/commands/fn.check_balance.html index e8c5367d89..e74a10326e 100644 --- a/leo_lang/cli/commands/fn.check_balance.html +++ b/leo_lang/cli/commands/fn.check_balance.html @@ -1,7 +1,7 @@ -check_balance in leo_lang::cli::commands - Rust

Function leo_lang::cli::commands::check_balance

source ·
fn check_balance<N: Network>(
+check_balance in leo_lang::cli::commands - Rust
leo_lang::cli::commands

Function check_balance

source
fn check_balance<N: Network>(
     private_key: &PrivateKey<N>,
-    endpoint: &str,
-    network: &str,
+    endpoint: &str,
+    network: &str,
     context: Context,
-    total_cost: u64,
-) -> Result<()>
\ No newline at end of file + total_cost: u64, +) -> 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 1800a49f54..637301d421 100644 --- a/leo_lang/cli/commands/fn.handle_broadcast.html +++ b/leo_lang/cli/commands/fn.handle_broadcast.html @@ -1,6 +1,6 @@ -handle_broadcast in leo_lang::cli::commands - Rust

Function leo_lang::cli::commands::handle_broadcast

source ·
fn handle_broadcast<N: Network>(
-    endpoint: &String,
+handle_broadcast in leo_lang::cli::commands - Rust
leo_lang::cli::commands

Function handle_broadcast

source
fn handle_broadcast<N: Network>(
+    endpoint: &String,
     transaction: Transaction<N>,
-    operation: &String,
-) -> Result<()>
Expand description

Determine if the transaction should be broadcast or displayed to user.

+ operation: &String, +) -> 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 5d4ae992de..f10f1372cf 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>(
+parse_record in leo_lang::cli::commands - Rust
leo_lang::cli::commands

Function parse_record

source
pub fn parse_record<N: Network>(
     private_key: &PrivateKey<N>,
-    record: &str,
+    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.

\ No newline at end of file diff --git a/leo_lang/cli/commands/index.html b/leo_lang/cli/commands/index.html index 17c90354e5..16b26d0f31 100644 --- a/leo_lang/cli/commands/index.html +++ b/leo_lang/cli/commands/index.html @@ -1,3 +1,3 @@ -leo_lang::cli::commands - Rust

Module leo_lang::cli::commands

source ·

Re-exports§

Modules§

Structs§

Assign values from ArgMatches to self.
source§

impl Parser for LeoNew

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for LeoNew

§

impl RefUnwindSafe for LeoNew

§

impl Send for LeoNew

§

impl Sync for LeoNew

§

impl Unpin for LeoNew

§

impl UnwindSafe for LeoNew

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/query/block/index.html b/leo_lang/cli/commands/query/block/index.html index a1913416b6..f1bad8b369 100644 --- a/leo_lang/cli/commands/query/block/index.html +++ b/leo_lang/cli/commands/query/block/index.html @@ -1 +1 @@ -leo_lang::cli::commands::query::block - Rust

Module leo_lang::cli::commands::query::block

source ·

Structs§

\ No newline at end of file +leo_lang::cli::commands::query::block - Rust
leo_lang::cli::commands::query

Module block

source

Structs§

\ No newline at end of file diff --git a/leo_lang/cli/commands/query/block/struct.LeoBlock.html b/leo_lang/cli/commands/query/block/struct.LeoBlock.html index c0950136c0..24867106f4 100644 --- a/leo_lang/cli/commands/query/block/struct.LeoBlock.html +++ b/leo_lang/cli/commands/query/block/struct.LeoBlock.html @@ -1,63 +1,63 @@ -LeoBlock in leo_lang::cli::commands::query::block - Rust

Struct leo_lang::cli::commands::query::block::LeoBlock

source ·
pub struct LeoBlock {
-    pub(crate) id: Option<String>,
-    pub(crate) latest: bool,
-    pub(crate) latest_hash: bool,
-    pub(crate) latest_height: bool,
-    pub(crate) range: Option<Vec<String>>,
-    pub(crate) transactions: bool,
-    pub(crate) to_height: bool,
-}

Fields§

§id: Option<String>§latest: bool§latest_hash: bool§latest_height: bool§range: Option<Vec<String>>§transactions: bool§to_height: bool

Trait Implementations§

source§

impl Args for LeoBlock

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +LeoBlock in leo_lang::cli::commands::query::block - Rust
leo_lang::cli::commands::query::block

Struct LeoBlock

source
pub struct LeoBlock {
+    pub(crate) id: Option<String>,
+    pub(crate) latest: bool,
+    pub(crate) latest_hash: bool,
+    pub(crate) latest_height: bool,
+    pub(crate) range: Option<Vec<String>>,
+    pub(crate) transactions: bool,
+    pub(crate) to_height: bool,
+}

Fields§

§id: Option<String>§latest: bool§latest_hash: bool§latest_height: bool§range: Option<Vec<String>>§transactions: bool§to_height: bool

Trait Implementations§

source§

impl Args for LeoBlock

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoBlock

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoBlock

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = String

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
source§

type Output = String

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 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoBlock

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 LeoBlock

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoBlock

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoBlock

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 LeoBlock

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoBlock

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoBlock

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoBlock

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/query/committee/index.html b/leo_lang/cli/commands/query/committee/index.html index 120b1b4021..21c75a862f 100644 --- a/leo_lang/cli/commands/query/committee/index.html +++ b/leo_lang/cli/commands/query/committee/index.html @@ -1 +1 @@ -leo_lang::cli::commands::query::committee - Rust

Module leo_lang::cli::commands::query::committee

source ·

Structs§

\ No newline at end of file +leo_lang::cli::commands::query::committee - Rust
leo_lang::cli::commands::query

Module committee

source

Structs§

\ No newline at end of file diff --git a/leo_lang/cli/commands/query/committee/struct.LeoCommittee.html b/leo_lang/cli/commands/query/committee/struct.LeoCommittee.html index da9ff8b073..de76fb5edb 100644 --- a/leo_lang/cli/commands/query/committee/struct.LeoCommittee.html +++ b/leo_lang/cli/commands/query/committee/struct.LeoCommittee.html @@ -1,56 +1,56 @@ -LeoCommittee in leo_lang::cli::commands::query::committee - Rust

Struct leo_lang::cli::commands::query::committee::LeoCommittee

source ·
pub struct LeoCommittee {}
Expand description

Query the committee.

-

Trait Implementations§

source§

impl Args for LeoCommittee

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +LeoCommittee in leo_lang::cli::commands::query::committee - Rust
leo_lang::cli::commands::query::committee

Struct LeoCommittee

source
pub struct LeoCommittee {}
Expand description

Query the committee.

+

Trait Implementations§

source§

impl Args for LeoCommittee

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoCommittee

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoCommittee

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = String

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
source§

type Output = String

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 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoCommittee

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 LeoCommittee

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoCommittee

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoCommittee

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 LeoCommittee

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoCommittee

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoCommittee

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoCommittee

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/query/enum.QueryCommands.html b/leo_lang/cli/commands/query/enum.QueryCommands.html index 11f795c713..155a286346 100644 --- a/leo_lang/cli/commands/query/enum.QueryCommands.html +++ b/leo_lang/cli/commands/query/enum.QueryCommands.html @@ -1,4 +1,4 @@ -QueryCommands in leo_lang::cli::commands::query - Rust

Enum leo_lang::cli::commands::query::QueryCommands

source ·
pub enum QueryCommands {
+QueryCommands in leo_lang::cli::commands::query - Rust
leo_lang::cli::commands::query

Enum QueryCommands

source
pub enum QueryCommands {
     Block {
         command: LeoBlock,
     },
@@ -20,45 +20,45 @@
     Peers {
         command: LeoPeers,
     },
-}

Variants§

§

Block

Fields

§command: LeoBlock
§

Transaction

Fields

§

Program

Fields

§command: LeoProgram
§

Stateroot

Fields

§command: StateRoot
§

Committee

Fields

§

Mempool

Fields

§command: LeoMempool
§

Peers

Fields

§command: LeoPeers

Trait Implementations§

source§

impl CommandFactory for QueryCommands

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 QueryCommands

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for QueryCommands

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( +}

Variants§

§

Block

Fields

§command: LeoBlock
§

Transaction

Fields

§

Program

Fields

§command: LeoProgram
§

Stateroot

Fields

§command: StateRoot
§

Committee

Fields

§

Mempool

Fields

§command: LeoMempool
§

Peers

Fields

§command: LeoPeers

Trait Implementations§

source§

impl CommandFactory for QueryCommands

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 QueryCommands

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for QueryCommands

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for QueryCommands

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.
source§

impl Subcommand for QueryCommands

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for QueryCommands

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.
source§

impl Subcommand for QueryCommands

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

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 - 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.

+[FromArgMatches::update_from_arg_matches_mut] Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/query/fn.handle_query.html b/leo_lang/cli/commands/query/fn.handle_query.html index 92c40d4565..bac58504cf 100644 --- a/leo_lang/cli/commands/query/fn.handle_query.html +++ b/leo_lang/cli/commands/query/fn.handle_query.html @@ -1,6 +1,6 @@ -handle_query in leo_lang::cli::commands::query - Rust

Function leo_lang::cli::commands::query::handle_query

source ·
fn handle_query<N: Network>(
+handle_query in leo_lang::cli::commands::query - Rust
leo_lang::cli::commands::query

Function handle_query

source
fn handle_query<N: Network>(
     query: LeoQuery,
     context: Context,
-    network: &str,
-    endpoint: &str,
+    network: &str,
+    endpoint: &str,
 ) -> Result<<LeoQuery as Command>::Output>
\ No newline at end of file diff --git a/leo_lang/cli/commands/query/index.html b/leo_lang/cli/commands/query/index.html index e9583c5f9d..ff1fad557a 100644 --- a/leo_lang/cli/commands/query/index.html +++ b/leo_lang/cli/commands/query/index.html @@ -1 +1 @@ -leo_lang::cli::commands::query - Rust

Module leo_lang::cli::commands::query

source ·

Re-exports§

Modules§

Structs§

  • Query live data from the Aleo network.

Enums§

Functions§

\ No newline at end of file +leo_lang::cli::commands::query - Rust
leo_lang::cli::commands

Module query

source

Re-exports§

Modules§

Structs§

  • Query live data from the Aleo network.

Enums§

Functions§

\ No newline at end of file diff --git a/leo_lang/cli/commands/query/mempool/index.html b/leo_lang/cli/commands/query/mempool/index.html index 66c535e423..52d7cd86c2 100644 --- a/leo_lang/cli/commands/query/mempool/index.html +++ b/leo_lang/cli/commands/query/mempool/index.html @@ -1 +1 @@ -leo_lang::cli::commands::query::mempool - Rust

Module leo_lang::cli::commands::query::mempool

source ·

Structs§

\ No newline at end of file +leo_lang::cli::commands::query::mempool - Rust
leo_lang::cli::commands::query

Module mempool

source

Structs§

\ No newline at end of file diff --git a/leo_lang/cli/commands/query/mempool/struct.LeoMempool.html b/leo_lang/cli/commands/query/mempool/struct.LeoMempool.html index 59e9cb0200..bde3686e47 100644 --- a/leo_lang/cli/commands/query/mempool/struct.LeoMempool.html +++ b/leo_lang/cli/commands/query/mempool/struct.LeoMempool.html @@ -1,58 +1,58 @@ -LeoMempool in leo_lang::cli::commands::query::mempool - Rust

Struct leo_lang::cli::commands::query::mempool::LeoMempool

source ·
pub struct LeoMempool {
-    pub(crate) transactions: bool,
-    pub(crate) transmissions: bool,
-}

Fields§

§transactions: bool§transmissions: bool

Trait Implementations§

source§

impl Args for LeoMempool

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +LeoMempool in leo_lang::cli::commands::query::mempool - Rust
leo_lang::cli::commands::query::mempool

Struct LeoMempool

source
pub struct LeoMempool {
+    pub(crate) transactions: bool,
+    pub(crate) transmissions: bool,
+}

Fields§

§transactions: bool§transmissions: bool

Trait Implementations§

source§

impl Args for LeoMempool

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoMempool

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoMempool

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = String

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
source§

type Output = String

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 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoMempool

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 LeoMempool

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoMempool

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoMempool

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 LeoMempool

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoMempool

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoMempool

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoMempool

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/query/peers/index.html b/leo_lang/cli/commands/query/peers/index.html index 968b6219e3..deae41a2ad 100644 --- a/leo_lang/cli/commands/query/peers/index.html +++ b/leo_lang/cli/commands/query/peers/index.html @@ -1 +1 @@ -leo_lang::cli::commands::query::peers - Rust

Module leo_lang::cli::commands::query::peers

source ·

Structs§

\ No newline at end of file +leo_lang::cli::commands::query::peers - Rust
leo_lang::cli::commands::query

Module peers

source

Structs§

\ No newline at end of file diff --git a/leo_lang/cli/commands/query/peers/struct.LeoPeers.html b/leo_lang/cli/commands/query/peers/struct.LeoPeers.html index ace5e32238..f8656b39f2 100644 --- a/leo_lang/cli/commands/query/peers/struct.LeoPeers.html +++ b/leo_lang/cli/commands/query/peers/struct.LeoPeers.html @@ -1,58 +1,58 @@ -LeoPeers in leo_lang::cli::commands::query::peers - Rust

Struct leo_lang::cli::commands::query::peers::LeoPeers

source ·
pub struct LeoPeers {
-    pub(crate) metrics: bool,
-    pub(crate) count: bool,
-}

Fields§

§metrics: bool§count: bool

Trait Implementations§

source§

impl Args for LeoPeers

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +LeoPeers in leo_lang::cli::commands::query::peers - Rust
leo_lang::cli::commands::query::peers

Struct LeoPeers

source
pub struct LeoPeers {
+    pub(crate) metrics: bool,
+    pub(crate) count: bool,
+}

Fields§

§metrics: bool§count: bool

Trait Implementations§

source§

impl Args for LeoPeers

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoPeers

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoPeers

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = String

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
source§

type Output = String

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 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoPeers

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 LeoPeers

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoPeers

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoPeers

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 LeoPeers

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoPeers

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoPeers

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoPeers

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/query/program/index.html b/leo_lang/cli/commands/query/program/index.html index bce814445b..0009cfe044 100644 --- a/leo_lang/cli/commands/query/program/index.html +++ b/leo_lang/cli/commands/query/program/index.html @@ -1 +1 @@ -leo_lang::cli::commands::query::program - Rust

Module leo_lang::cli::commands::query::program

source ·

Structs§

  • Query program source code and live mapping values.
\ No newline at end of file +leo_lang::cli::commands::query::program - Rust
leo_lang::cli::commands::query

Module program

source

Structs§

  • Query program source code and live mapping values.
\ No newline at end of file diff --git a/leo_lang/cli/commands/query/program/struct.LeoProgram.html b/leo_lang/cli/commands/query/program/struct.LeoProgram.html index bae9ab926b..579cb8030f 100644 --- a/leo_lang/cli/commands/query/program/struct.LeoProgram.html +++ b/leo_lang/cli/commands/query/program/struct.LeoProgram.html @@ -1,60 +1,60 @@ -LeoProgram in leo_lang::cli::commands::query::program - Rust

Struct leo_lang::cli::commands::query::program::LeoProgram

source ·
pub struct LeoProgram {
-    pub(crate) name: String,
-    pub(crate) mappings: bool,
-    pub(crate) mapping_value: Option<Vec<String>>,
+LeoProgram in leo_lang::cli::commands::query::program - Rust
leo_lang::cli::commands::query::program

Struct LeoProgram

source
pub struct LeoProgram {
+    pub(crate) name: String,
+    pub(crate) mappings: bool,
+    pub(crate) mapping_value: Option<Vec<String>>,
 }
Expand description

Query program source code and live mapping values.

-

Fields§

§name: String§mappings: bool§mapping_value: Option<Vec<String>>

Trait Implementations§

source§

impl Args for LeoProgram

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: String§mappings: bool§mapping_value: Option<Vec<String>>

Trait Implementations§

source§

impl Args for LeoProgram

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoProgram

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoProgram

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = String

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
source§

type Output = String

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 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoProgram

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 LeoProgram

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoProgram

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoProgram

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 LeoProgram

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoProgram

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoProgram

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoProgram

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/query/state_root/index.html b/leo_lang/cli/commands/query/state_root/index.html index 72102961d5..62b9733d98 100644 --- a/leo_lang/cli/commands/query/state_root/index.html +++ b/leo_lang/cli/commands/query/state_root/index.html @@ -1 +1 @@ -leo_lang::cli::commands::query::state_root - Rust

Module leo_lang::cli::commands::query::state_root

source ·

Structs§

\ No newline at end of file +leo_lang::cli::commands::query::state_root - Rust
leo_lang::cli::commands::query

Module state_root

source

Structs§

\ No newline at end of file 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 e479563912..1329436639 100644 --- a/leo_lang/cli/commands/query/state_root/struct.StateRoot.html +++ b/leo_lang/cli/commands/query/state_root/struct.StateRoot.html @@ -1,56 +1,56 @@ -StateRoot in leo_lang::cli::commands::query::state_root - Rust

Struct leo_lang::cli::commands::query::state_root::StateRoot

source ·
pub struct StateRoot {}
Expand description

Query the latest stateroot.

-

Trait Implementations§

source§

impl Args for StateRoot

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +StateRoot in leo_lang::cli::commands::query::state_root - Rust
leo_lang::cli::commands::query::state_root

Struct StateRoot

source
pub struct StateRoot {}
Expand description

Query the latest stateroot.

+

Trait Implementations§

source§

impl Args for StateRoot

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for StateRoot

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for StateRoot

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = String

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
source§

type Output = String

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 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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( +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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for StateRoot

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for StateRoot

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/query/struct.LeoQuery.html b/leo_lang/cli/commands/query/struct.LeoQuery.html index ffc281543f..21ab0ec8a1 100644 --- a/leo_lang/cli/commands/query/struct.LeoQuery.html +++ b/leo_lang/cli/commands/query/struct.LeoQuery.html @@ -1,60 +1,60 @@ -LeoQuery in leo_lang::cli::commands::query - Rust

Struct leo_lang::cli::commands::query::LeoQuery

source ·
pub struct LeoQuery {
-    pub endpoint: Option<String>,
-    pub(crate) network: Option<String>,
+LeoQuery in leo_lang::cli::commands::query - Rust
leo_lang::cli::commands::query

Struct LeoQuery

source
pub struct LeoQuery {
+    pub endpoint: Option<String>,
+    pub(crate) network: Option<String>,
     pub command: QueryCommands,
 }
Expand description

Query live data from the Aleo network.

-

Fields§

§endpoint: Option<String>§network: Option<String>§command: QueryCommands

Trait Implementations§

source§

impl Args for LeoQuery

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§endpoint: Option<String>§network: Option<String>§command: QueryCommands

Trait Implementations§

source§

impl Args for LeoQuery

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoQuery

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoQuery

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = String

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
source§

type Output = String

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 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoQuery

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 LeoQuery

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoQuery

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoQuery

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 LeoQuery

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoQuery

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoQuery

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoQuery

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/query/transaction/index.html b/leo_lang/cli/commands/query/transaction/index.html index 48d4f4a733..3aecb6a83f 100644 --- a/leo_lang/cli/commands/query/transaction/index.html +++ b/leo_lang/cli/commands/query/transaction/index.html @@ -1 +1 @@ -leo_lang::cli::commands::query::transaction - Rust

Module leo_lang::cli::commands::query::transaction

source ·

Structs§

\ No newline at end of file +leo_lang::cli::commands::query::transaction - Rust
leo_lang::cli::commands::query

Module transaction

source

Structs§

\ No newline at end of file diff --git a/leo_lang/cli/commands/query/transaction/struct.LeoTransaction.html b/leo_lang/cli/commands/query/transaction/struct.LeoTransaction.html index 00c287b916..c253d86812 100644 --- a/leo_lang/cli/commands/query/transaction/struct.LeoTransaction.html +++ b/leo_lang/cli/commands/query/transaction/struct.LeoTransaction.html @@ -1,62 +1,62 @@ -LeoTransaction in leo_lang::cli::commands::query::transaction - Rust

Struct leo_lang::cli::commands::query::transaction::LeoTransaction

source ·
pub struct LeoTransaction {
-    pub(crate) id: Option<String>,
-    pub(crate) confirmed: bool,
-    pub(crate) from_io: Option<String>,
-    pub(crate) from_transition: Option<String>,
-    pub(crate) from_program: Option<String>,
+LeoTransaction in leo_lang::cli::commands::query::transaction - Rust
leo_lang::cli::commands::query::transaction

Struct LeoTransaction

source
pub struct LeoTransaction {
+    pub(crate) id: Option<String>,
+    pub(crate) confirmed: bool,
+    pub(crate) from_io: Option<String>,
+    pub(crate) from_transition: Option<String>,
+    pub(crate) from_program: Option<String>,
 }
Expand description

Query transaction information.

-

Fields§

§id: Option<String>§confirmed: bool§from_io: Option<String>§from_transition: Option<String>§from_program: Option<String>

Trait Implementations§

source§

impl Args for LeoTransaction

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§id: Option<String>§confirmed: bool§from_io: Option<String>§from_transition: Option<String>§from_program: Option<String>

Trait Implementations§

source§

impl Args for LeoTransaction

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoTransaction

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoTransaction

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = String

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
source§

type Output = String

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 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoTransaction

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 LeoTransaction

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoTransaction

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoTransaction

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 LeoTransaction

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoTransaction

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoTransaction

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoTransaction

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/query/utils/fn.check_valid_program_name.html b/leo_lang/cli/commands/query/utils/fn.check_valid_program_name.html index 9ad2ce4d79..0991cbc54a 100644 --- a/leo_lang/cli/commands/query/utils/fn.check_valid_program_name.html +++ b/leo_lang/cli/commands/query/utils/fn.check_valid_program_name.html @@ -1 +1 @@ -check_valid_program_name in leo_lang::cli::commands::query::utils - Rust

Function leo_lang::cli::commands::query::utils::check_valid_program_name

source ·
pub fn check_valid_program_name(name: String) -> String
\ No newline at end of file +check_valid_program_name in leo_lang::cli::commands::query::utils - Rust
leo_lang::cli::commands::query::utils

Function check_valid_program_name

source
pub fn check_valid_program_name(name: String) -> String
\ No newline at end of file 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 a1b25e8d1f..2d3d2a0db8 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
leo_lang::cli::commands::query::utils

Function 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 b0c08f3bab..c239313e9a 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
leo_lang::cli::commands::query::utils

Function 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 01a0a26f77..82650b1f2c 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
leo_lang::cli::commands::query::utils

Function 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 502dbd05c2..b519f59556 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
leo_lang::cli::commands::query::utils

Function 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 24cbe07822..f6bd19062d 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
leo_lang::cli::commands::query::utils

Function 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 174d56edbc..9514f7741e 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
leo_lang::cli::commands::query::utils

Function 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/query/utils/index.html b/leo_lang/cli/commands/query/utils/index.html index 1289a2e228..49ce652194 100644 --- a/leo_lang/cli/commands/query/utils/index.html +++ b/leo_lang/cli/commands/query/utils/index.html @@ -1 +1 @@ -leo_lang::cli::commands::query::utils - Rust
\ No newline at end of file +leo_lang::cli::commands::query::utils - Rust
\ No newline at end of file diff --git a/leo_lang/cli/commands/remove/index.html b/leo_lang/cli/commands/remove/index.html index 48a92eeabc..127be7f66a 100644 --- a/leo_lang/cli/commands/remove/index.html +++ b/leo_lang/cli/commands/remove/index.html @@ -1 +1 @@ -leo_lang::cli::commands::remove - Rust

Module leo_lang::cli::commands::remove

source ·

Structs§

  • Remove a dependency from the current package.
\ No newline at end of file +leo_lang::cli::commands::remove - Rust
leo_lang::cli::commands

Module remove

source

Structs§

  • Remove a dependency from the current package.
\ No newline at end of file diff --git a/leo_lang/cli/commands/remove/struct.LeoRemove.html b/leo_lang/cli/commands/remove/struct.LeoRemove.html index 619fd0023b..633c3bb05d 100644 --- a/leo_lang/cli/commands/remove/struct.LeoRemove.html +++ b/leo_lang/cli/commands/remove/struct.LeoRemove.html @@ -1,59 +1,59 @@ -LeoRemove in leo_lang::cli::commands::remove - Rust

Struct leo_lang::cli::commands::remove::LeoRemove

source ·
pub struct LeoRemove {
-    pub(crate) name: Option<String>,
-    pub(crate) all: bool,
+LeoRemove in leo_lang::cli::commands::remove - Rust
leo_lang::cli::commands::remove

Struct LeoRemove

source
pub struct LeoRemove {
+    pub(crate) name: Option<String>,
+    pub(crate) all: bool,
 }
Expand description

Remove a dependency from the current package.

-

Fields§

§name: Option<String>§all: bool

Trait Implementations§

source§

impl Args for LeoRemove

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: Option<String>§all: bool

Trait Implementations§

source§

impl Args for LeoRemove

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoRemove

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoRemove

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoRemove

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 LeoRemove

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoRemove

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoRemove

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 LeoRemove

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoRemove

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoRemove

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoRemove

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/run/fn.handle_run.html b/leo_lang/cli/commands/run/fn.handle_run.html index eea3709d52..373039e24c 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>(
+handle_run in leo_lang::cli::commands::run - Rust
leo_lang::cli::commands::run

Function handle_run

source
fn handle_run<N: Network>(
     command: LeoRun,
     context: Context,
 ) -> Result<<LeoRun as Command>::Output>
\ No newline at end of file diff --git a/leo_lang/cli/commands/run/index.html b/leo_lang/cli/commands/run/index.html index 5e494cb080..4e383529e2 100644 --- a/leo_lang/cli/commands/run/index.html +++ b/leo_lang/cli/commands/run/index.html @@ -1 +1 @@ -leo_lang::cli::commands::run - Rust

Module leo_lang::cli::commands::run

source ·

Structs§

  • Build, Prove and Run Leo program with inputs

Functions§

\ No newline at end of file +leo_lang::cli::commands::run - Rust
leo_lang::cli::commands

Module run

source

Structs§

  • Build, Prove and Run Leo program with inputs

Functions§

\ No newline at end of file diff --git a/leo_lang/cli/commands/run/struct.LeoRun.html b/leo_lang/cli/commands/run/struct.LeoRun.html index 95e5ff953c..953045b3c2 100644 --- a/leo_lang/cli/commands/run/struct.LeoRun.html +++ b/leo_lang/cli/commands/run/struct.LeoRun.html @@ -1,61 +1,61 @@ -LeoRun in leo_lang::cli::commands::run - Rust

Struct leo_lang::cli::commands::run::LeoRun

source ·
pub struct LeoRun {
-    pub(crate) name: String,
-    pub(crate) inputs: Vec<String>,
-    pub(crate) file: Option<String>,
+LeoRun in leo_lang::cli::commands::run - Rust
leo_lang::cli::commands::run

Struct LeoRun

source
pub struct LeoRun {
+    pub(crate) name: String,
+    pub(crate) inputs: Vec<String>,
+    pub(crate) file: Option<String>,
     pub(crate) compiler_options: BuildOptions,
 }
Expand description

Build, Prove and Run Leo program with inputs

-

Fields§

§name: String§inputs: Vec<String>§file: Option<String>§compiler_options: BuildOptions

Trait Implementations§

source§

impl Args for LeoRun

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: String§inputs: Vec<String>§file: Option<String>§compiler_options: BuildOptions

Trait Implementations§

source§

impl Args for LeoRun

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via [FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoRun

source§

type Input = <LeoBuild as Command>::Output

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoRun

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 LeoRun

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoRun

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoRun

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 LeoRun

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoRun

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoRun

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for LeoRun

§

impl RefUnwindSafe for LeoRun

§

impl Send for LeoRun

§

impl Sync for LeoRun

§

impl Unpin for LeoRun

§

impl UnwindSafe for LeoRun

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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoRun

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for LeoRun

§

impl RefUnwindSafe for LeoRun

§

impl Send for LeoRun

§

impl Sync for LeoRun

§

impl Unpin for LeoRun

§

impl UnwindSafe for LeoRun

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/struct.BuildOptions.html b/leo_lang/cli/commands/struct.BuildOptions.html index 11e86ee1f5..d3214fab29 100644 --- a/leo_lang/cli/commands/struct.BuildOptions.html +++ b/leo_lang/cli/commands/struct.BuildOptions.html @@ -1,67 +1,67 @@ -BuildOptions in leo_lang::cli::commands - Rust

Struct leo_lang::cli::commands::BuildOptions

source ·
pub struct BuildOptions {
Show 20 fields - pub endpoint: Option<String>, - pub(crate) network: Option<String>, - pub non_recursive: bool, - pub offline: bool, - pub enable_symbol_table_spans: bool, - pub enable_initial_symbol_table_snapshot: bool, - pub enable_type_checked_symbol_table_snapshot: bool, - pub enable_unrolled_symbol_table_snapshot: bool, - pub enable_ast_spans: bool, - pub enable_dce: bool, - pub enable_all_ast_snapshots: bool, - pub enable_initial_ast_snapshot: bool, - pub enable_unrolled_ast_snapshot: bool, - pub enable_ssa_ast_snapshot: bool, - pub enable_flattened_ast_snapshot: bool, - pub enable_destructured_ast_snapshot: bool, - pub enable_inlined_ast_snapshot: bool, - pub enable_dce_ast_snapshot: bool, - pub conditional_block_max_depth: usize, - pub disable_conditional_branch_type_checking: bool, +BuildOptions in leo_lang::cli::commands - Rust
leo_lang::cli::commands

Struct BuildOptions

source
pub struct BuildOptions {
Show 20 fields + pub endpoint: Option<String>, + pub(crate) network: Option<String>, + pub non_recursive: bool, + pub offline: bool, + pub enable_symbol_table_spans: bool, + pub enable_initial_symbol_table_snapshot: bool, + pub enable_type_checked_symbol_table_snapshot: bool, + pub enable_unrolled_symbol_table_snapshot: bool, + pub enable_ast_spans: bool, + pub enable_dce: bool, + pub enable_all_ast_snapshots: bool, + pub enable_initial_ast_snapshot: bool, + pub enable_unrolled_ast_snapshot: bool, + pub enable_ssa_ast_snapshot: bool, + pub enable_flattened_ast_snapshot: bool, + pub enable_destructured_ast_snapshot: bool, + pub enable_inlined_ast_snapshot: bool, + pub enable_dce_ast_snapshot: bool, + pub conditional_block_max_depth: usize, + pub disable_conditional_branch_type_checking: bool,
}
Expand description

Compiler Options wrapper for Build command. Also used by other commands which require Build command output as their input.

-

Fields§

§endpoint: Option<String>§network: Option<String>§non_recursive: bool§offline: bool§enable_symbol_table_spans: bool§enable_initial_symbol_table_snapshot: bool§enable_type_checked_symbol_table_snapshot: bool§enable_unrolled_symbol_table_snapshot: bool§enable_ast_spans: bool§enable_dce: bool§enable_all_ast_snapshots: bool§enable_initial_ast_snapshot: bool§enable_unrolled_ast_snapshot: bool§enable_ssa_ast_snapshot: bool§enable_flattened_ast_snapshot: bool§enable_destructured_ast_snapshot: bool§enable_inlined_ast_snapshot: bool§enable_dce_ast_snapshot: bool§conditional_block_max_depth: usize§disable_conditional_branch_type_checking: bool

Trait Implementations§

source§

impl Args for BuildOptions

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§endpoint: Option<String>§network: Option<String>§non_recursive: bool§offline: bool§enable_symbol_table_spans: bool§enable_initial_symbol_table_snapshot: bool§enable_type_checked_symbol_table_snapshot: bool§enable_unrolled_symbol_table_snapshot: bool§enable_ast_spans: bool§enable_dce: bool§enable_all_ast_snapshots: bool§enable_initial_ast_snapshot: bool§enable_unrolled_ast_snapshot: bool§enable_ssa_ast_snapshot: bool§enable_flattened_ast_snapshot: bool§enable_destructured_ast_snapshot: bool§enable_inlined_ast_snapshot: bool§enable_dce_ast_snapshot: bool§conditional_block_max_depth: usize§disable_conditional_branch_type_checking: bool

Trait Implementations§

source§

impl Args for BuildOptions

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Clone for BuildOptions

source§

fn clone(&self) -> BuildOptions

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 CommandFactory for BuildOptions

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 BuildOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for BuildOptions

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<BuildOptions> for CompilerOptions

source§

fn from(options: BuildOptions) -> Self

Converts to this type from the input type.
source§

impl FromArgMatches for BuildOptions

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( +[FromArgMatches::update_from_arg_matches_mut] Read more

source§

impl Clone for BuildOptions

source§

fn clone(&self) -> BuildOptions

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 CommandFactory for BuildOptions

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 BuildOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for BuildOptions

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<BuildOptions> for CompilerOptions

source§

fn from(options: BuildOptions) -> Self

Converts to this type from the input type.
source§

impl FromArgMatches for BuildOptions

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for BuildOptions

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for BuildOptions

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/struct.FeeOptions.html b/leo_lang/cli/commands/struct.FeeOptions.html index 85dfbce68f..3e1a7d6571 100644 --- a/leo_lang/cli/commands/struct.FeeOptions.html +++ b/leo_lang/cli/commands/struct.FeeOptions.html @@ -1,52 +1,52 @@ -FeeOptions in leo_lang::cli::commands - Rust

Struct leo_lang::cli::commands::FeeOptions

source ·
pub struct FeeOptions {
-    pub(crate) yes: bool,
-    pub(crate) dry_run: bool,
-    pub(crate) priority_fee: u64,
-    pub(crate) private_key: Option<String>,
-    record: Option<String>,
+FeeOptions in leo_lang::cli::commands - Rust
leo_lang::cli::commands

Struct FeeOptions

source
pub struct FeeOptions {
+    pub(crate) yes: bool,
+    pub(crate) dry_run: bool,
+    pub(crate) priority_fee: u64,
+    pub(crate) private_key: Option<String>,
+    record: Option<String>,
 }
Expand description

On Chain Execution Options to set preferences for keys, fees and networks. Used by Execute and Deploy commands.

-

Fields§

§yes: bool§dry_run: bool§priority_fee: u64§private_key: Option<String>§record: Option<String>

Trait Implementations§

source§

impl Args for FeeOptions

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§yes: bool§dry_run: bool§priority_fee: u64§private_key: Option<String>§record: Option<String>

Trait Implementations§

source§

impl Args for FeeOptions

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Clone for FeeOptions

source§

fn clone(&self) -> FeeOptions

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 CommandFactory for FeeOptions

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 FeeOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for FeeOptions

source§

fn default() -> FeeOptions

Returns the “default value” for a type. Read more
source§

impl FromArgMatches for FeeOptions

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( +[FromArgMatches::update_from_arg_matches_mut] Read more

source§

impl Clone for FeeOptions

source§

fn clone(&self) -> FeeOptions

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 CommandFactory for FeeOptions

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 FeeOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for FeeOptions

source§

fn default() -> FeeOptions

Returns the “default value” for a type. Read more
source§

impl FromArgMatches for FeeOptions

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for FeeOptions

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for FeeOptions

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/commands/trait.Command.html b/leo_lang/cli/commands/trait.Command.html index a53fc168ca..be98158168 100644 --- a/leo_lang/cli/commands/trait.Command.html +++ b/leo_lang/cli/commands/trait.Command.html @@ -1,19 +1,19 @@ -Command in leo_lang::cli::commands - Rust

Trait leo_lang::cli::commands::Command

source ·
pub trait Command {
+Command in leo_lang::cli::commands - Rust
leo_lang::cli::commands

Trait Command

source
pub trait Command {
     type Input;
     type Output;
 
     // Required methods
     fn prelude(&self, context: Context) -> Result<Self::Input>
-       where Self: Sized;
+       where Self: Sized;
     fn apply(self, context: Context, input: Self::Input) -> Result<Self::Output>
-       where Self: Sized;
+       where Self: Sized;
 
     // Provided methods
     fn log_span(&self) -> Span { ... }
     fn execute(self, context: Context) -> Result<Self::Output>
-       where Self: Sized { ... }
-    fn try_execute(self, context: Context) -> Result<()>
-       where Self: Sized { ... }
+       where Self: Sized { ... }
+    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 and needs its output result, this is where the result type is defined. @@ -22,19 +22,19 @@ 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 - Self: Sized,

Runs the prelude and returns the Input of the current command.

+ 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 - Self: Sized,

Runs the main operation of this command. This function is run within + 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 - Self: Sized,

A wrapper around the apply method. + 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a +

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

-

Implementors§

source§

impl Command for Account

source§

impl Command for LeoAdd

source§

impl Command for LeoBuild

source§

impl Command for LeoClean

source§

impl Command for Deploy

source§

impl Command for LeoExample

source§

impl Command for LeoExecute

source§

impl Command for LeoNew

source§

impl Command for LeoBlock

source§

impl Command for LeoCommittee

source§

impl Command for LeoMempool

source§

impl Command for LeoPeers

source§

impl Command for LeoProgram

source§

impl Command for StateRoot

source§

impl Command for LeoQuery

source§

impl Command for LeoTransaction

source§

impl Command for LeoRemove

source§

impl Command for LeoRun

source§

impl Command for LeoUpdate

\ No newline at end of file +

Implementors§

source§

impl Command for Account

source§

impl Command for LeoAdd

source§

impl Command for LeoBuild

source§

impl Command for LeoClean

source§

impl Command for Deploy

source§

impl Command for LeoExample

source§

impl Command for LeoExecute

source§

impl Command for LeoNew

source§

impl Command for LeoBlock

source§

impl Command for LeoCommittee

source§

impl Command for LeoMempool

source§

impl Command for LeoPeers

source§

impl Command for LeoProgram

source§

impl Command for StateRoot

source§

impl Command for LeoQuery

source§

impl Command for LeoTransaction

source§

impl Command for LeoRemove

source§

impl Command for LeoRun

source§

impl Command for LeoUpdate

\ No newline at end of file diff --git a/leo_lang/cli/commands/update/index.html b/leo_lang/cli/commands/update/index.html index 41fdf14e64..a44230882e 100644 --- a/leo_lang/cli/commands/update/index.html +++ b/leo_lang/cli/commands/update/index.html @@ -1 +1 @@ -leo_lang::cli::commands::update - Rust

Module leo_lang::cli::commands::update

source ·

Structs§

\ No newline at end of file +leo_lang::cli::commands::update - Rust
leo_lang::cli::commands

Module update

source

Structs§

\ No newline at end of file diff --git a/leo_lang/cli/commands/update/struct.LeoUpdate.html b/leo_lang/cli/commands/update/struct.LeoUpdate.html index 6badb09fe9..1b303c9ddf 100644 --- a/leo_lang/cli/commands/update/struct.LeoUpdate.html +++ b/leo_lang/cli/commands/update/struct.LeoUpdate.html @@ -1,62 +1,62 @@ -LeoUpdate in leo_lang::cli::commands::update - Rust

Struct leo_lang::cli::commands::update::LeoUpdate

source ·
pub struct LeoUpdate {
-    list: bool,
-    quiet: bool,
+LeoUpdate in leo_lang::cli::commands::update - Rust
leo_lang::cli::commands::update

Struct LeoUpdate

source
pub struct LeoUpdate {
+    list: bool,
+    quiet: bool,
 }
Expand description

Update Leo to the latest version

-

Fields§

§list: bool

Lists all available versions of Leo

-
§quiet: bool

Suppress outputs to terminal

-

Trait Implementations§

source§

impl Args for LeoUpdate

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§list: bool

Lists all available versions of Leo

+
§quiet: bool

Suppress outputs to terminal

+

Trait Implementations§

source§

impl Args for LeoUpdate

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoUpdate

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoUpdate

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - Self: Sized,

Runs the main operation of this command. This function is run within + 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoUpdate

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 LeoUpdate

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoUpdate

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoUpdate

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 LeoUpdate

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoUpdate

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoUpdate

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoUpdate

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/constant.SNARKVM_COMMAND.html b/leo_lang/cli/constant.SNARKVM_COMMAND.html index 1496a4ae54..8e9df89342 100644 --- a/leo_lang/cli/constant.SNARKVM_COMMAND.html +++ b/leo_lang/cli/constant.SNARKVM_COMMAND.html @@ -1 +1 @@ -SNARKVM_COMMAND in leo_lang::cli - Rust

Constant leo_lang::cli::SNARKVM_COMMAND

source ·
pub(crate) const SNARKVM_COMMAND: &str = "snarkvm";
\ No newline at end of file +SNARKVM_COMMAND in leo_lang::cli - Rust
leo_lang::cli

Constant SNARKVM_COMMAND

source
pub(crate) const SNARKVM_COMMAND: &str = "snarkvm";
\ No newline at end of file diff --git a/leo_lang/cli/context/index.html b/leo_lang/cli/context/index.html index 10bda492ab..ba2bcfadd5 100644 --- a/leo_lang/cli/context/index.html +++ b/leo_lang/cli/context/index.html @@ -1,2 +1,2 @@ -leo_lang::cli::context - Rust

Module leo_lang::cli::context

source ·

Structs§

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/deploy/index.html b/leo_lang/cli/deploy/index.html index 04398a91ff..43666d7a8e 100644 --- a/leo_lang/cli/deploy/index.html +++ b/leo_lang/cli/deploy/index.html @@ -1 +1 @@ -leo_lang::cli::deploy - Rust

Module leo_lang::cli::deploy

source ·

Structs§

  • Deploys an Aleo program.
\ No newline at end of file +leo_lang::cli::deploy - Rust
leo_lang::cli

Module deploy

source

Structs§

  • Deploys an Aleo program.
\ No newline at end of file diff --git a/leo_lang/cli/deploy/struct.Deploy.html b/leo_lang/cli/deploy/struct.Deploy.html index f7c1ecd42e..a673d09ff0 100644 --- a/leo_lang/cli/deploy/struct.Deploy.html +++ b/leo_lang/cli/deploy/struct.Deploy.html @@ -1,62 +1,62 @@ -Deploy in leo_lang::cli::deploy - Rust

Struct leo_lang::cli::deploy::Deploy

source ·
pub struct Deploy {
+Deploy in leo_lang::cli::deploy - Rust
leo_lang::cli::deploy

Struct Deploy

source
pub struct Deploy {
     pub(crate) fee_options: FeeOptions,
-    pub(crate) no_build: bool,
-    pub(crate) recursive: bool,
-    pub(crate) wait: u64,
+    pub(crate) no_build: bool,
+    pub(crate) recursive: bool,
+    pub(crate) wait: u64,
     pub(crate) options: BuildOptions,
 }
Expand description

Deploys an Aleo program.

-

Fields§

§fee_options: FeeOptions§no_build: bool§recursive: bool§wait: u64§options: BuildOptions

Trait Implementations§

source§

impl Args for Deploy

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§fee_options: FeeOptions§no_build: bool§recursive: bool§wait: u64§options: BuildOptions

Trait Implementations§

source§

impl Args for Deploy

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for Deploy

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for Deploy

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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( +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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for Deploy

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for Deploy

§

impl RefUnwindSafe for Deploy

§

impl Send for Deploy

§

impl Sync for Deploy

§

impl Unpin for Deploy

§

impl UnwindSafe for Deploy

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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for Deploy

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for Deploy

§

impl RefUnwindSafe for Deploy

§

impl Send for Deploy

§

impl Sync for Deploy

§

impl Unpin for Deploy

§

impl UnwindSafe for Deploy

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/enum.Account.html b/leo_lang/cli/enum.Account.html index 1ed7952e54..68214b240d 100644 --- a/leo_lang/cli/enum.Account.html +++ b/leo_lang/cli/enum.Account.html @@ -1,105 +1,105 @@ -Account in leo_lang::cli - Rust

Enum leo_lang::cli::Account

source ·
pub enum Account {
+Account in leo_lang::cli - Rust
leo_lang::cli

Enum Account

source
pub enum Account {
     New {
-        seed: Option<u64>,
-        write: bool,
-        discreet: bool,
-        network: String,
-        endpoint: String,
+        seed: Option<u64>,
+        write: bool,
+        discreet: bool,
+        network: String,
+        endpoint: String,
     },
     Import {
-        private_key: Option<String>,
-        write: bool,
-        discreet: bool,
-        network: String,
-        endpoint: String,
+        private_key: Option<String>,
+        write: bool,
+        discreet: bool,
+        network: String,
+        endpoint: String,
     },
     Sign {
-        private_key: Option<String>,
-        private_key_file: Option<String>,
-        message: String,
-        raw: bool,
-        network: String,
+        private_key: Option<String>,
+        private_key_file: Option<String>,
+        message: String,
+        raw: bool,
+        network: String,
     },
     Verify {
-        address: String,
-        signature: String,
-        message: String,
-        raw: bool,
-        network: String,
+        address: String,
+        signature: String,
+        message: String,
+        raw: bool,
+        network: String,
     },
 }
Expand description

Commands to manage Aleo accounts.

Variants§

§

New

Generates a new Aleo account

-

Fields

§seed: Option<u64>

Seed the RNG with a numeric value.

-
§write: bool

Write the private key to the .env file.

-
§discreet: bool

Print sensitive information (such as private key) discreetly to an alternate screen

-
§network: String
§endpoint: String
§

Import

Derive an Aleo account from a private key.

-

Fields

§private_key: Option<String>

Private key plaintext

-
§write: bool

Write the private key to the .env file.

-
§discreet: bool

Print sensitive information (such as private key) discreetly to an alternate screen

-
§network: String
§endpoint: String
§

Sign

Sign a message using your Aleo private key.

-

Fields

§private_key: Option<String>

Specify the account private key of the node

-
§private_key_file: Option<String>

Specify the path to a file containing the account private key of the node

-
§message: String

Message (Aleo value) to sign

-
§raw: bool

When enabled, parses the message as bytes instead of Aleo literals

-
§network: String
§

Verify

Verify a message from an Aleo address.

-

Fields

§address: String

Address to use for verification

-
§signature: String

Signature to verify

-
§message: String

Message (Aleo value) to verify the signature against

-
§raw: bool

When enabled, parses the message as bytes instead of Aleo literals

-
§network: String

Trait Implementations§

source§

impl Command for Account

source§

type Input = ()

If the current command requires running another command beforehand +

Fields

§seed: Option<u64>

Seed the RNG with a numeric value.

+
§write: bool

Write the private key to the .env file.

+
§discreet: bool

Print sensitive information (such as private key) discreetly to an alternate screen

+
§network: String
§endpoint: String
§

Import

Derive an Aleo account from a private key.

+

Fields

§private_key: Option<String>

Private key plaintext

+
§write: bool

Write the private key to the .env file.

+
§discreet: bool

Print sensitive information (such as private key) discreetly to an alternate screen

+
§network: String
§endpoint: String
§

Sign

Sign a message using your Aleo private key.

+

Fields

§private_key: Option<String>

Specify the account private key of the node

+
§private_key_file: Option<String>

Specify the path to a file containing the account private key of the node

+
§message: String

Message (Aleo value) to sign

+
§raw: bool

When enabled, parses the message as bytes instead of Aleo literals

+
§network: String
§

Verify

Verify a message from an Aleo address.

+

Fields

§address: String

Address to use for verification

+
§signature: String

Signature to verify

+
§message: String

Message (Aleo value) to verify the signature against

+
§raw: bool

When enabled, parses the message as bytes instead of Aleo literals

+
§network: String

Trait Implementations§

source§

impl Command for Account

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 + 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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( +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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for Account

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.
source§

impl Subcommand for Account

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for Account

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.
source§

impl Subcommand for Account

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

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 - 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.

+[FromArgMatches::update_from_arg_matches_mut] Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/example/enum.ExampleVariant.html b/leo_lang/cli/example/enum.ExampleVariant.html index d5a6f39108..4aa318b53d 100644 --- a/leo_lang/cli/example/enum.ExampleVariant.html +++ b/leo_lang/cli/example/enum.ExampleVariant.html @@ -1,49 +1,49 @@ -ExampleVariant in leo_lang::cli::example - Rust

Enum leo_lang::cli::example::ExampleVariant

source ·
pub enum ExampleVariant {
+ExampleVariant in leo_lang::cli::example - Rust
leo_lang::cli::example

Enum ExampleVariant

source
pub enum ExampleVariant {
     Lottery,
     TicTacToe,
     Token,
 }
Expand description

The example programs that can be generated.

-

Variants§

§

Lottery

§

TicTacToe

§

Token

Implementations§

Trait Implementations§

source§

impl Clone for ExampleVariant

source§

fn clone(&self) -> ExampleVariant

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 CommandFactory for ExampleVariant

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 ExampleVariant

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for ExampleVariant

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( +

Variants§

§

Lottery

§

TicTacToe

§

Token

Implementations§

Trait Implementations§

source§

impl Clone for ExampleVariant

source§

fn clone(&self) -> ExampleVariant

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 CommandFactory for ExampleVariant

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 ExampleVariant

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for ExampleVariant

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for ExampleVariant

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.
source§

impl Subcommand for ExampleVariant

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for ExampleVariant

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.
source§

impl Subcommand for ExampleVariant

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand
source§

impl TryFrom<&str> for ExampleVariant

source§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: &str) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for ExampleVariant

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+[FromArgMatches::update_from_arg_matches_mut] Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand
source§

impl TryFrom<&str> for ExampleVariant

source§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(value: &str) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for ExampleVariant

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/example/index.html b/leo_lang/cli/example/index.html index 820a12dea5..1ea7604b26 100644 --- a/leo_lang/cli/example/index.html +++ b/leo_lang/cli/example/index.html @@ -1 +1 @@ -leo_lang::cli::example - Rust

Module leo_lang::cli::example

source ·

Structs§

Enums§

\ No newline at end of file +leo_lang::cli::example - Rust
leo_lang::cli

Module example

source

Structs§

Enums§

\ No newline at end of file diff --git a/leo_lang/cli/example/struct.LeoExample.html b/leo_lang/cli/example/struct.LeoExample.html index 29cf87197d..75c01ee9cd 100644 --- a/leo_lang/cli/example/struct.LeoExample.html +++ b/leo_lang/cli/example/struct.LeoExample.html @@ -1,61 +1,61 @@ -LeoExample in leo_lang::cli::example - Rust

Struct leo_lang::cli::example::LeoExample

source ·
pub struct LeoExample {
-    pub(crate) name: String,
-    pub(crate) network: String,
-    pub(crate) endpoint: String,
+LeoExample in leo_lang::cli::example - Rust
leo_lang::cli::example

Struct LeoExample

source
pub struct LeoExample {
+    pub(crate) name: String,
+    pub(crate) network: String,
+    pub(crate) endpoint: String,
 }
Expand description

Initialize a new Leo example.

-

Fields§

§name: String§network: String§endpoint: String

Trait Implementations§

source§

impl Args for LeoExample

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: String§network: String§endpoint: String

Trait Implementations§

source§

impl Args for LeoExample

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via [FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoExample

source§

type Input = <LeoNew as Command>::Output

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 + 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoExample

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 LeoExample

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoExample

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoExample

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 LeoExample

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoExample

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoExample

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoExample

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/execute/index.html b/leo_lang/cli/execute/index.html index 37acb2b800..ce1b251b4f 100644 --- a/leo_lang/cli/execute/index.html +++ b/leo_lang/cli/execute/index.html @@ -1 +1 @@ -leo_lang::cli::execute - Rust

Module leo_lang::cli::execute

source ·

Structs§

  • Build, Prove and Run Leo program with inputs
\ No newline at end of file +leo_lang::cli::execute - Rust
leo_lang::cli

Module execute

source

Structs§

  • Build, Prove and Run Leo program with inputs
\ No newline at end of file diff --git a/leo_lang/cli/execute/struct.LeoExecute.html b/leo_lang/cli/execute/struct.LeoExecute.html index b9e8a59c2f..5c2dc2bb07 100644 --- a/leo_lang/cli/execute/struct.LeoExecute.html +++ b/leo_lang/cli/execute/struct.LeoExecute.html @@ -1,66 +1,66 @@ -LeoExecute in leo_lang::cli::execute - Rust

Struct leo_lang::cli::execute::LeoExecute

source ·
pub struct LeoExecute {
-    name: String,
-    inputs: Vec<String>,
-    broadcast: bool,
-    local: bool,
-    program: Option<String>,
+LeoExecute in leo_lang::cli::execute - Rust
leo_lang::cli::execute

Struct LeoExecute

source
pub struct LeoExecute {
+    name: String,
+    inputs: Vec<String>,
+    broadcast: bool,
+    local: bool,
+    program: Option<String>,
     fee_options: FeeOptions,
     compiler_options: BuildOptions,
-    file: Option<String>,
-    pub(crate) no_build: bool,
+    file: Option<String>,
+    pub(crate) no_build: bool,
 }
Expand description

Build, Prove and Run Leo program with inputs

-

Fields§

§name: String§inputs: Vec<String>§broadcast: bool§local: bool§program: Option<String>§fee_options: FeeOptions§compiler_options: BuildOptions§file: Option<String>§no_build: bool

Trait Implementations§

source§

impl Args for LeoExecute

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: String§inputs: Vec<String>§broadcast: bool§local: bool§program: Option<String>§fee_options: FeeOptions§compiler_options: BuildOptions§file: Option<String>§no_build: bool

Trait Implementations§

source§

impl Args for LeoExecute

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via [FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoExecute

source§

type Input = <LeoBuild as Command>::Output

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoExecute

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 LeoExecute

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoExecute

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoExecute

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 LeoExecute

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoExecute

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoExecute

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoExecute

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/fn.handle_error.html b/leo_lang/cli/fn.handle_error.html index 787f9c7b7d..47b9d808ce 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
leo_lang::cli

Function 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 63474776b5..86d6994e47 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>(
+parse_record in leo_lang::cli - Rust
leo_lang::cli

Function parse_record

source
pub fn parse_record<N: Network>(
     private_key: &PrivateKey<N>,
-    record: &str,
+    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.

\ 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 e387f38c18..46c73eee20 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
leo_lang::cli

Function 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/index.html b/leo_lang/cli/helpers/context/index.html index ed0a27a7e6..3ec9deae67 100644 --- a/leo_lang/cli/helpers/context/index.html +++ b/leo_lang/cli/helpers/context/index.html @@ -1,2 +1,2 @@ -leo_lang::cli::helpers::context - Rust

Module leo_lang::cli::helpers::context

source ·

Structs§

Fields§

§path: Option<PathBuf>

Path at which the command is called, None when default

+
§home: Option<PathBuf>

Path to use for the Aleo registry, None when default

+
§recursive: bool

Recursive flag.

Implementations§

source§

impl Context

source

pub fn new( - 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.

+ 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. 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.

source

pub fn dotenv_private_key<N: Network>(&self) -> Result<PrivateKey<N>>

Returns the private key from the .env file specified in the directory.

-
source

pub fn dotenv_endpoint(&self) -> Result<String>

Returns the endpoint from the .env file specified in the directory.

-
source

pub fn dotenv_network(&self) -> Result<String>

Returns the network from the .env file specified in the directory.

-
source

pub fn get_endpoint(&self, endpoint: &Option<String>) -> Result<String>

Returns the endpoint to interact with the network. +

source

pub fn dotenv_endpoint(&self) -> Result<String>

Returns the endpoint from the .env file specified in the directory.

+
source

pub fn dotenv_network(&self) -> Result<String>

Returns the network from the .env file specified in the directory.

+
source

pub fn get_endpoint(&self, endpoint: &Option<String>) -> Result<String>

Returns the endpoint to interact with the network. If the --endpoint options is not provided, it will default to the one in the .env file.

-
source

pub fn get_network(&self, network: &Option<String>) -> Result<String>

Returns the network name. +

source

pub fn get_network(&self, network: &Option<String>) -> Result<String>

Returns the network name. If the --network options is not provided, it will default to the one in the .env file.

source

pub fn get_private_key<N: Network>( &self, - private_key: &Option<String>, + private_key: &Option<String>, ) -> Result<PrivateKey<N>>

Returns the private key. If the --private-key options is not provided, it will default to the one in the .env file.

-

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 - 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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+

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 + 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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/helpers/index.html b/leo_lang/cli/helpers/index.html index 04a392220b..ed1bcda177 100644 --- a/leo_lang/cli/helpers/index.html +++ b/leo_lang/cli/helpers/index.html @@ -1 +1 @@ -leo_lang::cli::helpers - Rust

Module leo_lang::cli::helpers

source ·

Modules§

\ No newline at end of file +leo_lang::cli::helpers - Rust
leo_lang::cli

Module helpers

source

Modules§

\ No newline at end of file diff --git a/leo_lang/cli/helpers/logger/fn.init_logger.html b/leo_lang/cli/helpers/logger/fn.init_logger.html index f224664b76..3484abb029 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
leo_lang::cli::helpers::logger

Function 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/logger/index.html b/leo_lang/cli/helpers/logger/index.html index 6b0e213546..66268fb94d 100644 --- a/leo_lang/cli/helpers/logger/index.html +++ b/leo_lang/cli/helpers/logger/index.html @@ -1 +1 @@ -leo_lang::cli::helpers::logger - Rust

Module leo_lang::cli::helpers::logger

source ·

Structs§

Statics§

Functions§

  • Initialize logger with custom format and verbosity.
\ No newline at end of file +leo_lang::cli::helpers::logger - Rust
leo_lang::cli::helpers

Module logger

source

Structs§

Statics§

Functions§

  • Initialize logger with custom format and verbosity.
\ No newline at end of file diff --git a/leo_lang/cli/helpers/logger/static.START.html b/leo_lang/cli/helpers/logger/static.START.html index 06d8b5240d..bc7fbb44d1 100644 --- a/leo_lang/cli/helpers/logger/static.START.html +++ b/leo_lang/cli/helpers/logger/static.START.html @@ -1 +1 @@ -START in leo_lang::cli::helpers::logger - Rust

Static leo_lang::cli::helpers::logger::START

source ·
static START: Once
\ No newline at end of file +START in leo_lang::cli::helpers::logger - Rust
leo_lang::cli::helpers::logger

Static START

source
static START: Once
\ No newline at end of file diff --git a/leo_lang/cli/helpers/logger/struct.Format.html b/leo_lang/cli/helpers/logger/struct.Format.html index f3c5080dea..c120164f87 100644 --- a/leo_lang/cli/helpers/logger/struct.Format.html +++ b/leo_lang/cli/helpers/logger/struct.Format.html @@ -1,24 +1,24 @@ -Format in leo_lang::cli::helpers::logger - Rust

Struct leo_lang::cli::helpers::logger::Format

source ·
pub struct Format<F = Full, T = SystemTime> {
+Format in leo_lang::cli::helpers::logger - Rust
leo_lang::cli::helpers::logger

Struct Format

source
pub struct Format<F = Full, T = SystemTime> {
     format: F,
     pub timer: T,
-    pub ansi: bool,
-    pub display_target: bool,
-    pub display_level: bool,
-    pub display_thread_id: bool,
-    pub display_thread_name: bool,
-}

Fields§

§format: F§timer: T§ansi: bool§display_target: bool§display_level: bool§display_thread_id: bool§display_thread_name: bool

Implementations§

source§

impl<F, T> Format<F, T>

source

pub fn with_timer<T2>(self, timer: T2) -> Format<F, T2>

Use the given timer for log message timestamps.

+ pub ansi: bool, + pub display_target: bool, + pub display_level: bool, + pub display_thread_id: bool, + pub display_thread_name: bool, +}

Fields§

§format: F§timer: T§ansi: bool§display_target: bool§display_level: bool§display_thread_id: bool§display_thread_name: bool

Implementations§

source§

impl<F, T> Format<F, T>

source

pub fn with_timer<T2>(self, timer: T2) -> Format<F, T2>

Use the given timer for log message timestamps.

See time for the provided timer implementations.

Note that using the chrono feature flag enables the additional time formatters ChronoUtc and ChronoLocal.

-
source

pub fn without_time(self) -> Format<F, ()>

Do not emit timestamps with log messages.

-
source

pub fn with_ansi(self, ansi: bool) -> Format<F, T>

Enable ANSI terminal colors for formatted output.

-
source

pub fn with_target(self, display_target: bool) -> Format<F, T>

Sets whether or not an event’s target is displayed.

-
source

pub fn with_level(self, display_level: bool) -> Format<F, T>

Sets whether or not an event’s level is displayed.

-
source

pub fn with_thread_ids(self, display_thread_id: bool) -> Format<F, T>

Sets whether or not the thread ID of the current thread is displayed +

source

pub fn without_time(self) -> Format<F, ()>

Do not emit timestamps with log messages.

+
source

pub fn with_ansi(self, ansi: bool) -> Format<F, T>

Enable ANSI terminal colors for formatted output.

+
source

pub fn with_target(self, display_target: bool) -> Format<F, T>

Sets whether or not an event’s target is displayed.

+
source

pub fn with_level(self, display_level: bool) -> Format<F, T>

Sets whether or not an event’s level is displayed.

+
source

pub fn with_thread_ids(self, display_thread_id: bool) -> Format<F, T>

Sets whether or not the thread ID of the current thread is displayed when formatting events

-
source

pub fn with_thread_names(self, display_thread_name: bool) -> Format<F, T>

Sets whether or not the name of the current thread is displayed +

source

pub fn with_thread_names(self, display_thread_name: bool) -> Format<F, T>

Sets whether or not the name of the current thread is displayed when formatting events

-

Trait Implementations§

source§

impl<F: Clone, T: Clone> Clone for Format<F, T>

source§

fn clone(&self) -> Format<F, T>

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<F: Debug, T: Debug> Debug for Format<F, T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Format<Full, SystemTime>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<S, N, T> FormatEvent<S, N> for Format<Full, T>
where +

Trait Implementations§

source§

impl<F: Clone, T: Clone> Clone for Format<F, T>

source§

fn clone(&self) -> Format<F, T>

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<F: Debug, T: Debug> Debug for Format<F, T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Format<Full, SystemTime>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<S, N, T> FormatEvent<S, N> for Format<Full, T>
where S: Subscriber + for<'a> LookupSpan<'a>, N: for<'a> FormatFields<'a> + 'static, T: FormatTime,

source§

fn format_event( @@ -26,41 +26,41 @@ context: &FmtContext<'_, S, N>, writer: Writer<'_>, event: &Event<'_>, -) -> Result

Write a log message for Event in Context to the given [Writer].

Auto Trait Implementations§

§

impl<F, T> Freeze for Format<F, T>
where - F: Freeze, - T: Freeze,

§

impl<F, T> RefUnwindSafe for Format<F, T>
where - F: RefUnwindSafe, - T: RefUnwindSafe,

§

impl<F, T> Send for Format<F, T>
where - F: Send, - T: Send,

§

impl<F, T> Sync for Format<F, T>
where - F: Sync, - T: Sync,

§

impl<F, T> Unpin for Format<F, T>
where - F: Unpin, - T: Unpin,

§

impl<F, T> UnwindSafe for Format<F, T>
where - F: UnwindSafe, - T: UnwindSafe,

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+) -> Result
Write a log message for Event in Context to the given [Writer].

Auto Trait Implementations§

§

impl<F, T> Freeze for Format<F, T>
where + F: Freeze, + T: Freeze,

§

impl<F, T> RefUnwindSafe for Format<F, T>
where + F: RefUnwindSafe, + T: RefUnwindSafe,

§

impl<F, T> Send for Format<F, T>
where + F: Send, + T: Send,

§

impl<F, T> Sync for Format<F, T>
where + F: Sync, + T: Sync,

§

impl<F, T> Unpin for Format<F, T>
where + F: Unpin, + T: Unpin,

§

impl<F, T> UnwindSafe for Format<F, T>
where + F: UnwindSafe, + T: UnwindSafe,

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/helpers/updater/index.html b/leo_lang/cli/helpers/updater/index.html index c5ea5564ac..07e4de2c83 100644 --- a/leo_lang/cli/helpers/updater/index.html +++ b/leo_lang/cli/helpers/updater/index.html @@ -1 +1 @@ -leo_lang::cli::helpers::updater - Rust

Module leo_lang::cli::helpers::updater

source ·

Structs§

\ No newline at end of file +leo_lang::cli::helpers::updater - Rust
leo_lang::cli::helpers

Module updater

source

Structs§

\ 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 e7492e0bd5..fccfaa41b8 100644 --- a/leo_lang/cli/helpers/updater/struct.Updater.html +++ b/leo_lang/cli/helpers/updater/struct.Updater.html @@ -1,46 +1,46 @@ -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_CACHE_LAST_CHECK_FILE: &'static str = "leo_cache_last_update_check"

source

const LEO_CACHE_VERSION_FILE: &'static str = "leo_cache_latest_version"

source

const LEO_REPO_NAME: &'static str = "leo"

source

const LEO_REPO_OWNER: &'static str = "AleoHQ"

source

const LEO_UPDATE_CHECK_INTERVAL: Duration = _

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 read_latest_version() -> Result<Option<String>, CliError>

Read the latest version from the version file.

-
source

pub fn get_cli_string() -> Result<Option<String>, CliError>

Generate the CLI message if a new version is available.

-
source

pub fn print_cli() -> Result<(), CliError>

Display the CLI message if a new version is available.

-
source

pub fn check_for_updates(force: bool) -> Result<bool, CliError>

Check for updates, respecting the update interval. (Currently once per day.) +Updater in leo_lang::cli::helpers::updater - Rust

leo_lang::cli::helpers::updater

Struct Updater

source
pub struct Updater;

Implementations§

source§

impl Updater

source

const LEO_BIN_NAME: &'static str = "leo"

source

const LEO_CACHE_LAST_CHECK_FILE: &'static str = "leo_cache_last_update_check"

source

const LEO_CACHE_VERSION_FILE: &'static str = "leo_cache_latest_version"

source

const LEO_REPO_NAME: &'static str = "leo"

source

const LEO_REPO_OWNER: &'static str = "AleoHQ"

source

const LEO_UPDATE_CHECK_INTERVAL: Duration = _

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 read_latest_version() -> Result<Option<String>, CliError>

Read the latest version from the version file.

+
source

pub fn get_cli_string() -> Result<Option<String>, CliError>

Generate the CLI message if a new version is available.

+
source

pub fn print_cli() -> Result<(), CliError>

Display the CLI message if a new version is available.

+
source

pub fn check_for_updates(force: bool) -> Result<bool, CliError>

Check for updates, respecting the update interval. (Currently once per day.) If a new version is found, write it to a cache file and alert in every call.

source

fn update_check_files( - cache_dir: &Path, - last_check_file: &Path, - version_file: &Path, - latest_version: &str, -) -> Result<(), CliError>

Updates the check files with the latest version information and timestamp.

+ cache_dir: &Path, + last_check_file: &Path, + version_file: &Path, + latest_version: &str, +) -> Result<(), CliError>

Updates the check files with the latest version information and timestamp.

This function creates the cache directory if it doesn’t exist, writes the current time to the last check file, and writes the latest version to the version file.

-
source

fn should_check_for_updates(last_check_file: &Path) -> Result<bool, CliError>

Determines if an update check should be performed based on the last check time.

+
source

fn should_check_for_updates(last_check_file: &Path) -> Result<bool, CliError>

Determines if an update check should be performed based on the last check time.

This function reads the last check timestamp from a file and compares it with the current time to decide if enough time has passed for a new check.

-
source

fn get_current_time() -> Result<u64, CliError>

Gets the current system time as seconds since the Unix epoch.

-
source

fn get_version_file_path() -> PathBuf

Get the path to the file storing the latest version information.

-
source

fn get_cache_dir() -> PathBuf

Get the cache directory for Leo.

-

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 - 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.

+
source

fn get_current_time() -> Result<u64, CliError>

Gets the current system time as seconds since the Unix epoch.

+
source

fn get_version_file_path() -> PathBuf

Get the path to the file storing the latest version information.

+
source

fn get_cache_dir() -> PathBuf

Get the cache directory for Leo.

+

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/index.html b/leo_lang/cli/index.html index e517087939..034f156853 100644 --- a/leo_lang/cli/index.html +++ b/leo_lang/cli/index.html @@ -1,3 +1,3 @@ -leo_lang::cli - Rust

Module leo_lang::cli

source ·

Modules§

Structs§

  • Compiler Options wrapper for Build command. Also used by other commands which +leo_lang::cli - Rust
    leo_lang

    Module cli

    source

    Modules§

    Structs§

    • Compiler Options wrapper for Build command. Also used by other commands which require Build command output as their input.
    • CLI Arguments entry point - includes global parameters and subcommands
    • Deploys an Aleo program.
    • On Chain Execution Options to set preferences for keys, fees and networks. -Used by Execute and Deploy commands.
    • Add a new on-chain or local dependency to the current package.
    • Compile and build program command.
    • Clean outputs folder command
    • Initialize a new Leo example.
    • Build, Prove and Run Leo program with inputs
    • Create new Leo project
    • Query live data from the Aleo network.
    • Remove a dependency from the current package.
    • Build, Prove and Run Leo program with inputs
    • Update Leo to the latest version

    Enums§

    • Commands to manage Aleo accounts.

    Constants§

    Traits§

    • Base trait for the Leo CLI, see methods and their documentation for details.

    Functions§

    \ No newline at end of file +Used by Execute and Deploy commands.
  • Add a new on-chain or local dependency to the current package.
  • Compile and build program command.
  • Clean outputs folder command
  • Initialize a new Leo example.
  • Build, Prove and Run Leo program with inputs
  • Create new Leo project
  • Query live data from the Aleo network.
  • Remove a dependency from the current package.
  • Build, Prove and Run Leo program with inputs
  • Update Leo to the latest version

Enums§

  • Commands to manage Aleo accounts.

Constants§

Traits§

  • Base trait for the Leo CLI, see methods and their documentation for details.

Functions§

\ No newline at end of file diff --git a/leo_lang/cli/logger/fn.init_logger.html b/leo_lang/cli/logger/fn.init_logger.html index afbdf6ec80..61b7eca6cd 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
leo_lang::cli::logger

Function 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/logger/index.html b/leo_lang/cli/logger/index.html index 105f658e69..aeea959314 100644 --- a/leo_lang/cli/logger/index.html +++ b/leo_lang/cli/logger/index.html @@ -1 +1 @@ -leo_lang::cli::logger - Rust

Module leo_lang::cli::logger

source ·

Structs§

Functions§

  • Initialize logger with custom format and verbosity.
\ No newline at end of file +leo_lang::cli::logger - Rust
leo_lang::cli

Module logger

source

Structs§

Functions§

  • Initialize logger with custom format and verbosity.
\ No newline at end of file diff --git a/leo_lang/cli/logger/struct.Format.html b/leo_lang/cli/logger/struct.Format.html index 55ba5dabfe..065b9c4443 100644 --- a/leo_lang/cli/logger/struct.Format.html +++ b/leo_lang/cli/logger/struct.Format.html @@ -1,24 +1,24 @@ -Format in leo_lang::cli::logger - Rust

Struct leo_lang::cli::logger::Format

source ·
pub struct Format<F = Full, T = SystemTime> {
+Format in leo_lang::cli::logger - Rust
leo_lang::cli::logger

Struct Format

source
pub struct Format<F = Full, T = SystemTime> {
     format: F,
     pub timer: T,
-    pub ansi: bool,
-    pub display_target: bool,
-    pub display_level: bool,
-    pub display_thread_id: bool,
-    pub display_thread_name: bool,
-}

Fields§

§format: F§timer: T§ansi: bool§display_target: bool§display_level: bool§display_thread_id: bool§display_thread_name: bool

Implementations§

source§

impl<F, T> Format<F, T>

source

pub fn with_timer<T2>(self, timer: T2) -> Format<F, T2>

Use the given timer for log message timestamps.

+ pub ansi: bool, + pub display_target: bool, + pub display_level: bool, + pub display_thread_id: bool, + pub display_thread_name: bool, +}

Fields§

§format: F§timer: T§ansi: bool§display_target: bool§display_level: bool§display_thread_id: bool§display_thread_name: bool

Implementations§

source§

impl<F, T> Format<F, T>

source

pub fn with_timer<T2>(self, timer: T2) -> Format<F, T2>

Use the given timer for log message timestamps.

See time for the provided timer implementations.

Note that using the chrono feature flag enables the additional time formatters ChronoUtc and ChronoLocal.

-
source

pub fn without_time(self) -> Format<F, ()>

Do not emit timestamps with log messages.

-
source

pub fn with_ansi(self, ansi: bool) -> Format<F, T>

Enable ANSI terminal colors for formatted output.

-
source

pub fn with_target(self, display_target: bool) -> Format<F, T>

Sets whether or not an event’s target is displayed.

-
source

pub fn with_level(self, display_level: bool) -> Format<F, T>

Sets whether or not an event’s level is displayed.

-
source

pub fn with_thread_ids(self, display_thread_id: bool) -> Format<F, T>

Sets whether or not the thread ID of the current thread is displayed +

source

pub fn without_time(self) -> Format<F, ()>

Do not emit timestamps with log messages.

+
source

pub fn with_ansi(self, ansi: bool) -> Format<F, T>

Enable ANSI terminal colors for formatted output.

+
source

pub fn with_target(self, display_target: bool) -> Format<F, T>

Sets whether or not an event’s target is displayed.

+
source

pub fn with_level(self, display_level: bool) -> Format<F, T>

Sets whether or not an event’s level is displayed.

+
source

pub fn with_thread_ids(self, display_thread_id: bool) -> Format<F, T>

Sets whether or not the thread ID of the current thread is displayed when formatting events

-
source

pub fn with_thread_names(self, display_thread_name: bool) -> Format<F, T>

Sets whether or not the name of the current thread is displayed +

source

pub fn with_thread_names(self, display_thread_name: bool) -> Format<F, T>

Sets whether or not the name of the current thread is displayed when formatting events

-

Trait Implementations§

source§

impl<F: Clone, T: Clone> Clone for Format<F, T>

source§

fn clone(&self) -> Format<F, T>

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<F: Debug, T: Debug> Debug for Format<F, T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Format<Full, SystemTime>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<S, N, T> FormatEvent<S, N> for Format<Full, T>
where +

Trait Implementations§

source§

impl<F: Clone, T: Clone> Clone for Format<F, T>

source§

fn clone(&self) -> Format<F, T>

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<F: Debug, T: Debug> Debug for Format<F, T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Format<Full, SystemTime>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<S, N, T> FormatEvent<S, N> for Format<Full, T>
where S: Subscriber + for<'a> LookupSpan<'a>, N: for<'a> FormatFields<'a> + 'static, T: FormatTime,

source§

fn format_event( @@ -26,41 +26,41 @@ context: &FmtContext<'_, S, N>, writer: Writer<'_>, event: &Event<'_>, -) -> Result

Write a log message for Event in Context to the given [Writer].

Auto Trait Implementations§

§

impl<F, T> Freeze for Format<F, T>
where - F: Freeze, - T: Freeze,

§

impl<F, T> RefUnwindSafe for Format<F, T>
where - F: RefUnwindSafe, - T: RefUnwindSafe,

§

impl<F, T> Send for Format<F, T>
where - F: Send, - T: Send,

§

impl<F, T> Sync for Format<F, T>
where - F: Sync, - T: Sync,

§

impl<F, T> Unpin for Format<F, T>
where - F: Unpin, - T: Unpin,

§

impl<F, T> UnwindSafe for Format<F, T>
where - F: UnwindSafe, - T: UnwindSafe,

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+) -> Result
Write a log message for Event in Context to the given [Writer].

Auto Trait Implementations§

§

impl<F, T> Freeze for Format<F, T>
where + F: Freeze, + T: Freeze,

§

impl<F, T> RefUnwindSafe for Format<F, T>
where + F: RefUnwindSafe, + T: RefUnwindSafe,

§

impl<F, T> Send for Format<F, T>
where + F: Send, + T: Send,

§

impl<F, T> Sync for Format<F, T>
where + F: Sync, + T: Sync,

§

impl<F, T> Unpin for Format<F, T>
where + F: Unpin, + T: Unpin,

§

impl<F, T> UnwindSafe for Format<F, T>
where + F: UnwindSafe, + T: UnwindSafe,

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/new/index.html b/leo_lang/cli/new/index.html index 18b4387705..2951cc8fca 100644 --- a/leo_lang/cli/new/index.html +++ b/leo_lang/cli/new/index.html @@ -1 +1 @@ -leo_lang::cli::new - Rust

Module leo_lang::cli::new

source ·

Structs§

\ No newline at end of file +leo_lang::cli::new - Rust
leo_lang::cli

Module new

source

Structs§

\ No newline at end of file diff --git a/leo_lang/cli/new/struct.LeoNew.html b/leo_lang/cli/new/struct.LeoNew.html index 8dc8cc4595..7d03bb78a9 100644 --- a/leo_lang/cli/new/struct.LeoNew.html +++ b/leo_lang/cli/new/struct.LeoNew.html @@ -1,60 +1,60 @@ -LeoNew in leo_lang::cli::new - Rust

Struct leo_lang::cli::new::LeoNew

source ·
pub struct LeoNew {
-    pub(crate) name: String,
-    pub(crate) network: String,
-    pub(crate) endpoint: String,
+LeoNew in leo_lang::cli::new - Rust
leo_lang::cli::new

Struct LeoNew

source
pub struct LeoNew {
+    pub(crate) name: String,
+    pub(crate) network: String,
+    pub(crate) endpoint: String,
 }
Expand description

Create new Leo project

-

Fields§

§name: String§network: String§endpoint: String

Trait Implementations§

source§

impl Args for LeoNew

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: String§network: String§endpoint: String

Trait Implementations§

source§

impl Args for LeoNew

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoNew

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoNew

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoNew

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 LeoNew

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoNew

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoNew

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 LeoNew

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoNew

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoNew

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for LeoNew

§

impl RefUnwindSafe for LeoNew

§

impl Send for LeoNew

§

impl Sync for LeoNew

§

impl Unpin for LeoNew

§

impl UnwindSafe for LeoNew

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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoNew

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for LeoNew

§

impl RefUnwindSafe for LeoNew

§

impl Send for LeoNew

§

impl Sync for LeoNew

§

impl Unpin for LeoNew

§

impl UnwindSafe for LeoNew

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/query/enum.QueryCommands.html b/leo_lang/cli/query/enum.QueryCommands.html index 514760ef6c..6454a895c7 100644 --- a/leo_lang/cli/query/enum.QueryCommands.html +++ b/leo_lang/cli/query/enum.QueryCommands.html @@ -1,4 +1,4 @@ -QueryCommands in leo_lang::cli::query - Rust

Enum leo_lang::cli::query::QueryCommands

source ·
pub enum QueryCommands {
+QueryCommands in leo_lang::cli::query - Rust
leo_lang::cli::query

Enum QueryCommands

source
pub enum QueryCommands {
     Block {
         command: LeoBlock,
     },
@@ -20,45 +20,45 @@
     Peers {
         command: LeoPeers,
     },
-}

Variants§

§

Block

Fields

§command: LeoBlock
§

Transaction

Fields

§

Program

Fields

§command: LeoProgram
§

Stateroot

Fields

§command: StateRoot
§

Committee

Fields

§

Mempool

Fields

§command: LeoMempool
§

Peers

Fields

§command: LeoPeers

Trait Implementations§

source§

impl CommandFactory for QueryCommands

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 QueryCommands

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for QueryCommands

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( +}

Variants§

§

Block

Fields

§command: LeoBlock
§

Transaction

Fields

§

Program

Fields

§command: LeoProgram
§

Stateroot

Fields

§command: StateRoot
§

Committee

Fields

§

Mempool

Fields

§command: LeoMempool
§

Peers

Fields

§command: LeoPeers

Trait Implementations§

source§

impl CommandFactory for QueryCommands

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 QueryCommands

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for QueryCommands

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for QueryCommands

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.
source§

impl Subcommand for QueryCommands

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for QueryCommands

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.
source§

impl Subcommand for QueryCommands

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

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 - 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.

+[FromArgMatches::update_from_arg_matches_mut] Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/query/index.html b/leo_lang/cli/query/index.html index 74aa9e3d58..f8208aa1e0 100644 --- a/leo_lang/cli/query/index.html +++ b/leo_lang/cli/query/index.html @@ -1 +1 @@ -leo_lang::cli::query - Rust

Module leo_lang::cli::query

source ·

Modules§

Structs§

  • Query program source code and live mapping values.
  • Query live data from the Aleo network.

Enums§

\ No newline at end of file +leo_lang::cli::query - Rust
leo_lang::cli

Module query

source

Modules§

Structs§

  • Query program source code and live mapping values.
  • Query live data from the Aleo network.

Enums§

\ No newline at end of file diff --git a/leo_lang/cli/query/program/index.html b/leo_lang/cli/query/program/index.html index eee94c19cb..fa0340e157 100644 --- a/leo_lang/cli/query/program/index.html +++ b/leo_lang/cli/query/program/index.html @@ -1 +1 @@ -leo_lang::cli::query::program - Rust

Module leo_lang::cli::query::program

source ·

Structs§

  • Query program source code and live mapping values.
\ No newline at end of file +leo_lang::cli::query::program - Rust
leo_lang::cli::query

Module program

source

Structs§

  • Query program source code and live mapping values.
\ No newline at end of file diff --git a/leo_lang/cli/query/program/struct.LeoProgram.html b/leo_lang/cli/query/program/struct.LeoProgram.html index c32863f352..c87f39910c 100644 --- a/leo_lang/cli/query/program/struct.LeoProgram.html +++ b/leo_lang/cli/query/program/struct.LeoProgram.html @@ -1,60 +1,60 @@ -LeoProgram in leo_lang::cli::query::program - Rust

Struct leo_lang::cli::query::program::LeoProgram

source ·
pub struct LeoProgram {
-    pub(crate) name: String,
-    pub(crate) mappings: bool,
-    pub(crate) mapping_value: Option<Vec<String>>,
+LeoProgram in leo_lang::cli::query::program - Rust
leo_lang::cli::query::program

Struct LeoProgram

source
pub struct LeoProgram {
+    pub(crate) name: String,
+    pub(crate) mappings: bool,
+    pub(crate) mapping_value: Option<Vec<String>>,
 }
Expand description

Query program source code and live mapping values.

-

Fields§

§name: String§mappings: bool§mapping_value: Option<Vec<String>>

Trait Implementations§

source§

impl Args for LeoProgram

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: String§mappings: bool§mapping_value: Option<Vec<String>>

Trait Implementations§

source§

impl Args for LeoProgram

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoProgram

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoProgram

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = String

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
source§

type Output = String

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 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoProgram

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 LeoProgram

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoProgram

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoProgram

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 LeoProgram

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoProgram

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoProgram

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoProgram

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/query/struct.LeoProgram.html b/leo_lang/cli/query/struct.LeoProgram.html index c5188a0050..8f8f7697ff 100644 --- a/leo_lang/cli/query/struct.LeoProgram.html +++ b/leo_lang/cli/query/struct.LeoProgram.html @@ -1,60 +1,60 @@ -LeoProgram in leo_lang::cli::query - Rust

Struct leo_lang::cli::query::LeoProgram

source ·
pub struct LeoProgram {
-    pub(crate) name: String,
-    pub(crate) mappings: bool,
-    pub(crate) mapping_value: Option<Vec<String>>,
+LeoProgram in leo_lang::cli::query - Rust
leo_lang::cli::query

Struct LeoProgram

source
pub struct LeoProgram {
+    pub(crate) name: String,
+    pub(crate) mappings: bool,
+    pub(crate) mapping_value: Option<Vec<String>>,
 }
Expand description

Query program source code and live mapping values.

-

Fields§

§name: String§mappings: bool§mapping_value: Option<Vec<String>>

Trait Implementations§

source§

impl Args for LeoProgram

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: String§mappings: bool§mapping_value: Option<Vec<String>>

Trait Implementations§

source§

impl Args for LeoProgram

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoProgram

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoProgram

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = String

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
source§

type Output = String

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 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoProgram

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 LeoProgram

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoProgram

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoProgram

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 LeoProgram

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoProgram

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoProgram

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoProgram

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/query/struct.LeoQuery.html b/leo_lang/cli/query/struct.LeoQuery.html index 81a6c7e4ae..bbb846dbeb 100644 --- a/leo_lang/cli/query/struct.LeoQuery.html +++ b/leo_lang/cli/query/struct.LeoQuery.html @@ -1,60 +1,60 @@ -LeoQuery in leo_lang::cli::query - Rust

Struct leo_lang::cli::query::LeoQuery

source ·
pub struct LeoQuery {
-    pub endpoint: Option<String>,
-    pub(crate) network: Option<String>,
+LeoQuery in leo_lang::cli::query - Rust
leo_lang::cli::query

Struct LeoQuery

source
pub struct LeoQuery {
+    pub endpoint: Option<String>,
+    pub(crate) network: Option<String>,
     pub command: QueryCommands,
 }
Expand description

Query live data from the Aleo network.

-

Fields§

§endpoint: Option<String>§network: Option<String>§command: QueryCommands

Trait Implementations§

source§

impl Args for LeoQuery

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§endpoint: Option<String>§network: Option<String>§command: QueryCommands

Trait Implementations§

source§

impl Args for LeoQuery

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoQuery

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoQuery

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = String

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
source§

type Output = String

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 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoQuery

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 LeoQuery

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoQuery

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoQuery

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 LeoQuery

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoQuery

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoQuery

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoQuery

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/remove/index.html b/leo_lang/cli/remove/index.html index 331f76cdab..076f8c1cf0 100644 --- a/leo_lang/cli/remove/index.html +++ b/leo_lang/cli/remove/index.html @@ -1 +1 @@ -leo_lang::cli::remove - Rust

Module leo_lang::cli::remove

source ·

Structs§

  • Remove a dependency from the current package.
\ No newline at end of file +leo_lang::cli::remove - Rust
leo_lang::cli

Module remove

source

Structs§

  • Remove a dependency from the current package.
\ No newline at end of file diff --git a/leo_lang/cli/remove/struct.LeoRemove.html b/leo_lang/cli/remove/struct.LeoRemove.html index 27fe404673..5076901d7b 100644 --- a/leo_lang/cli/remove/struct.LeoRemove.html +++ b/leo_lang/cli/remove/struct.LeoRemove.html @@ -1,59 +1,59 @@ -LeoRemove in leo_lang::cli::remove - Rust

Struct leo_lang::cli::remove::LeoRemove

source ·
pub struct LeoRemove {
-    pub(crate) name: Option<String>,
-    pub(crate) all: bool,
+LeoRemove in leo_lang::cli::remove - Rust
leo_lang::cli::remove

Struct LeoRemove

source
pub struct LeoRemove {
+    pub(crate) name: Option<String>,
+    pub(crate) all: bool,
 }
Expand description

Remove a dependency from the current package.

-

Fields§

§name: Option<String>§all: bool

Trait Implementations§

source§

impl Args for LeoRemove

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: Option<String>§all: bool

Trait Implementations§

source§

impl Args for LeoRemove

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoRemove

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoRemove

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoRemove

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 LeoRemove

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoRemove

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoRemove

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 LeoRemove

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoRemove

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoRemove

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoRemove

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/run/index.html b/leo_lang/cli/run/index.html index 7f7fab8b81..4ef4c0659b 100644 --- a/leo_lang/cli/run/index.html +++ b/leo_lang/cli/run/index.html @@ -1 +1 @@ -leo_lang::cli::run - Rust

Module leo_lang::cli::run

source ·

Structs§

  • Build, Prove and Run Leo program with inputs
\ No newline at end of file +leo_lang::cli::run - Rust
leo_lang::cli

Module run

source

Structs§

  • Build, Prove and Run Leo program with inputs
\ No newline at end of file diff --git a/leo_lang/cli/run/struct.LeoRun.html b/leo_lang/cli/run/struct.LeoRun.html index 54348fbc57..863fbe1a1e 100644 --- a/leo_lang/cli/run/struct.LeoRun.html +++ b/leo_lang/cli/run/struct.LeoRun.html @@ -1,61 +1,61 @@ -LeoRun in leo_lang::cli::run - Rust

Struct leo_lang::cli::run::LeoRun

source ·
pub struct LeoRun {
-    pub(crate) name: String,
-    pub(crate) inputs: Vec<String>,
-    pub(crate) file: Option<String>,
+LeoRun in leo_lang::cli::run - Rust
leo_lang::cli::run

Struct LeoRun

source
pub struct LeoRun {
+    pub(crate) name: String,
+    pub(crate) inputs: Vec<String>,
+    pub(crate) file: Option<String>,
     pub(crate) compiler_options: BuildOptions,
 }
Expand description

Build, Prove and Run Leo program with inputs

-

Fields§

§name: String§inputs: Vec<String>§file: Option<String>§compiler_options: BuildOptions

Trait Implementations§

source§

impl Args for LeoRun

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: String§inputs: Vec<String>§file: Option<String>§compiler_options: BuildOptions

Trait Implementations§

source§

impl Args for LeoRun

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via [FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoRun

source§

type Input = <LeoBuild as Command>::Output

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoRun

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 LeoRun

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoRun

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoRun

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 LeoRun

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoRun

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoRun

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for LeoRun

§

impl RefUnwindSafe for LeoRun

§

impl Send for LeoRun

§

impl Sync for LeoRun

§

impl Unpin for LeoRun

§

impl UnwindSafe for LeoRun

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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoRun

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for LeoRun

§

impl RefUnwindSafe for LeoRun

§

impl Send for LeoRun

§

impl Sync for LeoRun

§

impl Unpin for LeoRun

§

impl UnwindSafe for LeoRun

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/struct.BuildOptions.html b/leo_lang/cli/struct.BuildOptions.html index 159e641f6c..dbc4a913d3 100644 --- a/leo_lang/cli/struct.BuildOptions.html +++ b/leo_lang/cli/struct.BuildOptions.html @@ -1,67 +1,67 @@ -BuildOptions in leo_lang::cli - Rust

Struct leo_lang::cli::BuildOptions

source ·
pub struct BuildOptions {
Show 20 fields - pub endpoint: Option<String>, - pub(crate) network: Option<String>, - pub non_recursive: bool, - pub offline: bool, - pub enable_symbol_table_spans: bool, - pub enable_initial_symbol_table_snapshot: bool, - pub enable_type_checked_symbol_table_snapshot: bool, - pub enable_unrolled_symbol_table_snapshot: bool, - pub enable_ast_spans: bool, - pub enable_dce: bool, - pub enable_all_ast_snapshots: bool, - pub enable_initial_ast_snapshot: bool, - pub enable_unrolled_ast_snapshot: bool, - pub enable_ssa_ast_snapshot: bool, - pub enable_flattened_ast_snapshot: bool, - pub enable_destructured_ast_snapshot: bool, - pub enable_inlined_ast_snapshot: bool, - pub enable_dce_ast_snapshot: bool, - pub conditional_block_max_depth: usize, - pub disable_conditional_branch_type_checking: bool, +BuildOptions in leo_lang::cli - Rust
leo_lang::cli

Struct BuildOptions

source
pub struct BuildOptions {
Show 20 fields + pub endpoint: Option<String>, + pub(crate) network: Option<String>, + pub non_recursive: bool, + pub offline: bool, + pub enable_symbol_table_spans: bool, + pub enable_initial_symbol_table_snapshot: bool, + pub enable_type_checked_symbol_table_snapshot: bool, + pub enable_unrolled_symbol_table_snapshot: bool, + pub enable_ast_spans: bool, + pub enable_dce: bool, + pub enable_all_ast_snapshots: bool, + pub enable_initial_ast_snapshot: bool, + pub enable_unrolled_ast_snapshot: bool, + pub enable_ssa_ast_snapshot: bool, + pub enable_flattened_ast_snapshot: bool, + pub enable_destructured_ast_snapshot: bool, + pub enable_inlined_ast_snapshot: bool, + pub enable_dce_ast_snapshot: bool, + pub conditional_block_max_depth: usize, + pub disable_conditional_branch_type_checking: bool,
}
Expand description

Compiler Options wrapper for Build command. Also used by other commands which require Build command output as their input.

-

Fields§

§endpoint: Option<String>§network: Option<String>§non_recursive: bool§offline: bool§enable_symbol_table_spans: bool§enable_initial_symbol_table_snapshot: bool§enable_type_checked_symbol_table_snapshot: bool§enable_unrolled_symbol_table_snapshot: bool§enable_ast_spans: bool§enable_dce: bool§enable_all_ast_snapshots: bool§enable_initial_ast_snapshot: bool§enable_unrolled_ast_snapshot: bool§enable_ssa_ast_snapshot: bool§enable_flattened_ast_snapshot: bool§enable_destructured_ast_snapshot: bool§enable_inlined_ast_snapshot: bool§enable_dce_ast_snapshot: bool§conditional_block_max_depth: usize§disable_conditional_branch_type_checking: bool

Trait Implementations§

source§

impl Args for BuildOptions

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§endpoint: Option<String>§network: Option<String>§non_recursive: bool§offline: bool§enable_symbol_table_spans: bool§enable_initial_symbol_table_snapshot: bool§enable_type_checked_symbol_table_snapshot: bool§enable_unrolled_symbol_table_snapshot: bool§enable_ast_spans: bool§enable_dce: bool§enable_all_ast_snapshots: bool§enable_initial_ast_snapshot: bool§enable_unrolled_ast_snapshot: bool§enable_ssa_ast_snapshot: bool§enable_flattened_ast_snapshot: bool§enable_destructured_ast_snapshot: bool§enable_inlined_ast_snapshot: bool§enable_dce_ast_snapshot: bool§conditional_block_max_depth: usize§disable_conditional_branch_type_checking: bool

Trait Implementations§

source§

impl Args for BuildOptions

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Clone for BuildOptions

source§

fn clone(&self) -> BuildOptions

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 CommandFactory for BuildOptions

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 BuildOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for BuildOptions

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<BuildOptions> for CompilerOptions

source§

fn from(options: BuildOptions) -> Self

Converts to this type from the input type.
source§

impl FromArgMatches for BuildOptions

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( +[FromArgMatches::update_from_arg_matches_mut] Read more

source§

impl Clone for BuildOptions

source§

fn clone(&self) -> BuildOptions

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 CommandFactory for BuildOptions

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 BuildOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for BuildOptions

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<BuildOptions> for CompilerOptions

source§

fn from(options: BuildOptions) -> Self

Converts to this type from the input type.
source§

impl FromArgMatches for BuildOptions

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for BuildOptions

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for BuildOptions

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/struct.CLI.html b/leo_lang/cli/struct.CLI.html index bd4a05834d..2a886f05e6 100644 --- a/leo_lang/cli/struct.CLI.html +++ b/leo_lang/cli/struct.CLI.html @@ -1,49 +1,49 @@ -CLI in leo_lang::cli - Rust

Struct leo_lang::cli::CLI

source ·
pub struct CLI {
-    debug: bool,
-    quiet: bool,
+CLI in leo_lang::cli - Rust
leo_lang::cli

Struct CLI

source
pub struct CLI {
+    debug: bool,
+    quiet: bool,
     command: Commands,
-    path: Option<PathBuf>,
-    pub home: Option<PathBuf>,
+    path: Option<PathBuf>,
+    pub home: Option<PathBuf>,
 }
Expand description

CLI Arguments entry point - includes global parameters and subcommands

-

Fields§

§debug: bool§quiet: bool§command: Commands§path: Option<PathBuf>§home: Option<PathBuf>

Trait Implementations§

source§

impl Args for CLI

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§debug: bool§quiet: bool§command: Commands§path: Option<PathBuf>§home: Option<PathBuf>

Trait Implementations§

source§

impl Args for CLI

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl CommandFactory for CLI

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 CLI

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for CLI

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( +[FromArgMatches::update_from_arg_matches_mut] Read more

source§

impl CommandFactory for CLI

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 CLI

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for CLI

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for CLI

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for CLI

§

impl RefUnwindSafe for CLI

§

impl Send for CLI

§

impl Sync for CLI

§

impl Unpin for CLI

§

impl UnwindSafe for CLI

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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for CLI

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for CLI

§

impl RefUnwindSafe for CLI

§

impl Send for CLI

§

impl Sync for CLI

§

impl Unpin for CLI

§

impl UnwindSafe for CLI

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/struct.Deploy.html b/leo_lang/cli/struct.Deploy.html index 4c39c52433..d0527b2f2e 100644 --- a/leo_lang/cli/struct.Deploy.html +++ b/leo_lang/cli/struct.Deploy.html @@ -1,62 +1,62 @@ -Deploy in leo_lang::cli - Rust

Struct leo_lang::cli::Deploy

source ·
pub struct Deploy {
+Deploy in leo_lang::cli - Rust
leo_lang::cli

Struct Deploy

source
pub struct Deploy {
     pub(crate) fee_options: FeeOptions,
-    pub(crate) no_build: bool,
-    pub(crate) recursive: bool,
-    pub(crate) wait: u64,
+    pub(crate) no_build: bool,
+    pub(crate) recursive: bool,
+    pub(crate) wait: u64,
     pub(crate) options: BuildOptions,
 }
Expand description

Deploys an Aleo program.

-

Fields§

§fee_options: FeeOptions§no_build: bool§recursive: bool§wait: u64§options: BuildOptions

Trait Implementations§

source§

impl Args for Deploy

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§fee_options: FeeOptions§no_build: bool§recursive: bool§wait: u64§options: BuildOptions

Trait Implementations§

source§

impl Args for Deploy

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for Deploy

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for Deploy

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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( +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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for Deploy

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for Deploy

§

impl RefUnwindSafe for Deploy

§

impl Send for Deploy

§

impl Sync for Deploy

§

impl Unpin for Deploy

§

impl UnwindSafe for Deploy

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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for Deploy

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for Deploy

§

impl RefUnwindSafe for Deploy

§

impl Send for Deploy

§

impl Sync for Deploy

§

impl Unpin for Deploy

§

impl UnwindSafe for Deploy

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/struct.FeeOptions.html b/leo_lang/cli/struct.FeeOptions.html index baa5b60658..9a8ab5f4bb 100644 --- a/leo_lang/cli/struct.FeeOptions.html +++ b/leo_lang/cli/struct.FeeOptions.html @@ -1,52 +1,52 @@ -FeeOptions in leo_lang::cli - Rust

Struct leo_lang::cli::FeeOptions

source ·
pub struct FeeOptions {
-    pub(crate) yes: bool,
-    pub(crate) dry_run: bool,
-    pub(crate) priority_fee: u64,
-    pub(crate) private_key: Option<String>,
-    record: Option<String>,
+FeeOptions in leo_lang::cli - Rust
leo_lang::cli

Struct FeeOptions

source
pub struct FeeOptions {
+    pub(crate) yes: bool,
+    pub(crate) dry_run: bool,
+    pub(crate) priority_fee: u64,
+    pub(crate) private_key: Option<String>,
+    record: Option<String>,
 }
Expand description

On Chain Execution Options to set preferences for keys, fees and networks. Used by Execute and Deploy commands.

-

Fields§

§yes: bool§dry_run: bool§priority_fee: u64§private_key: Option<String>§record: Option<String>

Trait Implementations§

source§

impl Args for FeeOptions

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§yes: bool§dry_run: bool§priority_fee: u64§private_key: Option<String>§record: Option<String>

Trait Implementations§

source§

impl Args for FeeOptions

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Clone for FeeOptions

source§

fn clone(&self) -> FeeOptions

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 CommandFactory for FeeOptions

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 FeeOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for FeeOptions

source§

fn default() -> FeeOptions

Returns the “default value” for a type. Read more
source§

impl FromArgMatches for FeeOptions

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( +[FromArgMatches::update_from_arg_matches_mut] Read more

source§

impl Clone for FeeOptions

source§

fn clone(&self) -> FeeOptions

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 CommandFactory for FeeOptions

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 FeeOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for FeeOptions

source§

fn default() -> FeeOptions

Returns the “default value” for a type. Read more
source§

impl FromArgMatches for FeeOptions

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for FeeOptions

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for FeeOptions

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/struct.LeoAdd.html b/leo_lang/cli/struct.LeoAdd.html index 51b298053a..32eb86e9e5 100644 --- a/leo_lang/cli/struct.LeoAdd.html +++ b/leo_lang/cli/struct.LeoAdd.html @@ -1,61 +1,61 @@ -LeoAdd in leo_lang::cli - Rust

Struct leo_lang::cli::LeoAdd

source ·
pub struct LeoAdd {
-    pub(crate) name: String,
-    pub(crate) local: Option<PathBuf>,
-    pub(crate) network: String,
-    pub(crate) clear: bool,
+LeoAdd in leo_lang::cli - Rust
leo_lang::cli

Struct LeoAdd

source
pub struct LeoAdd {
+    pub(crate) name: String,
+    pub(crate) local: Option<PathBuf>,
+    pub(crate) network: String,
+    pub(crate) clear: bool,
 }
Expand description

Add a new on-chain or local dependency to the current package.

-

Fields§

§name: String§local: Option<PathBuf>§network: String§clear: bool

Trait Implementations§

source§

impl Args for LeoAdd

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: String§local: Option<PathBuf>§network: String§clear: bool

Trait Implementations§

source§

impl Args for LeoAdd

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoAdd

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoAdd

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoAdd

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 LeoAdd

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoAdd

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoAdd

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 LeoAdd

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoAdd

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoAdd

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for LeoAdd

§

impl RefUnwindSafe for LeoAdd

§

impl Send for LeoAdd

§

impl Sync for LeoAdd

§

impl Unpin for LeoAdd

§

impl UnwindSafe for LeoAdd

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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoAdd

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for LeoAdd

§

impl RefUnwindSafe for LeoAdd

§

impl Send for LeoAdd

§

impl Sync for LeoAdd

§

impl Unpin for LeoAdd

§

impl UnwindSafe for LeoAdd

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/struct.LeoBuild.html b/leo_lang/cli/struct.LeoBuild.html index d03a218b6b..818216f8c4 100644 --- a/leo_lang/cli/struct.LeoBuild.html +++ b/leo_lang/cli/struct.LeoBuild.html @@ -1,58 +1,58 @@ -LeoBuild in leo_lang::cli - Rust

Struct leo_lang::cli::LeoBuild

source ·
pub struct LeoBuild {
+LeoBuild in leo_lang::cli - Rust
leo_lang::cli

Struct LeoBuild

source
pub struct LeoBuild {
     pub(crate) options: BuildOptions,
 }
Expand description

Compile and build program command.

-

Fields§

§options: BuildOptions

Trait Implementations§

source§

impl Args for LeoBuild

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§options: BuildOptions

Trait Implementations§

source§

impl Args for LeoBuild

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoBuild

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoBuild

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoBuild

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 LeoBuild

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoBuild

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoBuild

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 LeoBuild

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoBuild

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoBuild

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoBuild

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/struct.LeoClean.html b/leo_lang/cli/struct.LeoClean.html index c6475bfff8..39691b4539 100644 --- a/leo_lang/cli/struct.LeoClean.html +++ b/leo_lang/cli/struct.LeoClean.html @@ -1,56 +1,56 @@ -LeoClean in leo_lang::cli - Rust

Struct leo_lang::cli::LeoClean

source ·
pub struct LeoClean {}
Expand description

Clean outputs folder command

-

Trait Implementations§

source§

impl Args for LeoClean

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +LeoClean in leo_lang::cli - Rust
leo_lang::cli

Struct LeoClean

source
pub struct LeoClean {}
Expand description

Clean outputs folder command

+

Trait Implementations§

source§

impl Args for LeoClean

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoClean

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoClean

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoClean

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 LeoClean

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoClean

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoClean

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 LeoClean

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoClean

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoClean

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoClean

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/struct.LeoExample.html b/leo_lang/cli/struct.LeoExample.html index 1aaff7fe4c..c689723e0b 100644 --- a/leo_lang/cli/struct.LeoExample.html +++ b/leo_lang/cli/struct.LeoExample.html @@ -1,61 +1,61 @@ -LeoExample in leo_lang::cli - Rust

Struct leo_lang::cli::LeoExample

source ·
pub struct LeoExample {
-    pub(crate) name: String,
-    pub(crate) network: String,
-    pub(crate) endpoint: String,
+LeoExample in leo_lang::cli - Rust
leo_lang::cli

Struct LeoExample

source
pub struct LeoExample {
+    pub(crate) name: String,
+    pub(crate) network: String,
+    pub(crate) endpoint: String,
 }
Expand description

Initialize a new Leo example.

-

Fields§

§name: String§network: String§endpoint: String

Trait Implementations§

source§

impl Args for LeoExample

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: String§network: String§endpoint: String

Trait Implementations§

source§

impl Args for LeoExample

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via [FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoExample

source§

type Input = <LeoNew as Command>::Output

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 + 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoExample

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 LeoExample

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoExample

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoExample

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 LeoExample

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoExample

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoExample

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoExample

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/struct.LeoExecute.html b/leo_lang/cli/struct.LeoExecute.html index b04f509799..b4618f7771 100644 --- a/leo_lang/cli/struct.LeoExecute.html +++ b/leo_lang/cli/struct.LeoExecute.html @@ -1,66 +1,66 @@ -LeoExecute in leo_lang::cli - Rust

Struct leo_lang::cli::LeoExecute

source ·
pub struct LeoExecute {
-    name: String,
-    inputs: Vec<String>,
-    broadcast: bool,
-    local: bool,
-    program: Option<String>,
+LeoExecute in leo_lang::cli - Rust
leo_lang::cli

Struct LeoExecute

source
pub struct LeoExecute {
+    name: String,
+    inputs: Vec<String>,
+    broadcast: bool,
+    local: bool,
+    program: Option<String>,
     fee_options: FeeOptions,
     compiler_options: BuildOptions,
-    file: Option<String>,
-    pub(crate) no_build: bool,
+    file: Option<String>,
+    pub(crate) no_build: bool,
 }
Expand description

Build, Prove and Run Leo program with inputs

-

Fields§

§name: String§inputs: Vec<String>§broadcast: bool§local: bool§program: Option<String>§fee_options: FeeOptions§compiler_options: BuildOptions§file: Option<String>§no_build: bool

Trait Implementations§

source§

impl Args for LeoExecute

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: String§inputs: Vec<String>§broadcast: bool§local: bool§program: Option<String>§fee_options: FeeOptions§compiler_options: BuildOptions§file: Option<String>§no_build: bool

Trait Implementations§

source§

impl Args for LeoExecute

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via [FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoExecute

source§

type Input = <LeoBuild as Command>::Output

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoExecute

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 LeoExecute

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoExecute

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoExecute

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 LeoExecute

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoExecute

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoExecute

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoExecute

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/struct.LeoNew.html b/leo_lang/cli/struct.LeoNew.html index d9a75905cc..18b8b83903 100644 --- a/leo_lang/cli/struct.LeoNew.html +++ b/leo_lang/cli/struct.LeoNew.html @@ -1,60 +1,60 @@ -LeoNew in leo_lang::cli - Rust

Struct leo_lang::cli::LeoNew

source ·
pub struct LeoNew {
-    pub(crate) name: String,
-    pub(crate) network: String,
-    pub(crate) endpoint: String,
+LeoNew in leo_lang::cli - Rust
leo_lang::cli

Struct LeoNew

source
pub struct LeoNew {
+    pub(crate) name: String,
+    pub(crate) network: String,
+    pub(crate) endpoint: String,
 }
Expand description

Create new Leo project

-

Fields§

§name: String§network: String§endpoint: String

Trait Implementations§

source§

impl Args for LeoNew

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: String§network: String§endpoint: String

Trait Implementations§

source§

impl Args for LeoNew

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoNew

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoNew

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoNew

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 LeoNew

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoNew

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoNew

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 LeoNew

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoNew

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoNew

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for LeoNew

§

impl RefUnwindSafe for LeoNew

§

impl Send for LeoNew

§

impl Sync for LeoNew

§

impl Unpin for LeoNew

§

impl UnwindSafe for LeoNew

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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoNew

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for LeoNew

§

impl RefUnwindSafe for LeoNew

§

impl Send for LeoNew

§

impl Sync for LeoNew

§

impl Unpin for LeoNew

§

impl UnwindSafe for LeoNew

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/struct.LeoQuery.html b/leo_lang/cli/struct.LeoQuery.html index ab17b9abfd..dd8e36cd7c 100644 --- a/leo_lang/cli/struct.LeoQuery.html +++ b/leo_lang/cli/struct.LeoQuery.html @@ -1,60 +1,60 @@ -LeoQuery in leo_lang::cli - Rust

Struct leo_lang::cli::LeoQuery

source ·
pub struct LeoQuery {
-    pub endpoint: Option<String>,
-    pub(crate) network: Option<String>,
+LeoQuery in leo_lang::cli - Rust
leo_lang::cli

Struct LeoQuery

source
pub struct LeoQuery {
+    pub endpoint: Option<String>,
+    pub(crate) network: Option<String>,
     pub command: QueryCommands,
 }
Expand description

Query live data from the Aleo network.

-

Fields§

§endpoint: Option<String>§network: Option<String>§command: QueryCommands

Trait Implementations§

source§

impl Args for LeoQuery

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§endpoint: Option<String>§network: Option<String>§command: QueryCommands

Trait Implementations§

source§

impl Args for LeoQuery

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoQuery

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoQuery

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = String

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
source§

type Output = String

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 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoQuery

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 LeoQuery

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoQuery

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoQuery

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 LeoQuery

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoQuery

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoQuery

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoQuery

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/struct.LeoRemove.html b/leo_lang/cli/struct.LeoRemove.html index 4f95824d98..6c7849fbc4 100644 --- a/leo_lang/cli/struct.LeoRemove.html +++ b/leo_lang/cli/struct.LeoRemove.html @@ -1,59 +1,59 @@ -LeoRemove in leo_lang::cli - Rust

Struct leo_lang::cli::LeoRemove

source ·
pub struct LeoRemove {
-    pub(crate) name: Option<String>,
-    pub(crate) all: bool,
+LeoRemove in leo_lang::cli - Rust
leo_lang::cli

Struct LeoRemove

source
pub struct LeoRemove {
+    pub(crate) name: Option<String>,
+    pub(crate) all: bool,
 }
Expand description

Remove a dependency from the current package.

-

Fields§

§name: Option<String>§all: bool

Trait Implementations§

source§

impl Args for LeoRemove

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: Option<String>§all: bool

Trait Implementations§

source§

impl Args for LeoRemove

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoRemove

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoRemove

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoRemove

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 LeoRemove

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoRemove

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoRemove

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 LeoRemove

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoRemove

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoRemove

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoRemove

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/struct.LeoRun.html b/leo_lang/cli/struct.LeoRun.html index c99b9f31eb..6807ed1d06 100644 --- a/leo_lang/cli/struct.LeoRun.html +++ b/leo_lang/cli/struct.LeoRun.html @@ -1,61 +1,61 @@ -LeoRun in leo_lang::cli - Rust

Struct leo_lang::cli::LeoRun

source ·
pub struct LeoRun {
-    pub(crate) name: String,
-    pub(crate) inputs: Vec<String>,
-    pub(crate) file: Option<String>,
+LeoRun in leo_lang::cli - Rust
leo_lang::cli

Struct LeoRun

source
pub struct LeoRun {
+    pub(crate) name: String,
+    pub(crate) inputs: Vec<String>,
+    pub(crate) file: Option<String>,
     pub(crate) compiler_options: BuildOptions,
 }
Expand description

Build, Prove and Run Leo program with inputs

-

Fields§

§name: String§inputs: Vec<String>§file: Option<String>§compiler_options: BuildOptions

Trait Implementations§

source§

impl Args for LeoRun

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§name: String§inputs: Vec<String>§file: Option<String>§compiler_options: BuildOptions

Trait Implementations§

source§

impl Args for LeoRun

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via [FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoRun

source§

type Input = <LeoBuild as Command>::Output

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoRun

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 LeoRun

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoRun

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoRun

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 LeoRun

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoRun

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoRun

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for LeoRun

§

impl RefUnwindSafe for LeoRun

§

impl Send for LeoRun

§

impl Sync for LeoRun

§

impl Unpin for LeoRun

§

impl UnwindSafe for LeoRun

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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoRun

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for LeoRun

§

impl RefUnwindSafe for LeoRun

§

impl Send for LeoRun

§

impl Sync for LeoRun

§

impl Unpin for LeoRun

§

impl UnwindSafe for LeoRun

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/struct.LeoUpdate.html b/leo_lang/cli/struct.LeoUpdate.html index 4857a92c2c..7f9932d9c5 100644 --- a/leo_lang/cli/struct.LeoUpdate.html +++ b/leo_lang/cli/struct.LeoUpdate.html @@ -1,62 +1,62 @@ -LeoUpdate in leo_lang::cli - Rust

Struct leo_lang::cli::LeoUpdate

source ·
pub struct LeoUpdate {
-    list: bool,
-    quiet: bool,
+LeoUpdate in leo_lang::cli - Rust
leo_lang::cli

Struct LeoUpdate

source
pub struct LeoUpdate {
+    list: bool,
+    quiet: bool,
 }
Expand description

Update Leo to the latest version

-

Fields§

§list: bool

Lists all available versions of Leo

-
§quiet: bool

Suppress outputs to terminal

-

Trait Implementations§

source§

impl Args for LeoUpdate

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§list: bool

Lists all available versions of Leo

+
§quiet: bool

Suppress outputs to terminal

+

Trait Implementations§

source§

impl Args for LeoUpdate

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoUpdate

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoUpdate

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - Self: Sized,

Runs the main operation of this command. This function is run within + 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoUpdate

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 LeoUpdate

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoUpdate

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoUpdate

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 LeoUpdate

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoUpdate

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoUpdate

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoUpdate

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/trait.Command.html b/leo_lang/cli/trait.Command.html index 3d7d07de8c..bf08d26cf5 100644 --- a/leo_lang/cli/trait.Command.html +++ b/leo_lang/cli/trait.Command.html @@ -1,19 +1,19 @@ -Command in leo_lang::cli - Rust

Trait leo_lang::cli::Command

source ·
pub trait Command {
+Command in leo_lang::cli - Rust
leo_lang::cli

Trait Command

source
pub trait Command {
     type Input;
     type Output;
 
     // Required methods
     fn prelude(&self, context: Context) -> Result<Self::Input>
-       where Self: Sized;
+       where Self: Sized;
     fn apply(self, context: Context, input: Self::Input) -> Result<Self::Output>
-       where Self: Sized;
+       where Self: Sized;
 
     // Provided methods
     fn log_span(&self) -> Span { ... }
     fn execute(self, context: Context) -> Result<Self::Output>
-       where Self: Sized { ... }
-    fn try_execute(self, context: Context) -> Result<()>
-       where Self: Sized { ... }
+       where Self: Sized { ... }
+    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 and needs its output result, this is where the result type is defined. @@ -22,19 +22,19 @@ 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 - Self: Sized,

Runs the prelude and returns the Input of the current command.

+ 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 - Self: Sized,

Runs the main operation of this command. This function is run within + 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 - Self: Sized,

A wrapper around the apply method. + 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a +

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

-

Implementors§

source§

impl Command for Account

source§

impl Command for LeoAdd

source§

impl Command for LeoBuild

source§

impl Command for LeoClean

source§

impl Command for Deploy

source§

impl Command for LeoExample

source§

impl Command for LeoExecute

source§

impl Command for LeoNew

source§

impl Command for LeoBlock

source§

impl Command for LeoCommittee

source§

impl Command for LeoMempool

source§

impl Command for LeoPeers

source§

impl Command for LeoProgram

source§

impl Command for StateRoot

source§

impl Command for LeoQuery

source§

impl Command for LeoTransaction

source§

impl Command for LeoRemove

source§

impl Command for LeoRun

source§

impl Command for LeoUpdate

\ No newline at end of file +

Implementors§

source§

impl Command for Account

source§

impl Command for LeoAdd

source§

impl Command for LeoBuild

source§

impl Command for LeoClean

source§

impl Command for Deploy

source§

impl Command for LeoExample

source§

impl Command for LeoExecute

source§

impl Command for LeoNew

source§

impl Command for LeoBlock

source§

impl Command for LeoCommittee

source§

impl Command for LeoMempool

source§

impl Command for LeoPeers

source§

impl Command for LeoProgram

source§

impl Command for StateRoot

source§

impl Command for LeoQuery

source§

impl Command for LeoTransaction

source§

impl Command for LeoRemove

source§

impl Command for LeoRun

source§

impl Command for LeoUpdate

\ No newline at end of file diff --git a/leo_lang/cli/update/index.html b/leo_lang/cli/update/index.html index eeb13674e3..b5712baa1c 100644 --- a/leo_lang/cli/update/index.html +++ b/leo_lang/cli/update/index.html @@ -1 +1 @@ -leo_lang::cli::update - Rust

Module leo_lang::cli::update

source ·

Structs§

\ No newline at end of file +leo_lang::cli::update - Rust
leo_lang::cli

Module update

source

Structs§

\ No newline at end of file diff --git a/leo_lang/cli/update/struct.LeoUpdate.html b/leo_lang/cli/update/struct.LeoUpdate.html index 141596399a..7a3d88ae4b 100644 --- a/leo_lang/cli/update/struct.LeoUpdate.html +++ b/leo_lang/cli/update/struct.LeoUpdate.html @@ -1,62 +1,62 @@ -LeoUpdate in leo_lang::cli::update - Rust

Struct leo_lang::cli::update::LeoUpdate

source ·
pub struct LeoUpdate {
-    list: bool,
-    quiet: bool,
+LeoUpdate in leo_lang::cli::update - Rust
leo_lang::cli::update

Struct LeoUpdate

source
pub struct LeoUpdate {
+    list: bool,
+    quiet: bool,
 }
Expand description

Update Leo to the latest version

-

Fields§

§list: bool

Lists all available versions of Leo

-
§quiet: bool

Suppress outputs to terminal

-

Trait Implementations§

source§

impl Args for LeoUpdate

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via +

Fields§

§list: bool

Lists all available versions of Leo

+
§quiet: bool

Suppress outputs to terminal

+

Trait Implementations§

source§

impl Args for LeoUpdate

source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via -[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoUpdate

source§

type Input = ()

If the current command requires running another command beforehand +[FromArgMatches::update_from_arg_matches_mut] Read more
source§

impl Command for LeoUpdate

source§

type Input = ()

If the current command requires running another command beforehand and needs its output result, this is where the result type is defined. -Example: type Input: ::Out
source§

type Output = ()

Defines the output of this command, which may be used as Input for another +Example: type Input: ::Out
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.
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 - Self: Sized,

Runs the main operation of this command. This function is run within + 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 - 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 - Self: Sized,

Executes command but empty the result. Comes in handy where there’s a + 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 + 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 LeoUpdate

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 LeoUpdate

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoUpdate

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( +output possible. Errors however are all of the type Error

source§

impl CommandFactory for LeoUpdate

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 LeoUpdate

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for LeoUpdate

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( __clap_arg_matches: &mut ArgMatches, -) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( +) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( +) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, -) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for LeoUpdate

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where - I: IntoIterator<Item = T>, - T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 - 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.

+) -> Result<(), Error>
Assign values from ArgMatches to self.
source§

impl Parser for LeoUpdate

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error. Read more
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where + I: IntoIterator<Item = T>, + T: Into<OsString> + Clone,

Update from iterator, return Err on error.

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/cli/updater/index.html b/leo_lang/cli/updater/index.html index 5ce6f050c6..415cfe716a 100644 --- a/leo_lang/cli/updater/index.html +++ b/leo_lang/cli/updater/index.html @@ -1 +1 @@ -leo_lang::cli::updater - Rust

Module leo_lang::cli::updater

source ·

Structs§

\ No newline at end of file +leo_lang::cli::updater - Rust
leo_lang::cli

Module updater

source

Structs§

\ No newline at end of file diff --git a/leo_lang/cli/updater/struct.Updater.html b/leo_lang/cli/updater/struct.Updater.html index 9d22a75854..b673551639 100644 --- a/leo_lang/cli/updater/struct.Updater.html +++ b/leo_lang/cli/updater/struct.Updater.html @@ -1,46 +1,46 @@ -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_CACHE_LAST_CHECK_FILE: &'static str = "leo_cache_last_update_check"

source

const LEO_CACHE_VERSION_FILE: &'static str = "leo_cache_latest_version"

source

const LEO_REPO_NAME: &'static str = "leo"

source

const LEO_REPO_OWNER: &'static str = "AleoHQ"

source

const LEO_UPDATE_CHECK_INTERVAL: Duration = _

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 read_latest_version() -> Result<Option<String>, CliError>

Read the latest version from the version file.

-
source

pub fn get_cli_string() -> Result<Option<String>, CliError>

Generate the CLI message if a new version is available.

-
source

pub fn print_cli() -> Result<(), CliError>

Display the CLI message if a new version is available.

-
source

pub fn check_for_updates(force: bool) -> Result<bool, CliError>

Check for updates, respecting the update interval. (Currently once per day.) +Updater in leo_lang::cli::updater - Rust

leo_lang::cli::updater

Struct Updater

source
pub struct Updater;

Implementations§

source§

impl Updater

source

const LEO_BIN_NAME: &'static str = "leo"

source

const LEO_CACHE_LAST_CHECK_FILE: &'static str = "leo_cache_last_update_check"

source

const LEO_CACHE_VERSION_FILE: &'static str = "leo_cache_latest_version"

source

const LEO_REPO_NAME: &'static str = "leo"

source

const LEO_REPO_OWNER: &'static str = "AleoHQ"

source

const LEO_UPDATE_CHECK_INTERVAL: Duration = _

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 read_latest_version() -> Result<Option<String>, CliError>

Read the latest version from the version file.

+
source

pub fn get_cli_string() -> Result<Option<String>, CliError>

Generate the CLI message if a new version is available.

+
source

pub fn print_cli() -> Result<(), CliError>

Display the CLI message if a new version is available.

+
source

pub fn check_for_updates(force: bool) -> Result<bool, CliError>

Check for updates, respecting the update interval. (Currently once per day.) If a new version is found, write it to a cache file and alert in every call.

source

fn update_check_files( - cache_dir: &Path, - last_check_file: &Path, - version_file: &Path, - latest_version: &str, -) -> Result<(), CliError>

Updates the check files with the latest version information and timestamp.

+ cache_dir: &Path, + last_check_file: &Path, + version_file: &Path, + latest_version: &str, +) -> Result<(), CliError>

Updates the check files with the latest version information and timestamp.

This function creates the cache directory if it doesn’t exist, writes the current time to the last check file, and writes the latest version to the version file.

-
source

fn should_check_for_updates(last_check_file: &Path) -> Result<bool, CliError>

Determines if an update check should be performed based on the last check time.

+
source

fn should_check_for_updates(last_check_file: &Path) -> Result<bool, CliError>

Determines if an update check should be performed based on the last check time.

This function reads the last check timestamp from a file and compares it with the current time to decide if enough time has passed for a new check.

-
source

fn get_current_time() -> Result<u64, CliError>

Gets the current system time as seconds since the Unix epoch.

-
source

fn get_version_file_path() -> PathBuf

Get the path to the file storing the latest version information.

-
source

fn get_cache_dir() -> PathBuf

Get the cache directory for Leo.

-

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 - 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.

+
source

fn get_current_time() -> Result<u64, CliError>

Gets the current system time as seconds since the Unix epoch.

+
source

fn get_version_file_path() -> PathBuf

Get the path to the file storing the latest version information.

+
source

fn get_cache_dir() -> PathBuf

Get the cache directory for Leo.

+

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_lang/index.html b/leo_lang/index.html index d941d5b13c..d27929af38 100644 --- a/leo_lang/index.html +++ b/leo_lang/index.html @@ -1,4 +1,4 @@ -leo_lang - Rust

Crate leo_lang

source ·
Expand description

Crate leo_lang

source
Expand description

The Leo Programming Language

@@ -42,8 +42,7 @@

§⚙️️
  • macOS or Linux:

    -
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    -
  • +
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • Windows (64-bit):

    Download the Windows 64-bit executable and follow the on-screen instructions.

    @@ -60,25 +59,20 @@

    leo
    -

§🦁 Update from Leo

+
leo

§🦁 Update from Leo

You can update Leo to the latest version using the following command:

-
leo update
-
+
leo update

Now to check the version of leo, in your terminal, run:

-
leo --version
-

§🚀 Quick Start

+
leo --version

§🚀 Quick Start

Use the Leo CLI to create a new project

# create a new `hello-world` Leo project
 leo new helloworld
 cd helloworld
 
 # build & setup & prove & verify
-leo run main 0u32 1u32
-
+leo run main 0u32 1u32

The leo new command creates a new Leo project with a given name.

The leo run command will compile the program into Aleo instructions and run it.

Congratulations! You’ve just run your first Leo program.

diff --git a/leo_package/all.html b/leo_package/all.html index 7754095ccc..77701851b0 100644 --- a/leo_package/all.html +++ b/leo_package/all.html @@ -1 +1 @@ -List of all items in this crate
\ No newline at end of file +List of all items in this crate
\ No newline at end of file diff --git a/leo_package/build/directory/index.html b/leo_package/build/directory/index.html index a3d2099e68..640375b2b6 100644 --- a/leo_package/build/directory/index.html +++ b/leo_package/build/directory/index.html @@ -1 +1 @@ -leo_package::build::directory - Rust

Module leo_package::build::directory

source ·

Structs§

Statics§

\ No newline at end of file +leo_package::build::directory - Rust
leo_package::build

Module directory

source

Structs§

Statics§

\ No newline at end of file diff --git a/leo_package/build/directory/static.BUILD_DIRECTORY_NAME.html b/leo_package/build/directory/static.BUILD_DIRECTORY_NAME.html index bf002ded97..91be54657a 100644 --- a/leo_package/build/directory/static.BUILD_DIRECTORY_NAME.html +++ b/leo_package/build/directory/static.BUILD_DIRECTORY_NAME.html @@ -1 +1 @@ -BUILD_DIRECTORY_NAME in leo_package::build::directory - Rust

Static leo_package::build::directory::BUILD_DIRECTORY_NAME

source ·
pub static BUILD_DIRECTORY_NAME: &str
\ No newline at end of file +BUILD_DIRECTORY_NAME in leo_package::build::directory - Rust
leo_package::build::directory

Static BUILD_DIRECTORY_NAME

source
pub static BUILD_DIRECTORY_NAME: &str
\ No newline at end of file diff --git a/leo_package/build/directory/struct.BuildDirectory.html b/leo_package/build/directory/struct.BuildDirectory.html index 4ab9befd40..c7494eb8f9 100644 --- a/leo_package/build/directory/struct.BuildDirectory.html +++ b/leo_package/build/directory/struct.BuildDirectory.html @@ -1,27 +1,27 @@ -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 - 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.

+BuildDirectory in leo_package::build::directory - Rust
leo_package::build::directory

Struct 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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_package/build/index.html b/leo_package/build/index.html index 4de4f8b107..8c2a14268b 100644 --- a/leo_package/build/index.html +++ b/leo_package/build/index.html @@ -1 +1 @@ -leo_package::build - Rust

Module leo_package::build

source ·

Re-exports§

Modules§

\ No newline at end of file +leo_package::build - Rust
leo_package

Module build

source

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_package/fn.parse_file_paths.html b/leo_package/fn.parse_file_paths.html index 37dc3b8321..e18ccfc458 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 +parse_file_paths in leo_package - Rust
leo_package

Function parse_file_paths

source
pub(crate) fn parse_file_paths(
+    directory: ReadDir,
+    file_paths: &mut Vec<PathBuf>,
+) -> Result<()>
\ No newline at end of file diff --git a/leo_package/imports/directory/index.html b/leo_package/imports/directory/index.html index de4f003c82..2d3e6843ab 100644 --- a/leo_package/imports/directory/index.html +++ b/leo_package/imports/directory/index.html @@ -1 +1 @@ -leo_package::imports::directory - Rust
\ No newline at end of file +leo_package::imports::directory - Rust
leo_package::imports

Module directory

source

Structs§

Statics§

\ No newline at end of file diff --git a/leo_package/imports/directory/static.IMPORTS_DIRECTORY_NAME.html b/leo_package/imports/directory/static.IMPORTS_DIRECTORY_NAME.html index ac2c781cf5..46501e16c0 100644 --- a/leo_package/imports/directory/static.IMPORTS_DIRECTORY_NAME.html +++ b/leo_package/imports/directory/static.IMPORTS_DIRECTORY_NAME.html @@ -1 +1 @@ -IMPORTS_DIRECTORY_NAME in leo_package::imports::directory - Rust
pub static IMPORTS_DIRECTORY_NAME: &str
\ No newline at end of file +IMPORTS_DIRECTORY_NAME in leo_package::imports::directory - Rust
leo_package::imports::directory

Static IMPORTS_DIRECTORY_NAME

source
pub static IMPORTS_DIRECTORY_NAME: &str
\ 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 844d9d5c84..d898b6792f 100644 --- a/leo_package/imports/directory/struct.ImportsDirectory.html +++ b/leo_package/imports/directory/struct.ImportsDirectory.html @@ -1,28 +1,28 @@ -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 - 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.

+ImportsDirectory in leo_package::imports::directory - Rust
leo_package::imports::directory

Struct 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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_package/imports/index.html b/leo_package/imports/index.html index 4fb3b828cd..9efa0bfea4 100644 --- a/leo_package/imports/index.html +++ b/leo_package/imports/index.html @@ -1 +1 @@ -leo_package::imports - Rust

Module leo_package::imports

source ·

Re-exports§

Modules§

\ No newline at end of file +leo_package::imports - Rust
leo_package

Module imports

source

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_package/index.html b/leo_package/index.html index edd079009d..17cb460644 100644 --- a/leo_package/index.html +++ b/leo_package/index.html @@ -1,4 +1,4 @@ -leo_package - Rust

Crate leo_package

source ·
Expand description

§leo-package

+leo_package - Rust

Crate leo_package

source
Expand description

§leo-package

Crates.io Authors License

diff --git a/leo_package/inputs/directory/fn.parse_file_paths.html b/leo_package/inputs/directory/fn.parse_file_paths.html index 4c48374311..77ec68ff82 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 +parse_file_paths in leo_package::inputs::directory - Rust
leo_package::inputs::directory

Function parse_file_paths

source
fn parse_file_paths(
+    directory: ReadDir,
+    file_paths: &mut Vec<PathBuf>,
+) -> Result<()>
\ No newline at end of file diff --git a/leo_package/inputs/directory/index.html b/leo_package/inputs/directory/index.html index 45be47f530..c89df20df1 100644 --- a/leo_package/inputs/directory/index.html +++ b/leo_package/inputs/directory/index.html @@ -1 +1 @@ -leo_package::inputs::directory - Rust

Module leo_package::inputs::directory

source ·

Structs§

Statics§

Functions§

\ No newline at end of file +leo_package::inputs::directory - Rust
leo_package::inputs

Module directory

source

Structs§

Statics§

Functions§

\ No newline at end of file diff --git a/leo_package/inputs/directory/static.INPUTS_DIRECTORY_NAME.html b/leo_package/inputs/directory/static.INPUTS_DIRECTORY_NAME.html index 28b672ba47..47c3312f27 100644 --- a/leo_package/inputs/directory/static.INPUTS_DIRECTORY_NAME.html +++ b/leo_package/inputs/directory/static.INPUTS_DIRECTORY_NAME.html @@ -1 +1 @@ -INPUTS_DIRECTORY_NAME in leo_package::inputs::directory - Rust

Static leo_package::inputs::directory::INPUTS_DIRECTORY_NAME

source ·
pub static INPUTS_DIRECTORY_NAME: &str
\ No newline at end of file +INPUTS_DIRECTORY_NAME in leo_package::inputs::directory - Rust
leo_package::inputs::directory

Static INPUTS_DIRECTORY_NAME

source
pub static INPUTS_DIRECTORY_NAME: &str
\ 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 afadfef3f1..bdf29ff1e6 100644 --- a/leo_package/inputs/directory/struct.InputsDirectory.html +++ b/leo_package/inputs/directory/struct.InputsDirectory.html @@ -1,26 +1,26 @@ -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 - 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.

+InputsDirectory in leo_package::inputs::directory - Rust
leo_package::inputs::directory

Struct 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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_package/inputs/index.html b/leo_package/inputs/index.html index f338deabd9..6fe353681a 100644 --- a/leo_package/inputs/index.html +++ b/leo_package/inputs/index.html @@ -1 +1 @@ -leo_package::inputs - Rust

Module leo_package::inputs

source ·

Re-exports§

Modules§

\ No newline at end of file +leo_package::inputs - Rust
leo_package

Module inputs

source

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_package/outputs/ast_snapshot/enum.Snapshot.html b/leo_package/outputs/ast_snapshot/enum.Snapshot.html index 84be6ee4d4..58ad13fe85 100644 --- a/leo_package/outputs/ast_snapshot/enum.Snapshot.html +++ b/leo_package/outputs/ast_snapshot/enum.Snapshot.html @@ -1,39 +1,39 @@ -Snapshot in leo_package::outputs::ast_snapshot - Rust

Enum leo_package::outputs::ast_snapshot::Snapshot

source ·
pub enum Snapshot {
+Snapshot in leo_package::outputs::ast_snapshot - Rust
leo_package::outputs::ast_snapshot

Enum Snapshot

source
pub enum Snapshot {
     Initial,
     ImportsResolved,
     TypeInference,
     Canonicalization,
 }
Expand description

Enum to handle all 3 types of snapshots.

-

Variants§

§

Initial

§

ImportsResolved

§

TypeInference

§

Canonicalization

Trait Implementations§

source§

impl<'de> Deserialize<'de> for Snapshot

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 Display for Snapshot

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. 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 - 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 +

Variants§

§

Initial

§

ImportsResolved

§

TypeInference

§

Canonicalization

Trait Implementations§

source§

impl<'de> Deserialize<'de> for Snapshot

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 Display for Snapshot

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. 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 + 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

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_package/outputs/ast_snapshot/index.html b/leo_package/outputs/ast_snapshot/index.html index 9bcf5d04d4..5d0321bc8e 100644 --- a/leo_package/outputs/ast_snapshot/index.html +++ b/leo_package/outputs/ast_snapshot/index.html @@ -1,3 +1,3 @@ -leo_package::outputs::ast_snapshot - Rust

Module leo_package::outputs::ast_snapshot

source ·
Expand description

The serialized struct output file.

+leo_package::outputs::ast_snapshot - Rust
leo_package::outputs

Module ast_snapshot

source
Expand description

The serialized struct output file.

Structs§

  • Generic Snapshot file wrapper. Each package can have up to 3 -different snapshots: initial_ast, canonicalization_ast and type_inferenced_ast;

Enums§

  • Enum to handle all 3 types of snapshots.

Statics§

\ No newline at end of file +different snapshots: initial_ast, canonicalization_ast and type_inferenced_ast;

Enums§

  • Enum to handle all 3 types of snapshots.

Statics§

\ No newline at end of file diff --git a/leo_package/outputs/ast_snapshot/static.AST_SNAPSHOT_FILE_EXTENSION.html b/leo_package/outputs/ast_snapshot/static.AST_SNAPSHOT_FILE_EXTENSION.html index fd0f855d7c..39c2068132 100644 --- a/leo_package/outputs/ast_snapshot/static.AST_SNAPSHOT_FILE_EXTENSION.html +++ b/leo_package/outputs/ast_snapshot/static.AST_SNAPSHOT_FILE_EXTENSION.html @@ -1 +1 @@ -AST_SNAPSHOT_FILE_EXTENSION in leo_package::outputs::ast_snapshot - Rust
pub static AST_SNAPSHOT_FILE_EXTENSION: &str
\ No newline at end of file +AST_SNAPSHOT_FILE_EXTENSION in leo_package::outputs::ast_snapshot - Rust
leo_package::outputs::ast_snapshot

Static AST_SNAPSHOT_FILE_EXTENSION

source
pub static AST_SNAPSHOT_FILE_EXTENSION: &str
\ No newline at end of file diff --git a/leo_package/outputs/ast_snapshot/struct.SnapshotFile.html b/leo_package/outputs/ast_snapshot/struct.SnapshotFile.html index ca2fa44c46..7083494c77 100644 --- a/leo_package/outputs/ast_snapshot/struct.SnapshotFile.html +++ b/leo_package/outputs/ast_snapshot/struct.SnapshotFile.html @@ -1,39 +1,39 @@ -SnapshotFile in leo_package::outputs::ast_snapshot - Rust

Struct leo_package::outputs::ast_snapshot::SnapshotFile

source ·
pub struct SnapshotFile {
-    pub package_name: String,
+SnapshotFile in leo_package::outputs::ast_snapshot - Rust
leo_package::outputs::ast_snapshot

Struct SnapshotFile

source
pub struct SnapshotFile {
+    pub package_name: String,
     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 - 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 +

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 + 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

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_package/outputs/checksum/index.html b/leo_package/outputs/checksum/index.html index 9b555d3033..29e6a3d51c 100644 --- a/leo_package/outputs/checksum/index.html +++ b/leo_package/outputs/checksum/index.html @@ -1,2 +1,2 @@ -leo_package::outputs::checksum - Rust

Module leo_package::outputs::checksum

source ·
Expand description

The build checksum file.

-

Structs§

Statics§

\ No newline at end of file +leo_package::outputs::checksum - Rust
leo_package::outputs

Module checksum

source
Expand description

The build checksum file.

+

Structs§

Statics§

\ No newline at end of file diff --git a/leo_package/outputs/checksum/static.CHECKSUM_FILE_EXTENSION.html b/leo_package/outputs/checksum/static.CHECKSUM_FILE_EXTENSION.html index 30e0efb432..387f2a9d66 100644 --- a/leo_package/outputs/checksum/static.CHECKSUM_FILE_EXTENSION.html +++ b/leo_package/outputs/checksum/static.CHECKSUM_FILE_EXTENSION.html @@ -1 +1 @@ -CHECKSUM_FILE_EXTENSION in leo_package::outputs::checksum - Rust
pub static CHECKSUM_FILE_EXTENSION: &str
\ No newline at end of file +CHECKSUM_FILE_EXTENSION in leo_package::outputs::checksum - Rust
leo_package::outputs::checksum

Static CHECKSUM_FILE_EXTENSION

source
pub static CHECKSUM_FILE_EXTENSION: &str
\ No newline at end of file diff --git a/leo_package/outputs/checksum/struct.ChecksumFile.html b/leo_package/outputs/checksum/struct.ChecksumFile.html index d641ffd2e9..b3b31d7ead 100644 --- a/leo_package/outputs/checksum/struct.ChecksumFile.html +++ b/leo_package/outputs/checksum/struct.ChecksumFile.html @@ -1,37 +1,37 @@ -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, +ChecksumFile in leo_package::outputs::checksum - Rust

leo_package::outputs::checksum

Struct 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, 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 - 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 +

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 + 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

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_package/outputs/circuit/index.html b/leo_package/outputs/circuit/index.html index 12e340a142..4dec5bfff8 100644 --- a/leo_package/outputs/circuit/index.html +++ b/leo_package/outputs/circuit/index.html @@ -1,2 +1,2 @@ -leo_package::outputs::circuit - Rust

Module leo_package::outputs::circuit

source ·
Expand description

The serialized struct output file.

-

Structs§

Statics§

\ No newline at end of file +leo_package::outputs::circuit - Rust
leo_package::outputs

Module circuit

source
Expand description

The serialized struct output file.

+

Structs§

Statics§

\ No newline at end of file diff --git a/leo_package/outputs/circuit/static.CIRCUIT_FILE_EXTENSION.html b/leo_package/outputs/circuit/static.CIRCUIT_FILE_EXTENSION.html index b60fd200d0..60248ca057 100644 --- a/leo_package/outputs/circuit/static.CIRCUIT_FILE_EXTENSION.html +++ b/leo_package/outputs/circuit/static.CIRCUIT_FILE_EXTENSION.html @@ -1 +1 @@ -CIRCUIT_FILE_EXTENSION in leo_package::outputs::circuit - Rust

Static leo_package::outputs::circuit::CIRCUIT_FILE_EXTENSION

source ·
pub static CIRCUIT_FILE_EXTENSION: &str
\ No newline at end of file +CIRCUIT_FILE_EXTENSION in leo_package::outputs::circuit - Rust
leo_package::outputs::circuit

Static CIRCUIT_FILE_EXTENSION

source
pub static CIRCUIT_FILE_EXTENSION: &str
\ No newline at end of file diff --git a/leo_package/outputs/circuit/struct.CircuitFile.html b/leo_package/outputs/circuit/struct.CircuitFile.html index e6c8c7edcc..1ba1cda742 100644 --- a/leo_package/outputs/circuit/struct.CircuitFile.html +++ b/leo_package/outputs/circuit/struct.CircuitFile.html @@ -1,37 +1,37 @@ -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, +CircuitFile in leo_package::outputs::circuit - Rust

leo_package::outputs::circuit

Struct 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, 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 - 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 +

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 + 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

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_package/outputs/directory/index.html b/leo_package/outputs/directory/index.html index 2a9a4c58ac..aa6fb32fef 100644 --- a/leo_package/outputs/directory/index.html +++ b/leo_package/outputs/directory/index.html @@ -1 +1 @@ -leo_package::outputs::directory - Rust
\ No newline at end of file +leo_package::outputs::directory - Rust
leo_package::outputs

Module directory

source

Structs§

Statics§

\ No newline at end of file diff --git a/leo_package/outputs/directory/static.OUTPUTS_DIRECTORY_NAME.html b/leo_package/outputs/directory/static.OUTPUTS_DIRECTORY_NAME.html index 39ff835448..0ba2481ec4 100644 --- a/leo_package/outputs/directory/static.OUTPUTS_DIRECTORY_NAME.html +++ b/leo_package/outputs/directory/static.OUTPUTS_DIRECTORY_NAME.html @@ -1 +1 @@ -OUTPUTS_DIRECTORY_NAME in leo_package::outputs::directory - Rust
pub static OUTPUTS_DIRECTORY_NAME: &str
\ No newline at end of file +OUTPUTS_DIRECTORY_NAME in leo_package::outputs::directory - Rust
leo_package::outputs::directory

Static OUTPUTS_DIRECTORY_NAME

source
pub static OUTPUTS_DIRECTORY_NAME: &str
\ No newline at end of file diff --git a/leo_package/outputs/directory/struct.OutputsDirectory.html b/leo_package/outputs/directory/struct.OutputsDirectory.html index dddf055c1d..4f4efc7e1a 100644 --- a/leo_package/outputs/directory/struct.OutputsDirectory.html +++ b/leo_package/outputs/directory/struct.OutputsDirectory.html @@ -1,26 +1,26 @@ -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 - 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.

+OutputsDirectory in leo_package::outputs::directory - Rust
leo_package::outputs::directory

Struct 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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_package/outputs/index.html b/leo_package/outputs/index.html index adcc38a104..7472d4b289 100644 --- a/leo_package/outputs/index.html +++ b/leo_package/outputs/index.html @@ -1 +1 @@ -leo_package::outputs - Rust

Module leo_package::outputs

source ·

Re-exports§

Modules§

Statics§

\ No newline at end of file +leo_package::outputs - Rust
leo_package

Module outputs

source

Re-exports§

Modules§

Statics§

\ No newline at end of file diff --git a/leo_package/outputs/static.MAIN_ALEO_FILE_NAME.html b/leo_package/outputs/static.MAIN_ALEO_FILE_NAME.html index a9b3c6aec3..c619a51d0c 100644 --- a/leo_package/outputs/static.MAIN_ALEO_FILE_NAME.html +++ b/leo_package/outputs/static.MAIN_ALEO_FILE_NAME.html @@ -1 +1 @@ -MAIN_ALEO_FILE_NAME in leo_package::outputs - Rust

Static leo_package::outputs::MAIN_ALEO_FILE_NAME

source ·
pub static MAIN_ALEO_FILE_NAME: &str
\ No newline at end of file +MAIN_ALEO_FILE_NAME in leo_package::outputs - Rust
leo_package::outputs

Static MAIN_ALEO_FILE_NAME

source
pub static MAIN_ALEO_FILE_NAME: &str
\ No newline at end of file diff --git a/leo_package/package/index.html b/leo_package/package/index.html index 7e1d252524..ef83519280 100644 --- a/leo_package/package/index.html +++ b/leo_package/package/index.html @@ -1 +1 @@ -leo_package::package - Rust

Module leo_package::package

source ·

Structs§

\ No newline at end of file +leo_package::package - Rust
leo_package

Module package

source

Structs§

\ No newline at end of file diff --git a/leo_package/package/struct.Package.html b/leo_package/package/struct.Package.html index 9fbfda2be2..a1d1df6328 100644 --- a/leo_package/package/struct.Package.html +++ b/leo_package/package/struct.Package.html @@ -1,46 +1,46 @@ -Package in leo_package::package - Rust

Struct leo_package::package::Package

source ·
pub struct Package {
-    pub name: String,
-    pub version: String,
-    pub description: Option<String>,
-    pub license: Option<String>,
+Package in leo_package::package - Rust
leo_package::package

Struct Package

source
pub struct Package {
+    pub name: String,
+    pub version: String,
+    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 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, - endpoint: String, -) -> 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 - 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 + package_name: &str, + path: &Path, + endpoint: String, +) -> 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 + 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

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_package/root/env/index.html b/leo_package/root/env/index.html index fb7e21c0f5..2fd1619b5b 100644 --- a/leo_package/root/env/index.html +++ b/leo_package/root/env/index.html @@ -1,2 +1,2 @@ -leo_package::root::env - Rust

Module leo_package::root::env

source ·
Expand description

The .env file.

+leo_package::root::env - Rust
leo_package::root

Module env

source
Expand description

The .env file.

Structs§

Statics§

\ No newline at end of file diff --git a/leo_package/root/env/static.ENV_FILENAME.html b/leo_package/root/env/static.ENV_FILENAME.html index 0b8555fe92..33ab144362 100644 --- a/leo_package/root/env/static.ENV_FILENAME.html +++ b/leo_package/root/env/static.ENV_FILENAME.html @@ -1 +1 @@ -ENV_FILENAME in leo_package::root::env - Rust

Static leo_package::root::env::ENV_FILENAME

source ·
pub static ENV_FILENAME: &str
\ No newline at end of file +ENV_FILENAME in leo_package::root::env - Rust
leo_package::root::env

Static ENV_FILENAME

source
pub static ENV_FILENAME: &str
\ No newline at end of file diff --git a/leo_package/root/env/struct.Env.html b/leo_package/root/env/struct.Env.html index e0e0fa19e6..7ea9ede7ad 100644 --- a/leo_package/root/env/struct.Env.html +++ b/leo_package/root/env/struct.Env.html @@ -1,44 +1,44 @@ -Env in leo_package::root::env - Rust

Struct leo_package::root::env::Env

source ·
pub struct Env<N: Network> {
+Env in leo_package::root::env - Rust
leo_package::root::env

Struct Env

source
pub struct Env<N: Network> {
     private_key: PrivateKey<N>,
-    endpoint: String,
-}

Fields§

§private_key: PrivateKey<N>§endpoint: String

Implementations§

source§

impl<N: Network> Env<N>

source

pub fn new(private_key: Option<PrivateKey<N>>, endpoint: String) -> 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> Display for Env<N>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. 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 - <N as Environment>::Field: RefUnwindSafe, - <N as Environment>::Scalar: RefUnwindSafe,

§

impl<N> Send for Env<N>

§

impl<N> Sync for Env<N>

§

impl<N> Unpin for Env<N>
where - <N as Environment>::Field: Unpin, - <N as Environment>::Scalar: Unpin,

§

impl<N> UnwindSafe for Env<N>
where - <N as Environment>::Field: UnwindSafe, - <N as Environment>::Scalar: UnwindSafe,

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 + endpoint: String, +}

Fields§

§private_key: PrivateKey<N>§endpoint: String

Implementations§

source§

impl<N: Network> Env<N>

source

pub fn new(private_key: Option<PrivateKey<N>>, endpoint: String) -> 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> Display for Env<N>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. 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 + <N as Environment>::Field: RefUnwindSafe, + <N as Environment>::Scalar: RefUnwindSafe,

§

impl<N> Send for Env<N>

§

impl<N> Sync for Env<N>

§

impl<N> Unpin for Env<N>
where + <N as Environment>::Field: Unpin, + <N as Environment>::Scalar: Unpin,

§

impl<N> UnwindSafe for Env<N>
where + <N as Environment>::Field: UnwindSafe, + <N as Environment>::Scalar: UnwindSafe,

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

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_package/root/gitignore/index.html b/leo_package/root/gitignore/index.html index 236714ef89..32dc87606e 100644 --- a/leo_package/root/gitignore/index.html +++ b/leo_package/root/gitignore/index.html @@ -1,2 +1,2 @@ -leo_package::root::gitignore - Rust

Module leo_package::root::gitignore

source ·
Expand description

The .gitignore file.

-

Structs§

Statics§

\ No newline at end of file +leo_package::root::gitignore - Rust
leo_package::root

Module gitignore

source
Expand description

The .gitignore file.

+

Structs§

Statics§

\ No newline at end of file diff --git a/leo_package/root/gitignore/static.GITIGNORE_FILENAME.html b/leo_package/root/gitignore/static.GITIGNORE_FILENAME.html index 78c20ee7af..0ba2043d11 100644 --- a/leo_package/root/gitignore/static.GITIGNORE_FILENAME.html +++ b/leo_package/root/gitignore/static.GITIGNORE_FILENAME.html @@ -1 +1 @@ -GITIGNORE_FILENAME in leo_package::root::gitignore - Rust

Static leo_package::root::gitignore::GITIGNORE_FILENAME

source ·
pub static GITIGNORE_FILENAME: &str
\ No newline at end of file +GITIGNORE_FILENAME in leo_package::root::gitignore - Rust
leo_package::root::gitignore

Static GITIGNORE_FILENAME

source
pub static GITIGNORE_FILENAME: &str
\ No newline at end of file diff --git a/leo_package/root/gitignore/struct.Gitignore.html b/leo_package/root/gitignore/struct.Gitignore.html index 43489c7ca5..aea1d674ec 100644 --- a/leo_package/root/gitignore/struct.Gitignore.html +++ b/leo_package/root/gitignore/struct.Gitignore.html @@ -1,31 +1,31 @@ -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 - 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 +Gitignore in leo_package::root::gitignore - Rust
leo_package::root::gitignore

Struct 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 + 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

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_package/root/index.html b/leo_package/root/index.html index 71b6237b0c..889f1607df 100644 --- a/leo_package/root/index.html +++ b/leo_package/root/index.html @@ -1 +1 @@ -leo_package::root - Rust

Module leo_package::root

source ·

Re-exports§

Modules§

\ No newline at end of file +leo_package::root - Rust
leo_package

Module root

source

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_package/source/directory/index.html b/leo_package/source/directory/index.html index 9b9b5fa3b5..27f4112cd7 100644 --- a/leo_package/source/directory/index.html +++ b/leo_package/source/directory/index.html @@ -1 +1 @@ -leo_package::source::directory - Rust

Module leo_package::source::directory

source ·

Structs§

Statics§

\ No newline at end of file +leo_package::source::directory - Rust
leo_package::source

Module directory

source

Structs§

Statics§

\ No newline at end of file diff --git a/leo_package/source/directory/static.SOURCE_DIRECTORY_NAME.html b/leo_package/source/directory/static.SOURCE_DIRECTORY_NAME.html index ec5e2aee95..2ae848b1a0 100644 --- a/leo_package/source/directory/static.SOURCE_DIRECTORY_NAME.html +++ b/leo_package/source/directory/static.SOURCE_DIRECTORY_NAME.html @@ -1 +1 @@ -SOURCE_DIRECTORY_NAME in leo_package::source::directory - Rust

Static leo_package::source::directory::SOURCE_DIRECTORY_NAME

source ·
pub static SOURCE_DIRECTORY_NAME: &str
\ No newline at end of file +SOURCE_DIRECTORY_NAME in leo_package::source::directory - Rust
leo_package::source::directory

Static SOURCE_DIRECTORY_NAME

source
pub static SOURCE_DIRECTORY_NAME: &str
\ No newline at end of file diff --git a/leo_package/source/directory/struct.SourceDirectory.html b/leo_package/source/directory/struct.SourceDirectory.html index 0ffdeeb803..5f5516546e 100644 --- a/leo_package/source/directory/struct.SourceDirectory.html +++ b/leo_package/source/directory/struct.SourceDirectory.html @@ -1,27 +1,27 @@ -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 - 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.

+SourceDirectory in leo_package::source::directory - Rust
leo_package::source::directory

Struct 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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_package/source/index.html b/leo_package/source/index.html index 7b0d9dbf45..706182c09b 100644 --- a/leo_package/source/index.html +++ b/leo_package/source/index.html @@ -1 +1 @@ -leo_package::source - Rust

Module leo_package::source

source ·

Re-exports§

Modules§

\ No newline at end of file +leo_package::source - Rust
leo_package

Module source

source

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_package/source/main/index.html b/leo_package/source/main/index.html index 306fbc58b6..84c401d056 100644 --- a/leo_package/source/main/index.html +++ b/leo_package/source/main/index.html @@ -1,2 +1,2 @@ -leo_package::source::main - Rust

Module leo_package::source::main

source ·
Expand description

The main.leo file.

+leo_package::source::main - Rust
leo_package::source

Module main

source
Expand description

The main.leo file.

Structs§

Statics§

\ No newline at end of file diff --git a/leo_package/source/main/static.MAIN_FILENAME.html b/leo_package/source/main/static.MAIN_FILENAME.html index d2cf9e080f..8fd8dcdaff 100644 --- a/leo_package/source/main/static.MAIN_FILENAME.html +++ b/leo_package/source/main/static.MAIN_FILENAME.html @@ -1 +1 @@ -MAIN_FILENAME in leo_package::source::main - Rust

Static leo_package::source::main::MAIN_FILENAME

source ·
pub static MAIN_FILENAME: &str
\ No newline at end of file +MAIN_FILENAME in leo_package::source::main - Rust
leo_package::source::main

Static MAIN_FILENAME

source
pub static MAIN_FILENAME: &str
\ No newline at end of file diff --git a/leo_package/source/main/struct.MainFile.html b/leo_package/source/main/struct.MainFile.html index 7069f1bcea..0f6f4650cd 100644 --- a/leo_package/source/main/struct.MainFile.html +++ b/leo_package/source/main/struct.MainFile.html @@ -1,33 +1,33 @@ -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 - __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 - 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 +MainFile in leo_package::source::main - Rust
leo_package::source::main

Struct 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 + __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 + 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

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_package/static.LEO_FILE_EXTENSION.html b/leo_package/static.LEO_FILE_EXTENSION.html index 15f38d27d6..026041a55b 100644 --- a/leo_package/static.LEO_FILE_EXTENSION.html +++ b/leo_package/static.LEO_FILE_EXTENSION.html @@ -1 +1 @@ -LEO_FILE_EXTENSION in leo_package - Rust

Static leo_package::LEO_FILE_EXTENSION

source ·
pub static LEO_FILE_EXTENSION: &str
\ No newline at end of file +LEO_FILE_EXTENSION in leo_package - Rust
leo_package

Static LEO_FILE_EXTENSION

source
pub static LEO_FILE_EXTENSION: &str
\ No newline at end of file diff --git a/leo_parser/all.html b/leo_parser/all.html index 8cc8c1d2e5..5fbc8d487a 100644 --- a/leo_parser/all.html +++ b/leo_parser/all.html @@ -1 +1 @@ -List of all items in this crate
\ No newline at end of file +List of all items in this crate
\ No newline at end of file diff --git a/leo_parser/constant.KEYWORD_TOKENS.html b/leo_parser/constant.KEYWORD_TOKENS.html index dd7164242e..2ba4c7a4e1 100644 --- a/leo_parser/constant.KEYWORD_TOKENS.html +++ b/leo_parser/constant.KEYWORD_TOKENS.html @@ -1,4 +1,4 @@ -KEYWORD_TOKENS in leo_parser - Rust

Constant leo_parser::KEYWORD_TOKENS

source ·
pub const KEYWORD_TOKENS: &[Token];
Expand description

Represents all valid Leo keyword tokens. +KEYWORD_TOKENS in leo_parser - Rust

leo_parser

Constant KEYWORD_TOKENS

source
pub const KEYWORD_TOKENS: &[Token];
Expand description

Represents all valid Leo keyword tokens. This also includes the boolean literals true and false, unlike the ABNF grammar, which classifies them as literals and not keywords. But for the purposes of our lexer implementation, diff --git a/leo_parser/fn.parse_ast.html b/leo_parser/fn.parse_ast.html index 40ada11392..28b0cf6224 100644 --- a/leo_parser/fn.parse_ast.html +++ b/leo_parser/fn.parse_ast.html @@ -1,7 +1,7 @@ -parse_ast in leo_parser - Rust

Function leo_parser::parse_ast

source ·
pub fn parse_ast<N: Network>(
+parse_ast in leo_parser - Rust
leo_parser

Function parse_ast

source
pub fn parse_ast<N: Network>(
     handler: &Handler,
     node_builder: &NodeBuilder,
-    source: &str,
+    source: &str,
     start_pos: BytePos,
 ) -> Result<Ast>
Expand description

Creates a new AST from a given file path and source code text.

\ No newline at end of file diff --git a/leo_parser/index.html b/leo_parser/index.html index 06245010ab..84d57c7784 100644 --- a/leo_parser/index.html +++ b/leo_parser/index.html @@ -1,11 +1,11 @@ -leo_parser - Rust

Crate leo_parser

source ·
Expand description

The parser to convert Leo code text into an [AST] type.

+leo_parser - Rust

Crate leo_parser

source
Expand description

The parser to convert Leo code text into an [AST] type.

This module contains the parse_ast() method which calls the underlying parse() method to create a new program ast.

§leo-parser

Crates.io Authors License

-

Re-exports§

Modules§

  • The parser to convert Leo code text into a Program AST type.
  • tokenizer 🔒
    The tokenizer to convert Leo code text into tokens.

Constants§

Re-exports§

Modules§

  • The parser to convert Leo code text into a Program AST type.
  • tokenizer 🔒
    The tokenizer to convert Leo code text into tokens.

Constants§

source

pub(super) fn parse_bracket_comma_list<T>( &mut self, - f: impl FnMut(&mut Self) -> Result<Option<T>>, -) -> Result<(Vec<T>, bool, Span)>

Parse a list separated by , and delimited by brackets.

-
source

pub(super) fn peek_is_left_par(&self) -> bool

Returns true if the current token is (.

+ f: impl FnMut(&mut Self) -> Result<Option<T>>, +) -> Result<(Vec<T>, bool, Span)>

Parse a list separated by , and delimited by brackets.

+
source

pub(super) fn peek_is_left_par(&self) -> bool

Returns true if the current token is (.

source

pub(crate) fn check_identifier(&self, identifier: &Identifier)

Error on identifiers that are longer than SnarkVM allows.

source§

impl<N: Network> ParserContext<'_, N>

source

pub(crate) fn parse_expression(&mut self) -> Result<Expression>

Returns an Expression AST node if the next token is an expression. Includes struct init expressions.

@@ -81,7 +81,7 @@
source

fn parse_bin_expr( &mut self, tokens: &[Token], - f: impl FnMut(&mut Self) -> Result<Expression>, + f: impl FnMut(&mut Self) -> Result<Expression>, ) -> Result<Expression>

Parses a left-associative binary expression <left> token <right> using f for left/right. The token is translated to op in the AST.

source

fn parse_boolean_or_expression(&mut self) -> Result<Expression>

Returns an Expression AST node if the next tokens represent @@ -90,7 +90,7 @@

source

fn parse_boolean_and_expression(&mut self) -> Result<Expression>

Returns an Expression AST node if the next tokens represent a binary AND expression.

Otherwise, tries to parse the next token using [parse_equality_expression].

-
source

fn eat_bin_op(&mut self, tokens: &[Token]) -> Option<BinaryOperation>

Eats one of binary operators matching any in tokens.

+
source

fn eat_bin_op(&mut self, tokens: &[Token]) -> Option<BinaryOperation>

Eats one of binary operators matching any in tokens.

source

fn parse_ordering_expression(&mut self) -> Result<Expression>

Returns an Expression AST node if the next tokens represent a binary relational expression: less than, less than or equals, greater than, greater than or equals.

Otherwise, tries to parse the next token using [parse_additive_expression].

@@ -137,7 +137,7 @@ static access expression.

source

pub(crate) fn parse_expr_tuple( &mut self, -) -> Result<(Vec<Expression>, bool, Span)>

Parses a tuple of Expression AST nodes.

+) -> Result<(Vec<Expression>, bool, Span)>

Parses a tuple of Expression AST nodes.

source

fn parse_external_resource( &mut self, expr: Expression, @@ -158,10 +158,10 @@ a parenthesized expression or a unit expression or a tuple initialization expression or an affine group literal.

source

fn parse_array_expression(&mut self) -> Result<Expression>

Returns an Expression AST node if the next tokens represent an array initialization expression.

-
source

fn peek_group_coordinate(&self, dist: &mut usize) -> Option<GroupCoordinate>

Returns a reference to the next token if it is a GroupCoordinate, or None if +

source

fn peek_group_coordinate(&self, dist: &mut usize) -> Option<GroupCoordinate>

Returns a reference to the next token if it is a GroupCoordinate, or None if the next token is not a GroupCoordinate.

-
source

fn eat_group_partial(&mut self) -> Option<Result<GroupTuple>>

Attempts to parse an affine group literal, if present. -If absent, returns None.

+
source

fn eat_group_partial(&mut self) -> Option<Result<GroupTuple>>

Attempts to parse an affine group literal, if present. +If absent, returns None.

source

fn parse_struct_member(&mut self) -> Result<StructVariableInitializer>

source

pub fn parse_struct_init_expression( &mut self, identifier: Identifier, @@ -187,7 +187,7 @@

source§

impl<N: Network> ParserContext<'_, N>

source

pub fn parse_program(&mut self) -> Result<Program>

Returns a Program AST if all tokens can be consumed and represent a valid Leo program.

source

fn unexpected_item(token: &SpannedToken, expected: &[Token]) -> ParserError

source

pub(super) fn parse_import(&mut self) -> Result<(Symbol, (Program, Span))>

Parses an import statement import foo.leo;.

source

fn parse_program_scope(&mut self) -> Result<ProgramScope>

Parses a program scope program foo.aleo { ... }.

-
source

fn parse_struct_members(&mut self) -> Result<(Vec<Member>, Span)>

Returns a Vec<Member> AST node if the next tokens represent a struct member.

+
source

fn parse_struct_members(&mut self) -> Result<(Vec<Member>, Span)>

Returns a Vec<Member> AST node if the next tokens represent a struct member.

source

pub(super) fn parse_typed_ident(&mut self) -> Result<(Identifier, Type, Span)>

Parses IDENT: TYPE.

source

fn parse_member_variable_declaration(&mut self) -> Result<Member>

Returns a Member AST node if the next tokens represent a struct member variable.

source

pub(super) fn parse_struct(&mut self) -> Result<(Symbol, Composite)>

Parses a struct or record definition, e.g., struct Foo { ... } or record Foo { ... }.

@@ -212,35 +212,35 @@
source

pub(super) fn parse_definition_statement( &mut self, ) -> Result<DefinitionStatement>

Returns a DefinitionStatement AST node if the next tokens represent a definition statement.

-
source§

impl<N: Network> ParserContext<'_, N>

source

pub(super) fn token_to_int_type(token: &Token) -> Option<IntegerType>

Returns a IntegerType AST node if the given token is a supported integer type, or None.

+
source§

impl<N: Network> ParserContext<'_, N>

source

pub(super) fn token_to_int_type(token: &Token) -> Option<IntegerType>

Returns a IntegerType AST node if the given token is a supported integer type, or None.

source

pub fn parse_primitive_type(&mut self) -> Result<(Type, Span)>

Returns a [(Type, Span)] tuple of AST nodes if the next token represents a primitive type. Also returns the span of the parsed token.

These correspond to what the ABNF grammar calls ‘named primitive types’; the ‘primitive types’ according to the ABNF grammar include also the unit type.

source

pub fn parse_type(&mut self) -> Result<(Type, Span)>

Returns a [(Type, Span)] tuple of AST nodes if the next token represents a type. Also returns the span of the parsed token.

-

Auto Trait Implementations§

§

impl<'a, N> Freeze for ParserContext<'a, N>

§

impl<'a, N> !RefUnwindSafe for ParserContext<'a, N>

§

impl<'a, N> !Send for ParserContext<'a, N>

§

impl<'a, N> !Sync for ParserContext<'a, N>

§

impl<'a, N> Unpin for ParserContext<'a, N>
where - N: Unpin,

§

impl<'a, N> !UnwindSafe for ParserContext<'a, N>

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.

+

Auto Trait Implementations§

§

impl<'a, N> Freeze for ParserContext<'a, N>

§

impl<'a, N> !RefUnwindSafe for ParserContext<'a, N>

§

impl<'a, N> !Send for ParserContext<'a, N>

§

impl<'a, N> !Sync for ParserContext<'a, N>

§

impl<'a, N> Unpin for ParserContext<'a, N>
where + N: Unpin,

§

impl<'a, N> !UnwindSafe for ParserContext<'a, N>

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_parser/parser/expression/constant.INT_TYPES.html b/leo_parser/parser/expression/constant.INT_TYPES.html index 149afb4a18..077344a9e3 100644 --- a/leo_parser/parser/expression/constant.INT_TYPES.html +++ b/leo_parser/parser/expression/constant.INT_TYPES.html @@ -1 +1 @@ -INT_TYPES in leo_parser::parser::expression - Rust

Constant leo_parser::parser::expression::INT_TYPES

source ·
const INT_TYPES: &[Token];
\ No newline at end of file +INT_TYPES in leo_parser::parser::expression - Rust
leo_parser::parser::expression

Constant INT_TYPES

source
const INT_TYPES: &[Token];
\ No newline at end of file diff --git a/leo_parser/parser/expression/fn.assert_no_whitespace.html b/leo_parser/parser/expression/fn.assert_no_whitespace.html index 92289e9e08..5f0727248d 100644 --- a/leo_parser/parser/expression/fn.assert_no_whitespace.html +++ b/leo_parser/parser/expression/fn.assert_no_whitespace.html @@ -1,6 +1,6 @@ -assert_no_whitespace in leo_parser::parser::expression - Rust

Function leo_parser::parser::expression::assert_no_whitespace

source ·
fn assert_no_whitespace(
+assert_no_whitespace in leo_parser::parser::expression - Rust
leo_parser::parser::expression

Function assert_no_whitespace

source
fn assert_no_whitespace(
     left_span: Span,
     right_span: Span,
-    left: &str,
-    right: &str,
-) -> Result<()>
\ No newline at end of file + left: &str, + right: &str, +) -> Result<()>
\ No newline at end of file diff --git a/leo_parser/parser/expression/index.html b/leo_parser/parser/expression/index.html index c134853d54..62eb73de23 100644 --- a/leo_parser/parser/expression/index.html +++ b/leo_parser/parser/expression/index.html @@ -1 +1 @@ -leo_parser::parser::expression - Rust

Module leo_parser::parser::expression

source ·

Constants§

Functions§

\ No newline at end of file +leo_parser::parser::expression - Rust
leo_parser::parser

Module expression

source

Constants§

Functions§

\ No newline at end of file diff --git a/leo_parser/parser/file/index.html b/leo_parser/parser/file/index.html index a179affb60..7058ea32bc 100644 --- a/leo_parser/parser/file/index.html +++ b/leo_parser/parser/file/index.html @@ -1 +1 @@ -leo_parser::parser::file - Rust

Module leo_parser::parser::file

source ·
\ No newline at end of file +leo_parser::parser::file - Rust
leo_parser::parser

Module file

source
\ No newline at end of file diff --git a/leo_parser/parser/fn.parse.html b/leo_parser/parser/fn.parse.html index 57f0d2ea90..99690e5d9f 100644 --- a/leo_parser/parser/fn.parse.html +++ b/leo_parser/parser/fn.parse.html @@ -1,7 +1,7 @@ -parse in leo_parser::parser - Rust

Function leo_parser::parser::parse

source ·
pub fn parse<N: Network>(
+parse in leo_parser::parser - Rust
leo_parser::parser

Function parse

source
pub fn parse<N: Network>(
     handler: &Handler,
     node_builder: &NodeBuilder,
-    source: &str,
+    source: &str,
     start_pos: BytePos,
 ) -> Result<Program>
Expand description

Creates a new program from a given file path and source code text.

\ No newline at end of file diff --git a/leo_parser/parser/index.html b/leo_parser/parser/index.html index b26c871469..ac5f7f612c 100644 --- a/leo_parser/parser/index.html +++ b/leo_parser/parser/index.html @@ -1,4 +1,4 @@ -leo_parser::parser - Rust

Module leo_parser::parser

source ·
Expand description

The parser to convert Leo code text into a Program AST type.

+leo_parser::parser - Rust
leo_parser

Module parser

source
Expand description

The parser to convert Leo code text into a Program AST type.

This module contains the parse() function which calls the underlying tokenize() method to create a new program AST.

Modules§

Functions§

  • Creates a new program from a given file path and source code text.
\ No newline at end of file diff --git a/leo_parser/parser/statement/constant.ASSIGN_TOKENS.html b/leo_parser/parser/statement/constant.ASSIGN_TOKENS.html index 96cd108d86..441ba7065a 100644 --- a/leo_parser/parser/statement/constant.ASSIGN_TOKENS.html +++ b/leo_parser/parser/statement/constant.ASSIGN_TOKENS.html @@ -1 +1 @@ -ASSIGN_TOKENS in leo_parser::parser::statement - Rust

Constant leo_parser::parser::statement::ASSIGN_TOKENS

source ·
const ASSIGN_TOKENS: &[Token];
\ No newline at end of file +ASSIGN_TOKENS in leo_parser::parser::statement - Rust
leo_parser::parser::statement

Constant ASSIGN_TOKENS

source
const ASSIGN_TOKENS: &[Token];
\ No newline at end of file diff --git a/leo_parser/parser/statement/index.html b/leo_parser/parser/statement/index.html index ee851385bd..c99e5eb02b 100644 --- a/leo_parser/parser/statement/index.html +++ b/leo_parser/parser/statement/index.html @@ -1 +1 @@ -leo_parser::parser::statement - Rust

Module leo_parser::parser::statement

source ·

Constants§

\ No newline at end of file +leo_parser::parser::statement - Rust
leo_parser::parser

Module statement

source

Constants§

\ No newline at end of file diff --git a/leo_parser/parser/type_/constant.TYPE_TOKENS.html b/leo_parser/parser/type_/constant.TYPE_TOKENS.html index 0b39034249..4a59b2c623 100644 --- a/leo_parser/parser/type_/constant.TYPE_TOKENS.html +++ b/leo_parser/parser/type_/constant.TYPE_TOKENS.html @@ -1 +1 @@ -TYPE_TOKENS in leo_parser::parser::type_ - Rust

Constant leo_parser::parser::type_::TYPE_TOKENS

source ·
pub(super) const TYPE_TOKENS: &[Token];
\ No newline at end of file +TYPE_TOKENS in leo_parser::parser::type_ - Rust
leo_parser::parser::type_

Constant TYPE_TOKENS

source
pub(super) const TYPE_TOKENS: &[Token];
\ No newline at end of file diff --git a/leo_parser/parser/type_/index.html b/leo_parser/parser/type_/index.html index bb4c1f6ecc..39a40803c9 100644 --- a/leo_parser/parser/type_/index.html +++ b/leo_parser/parser/type_/index.html @@ -1 +1 @@ -leo_parser::parser::type_ - Rust

Module leo_parser::parser::type_

source ·

Constants§

\ No newline at end of file +leo_parser::parser::type_ - Rust
leo_parser::parser

Module type_

source

Constants§

\ No newline at end of file diff --git a/leo_parser/tokenizer/fn.tokenize.html b/leo_parser/tokenizer/fn.tokenize.html index 19bcec8268..83d0922f46 100644 --- a/leo_parser/tokenizer/fn.tokenize.html +++ b/leo_parser/tokenizer/fn.tokenize.html @@ -1,5 +1,5 @@ -tokenize in leo_parser::tokenizer - Rust

Function leo_parser::tokenizer::tokenize

source ·
pub(crate) fn tokenize(
-    input: &str,
+tokenize in leo_parser::tokenizer - Rust
leo_parser::tokenizer

Function tokenize

source
pub(crate) fn tokenize(
+    input: &str,
     start_pos: BytePos,
-) -> Result<Vec<SpannedToken>>
Expand description

Creates a new vector of spanned tokens from a given file path and source code text.

+) -> Result<Vec<SpannedToken>>
Expand description

Creates a new vector of spanned tokens from a given file path and source code text.

\ No newline at end of file diff --git a/leo_parser/tokenizer/fn.tokenize_iter.html b/leo_parser/tokenizer/fn.tokenize_iter.html index 22e93d9f67..94a884007c 100644 --- a/leo_parser/tokenizer/fn.tokenize_iter.html +++ b/leo_parser/tokenizer/fn.tokenize_iter.html @@ -1,6 +1,6 @@ -tokenize_iter in leo_parser::tokenizer - Rust

Function leo_parser::tokenizer::tokenize_iter

source ·
pub(crate) fn tokenize_iter(
-    input: &str,
+tokenize_iter in leo_parser::tokenizer - Rust
leo_parser::tokenizer

Function tokenize_iter

source
pub(crate) fn tokenize_iter(
+    input: &str,
     lo: BytePos,
-) -> impl '_ + Iterator<Item = Result<SpannedToken>>
Expand description

Yields spanned tokens from the given source code text.

+) -> impl '_ + Iterator<Item = Result<SpannedToken>>
Expand description

Yields spanned tokens from the given source code text.

The lo byte position determines where spans will start.

\ No newline at end of file diff --git a/leo_parser/tokenizer/index.html b/leo_parser/tokenizer/index.html index b04d6a5517..6a225149f4 100644 --- a/leo_parser/tokenizer/index.html +++ b/leo_parser/tokenizer/index.html @@ -1,4 +1,4 @@ -leo_parser::tokenizer - Rust

Module leo_parser::tokenizer

source ·
Expand description

The tokenizer to convert Leo code text into tokens.

+leo_parser::tokenizer - Rust
leo_parser

Module tokenizer

source
Expand description

The tokenizer to convert Leo code text into tokens.

This module contains the tokenize() function, which breaks down string text into tokens, optionally separated by whitespace.

Re-exports§

Modules§

Functions§

  • tokenize 🔒
    Creates a new vector of spanned tokens from a given file path and source code text.
  • Yields spanned tokens from the given source code text.
\ No newline at end of file diff --git a/leo_parser/tokenizer/lexer/fn.eat_identifier.html b/leo_parser/tokenizer/lexer/fn.eat_identifier.html index d0f30827ac..3d3dfebaa0 100644 --- a/leo_parser/tokenizer/lexer/fn.eat_identifier.html +++ b/leo_parser/tokenizer/lexer/fn.eat_identifier.html @@ -1,4 +1,4 @@ -eat_identifier in leo_parser::tokenizer::lexer - Rust

Function leo_parser::tokenizer::lexer::eat_identifier

source ·
fn eat_identifier(
-    input: &mut Peekable<impl Iterator<Item = char>>,
-) -> Option<String>
Expand description

Eat an identifier, that is, a string matching ‘[a-zA-Z][a-zA-Z\d_]*’, if any.

+eat_identifier in leo_parser::tokenizer::lexer - Rust
leo_parser::tokenizer::lexer

Function eat_identifier

source
fn eat_identifier(
+    input: &mut Peekable<impl Iterator<Item = char>>,
+) -> Option<String>
Expand description

Eat an identifier, that is, a string matching ‘[a-zA-Z][a-zA-Z\d_]*’, if any.

\ No newline at end of file diff --git a/leo_parser/tokenizer/lexer/fn.ensure_no_bidi_override.html b/leo_parser/tokenizer/lexer/fn.ensure_no_bidi_override.html index 8fed9f331b..63f42975a2 100644 --- a/leo_parser/tokenizer/lexer/fn.ensure_no_bidi_override.html +++ b/leo_parser/tokenizer/lexer/fn.ensure_no_bidi_override.html @@ -1,2 +1,2 @@ -ensure_no_bidi_override in leo_parser::tokenizer::lexer - Rust

Function leo_parser::tokenizer::lexer::ensure_no_bidi_override

source ·
fn ensure_no_bidi_override(string: &str) -> Result<()>
Expand description

Ensure that string contains no Unicode Bidirectional Override code points.

+ensure_no_bidi_override in leo_parser::tokenizer::lexer - Rust
leo_parser::tokenizer::lexer

Function ensure_no_bidi_override

source
fn ensure_no_bidi_override(string: &str) -> Result<()>
Expand description

Ensure that string contains no Unicode Bidirectional Override code points.

\ No newline at end of file diff --git a/leo_parser/tokenizer/lexer/fn.is_bidi_override.html b/leo_parser/tokenizer/lexer/fn.is_bidi_override.html index 052719e955..6307a699e9 100644 --- a/leo_parser/tokenizer/lexer/fn.is_bidi_override.html +++ b/leo_parser/tokenizer/lexer/fn.is_bidi_override.html @@ -1,2 +1,2 @@ -is_bidi_override in leo_parser::tokenizer::lexer - Rust

Function leo_parser::tokenizer::lexer::is_bidi_override

source ·
fn is_bidi_override(c: char) -> bool
Expand description

Checks if a char is a Unicode Bidirectional Override code point

+is_bidi_override in leo_parser::tokenizer::lexer - Rust
leo_parser::tokenizer::lexer

Function is_bidi_override

source
fn is_bidi_override(c: char) -> bool
Expand description

Checks if a char is a Unicode Bidirectional Override code point

\ No newline at end of file diff --git a/leo_parser/tokenizer/lexer/index.html b/leo_parser/tokenizer/lexer/index.html index 54a2df6cd2..11ef7a46c1 100644 --- a/leo_parser/tokenizer/lexer/index.html +++ b/leo_parser/tokenizer/lexer/index.html @@ -1 +1 @@ -leo_parser::tokenizer::lexer - Rust

Module leo_parser::tokenizer::lexer

source ·

Structs§

Functions§

  • Eat an identifier, that is, a string matching ‘[a-zA-Z][a-zA-Z\d_]*’, if any.
  • Ensure that string contains no Unicode Bidirectional Override code points.
  • Checks if a char is a Unicode Bidirectional Override code point
\ No newline at end of file +leo_parser::tokenizer::lexer - Rust
leo_parser::tokenizer

Module lexer

source

Structs§

Functions§

  • Eat an identifier, that is, a string matching ‘[a-zA-Z][a-zA-Z\d_]*’, if any.
  • Ensure that string contains no Unicode Bidirectional Override code points.
  • Checks if a char is a Unicode Bidirectional Override code point
\ No newline at end of file diff --git a/leo_parser/tokenizer/lexer/struct.SpannedToken.html b/leo_parser/tokenizer/lexer/struct.SpannedToken.html index 9c274bd7f0..38b7e57883 100644 --- a/leo_parser/tokenizer/lexer/struct.SpannedToken.html +++ b/leo_parser/tokenizer/lexer/struct.SpannedToken.html @@ -1,40 +1,40 @@ -SpannedToken in leo_parser::tokenizer::lexer - Rust

Struct leo_parser::tokenizer::lexer::SpannedToken

source ·
pub struct SpannedToken {
+SpannedToken in leo_parser::tokenizer::lexer - Rust
leo_parser::tokenizer::lexer

Struct SpannedToken

source
pub struct SpannedToken {
     pub token: Token,
     pub span: Span,
 }

Fields§

§token: Token§span: Span

Implementations§

source§

impl SpannedToken

source

pub const fn dummy() -> Self

Returns a dummy token at a dummy span.

-

Trait Implementations§

source§

impl Clone for SpannedToken

source§

fn clone(&self) -> SpannedToken

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 SpannedToken

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for SpannedToken

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 Display for SpannedToken

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Serialize for SpannedToken

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 - 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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for SpannedToken

source§

fn clone(&self) -> SpannedToken

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 SpannedToken

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for SpannedToken

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 Display for SpannedToken

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Serialize for SpannedToken

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 + 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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_parser/tokenizer/token/constant.KEYWORD_TOKENS.html b/leo_parser/tokenizer/token/constant.KEYWORD_TOKENS.html index fd009dd956..97bc50b170 100644 --- a/leo_parser/tokenizer/token/constant.KEYWORD_TOKENS.html +++ b/leo_parser/tokenizer/token/constant.KEYWORD_TOKENS.html @@ -1,4 +1,4 @@ -KEYWORD_TOKENS in leo_parser::tokenizer::token - Rust

Constant leo_parser::tokenizer::token::KEYWORD_TOKENS

source ·
pub const KEYWORD_TOKENS: &[Token];
Expand description

Represents all valid Leo keyword tokens. +KEYWORD_TOKENS in leo_parser::tokenizer::token - Rust

leo_parser::tokenizer::token

Constant KEYWORD_TOKENS

source
pub const KEYWORD_TOKENS: &[Token];
Expand description

Represents all valid Leo keyword tokens. This also includes the boolean literals true and false, unlike the ABNF grammar, which classifies them as literals and not keywords. But for the purposes of our lexer implementation, diff --git a/leo_parser/tokenizer/token/enum.Delimiter.html b/leo_parser/tokenizer/token/enum.Delimiter.html index d71bdd98ed..c90a6aa7a8 100644 --- a/leo_parser/tokenizer/token/enum.Delimiter.html +++ b/leo_parser/tokenizer/token/enum.Delimiter.html @@ -1,4 +1,4 @@ -Delimiter in leo_parser::tokenizer::token - Rust

Enum leo_parser::tokenizer::token::Delimiter

source ·
pub enum Delimiter {
+Delimiter in leo_parser::tokenizer::token - Rust
leo_parser::tokenizer::token

Enum Delimiter

source
pub enum Delimiter {
     Parenthesis,
     Brace,
     Bracket,
@@ -7,29 +7,29 @@
 
§

Brace

{ ... }

§

Bracket

[ ... ]

Implementations§

source§

impl Delimiter

source

pub fn open_close_pair(self) -> (Token, Token)

Returns the open/close tokens that the delimiter corresponds to.

-

Trait Implementations§

source§

impl Clone for Delimiter

source§

fn clone(&self) -> Delimiter

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 Copy for Delimiter

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+

Trait Implementations§

source§

impl Clone for Delimiter

source§

fn clone(&self) -> Delimiter

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 Copy for Delimiter

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_parser/tokenizer/token/enum.Token.html b/leo_parser/tokenizer/token/enum.Token.html index 3cbca33b37..a4ff0c86fc 100644 --- a/leo_parser/tokenizer/token/enum.Token.html +++ b/leo_parser/tokenizer/token/enum.Token.html @@ -1,12 +1,12 @@ -Token in leo_parser::tokenizer::token - Rust

Enum leo_parser::tokenizer::token::Token

source ·
pub enum Token {
-
Show 109 variants CommentLine(String), - CommentBlock(String), +Token in leo_parser::tokenizer::token - Rust
leo_parser::tokenizer::token

Enum Token

source
pub enum Token {
+
Show 109 variants CommentLine(String), + CommentBlock(String), WhiteSpace, True, False, - Integer(String), - AddressLit(String), - StaticString(String), + Integer(String), + AddressLit(String), + StaticString(String), Identifier(Symbol), Not, And, @@ -113,11 +113,11 @@ since it includes comments and whitespace, it corresponds to the notion of ‘lexeme’ in the ABNF grammar. There are also a few other differences, noted in comments below.

-

Variants§

§

CommentLine(String)

§

CommentBlock(String)

§

WhiteSpace

§

True

§

False

§

Integer(String)

§

AddressLit(String)

§

StaticString(String)

§

Identifier(Symbol)

§

Not

§

And

§

AndAssign

§

Or

§

OrAssign

§

BitAnd

§

BitAndAssign

§

BitOr

§

BitOrAssign

§

BitXor

§

BitXorAssign

§

Eq

§

NotEq

§

Lt

§

LtEq

§

Gt

§

GtEq

§

Add

§

AddAssign

§

Sub

§

SubAssign

§

Mul

§

MulAssign

§

Div

§

DivAssign

§

Pow

§

PowAssign

§

Rem

§

RemAssign

§

Shl

§

ShlAssign

§

Shr

§

ShrAssign

§

Assign

§

LeftParen

§

RightParen

§

LeftSquare

§

RightSquare

§

LeftCurly

§

RightCurly

§

Comma

§

Dot

§

DotDot

§

Semicolon

§

Colon

§

DoubleColon

§

Question

§

Arrow

§

BigArrow

§

Underscore

§

At

§

Address

§

Bool

§

Field

§

Group

§

I8

§

I16

§

I32

§

I64

§

I128

§

Record

§

Scalar

§

Signature

§

String

§

Struct

§

U8

§

U16

§

U32

§

U64

§

U128

§

Aleo

§

As

§

Assert

§

AssertEq

§

AssertNeq

§

Async

§

Block

§

Console

§

Const

§

Constant

§

Else

§

Fn

§

For

§

Function

§

Future

§

If

§

Import

§

In

§

Inline

§

Let

§

Mapping

§

Network

§

Private

§

Program

§

Public

§

Return

§

SelfLower

§

Transition

§

Eof

§

Leo

Implementations§

source§

impl Token

source

pub fn is_keyword(&self) -> bool

Returns true if the self token equals a Leo keyword.

-
source

pub fn keyword_to_symbol(&self) -> Option<Symbol>

Converts self to the corresponding Symbol if it is_keyword.

+

Variants§

§

CommentLine(String)

§

CommentBlock(String)

§

WhiteSpace

§

True

§

False

§

Integer(String)

§

AddressLit(String)

§

StaticString(String)

§

Identifier(Symbol)

§

Not

§

And

§

AndAssign

§

Or

§

OrAssign

§

BitAnd

§

BitAndAssign

§

BitOr

§

BitOrAssign

§

BitXor

§

BitXorAssign

§

Eq

§

NotEq

§

Lt

§

LtEq

§

Gt

§

GtEq

§

Add

§

AddAssign

§

Sub

§

SubAssign

§

Mul

§

MulAssign

§

Div

§

DivAssign

§

Pow

§

PowAssign

§

Rem

§

RemAssign

§

Shl

§

ShlAssign

§

Shr

§

ShrAssign

§

Assign

§

LeftParen

§

RightParen

§

LeftSquare

§

RightSquare

§

LeftCurly

§

RightCurly

§

Comma

§

Dot

§

DotDot

§

Semicolon

§

Colon

§

DoubleColon

§

Question

§

Arrow

§

BigArrow

§

Underscore

§

At

§

Address

§

Bool

§

Field

§

Group

§

I8

§

I16

§

I32

§

I64

§

I128

§

Record

§

Scalar

§

Signature

§

String

§

Struct

§

U8

§

U16

§

U32

§

U64

§

U128

§

Aleo

§

As

§

Assert

§

AssertEq

§

AssertNeq

§

Async

§

Block

§

Console

§

Const

§

Constant

§

Else

§

Fn

§

For

§

Function

§

Future

§

If

§

Import

§

In

§

Inline

§

Let

§

Mapping

§

Network

§

Private

§

Program

§

Public

§

Return

§

SelfLower

§

Transition

§

Eof

§

Leo

Implementations§

source§

impl Token

source

pub fn is_keyword(&self) -> bool

Returns true if the self token equals a Leo keyword.

+
source

pub fn keyword_to_symbol(&self) -> Option<Symbol>

Converts self to the corresponding Symbol if it is_keyword.

source§

impl Token

source

fn eat_integer( - input: &mut Peekable<impl Iterator<Item = char>>, -) -> Result<(usize, Token)>

Returns a tuple: [(integer length, integer token)] if an integer can be eaten. + input: &mut Peekable<impl Iterator<Item = char>>, +) -> Result<(usize, Token)>

Returns a tuple: [(integer length, integer token)] if an integer can be eaten. An integer can be eaten if its characters are at the front of the given input string. If there is no input, this function returns an error. If there is input but no integer, this function returns the tuple consisting of @@ -127,48 +127,48 @@ numeral (beginning with 0x), an octal numeral (beginning with ‘0o’), or a binary numeral (beginning with 0b), optionally including underscores, which corresponds to a numeral in the ABNF grammar.

-
source

pub(crate) fn eat(input: &str) -> Result<(usize, Token)>

Returns a tuple: [(token length, token)] if the next token can be eaten, otherwise returns an error. +

source

pub(crate) fn eat(input: &str) -> Result<(usize, Token)>

Returns a tuple: [(token length, token)] if the next token can be eaten, otherwise returns an error. The next token can be eaten if the characters at the front of the given input string can be scanned into a token.

-

Trait Implementations§

source§

impl Clone for Token

source§

fn clone(&self) -> Token

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 Token

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Token

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 Display for Token

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for Token

source§

fn eq(&self, other: &Token) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for Token

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 Eq for Token

source§

impl StructuralPartialEq for Token

Auto Trait Implementations§

§

impl Freeze for Token

§

impl RefUnwindSafe for Token

§

impl Send for Token

§

impl Sync for Token

§

impl Unpin for Token

§

impl UnwindSafe for Token

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for Token

source§

fn clone(&self) -> Token

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 Token

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Token

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 Display for Token

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for Token

source§

fn eq(&self, other: &Token) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for Token

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 Eq for Token

source§

impl StructuralPartialEq for Token

Auto Trait Implementations§

§

impl Freeze for Token

§

impl RefUnwindSafe for Token

§

impl Send for Token

§

impl Sync for Token

§

impl Unpin for Token

§

impl UnwindSafe for Token

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_parser/tokenizer/token/index.html b/leo_parser/tokenizer/token/index.html index 2265ff0eaf..2a672c4c74 100644 --- a/leo_parser/tokenizer/token/index.html +++ b/leo_parser/tokenizer/token/index.html @@ -1,4 +1,4 @@ -leo_parser::tokenizer::token - Rust

Module leo_parser::tokenizer::token

source ·

Enums§

  • Describes delimiters of a token sequence.
  • Represents all valid Leo syntax tokens.

Constants§

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/code_generation/index.html b/leo_passes/code_generation/index.html index 263d7b7c40..fc9a5883cb 100644 --- a/leo_passes/code_generation/index.html +++ b/leo_passes/code_generation/index.html @@ -1 +1 @@ -leo_passes::code_generation - Rust

Module leo_passes::code_generation

source ·

Re-exports§

Modules§

\ No newline at end of file +leo_passes::code_generation - Rust
leo_passes

Module code_generation

source

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_passes/code_generation/visit_expressions/index.html b/leo_passes/code_generation/visit_expressions/index.html index 4f41514818..bac6ae5765 100644 --- a/leo_passes/code_generation/visit_expressions/index.html +++ b/leo_passes/code_generation/visit_expressions/index.html @@ -1 +1 @@ -leo_passes::code_generation::visit_expressions - Rust

Module leo_passes::code_generation::visit_expressions

source ·
\ No newline at end of file +leo_passes::code_generation::visit_expressions - Rust
leo_passes::code_generation

Module visit_expressions

source
\ No newline at end of file diff --git a/leo_passes/code_generation/visit_program/constant.EXPECT_STR.html b/leo_passes/code_generation/visit_program/constant.EXPECT_STR.html index 53eca2f25a..170b8d7e04 100644 --- a/leo_passes/code_generation/visit_program/constant.EXPECT_STR.html +++ b/leo_passes/code_generation/visit_program/constant.EXPECT_STR.html @@ -1 +1 @@ -EXPECT_STR in leo_passes::code_generation::visit_program - Rust

Constant leo_passes::code_generation::visit_program::EXPECT_STR

source ·
const EXPECT_STR: &str = "Failed to write code";
\ No newline at end of file +EXPECT_STR in leo_passes::code_generation::visit_program - Rust
leo_passes::code_generation::visit_program

Constant EXPECT_STR

source
const EXPECT_STR: &str = "Failed to write code";
\ No newline at end of file diff --git a/leo_passes/code_generation/visit_program/index.html b/leo_passes/code_generation/visit_program/index.html index 0de8dedeba..d384ef9884 100644 --- a/leo_passes/code_generation/visit_program/index.html +++ b/leo_passes/code_generation/visit_program/index.html @@ -1 +1 @@ -leo_passes::code_generation::visit_program - Rust

Module leo_passes::code_generation::visit_program

source ·

Constants§

\ No newline at end of file +leo_passes::code_generation::visit_program - Rust
leo_passes::code_generation

Module visit_program

source

Constants§

\ No newline at end of file diff --git a/leo_passes/code_generation/visit_statements/index.html b/leo_passes/code_generation/visit_statements/index.html index c1bf3b6735..5c96959535 100644 --- a/leo_passes/code_generation/visit_statements/index.html +++ b/leo_passes/code_generation/visit_statements/index.html @@ -1 +1 @@ -leo_passes::code_generation::visit_statements - Rust

Module leo_passes::code_generation::visit_statements

source ·
\ No newline at end of file +leo_passes::code_generation::visit_statements - Rust
leo_passes::code_generation

Module visit_statements

source
\ No newline at end of file diff --git a/leo_passes/code_generation/visit_type/index.html b/leo_passes/code_generation/visit_type/index.html index ab24d5805f..d5d87c0acf 100644 --- a/leo_passes/code_generation/visit_type/index.html +++ b/leo_passes/code_generation/visit_type/index.html @@ -1 +1 @@ -leo_passes::code_generation::visit_type - Rust

Module leo_passes::code_generation::visit_type

source ·
\ No newline at end of file +leo_passes::code_generation::visit_type - Rust
leo_passes::code_generation

Module visit_type

source
\ No newline at end of file diff --git a/leo_passes/common/assigner/index.html b/leo_passes/common/assigner/index.html index 4d4d3012d6..b1cef242bd 100644 --- a/leo_passes/common/assigner/index.html +++ b/leo_passes/common/assigner/index.html @@ -1,2 +1,2 @@ -leo_passes::common::assigner - Rust

Module leo_passes::common::assigner

source ·

Structs§

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/common/assigner/struct.AssignerInner.html b/leo_passes/common/assigner/struct.AssignerInner.html index 853867f1c4..13c4e49cd4 100644 --- a/leo_passes/common/assigner/struct.AssignerInner.html +++ b/leo_passes/common/assigner/struct.AssignerInner.html @@ -1,12 +1,12 @@ -AssignerInner in leo_passes::common::assigner - Rust

Struct leo_passes::common::assigner::AssignerInner

source ·
pub struct AssignerInner {
-    pub(crate) counter: usize,
+AssignerInner in leo_passes::common::assigner - Rust
leo_passes::common::assigner

Struct AssignerInner

source
pub struct AssignerInner {
+    pub(crate) counter: usize,
 }
Expand description

Contains the actual data for Assigner. Modeled this way to afford an API using interior mutability.

-

Fields§

§counter: usize

A strictly increasing counter, used to ensure that new variable names are unique.

+

Fields§

§counter: usize

A strictly increasing counter, used to ensure that new variable names are unique.

Implementations§

source§

impl AssignerInner

source

fn unique_symbol( &mut self, - arg: impl Display, - separator: impl Display, + arg: impl Display, + separator: impl Display, ) -> Symbol

Return a new unique Symbol from a &str.

source

fn simple_assign_statement( &mut self, @@ -15,29 +15,29 @@ id: NodeID, ) -> Statement

Constructs the assignment statement place = expr;. This function should be the only place where AssignStatements are constructed.

-

Trait Implementations§

source§

impl Clone for AssignerInner

source§

fn clone(&self) -> AssignerInner

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 AssignerInner

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for AssignerInner

source§

fn default() -> AssignerInner

Returns the “default value” for a type. 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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+

Trait Implementations§

source§

impl Clone for AssignerInner

source§

fn clone(&self) -> AssignerInner

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 AssignerInner

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for AssignerInner

source§

fn default() -> AssignerInner

Returns the “default value” for a type. 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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/common/constant_propagation_table/index.html b/leo_passes/common/constant_propagation_table/index.html index 1c62d2d611..bc0cfa16c3 100644 --- a/leo_passes/common/constant_propagation_table/index.html +++ b/leo_passes/common/constant_propagation_table/index.html @@ -1 +1 @@ -leo_passes::common::constant_propagation_table - Rust
\ No newline at end of file +leo_passes::common::constant_propagation_table - Rust
leo_passes::common

Module constant_propagation_table

source

Structs§

\ No newline at end of file diff --git a/leo_passes/common/constant_propagation_table/struct.ConstantPropagationTable.html b/leo_passes/common/constant_propagation_table/struct.ConstantPropagationTable.html index 7b31395dd9..04a66df26a 100644 --- a/leo_passes/common/constant_propagation_table/struct.ConstantPropagationTable.html +++ b/leo_passes/common/constant_propagation_table/struct.ConstantPropagationTable.html @@ -1,57 +1,57 @@ -ConstantPropagationTable in leo_passes::common::constant_propagation_table - Rust
pub struct ConstantPropagationTable {
-    pub(crate) parent: Option<Box<ConstantPropagationTable>>,
+ConstantPropagationTable in leo_passes::common::constant_propagation_table - Rust
leo_passes::common::constant_propagation_table

Struct ConstantPropagationTable

source
pub struct ConstantPropagationTable {
+    pub(crate) parent: Option<Box<ConstantPropagationTable>>,
     pub(crate) constants: IndexMap<Symbol, Expression>,
-    pub(crate) scope_index: usize,
-    pub(crate) scopes: Vec<RefCell<ConstantPropagationTable>>,
-}

Fields§

§parent: Option<Box<ConstantPropagationTable>>

The parent scope if it exists. + pub(crate) scope_index: usize, + pub(crate) scopes: Vec<RefCell<ConstantPropagationTable>>, +}

Fields§

§parent: Option<Box<ConstantPropagationTable>>

The parent scope if it exists. For example, the parent scope of a then-block is the scope containing the associated ConditionalStatement.

§constants: IndexMap<Symbol, Expression>

The known constants in the current scope This field is populated as necessary.

-
§scope_index: usize

The index of the current scope.

-
§scopes: Vec<RefCell<ConstantPropagationTable>>

The sub-scopes of this scope.

-

Implementations§

source§

impl ConstantPropagationTable

source

pub fn scope_index(&mut self) -> usize

Returns the current scope index. +

§scope_index: usize

The index of the current scope.

+
§scopes: Vec<RefCell<ConstantPropagationTable>>

The sub-scopes of this scope.

+

Implementations§

source§

impl ConstantPropagationTable

source

pub fn scope_index(&mut self) -> usize

Returns the current scope index. Increments the scope index.

source

pub fn insert_constant( &mut self, symbol: Symbol, expr: Expression, -) -> 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

-
source

pub fn constant_in_parent_scope(&self, symbol: Symbol) -> bool

Returns true if the constant exists in any parent 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 constant propagation table

-

Trait Implementations§

source§

impl Clone for ConstantPropagationTable

source§

fn clone(&self) -> ConstantPropagationTable

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 ConstantPropagationTable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ConstantPropagationTable

source§

fn default() -> ConstantPropagationTable

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for ConstantPropagationTable

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 ConstantPropagationTable

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 - 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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +) -> 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

+
source

pub fn constant_in_parent_scope(&self, symbol: Symbol) -> bool

Returns true if the constant exists in any parent 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 constant propagation table

+

Trait Implementations§

source§

impl Clone for ConstantPropagationTable

source§

fn clone(&self) -> ConstantPropagationTable

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 ConstantPropagationTable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ConstantPropagationTable

source§

fn default() -> ConstantPropagationTable

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for ConstantPropagationTable

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 ConstantPropagationTable

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 + 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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_passes/common/graph/enum.DiGraphError.html b/leo_passes/common/graph/enum.DiGraphError.html index 6a6075c197..be855a637b 100644 --- a/leo_passes/common/graph/enum.DiGraphError.html +++ b/leo_passes/common/graph/enum.DiGraphError.html @@ -1,33 +1,33 @@ -DiGraphError in leo_passes::common::graph - Rust

Enum leo_passes::common::graph::DiGraphError

source ·
pub enum DiGraphError<N: Node> {
-    CycleDetected(Vec<N>),
+DiGraphError in leo_passes::common::graph - Rust
leo_passes::common::graph

Enum DiGraphError

source
pub enum DiGraphError<N: Node> {
+    CycleDetected(Vec<N>),
 }
Expand description

Errors in directed graph operations.

-

Variants§

§

CycleDetected(Vec<N>)

An error that is emitted when a cycle is detected in the directed graph. Contains the path of the cycle.

-

Trait Implementations§

source§

impl<N: Debug + Node> Debug for DiGraphError<N>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<N> Freeze for DiGraphError<N>

§

impl<N> RefUnwindSafe for DiGraphError<N>
where - N: RefUnwindSafe,

§

impl<N> Send for DiGraphError<N>
where - N: Send,

§

impl<N> Sync for DiGraphError<N>
where - N: Sync,

§

impl<N> Unpin for DiGraphError<N>
where - N: Unpin,

§

impl<N> UnwindSafe for DiGraphError<N>
where - N: UnwindSafe,

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.

+

Variants§

§

CycleDetected(Vec<N>)

An error that is emitted when a cycle is detected in the directed graph. Contains the path of the cycle.

+

Trait Implementations§

source§

impl<N: Debug + Node> Debug for DiGraphError<N>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<N> Freeze for DiGraphError<N>

§

impl<N> RefUnwindSafe for DiGraphError<N>
where + N: RefUnwindSafe,

§

impl<N> Send for DiGraphError<N>
where + N: Send,

§

impl<N> Sync for DiGraphError<N>
where + N: Sync,

§

impl<N> Unpin for DiGraphError<N>
where + N: Unpin,

§

impl<N> UnwindSafe for DiGraphError<N>
where + N: UnwindSafe,

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/common/graph/index.html b/leo_passes/common/graph/index.html index 16c6fcad75..431a4ea435 100644 --- a/leo_passes/common/graph/index.html +++ b/leo_passes/common/graph/index.html @@ -1 +1 @@ -leo_passes::common::graph - Rust

Module leo_passes::common::graph

source ·

Structs§

Enums§

Traits§

  • A node in a graph.

Type Aliases§

\ No newline at end of file +leo_passes::common::graph - Rust
leo_passes::common

Module graph

source

Structs§

Enums§

Traits§

  • A node in a graph.

Type Aliases§

\ No newline at end of file diff --git a/leo_passes/common/graph/struct.DiGraph.html b/leo_passes/common/graph/struct.DiGraph.html index cb4097b91b..098c97ce93 100644 --- a/leo_passes/common/graph/struct.DiGraph.html +++ b/leo_passes/common/graph/struct.DiGraph.html @@ -1,4 +1,4 @@ -DiGraph in leo_passes::common::graph - Rust

Struct leo_passes::common::graph::DiGraph

source ·
pub struct DiGraph<N: Node> {
+DiGraph in leo_passes::common::graph - Rust
leo_passes::common::graph

Struct DiGraph

source
pub struct DiGraph<N: Node> {
     nodes: IndexSet<N>,
     edges: IndexMap<N, IndexSet<N>>,
 }
Expand description

A directed graph.

@@ -7,8 +7,8 @@ Each entry in the map is a node in the graph, and the set of nodes that it points to.

Implementations§

source§

impl<N: Node> DiGraph<N>

source

pub fn new(nodes: IndexSet<N>) -> Self

Initializes a new DiGraph from a vector of source nodes.

source

pub fn add_edge(&mut self, from: N, to: N)

Adds an edge to the graph.

-
source

pub fn contains_node(&self, node: N) -> bool

Returns true if the graph contains the given node.

-
source

pub fn post_order(&self) -> Result<IndexSet<N>, DiGraphError<N>>

Returns the post-order ordering of the graph. +

source

pub fn contains_node(&self, node: N) -> bool

Returns true if the graph contains the given node.

+
source

pub fn post_order(&self) -> Result<IndexSet<N>, DiGraphError<N>>

Returns the post-order ordering of the graph. Detects if there is a cycle in the graph.

source

pub fn retain_nodes(&mut self, nodes: &IndexSet<N>)

Retains a subset of the nodes, and removes all edges in which the source or destination is not in the subset.

source

fn contains_cycle_from( @@ -16,39 +16,39 @@ node: N, discovered: &mut IndexSet<N>, finished: &mut IndexSet<N>, -) -> Option<N>

Trait Implementations§

source§

impl<N: Debug + Node> Debug for DiGraph<N>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<N: PartialEq + Node> PartialEq for DiGraph<N>

source§

fn eq(&self, other: &DiGraph<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl<N: Eq + Node> Eq for DiGraph<N>

source§

impl<N: Node> StructuralPartialEq for DiGraph<N>

Auto Trait Implementations§

§

impl<N> Freeze for DiGraph<N>

§

impl<N> RefUnwindSafe for DiGraph<N>
where - N: RefUnwindSafe,

§

impl<N> Send for DiGraph<N>
where - N: Send,

§

impl<N> Sync for DiGraph<N>
where - N: Sync,

§

impl<N> Unpin for DiGraph<N>
where - N: Unpin,

§

impl<N> UnwindSafe for DiGraph<N>
where - N: UnwindSafe,

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<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+) -> Option<N>

Trait Implementations§

source§

impl<N: Debug + Node> Debug for DiGraph<N>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<N: PartialEq + Node> PartialEq for DiGraph<N>

source§

fn eq(&self, other: &DiGraph<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl<N: Eq + Node> Eq for DiGraph<N>

source§

impl<N: Node> StructuralPartialEq for DiGraph<N>

Auto Trait Implementations§

§

impl<N> Freeze for DiGraph<N>

§

impl<N> RefUnwindSafe for DiGraph<N>
where + N: RefUnwindSafe,

§

impl<N> Send for DiGraph<N>
where + N: Send,

§

impl<N> Sync for DiGraph<N>
where + N: Sync,

§

impl<N> Unpin for DiGraph<N>
where + N: Unpin,

§

impl<N> UnwindSafe for DiGraph<N>
where + N: UnwindSafe,

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<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/common/graph/trait.Node.html b/leo_passes/common/graph/trait.Node.html index 65efe6b9ab..cc38ea58a1 100644 --- a/leo_passes/common/graph/trait.Node.html +++ b/leo_passes/common/graph/trait.Node.html @@ -1,8 +1,8 @@ -Node in leo_passes::common::graph - Rust

Trait leo_passes::common::graph::Node

source ·
pub trait Node:
-    Copy
+Node in leo_passes::common::graph - Rust
leo_passes::common::graph

Trait Node

source
pub trait Node:
+    Copy
     + 'static
-    + Eq
-    + PartialEq
-    + Debug
-    + Hash { }
Expand description

A node in a graph.

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Node for Symbol

Implementors§

\ No newline at end of file + + Eq + + PartialEq + + Debug + + Hash { }
Expand description

A node in a graph.

+

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Node for Symbol

Implementors§

\ No newline at end of file diff --git a/leo_passes/common/graph/type.CallGraph.html b/leo_passes/common/graph/type.CallGraph.html index cf22cf57ac..7c57569e1f 100644 --- a/leo_passes/common/graph/type.CallGraph.html +++ b/leo_passes/common/graph/type.CallGraph.html @@ -1,4 +1,4 @@ -CallGraph in leo_passes::common::graph - Rust

Type Alias leo_passes::common::graph::CallGraph

source ·
pub type CallGraph = DiGraph<Symbol>;
Expand description

A call graph.

+CallGraph in leo_passes::common::graph - Rust
leo_passes::common::graph

Type Alias CallGraph

source
pub type CallGraph = DiGraph<Symbol>;
Expand description

A call graph.

Aliased Type§

struct CallGraph {
     nodes: IndexSet<Symbol>,
     edges: IndexMap<Symbol, IndexSet<Symbol>>,
diff --git a/leo_passes/common/graph/type.ImportGraph.html b/leo_passes/common/graph/type.ImportGraph.html
index 64b41fed49..081559c37c 100644
--- a/leo_passes/common/graph/type.ImportGraph.html
+++ b/leo_passes/common/graph/type.ImportGraph.html
@@ -1,4 +1,4 @@
-ImportGraph in leo_passes::common::graph - Rust

Type Alias leo_passes::common::graph::ImportGraph

source ·
pub type ImportGraph = DiGraph<Symbol>;
Expand description

An import dependency graph.

+ImportGraph in leo_passes::common::graph - Rust
leo_passes::common::graph

Type Alias ImportGraph

source
pub type ImportGraph = DiGraph<Symbol>;
Expand description

An import dependency graph.

Aliased Type§

struct ImportGraph {
     nodes: IndexSet<Symbol>,
     edges: IndexMap<Symbol, IndexSet<Symbol>>,
diff --git a/leo_passes/common/graph/type.StructGraph.html b/leo_passes/common/graph/type.StructGraph.html
index ea4c07bfc0..98dfe3be1f 100644
--- a/leo_passes/common/graph/type.StructGraph.html
+++ b/leo_passes/common/graph/type.StructGraph.html
@@ -1,4 +1,4 @@
-StructGraph in leo_passes::common::graph - Rust

Type Alias leo_passes::common::graph::StructGraph

source ·
pub type StructGraph = DiGraph<Symbol>;
Expand description

A struct dependency graph.

+StructGraph in leo_passes::common::graph - Rust
leo_passes::common::graph

Type Alias StructGraph

source
pub type StructGraph = DiGraph<Symbol>;
Expand description

A struct dependency graph.

Aliased Type§

struct StructGraph {
     nodes: IndexSet<Symbol>,
     edges: IndexMap<Symbol, IndexSet<Symbol>>,
diff --git a/leo_passes/common/index.html b/leo_passes/common/index.html
index 380a2bc2cd..13c9a36284 100644
--- a/leo_passes/common/index.html
+++ b/leo_passes/common/index.html
@@ -1 +1 @@
-leo_passes::common - Rust

Module leo_passes::common

source ·

Re-exports§

Modules§

\ No newline at end of file +leo_passes::common - Rust
leo_passes

Module common

source

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_passes/common/rename_table/index.html b/leo_passes/common/rename_table/index.html index a613945bf6..baae88bf13 100644 --- a/leo_passes/common/rename_table/index.html +++ b/leo_passes/common/rename_table/index.html @@ -1 +1 @@ -leo_passes::common::rename_table - Rust

Module leo_passes::common::rename_table

source ·

Structs§

  • RenameTable tracks the names assigned by static single assignment in a single scope.
\ No newline at end of file +leo_passes::common::rename_table - Rust
leo_passes::common

Module rename_table

source

Structs§

  • RenameTable tracks the names assigned by static single assignment in a single scope.
\ No newline at end of file diff --git a/leo_passes/common/rename_table/struct.RenameTable.html b/leo_passes/common/rename_table/struct.RenameTable.html index 792c5bbcf2..02fa8f78d0 100644 --- a/leo_passes/common/rename_table/struct.RenameTable.html +++ b/leo_passes/common/rename_table/struct.RenameTable.html @@ -1,49 +1,49 @@ -RenameTable in leo_passes::common::rename_table - Rust

Struct leo_passes::common::rename_table::RenameTable

source ·
pub struct RenameTable {
-    pub(crate) parent: Option<Box<RenameTable>>,
+RenameTable in leo_passes::common::rename_table - Rust
leo_passes::common::rename_table

Struct RenameTable

source
pub struct RenameTable {
+    pub(crate) parent: Option<Box<RenameTable>>,
     names: IndexMap<Symbol, Symbol>,
     ids: IndexMap<Symbol, NodeID>,
 }
Expand description

RenameTable tracks the names assigned by static single assignment in a single scope.

-

Fields§

§parent: Option<Box<RenameTable>>

The RenameTable of the parent scope.

+

Fields§

§parent: Option<Box<RenameTable>>

The RenameTable of the parent scope.

§names: IndexMap<Symbol, Symbol>

The mapping from names in the original AST to new names in the renamed AST.

§ids: IndexMap<Symbol, NodeID>

The mapping from symbols to node IDs. These are used to ensure that newly introduced symbols reference the appropriate information that has been previously indexed by node ID. e,g. TypeTable.

-

Implementations§

source§

impl RenameTable

source

pub(crate) fn new(parent: Option<Box<RenameTable>>) -> Self

Create a new RenameTable with the given parent.

-
source

pub(crate) fn local_names(&self) -> impl Iterator<Item = &Symbol>

Returns the symbols that were renamed in the current scope.

+

Implementations§

source§

impl RenameTable

source

pub(crate) fn new(parent: Option<Box<RenameTable>>) -> Self

Create a new RenameTable with the given parent.

+
source

pub(crate) fn local_names(&self) -> impl Iterator<Item = &Symbol>

Returns the symbols that were renamed in the current scope.

source

pub(crate) fn update(&mut self, symbol: Symbol, new_symbol: Symbol, id: NodeID)

Updates self.mapping with the desired entry. Creates a new entry if symbol is not already in self.mapping.

-
source

pub(crate) fn lookup(&self, symbol: Symbol) -> Option<&Symbol>

Looks up the new name for symbol, recursively checking the parent if it is not found.

-
source

pub(crate) fn lookup_id(&self, symbol: &Symbol) -> Option<&NodeID>

Looks up the node ID for symbol, recursively checking the parent if it is not found.

-

Trait Implementations§

source§

impl Clone for RenameTable

source§

fn clone(&self) -> RenameTable

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 RenameTable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for RenameTable

source§

fn default() -> RenameTable

Returns the “default value” for a type. Read more
source§

impl PartialEq for RenameTable

source§

fn eq(&self, other: &RenameTable) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Eq for RenameTable

source§

impl StructuralPartialEq for RenameTable

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source

pub(crate) fn lookup(&self, symbol: Symbol) -> Option<&Symbol>

Looks up the new name for symbol, recursively checking the parent if it is not found.

+
source

pub(crate) fn lookup_id(&self, symbol: &Symbol) -> Option<&NodeID>

Looks up the node ID for symbol, recursively checking the parent if it is not found.

+

Trait Implementations§

source§

impl Clone for RenameTable

source§

fn clone(&self) -> RenameTable

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 RenameTable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for RenameTable

source§

fn default() -> RenameTable

Returns the “default value” for a type. Read more
source§

impl PartialEq for RenameTable

source§

fn eq(&self, other: &RenameTable) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Eq for RenameTable

source§

impl StructuralPartialEq for RenameTable

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/common/replacer/index.html b/leo_passes/common/replacer/index.html index 7ac1791874..e7abcfe6e8 100644 --- a/leo_passes/common/replacer/index.html +++ b/leo_passes/common/replacer/index.html @@ -1,3 +1,3 @@ -leo_passes::common::replacer - Rust

Module leo_passes::common::replacer

source ·

Structs§

Auto Trait Implementations§

§

impl<F> Freeze for Replacer<F>
where + F: Freeze,

§

impl<F> RefUnwindSafe for Replacer<F>
where + F: RefUnwindSafe,

§

impl<F> Send for Replacer<F>
where + F: Send,

§

impl<F> Sync for Replacer<F>
where + F: Sync,

§

impl<F> Unpin for Replacer<F>
where + F: Unpin,

§

impl<F> UnwindSafe for Replacer<F>
where + F: UnwindSafe,

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/common/symbol_table/function_symbol/index.html b/leo_passes/common/symbol_table/function_symbol/index.html index f9fd2ef324..07b8fa5172 100644 --- a/leo_passes/common/symbol_table/function_symbol/index.html +++ b/leo_passes/common/symbol_table/function_symbol/index.html @@ -1 +1 @@ -leo_passes::common::symbol_table::function_symbol - Rust

Module leo_passes::common::symbol_table::function_symbol

source ·

Structs§

\ No newline at end of file +leo_passes::common::symbol_table::function_symbol - Rust
leo_passes::common::symbol_table

Module function_symbol

source

Structs§

\ No newline at end of file diff --git a/leo_passes/common/symbol_table/function_symbol/struct.FunctionSymbol.html b/leo_passes/common/symbol_table/function_symbol/struct.FunctionSymbol.html index 545f77762c..d44d26d7f3 100644 --- a/leo_passes/common/symbol_table/function_symbol/struct.FunctionSymbol.html +++ b/leo_passes/common/symbol_table/function_symbol/struct.FunctionSymbol.html @@ -1,51 +1,51 @@ -FunctionSymbol in leo_passes::common::symbol_table::function_symbol - Rust
pub struct FunctionSymbol {
-    pub(crate) id: usize,
+FunctionSymbol in leo_passes::common::symbol_table::function_symbol - Rust
leo_passes::common::symbol_table::function_symbol

Struct FunctionSymbol

source
pub struct FunctionSymbol {
+    pub(crate) id: usize,
     pub(crate) output_type: Type,
     pub variant: Variant,
     pub(crate) _span: Span,
-    pub(crate) input: Vec<Input>,
-    pub(crate) future_inputs: Vec<Location>,
-    pub(crate) finalize: Option<Location>,
+    pub(crate) input: Vec<Input>,
+    pub(crate) future_inputs: Vec<Location>,
+    pub(crate) finalize: Option<Location>,
 }
Expand description

An entry for a function in the symbol table.

-

Fields§

§id: usize

The index associated with the scope in the parent symbol table.

+

Fields§

§id: usize

The index associated with the scope in the parent symbol table.

§output_type: Type

The output type of the function.

§variant: Variant

Is this function a transition, inlined, or a regular function?.

§_span: Span

The Span associated with the function.

-
§input: Vec<Input>

The inputs to the function.

-
§future_inputs: Vec<Location>

Future inputs.

-
§finalize: Option<Location>

The finalize block associated with the function.

-

Trait Implementations§

source§

impl Clone for FunctionSymbol

source§

fn clone(&self) -> FunctionSymbol

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 FunctionSymbol

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for FunctionSymbol

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 FunctionSymbol

source§

fn eq(&self, other: &FunctionSymbol) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for FunctionSymbol

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 StructuralPartialEq for FunctionSymbol

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +
§input: Vec<Input>

The inputs to the function.

+
§future_inputs: Vec<Location>

Future inputs.

+
§finalize: Option<Location>

The finalize block associated with the function.

+

Trait Implementations§

source§

impl Clone for FunctionSymbol

source§

fn clone(&self) -> FunctionSymbol

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 FunctionSymbol

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for FunctionSymbol

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 FunctionSymbol

source§

fn eq(&self, other: &FunctionSymbol) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for FunctionSymbol

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 StructuralPartialEq for FunctionSymbol

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_passes/common/symbol_table/index.html b/leo_passes/common/symbol_table/index.html index 08adb61762..4c9b3ea624 100644 --- a/leo_passes/common/symbol_table/index.html +++ b/leo_passes/common/symbol_table/index.html @@ -1 +1 @@ -leo_passes::common::symbol_table - Rust

Module leo_passes::common::symbol_table

source ·

Re-exports§

Modules§

Structs§

\ No newline at end of file +leo_passes::common::symbol_table - Rust
leo_passes::common

Module symbol_table

source

Re-exports§

Modules§

Structs§

\ No newline at end of file diff --git a/leo_passes/common/symbol_table/struct.SymbolTable.html b/leo_passes/common/symbol_table/struct.SymbolTable.html index 8e2eef7b3c..27c17532cb 100644 --- a/leo_passes/common/symbol_table/struct.SymbolTable.html +++ b/leo_passes/common/symbol_table/struct.SymbolTable.html @@ -1,11 +1,11 @@ -SymbolTable in leo_passes::common::symbol_table - Rust

Struct leo_passes::common::symbol_table::SymbolTable

source ·
pub struct SymbolTable {
-    pub(crate) parent: Option<Box<SymbolTable>>,
+SymbolTable in leo_passes::common::symbol_table - Rust
leo_passes::common::symbol_table

Struct SymbolTable

source
pub struct SymbolTable {
+    pub(crate) parent: Option<Box<SymbolTable>>,
     pub functions: IndexMap<Location, FunctionSymbol>,
     pub structs: IndexMap<Location, Composite>,
     pub(crate) variables: IndexMap<Location, VariableSymbol>,
-    pub(crate) scope_index: usize,
-    pub(crate) scopes: Vec<RefCell<SymbolTable>>,
-}

Fields§

§parent: Option<Box<SymbolTable>>

The parent scope if it exists. + pub(crate) scope_index: usize, + pub(crate) scopes: Vec<RefCell<SymbolTable>>, +}

Fields§

§parent: Option<Box<SymbolTable>>

The parent scope if it exists. For example, the parent scope of a then-block is the scope containing the associated ConditionalStatement.

§functions: IndexMap<Location, FunctionSymbol>

Maps parent program name and function name to the AST’s function definition. This field is populated at a first pass.

@@ -13,103 +13,103 @@ This field is populated at a first pass.

§variables: IndexMap<Location, VariableSymbol>

The variables defined in a scope. This field is populated as necessary.

-
§scope_index: usize

The index of the current scope.

-
§scopes: Vec<RefCell<SymbolTable>>

The sub-scopes of this scope.

-

Implementations§

source§

impl SymbolTable

source§

impl SymbolTable

§scope_index: usize

The index of the current scope.

+
§scopes: Vec<RefCell<SymbolTable>>

The sub-scopes of this scope.

+

Implementations§

source§

impl SymbolTable

source§

impl SymbolTable

source

pub fn check_shadowing( &self, location: &Location, - program: Option<Symbol>, - is_struct: bool, + program: Option<Symbol>, + 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

fn check_shadowing_impl( &self, location: &Location, - is_struct: bool, + is_struct: bool, span: Span, -) -> Result<()>

source

pub fn scope_index(&mut self) -> usize

Returns the current scope index. +) -> Result<()>

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.

-
source

fn check_eq_struct(&self, new: &Composite, old: &Composite) -> bool

Checks if two structs are equal.

+) -> 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, - program: Option<Symbol>, + program: Option<Symbol>, 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.

+ futures: Vec<Location>, +) -> 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.

+
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.

source

pub fn lookup_struct( &self, location: Location, - main_program: Option<Symbol>, -) -> Option<&Composite>

Attempts to lookup a struct in the symbol table.

-
source

pub fn lookup_variable(&self, location: Location) -> Option<&VariableSymbol>

Attempts to lookup a variable in the symbol table.

+ main_program: Option<Symbol>, +) -> Option<&Composite>

Attempts to lookup a struct in the symbol table.

+
source

pub fn lookup_variable(&self, location: Location) -> Option<&VariableSymbol>

Attempts to lookup a variable in the symbol table.

source

pub fn lookup_variable_in_current_scope( &self, 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.

+) -> 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_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.

-

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for SymbolTable

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 StructuralPartialEq for SymbolTable

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where + 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.

+

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for SymbolTable

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 StructuralPartialEq for SymbolTable

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_passes/common/symbol_table/variable_symbol/enum.VariableType.html b/leo_passes/common/symbol_table/variable_symbol/enum.VariableType.html index f26fd7c9bb..f2f5d43fd0 100644 --- a/leo_passes/common/symbol_table/variable_symbol/enum.VariableType.html +++ b/leo_passes/common/symbol_table/variable_symbol/enum.VariableType.html @@ -1,48 +1,48 @@ -VariableType in leo_passes::common::symbol_table::variable_symbol - Rust
pub enum VariableType {
+VariableType in leo_passes::common::symbol_table::variable_symbol - Rust
leo_passes::common::symbol_table::variable_symbol

Enum VariableType

source
pub enum VariableType {
     Const,
     Input(Mode),
     Mut,
 }
Expand description

An enumeration of the different types of variable type.

-

Variants§

§

Const

§

Input(Mode)

§

Mut

Trait Implementations§

source§

impl Clone for VariableType

source§

fn clone(&self) -> VariableType

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 VariableType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for VariableType

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 Display for VariableType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for VariableType

source§

fn eq(&self, other: &VariableType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for VariableType

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 Copy for VariableType

source§

impl Eq for VariableType

source§

impl StructuralPartialEq for VariableType

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Variants§

§

Const

§

Input(Mode)

§

Mut

Trait Implementations§

source§

impl Clone for VariableType

source§

fn clone(&self) -> VariableType

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 VariableType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for VariableType

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 Display for VariableType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for VariableType

source§

fn eq(&self, other: &VariableType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for VariableType

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 Copy for VariableType

source§

impl Eq for VariableType

source§

impl StructuralPartialEq for VariableType

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_passes/common/symbol_table/variable_symbol/index.html b/leo_passes/common/symbol_table/variable_symbol/index.html index 027105cbeb..6f59882644 100644 --- a/leo_passes/common/symbol_table/variable_symbol/index.html +++ b/leo_passes/common/symbol_table/variable_symbol/index.html @@ -1 +1 @@ -leo_passes::common::symbol_table::variable_symbol - Rust

Module leo_passes::common::symbol_table::variable_symbol

source ·

Structs§

Enums§

  • An enumeration of the different types of variable type.
\ No newline at end of file +leo_passes::common::symbol_table::variable_symbol - Rust
leo_passes::common::symbol_table

Module variable_symbol

source

Structs§

Enums§

  • An enumeration of the different types of variable type.
\ No newline at end of file diff --git a/leo_passes/common/symbol_table/variable_symbol/struct.VariableSymbol.html b/leo_passes/common/symbol_table/variable_symbol/struct.VariableSymbol.html index a29eb679a3..9447cfdebe 100644 --- a/leo_passes/common/symbol_table/variable_symbol/struct.VariableSymbol.html +++ b/leo_passes/common/symbol_table/variable_symbol/struct.VariableSymbol.html @@ -1,4 +1,4 @@ -VariableSymbol in leo_passes::common::symbol_table::variable_symbol - Rust
pub struct VariableSymbol {
+VariableSymbol in leo_passes::common::symbol_table::variable_symbol - Rust
leo_passes::common::symbol_table::variable_symbol

Struct VariableSymbol

source
pub struct VariableSymbol {
     pub type_: Type,
     pub span: Span,
     pub declaration: VariableType,
@@ -6,46 +6,46 @@
 

Fields§

§type_: Type

The Type of the variable.

§span: Span

The Span associated with the variable.

§declaration: VariableType

The type of declaration for the variable.

-

Trait Implementations§

source§

impl Clone for VariableSymbol

source§

fn clone(&self) -> VariableSymbol

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 VariableSymbol

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for VariableSymbol

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 Display for VariableSymbol

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for VariableSymbol

source§

fn eq(&self, other: &VariableSymbol) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for VariableSymbol

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 Eq for VariableSymbol

source§

impl StructuralPartialEq for VariableSymbol

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +

Trait Implementations§

source§

impl Clone for VariableSymbol

source§

fn clone(&self) -> VariableSymbol

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 VariableSymbol

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for VariableSymbol

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 Display for VariableSymbol

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for VariableSymbol

source§

fn eq(&self, other: &VariableSymbol) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for VariableSymbol

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 Eq for VariableSymbol

source§

impl StructuralPartialEq for VariableSymbol

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_passes/common/tree_node/index.html b/leo_passes/common/tree_node/index.html index 71d8cb429f..8614cd4583 100644 --- a/leo_passes/common/tree_node/index.html +++ b/leo_passes/common/tree_node/index.html @@ -1 +1 @@ -leo_passes::common::tree_node - Rust

Module leo_passes::common::tree_node

source ·

Structs§

Traits§

  • A node in a graph.

Type Aliases§

\ No newline at end of file +leo_passes::common::tree_node - Rust
leo_passes::common

Module tree_node

source

Structs§

Traits§

  • A node in a graph.

Type Aliases§

\ No newline at end of file diff --git a/leo_passes/common/tree_node/struct.TreeNode.html b/leo_passes/common/tree_node/struct.TreeNode.html index 1aab34a8f3..a27ab8f810 100644 --- a/leo_passes/common/tree_node/struct.TreeNode.html +++ b/leo_passes/common/tree_node/struct.TreeNode.html @@ -1,51 +1,51 @@ -TreeNode in leo_passes::common::tree_node - Rust

Struct leo_passes::common::tree_node::TreeNode

source ·
pub struct TreeNode<N: Node> {
-    pub depth: usize,
+TreeNode in leo_passes::common::tree_node - Rust
leo_passes::common::tree_node

Struct TreeNode

source
pub struct TreeNode<N: Node> {
+    pub depth: usize,
     pub elements: IndexSet<N>,
-    pub counter: usize,
+    pub counter: usize,
 }
Expand description

A node in a tree.

-

Fields§

§depth: usize

The current depth.

+

Fields§

§depth: usize

The current depth.

§elements: IndexSet<N>

The current node.

-
§counter: usize

A counter.

+
§counter: usize

A counter.

Implementations§

source§

impl<N: Node> TreeNode<N>

source

pub fn new(elements: IndexSet<N>) -> Self

Initializes a new TreeNode from a vector of starting elements.

source

pub fn create_child(&mut self) -> TreeNode<N>

Adds a child to the current node.

-
source

pub fn remove_element(&mut self, element: &N) -> bool

Removes an element from the current node. +

source

pub fn remove_element(&mut self, element: &N) -> bool

Removes an element from the current node. If the element does not exist, increment an internal counter which later used to generate an error that the user attempted to await a future twice. Returns true if the element was removed but not the first one in the node.

-

Trait Implementations§

source§

impl<N: Clone + Node> Clone for TreeNode<N>

source§

fn clone(&self) -> TreeNode<N>

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<N: Debug + Node> Debug for TreeNode<N>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<N: PartialEq + Node> PartialEq for TreeNode<N>

source§

fn eq(&self, other: &TreeNode<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl<N: Eq + Node> Eq for TreeNode<N>

source§

impl<N: Node> StructuralPartialEq for TreeNode<N>

Auto Trait Implementations§

§

impl<N> Freeze for TreeNode<N>

§

impl<N> RefUnwindSafe for TreeNode<N>
where - N: RefUnwindSafe,

§

impl<N> Send for TreeNode<N>
where - N: Send,

§

impl<N> Sync for TreeNode<N>
where - N: Sync,

§

impl<N> Unpin for TreeNode<N>
where - N: Unpin,

§

impl<N> UnwindSafe for TreeNode<N>
where - N: UnwindSafe,

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+

Trait Implementations§

source§

impl<N: Clone + Node> Clone for TreeNode<N>

source§

fn clone(&self) -> TreeNode<N>

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<N: Debug + Node> Debug for TreeNode<N>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<N: PartialEq + Node> PartialEq for TreeNode<N>

source§

fn eq(&self, other: &TreeNode<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl<N: Eq + Node> Eq for TreeNode<N>

source§

impl<N: Node> StructuralPartialEq for TreeNode<N>

Auto Trait Implementations§

§

impl<N> Freeze for TreeNode<N>

§

impl<N> RefUnwindSafe for TreeNode<N>
where + N: RefUnwindSafe,

§

impl<N> Send for TreeNode<N>
where + N: Send,

§

impl<N> Sync for TreeNode<N>
where + N: Sync,

§

impl<N> Unpin for TreeNode<N>
where + N: Unpin,

§

impl<N> UnwindSafe for TreeNode<N>
where + N: UnwindSafe,

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/common/tree_node/trait.Node.html b/leo_passes/common/tree_node/trait.Node.html index df63fcbc2a..41f1b341bd 100644 --- a/leo_passes/common/tree_node/trait.Node.html +++ b/leo_passes/common/tree_node/trait.Node.html @@ -1,8 +1,8 @@ -Node in leo_passes::common::tree_node - Rust

Trait leo_passes::common::tree_node::Node

source ·
pub trait Node:
-    Copy
+Node in leo_passes::common::tree_node - Rust
leo_passes::common::tree_node

Trait Node

source
pub trait Node:
+    Copy
     + 'static
-    + Eq
-    + PartialEq
-    + Debug
-    + Hash { }
Expand description

A node in a graph.

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Node for Symbol

Implementors§

\ No newline at end of file + + Eq + + PartialEq + + Debug + + Hash { }
Expand description

A node in a graph.

+

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Node for Symbol

Implementors§

\ No newline at end of file diff --git a/leo_passes/common/tree_node/type.ConditionalTreeNode.html b/leo_passes/common/tree_node/type.ConditionalTreeNode.html index 214b30197b..050ffb5d39 100644 --- a/leo_passes/common/tree_node/type.ConditionalTreeNode.html +++ b/leo_passes/common/tree_node/type.ConditionalTreeNode.html @@ -1,9 +1,9 @@ -ConditionalTreeNode in leo_passes::common::tree_node - Rust

Type Alias leo_passes::common::tree_node::ConditionalTreeNode

source ·
pub type ConditionalTreeNode = TreeNode<Symbol>;
Expand description

A binary search tree to store all paths through nested conditional blocks.

+ConditionalTreeNode in leo_passes::common::tree_node - Rust
leo_passes::common::tree_node

Type Alias ConditionalTreeNode

source
pub type ConditionalTreeNode = TreeNode<Symbol>;
Expand description

A binary search tree to store all paths through nested conditional blocks.

Aliased Type§

struct ConditionalTreeNode {
-    pub depth: usize,
+    pub depth: usize,
     pub elements: IndexSet<Symbol>,
-    pub counter: usize,
-}

Fields§

§depth: usize

The current depth.

+ pub counter: usize, +}

Fields§

§depth: usize

The current depth.

§elements: IndexSet<Symbol>

The current node.

-
§counter: usize

A counter.

+
§counter: usize

A counter.

\ No newline at end of file diff --git a/leo_passes/common/type_table/index.html b/leo_passes/common/type_table/index.html index 86262b5e2c..498c1fdc0d 100644 --- a/leo_passes/common/type_table/index.html +++ b/leo_passes/common/type_table/index.html @@ -1 +1 @@ -leo_passes::common::type_table - Rust

Module leo_passes::common::type_table

source ·

Structs§

  • A mapping between node IDs and their types.
\ No newline at end of file +leo_passes::common::type_table - Rust
leo_passes::common

Module type_table

source

Structs§

  • A mapping between node IDs and their types.
\ No newline at end of file diff --git a/leo_passes/common/type_table/struct.TypeTable.html b/leo_passes/common/type_table/struct.TypeTable.html index 3c8716f79d..f1a77fb15d 100644 --- a/leo_passes/common/type_table/struct.TypeTable.html +++ b/leo_passes/common/type_table/struct.TypeTable.html @@ -1,33 +1,33 @@ -TypeTable in leo_passes::common::type_table - Rust

Struct leo_passes::common::type_table::TypeTable

source ·
pub struct TypeTable {
-    inner: RefCell<IndexMap<NodeID, Type>>,
+TypeTable in leo_passes::common::type_table - Rust
leo_passes::common::type_table

Struct TypeTable

source
pub struct TypeTable {
+    inner: RefCell<IndexMap<NodeID, Type>>,
 }
Expand description

A mapping between node IDs and their types.

-

Fields§

§inner: RefCell<IndexMap<NodeID, Type>>

The inner table. +

Fields§

§inner: RefCell<IndexMap<NodeID, Type>>

The inner table. RefCell is used here to avoid &mut all over the compiler.

-

Implementations§

source§

impl TypeTable

source

pub fn get(&self, index: &NodeID) -> Option<Type>

Gets an entry from the table.

+

Implementations§

source§

impl TypeTable

source

pub fn get(&self, index: &NodeID) -> Option<Type>

Gets an entry from the table.

source

pub fn insert(&self, index: NodeID, value: Type)

Inserts an entry into the table.

-

Trait Implementations§

source§

impl Clone for TypeTable

source§

fn clone(&self) -> TypeTable

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 TypeTable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for TypeTable

source§

fn default() -> TypeTable

Returns the “default value” for a type. 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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+

Trait Implementations§

source§

impl Clone for TypeTable

source§

fn clone(&self) -> TypeTable

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 TypeTable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for TypeTable

source§

fn default() -> TypeTable

Returns the “default value” for a type. 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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/dead_code_elimination/dead_code_eliminator/index.html b/leo_passes/dead_code_elimination/dead_code_eliminator/index.html index e909afcef5..1ed991da21 100644 --- a/leo_passes/dead_code_elimination/dead_code_eliminator/index.html +++ b/leo_passes/dead_code_elimination/dead_code_eliminator/index.html @@ -1 +1 @@ -leo_passes::dead_code_elimination::dead_code_eliminator - Rust
\ No newline at end of file +leo_passes::dead_code_elimination::dead_code_eliminator - Rust
leo_passes::dead_code_elimination

Module dead_code_eliminator

source

Structs§

\ No newline at end of file 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 a7b6844a4f..6aeb9fb892 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 @@ -1,12 +1,12 @@ -DeadCodeEliminator in leo_passes::dead_code_elimination::dead_code_eliminator - Rust
pub struct DeadCodeEliminator<'a> {
+DeadCodeEliminator in leo_passes::dead_code_elimination::dead_code_eliminator - Rust
leo_passes::dead_code_elimination::dead_code_eliminator

Struct DeadCodeEliminator

source
pub struct DeadCodeEliminator<'a> {
     pub(crate) node_builder: &'a NodeBuilder,
     pub(crate) used_variables: IndexSet<Symbol>,
-    pub(crate) is_necessary: bool,
-    pub(crate) is_async: bool,
+    pub(crate) is_necessary: bool,
+    pub(crate) is_async: bool,
 }

Fields§

§node_builder: &'a NodeBuilder

A counter to generate unique node IDs.

§used_variables: IndexSet<Symbol>

The set of used variables in the current function body.

-
§is_necessary: bool

Whether or not the variables are necessary.

-
§is_async: bool

Whether or not we are currently traversing an async function.

+
§is_necessary: bool

Whether or not the variables are necessary.

+
§is_async: bool

Whether or not we are currently traversing an async function.

Implementations§

source§

impl<'a> DeadCodeEliminator<'a>

source

pub fn new(node_builder: &'a NodeBuilder) -> Self

Initializes a new DeadCodeEliminator.

Trait Implementations§

source§

impl ExpressionReconstructor for DeadCodeEliminator<'_>

source§

fn reconstruct_associated_function( &mut self, @@ -22,7 +22,7 @@ input: Identifier, ) -> (Expression, Self::AdditionalOutput)

Marks identifiers as used. This is necessary to determine which statements can be eliminated from the program.

-
source§

type AdditionalOutput = ()

source§

fn reconstruct_expression( +

source§

type AdditionalOutput = ()

source§

fn reconstruct_expression( &mut self, input: Expression, ) -> (Expression, Self::AdditionalOutput)

source§

fn reconstruct_access( @@ -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>

source§

type Input = (Ast, &'a NodeBuilder)

source§

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>

source§

type Input = (Ast, &'a NodeBuilder)

source§

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.

@@ -110,27 +110,27 @@ ) -> (Statement, Self::AdditionalOutput)
source§

fn reconstruct_const( &mut self, input: ConstDeclaration, -) -> (Statement, Self::AdditionalOutput)

Auto Trait Implementations§

§

impl<'a> Freeze for DeadCodeEliminator<'a>

§

impl<'a> !RefUnwindSafe for DeadCodeEliminator<'a>

§

impl<'a> !Send for DeadCodeEliminator<'a>

§

impl<'a> !Sync for DeadCodeEliminator<'a>

§

impl<'a> Unpin for DeadCodeEliminator<'a>

§

impl<'a> !UnwindSafe for DeadCodeEliminator<'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.

+) -> (Statement, Self::AdditionalOutput)

Auto Trait Implementations§

§

impl<'a> Freeze for DeadCodeEliminator<'a>

§

impl<'a> !RefUnwindSafe for DeadCodeEliminator<'a>

§

impl<'a> !Send for DeadCodeEliminator<'a>

§

impl<'a> !Sync for DeadCodeEliminator<'a>

§

impl<'a> Unpin for DeadCodeEliminator<'a>

§

impl<'a> !UnwindSafe for DeadCodeEliminator<'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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/dead_code_elimination/eliminate_expression/index.html b/leo_passes/dead_code_elimination/eliminate_expression/index.html index cb299e73ee..793299e959 100644 --- a/leo_passes/dead_code_elimination/eliminate_expression/index.html +++ b/leo_passes/dead_code_elimination/eliminate_expression/index.html @@ -1 +1 @@ -leo_passes::dead_code_elimination::eliminate_expression - Rust
\ No newline at end of file +leo_passes::dead_code_elimination::eliminate_expression - Rust
leo_passes::dead_code_elimination

Module eliminate_expression

source
\ No newline at end of file diff --git a/leo_passes/dead_code_elimination/eliminate_program/index.html b/leo_passes/dead_code_elimination/eliminate_program/index.html index a78ca4133b..0933fad256 100644 --- a/leo_passes/dead_code_elimination/eliminate_program/index.html +++ b/leo_passes/dead_code_elimination/eliminate_program/index.html @@ -1 +1 @@ -leo_passes::dead_code_elimination::eliminate_program - Rust
\ No newline at end of file +leo_passes::dead_code_elimination::eliminate_program - Rust
leo_passes::dead_code_elimination

Module eliminate_program

source
\ No newline at end of file diff --git a/leo_passes/dead_code_elimination/eliminate_statement/index.html b/leo_passes/dead_code_elimination/eliminate_statement/index.html index 24ae8272b9..405f905e2e 100644 --- a/leo_passes/dead_code_elimination/eliminate_statement/index.html +++ b/leo_passes/dead_code_elimination/eliminate_statement/index.html @@ -1 +1 @@ -leo_passes::dead_code_elimination::eliminate_statement - Rust
\ No newline at end of file +leo_passes::dead_code_elimination::eliminate_statement - Rust
leo_passes::dead_code_elimination

Module eliminate_statement

source
\ No newline at end of file diff --git a/leo_passes/dead_code_elimination/index.html b/leo_passes/dead_code_elimination/index.html index 7311bf8fec..b1468a74b2 100644 --- a/leo_passes/dead_code_elimination/index.html +++ b/leo_passes/dead_code_elimination/index.html @@ -1,4 +1,4 @@ -leo_passes::dead_code_elimination - Rust

Module leo_passes::dead_code_elimination

source ·
Expand description

The Dead Code Elimination pass traverses the AST and eliminates unused code, +leo_passes::dead_code_elimination - Rust

leo_passes

Module dead_code_elimination

source
Expand description

The Dead Code Elimination pass traverses the AST and eliminates unused code, specifically assignment statements, within the boundary of transitions and functions. The pass is run after the Function Inlining pass.

See https://en.wikipedia.org/wiki/Dead-code_elimination for more information.

@@ -11,8 +11,7 @@ value$3 = $var$0 ? value$2 : value; value$6 = $var$1 * $var$1; return value$3; -} -
+}

The dead code elimination pass produces the following code.

function main(flag: u8, value: u8) -> u8 {
     $var$0 = flag == 0u8;
@@ -21,8 +20,7 @@
     value$2 = $var$1;
     value$3 = $var$0 ? value$2 : value;
     return value$3;
-}
-
+}

Note this pass relies on the following invariants:

source§

type AdditionalOutput = Vec<Statement>

source§

fn reconstruct_expression( &mut self, input: Expression, ) -> (Expression, Self::AdditionalOutput)

source§

fn reconstruct_access( @@ -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>

source§

type Input = (Ast, &'a TypeTable, &'a NodeBuilder, &'a Assigner)

source§

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>

source§

type Input = (Ast, &'a TypeTable, &'a NodeBuilder, &'a Assigner)

source§

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. @@ -114,27 +114,27 @@ ) -> (Statement, Self::AdditionalOutput)

source§

fn reconstruct_expression_statement( &mut self, input: ExpressionStatement, -) -> (Statement, Self::AdditionalOutput)

Auto Trait Implementations§

§

impl<'a> Freeze for Destructurer<'a>

§

impl<'a> !RefUnwindSafe for Destructurer<'a>

§

impl<'a> !Send for Destructurer<'a>

§

impl<'a> !Sync for Destructurer<'a>

§

impl<'a> Unpin for Destructurer<'a>

§

impl<'a> !UnwindSafe for Destructurer<'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.

+) -> (Statement, Self::AdditionalOutput)

Auto Trait Implementations§

§

impl<'a> Freeze for Destructurer<'a>

§

impl<'a> !RefUnwindSafe for Destructurer<'a>

§

impl<'a> !Send for Destructurer<'a>

§

impl<'a> !Sync for Destructurer<'a>

§

impl<'a> Unpin for Destructurer<'a>

§

impl<'a> !UnwindSafe for Destructurer<'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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/destructuring/index.html b/leo_passes/destructuring/index.html index 9663e02799..a81ae64547 100644 --- a/leo_passes/destructuring/index.html +++ b/leo_passes/destructuring/index.html @@ -1,3 +1,3 @@ -leo_passes::destructuring - Rust

Module leo_passes::destructuring

source ·
Expand description

The destructuring pass traverses the AST and destructures tuples into individual variables. +leo_passes::destructuring - Rust

leo_passes

Module destructuring

source
Expand description

The destructuring pass traverses the AST and destructures tuples into individual variables. This pass assumes that tuples have a depth of 1, which is ensured by the type checking pass.

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_passes/flattening/flatten_expression/index.html b/leo_passes/flattening/flatten_expression/index.html index 530b0925d0..17b824906c 100644 --- a/leo_passes/flattening/flatten_expression/index.html +++ b/leo_passes/flattening/flatten_expression/index.html @@ -1 +1 @@ -leo_passes::flattening::flatten_expression - Rust

Module leo_passes::flattening::flatten_expression

source ·
\ No newline at end of file +leo_passes::flattening::flatten_expression - Rust
leo_passes::flattening

Module flatten_expression

source
\ No newline at end of file diff --git a/leo_passes/flattening/flatten_program/index.html b/leo_passes/flattening/flatten_program/index.html index 463a18c6ad..a13b39abff 100644 --- a/leo_passes/flattening/flatten_program/index.html +++ b/leo_passes/flattening/flatten_program/index.html @@ -1 +1 @@ -leo_passes::flattening::flatten_program - Rust

Module leo_passes::flattening::flatten_program

source ·
\ No newline at end of file +leo_passes::flattening::flatten_program - Rust
leo_passes::flattening

Module flatten_program

source
\ No newline at end of file diff --git a/leo_passes/flattening/flatten_statement/index.html b/leo_passes/flattening/flatten_statement/index.html index 8b0832b9ef..d4e31ea975 100644 --- a/leo_passes/flattening/flatten_statement/index.html +++ b/leo_passes/flattening/flatten_statement/index.html @@ -1 +1 @@ -leo_passes::flattening::flatten_statement - Rust

Module leo_passes::flattening::flatten_statement

source ·
\ No newline at end of file +leo_passes::flattening::flatten_statement - Rust
leo_passes::flattening

Module flatten_statement

source
\ No newline at end of file diff --git a/leo_passes/flattening/flattener/enum.Guard.html b/leo_passes/flattening/flattener/enum.Guard.html index 4d4e373f8e..7d0c9c9ac6 100644 --- a/leo_passes/flattening/flattener/enum.Guard.html +++ b/leo_passes/flattening/flattener/enum.Guard.html @@ -1,4 +1,4 @@ -Guard in leo_passes::flattening::flattener - Rust

Enum leo_passes::flattening::flattener::Guard

source ·
pub enum Guard {
+Guard in leo_passes::flattening::flattener - Rust
leo_passes::flattening::flattener

Enum Guard

source
pub enum Guard {
     Unconstructed(Identifier),
     Constructed(Identifier),
 }
Expand description

An expression representing a conditional to reach the current @@ -9,29 +9,29 @@ conditions on the stack.

We cache this so that we don’t have to evaluate the same chain of conditions repeatedly.

-

Implementations§

Trait Implementations§

source§

impl Clone for Guard

source§

fn clone(&self) -> Guard

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 Copy for Guard

Auto Trait Implementations§

§

impl Freeze for Guard

§

impl RefUnwindSafe for Guard

§

impl Send for Guard

§

impl Sync for Guard

§

impl Unpin for Guard

§

impl UnwindSafe for Guard

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+

Implementations§

Trait Implementations§

source§

impl Clone for Guard

source§

fn clone(&self) -> Guard

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 Copy for Guard

Auto Trait Implementations§

§

impl Freeze for Guard

§

impl RefUnwindSafe for Guard

§

impl Send for Guard

§

impl Sync for Guard

§

impl Unpin for Guard

§

impl UnwindSafe for Guard

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/flattening/flattener/enum.ReturnGuard.html b/leo_passes/flattening/flattener/enum.ReturnGuard.html index 50eeaa2313..6d6184f9ba 100644 --- a/leo_passes/flattening/flattener/enum.ReturnGuard.html +++ b/leo_passes/flattening/flattener/enum.ReturnGuard.html @@ -1,4 +1,4 @@ -ReturnGuard in leo_passes::flattening::flattener - Rust

Enum leo_passes::flattening::flattener::ReturnGuard

source ·
pub enum ReturnGuard {
+ReturnGuard in leo_passes::flattening::flattener - Rust
leo_passes::flattening::flattener

Enum ReturnGuard

source
pub enum ReturnGuard {
     None,
     Unconstructed(Identifier),
     Constructed {
@@ -12,29 +12,29 @@
 

Fields

§plain: Identifier

True iff the conditionals on the path to this return statement are true.

§any_return: Identifier

True iff any of the guards to return statements so far encountered are true. We cache this to guard asserts against early returns.

-

Trait Implementations§

source§

impl Clone for ReturnGuard

source§

fn clone(&self) -> ReturnGuard

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 Copy for ReturnGuard

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+

Trait Implementations§

source§

impl Clone for ReturnGuard

source§

fn clone(&self) -> ReturnGuard

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 Copy for ReturnGuard

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/flattening/flattener/index.html b/leo_passes/flattening/flattener/index.html index be90fa7c61..16a1b81cc4 100644 --- a/leo_passes/flattening/flattener/index.html +++ b/leo_passes/flattening/flattener/index.html @@ -1,2 +1,2 @@ -leo_passes::flattening::flattener - Rust

Module leo_passes::flattening::flattener

source ·

Structs§

Enums§

Trait Implementations§

Trait Implementations§

source§

impl ExpressionReconstructor for Flattener<'_>

source§

fn reconstruct_struct_init( &mut self, input: StructExpression, ) -> (Expression, Self::AdditionalOutput)

Reconstructs a struct init expression, flattening any tuples in the expression.

@@ -80,14 +80,12 @@ For example, the ternary expression cond ? (a, b) : (c, d) is flattened into the following:

let var$0 = cond ? a : c;
 let var$1 = cond ? b : d;
-(var$0, var$1)
-
+(var$0, var$1)

For structs, the ternary expression cond ? a : b, where a and b are both structs Foo { bar: u8, baz: u8 }, is flattened into the following:

let var$0 = cond ? a.bar : b.bar;
 let var$1 = cond ? a.baz : b.baz;
 let var$2 = Foo { bar: var$0, baz: var$1 };
-var$2
-
source§

type AdditionalOutput = Vec<Statement>

source§

fn reconstruct_expression( +var$2

source§

type AdditionalOutput = Vec<Statement>

source§

fn reconstruct_expression( &mut self, input: Expression, ) -> (Expression, Self::AdditionalOutput)

source§

fn reconstruct_access( @@ -141,7 +139,7 @@ ) -> (Expression, Self::AdditionalOutput)

source§

fn reconstruct_unit( &mut self, input: UnitExpression, -) -> (Expression, Self::AdditionalOutput)

source§

impl<'a> Pass for Flattener<'a>

source§

type Input = (Ast, &'a SymbolTable, &'a TypeTable, &'a NodeBuilder, &'a Assigner)

source§

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>

source§

type Input = (Ast, &'a SymbolTable, &'a TypeTable, &'a NodeBuilder, &'a Assigner)

source§

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, @@ -155,11 +153,9 @@ if condition2 { assert(foo); } -} -

+}

is flattened to:

-
assert(!(condition1 && condition2) || foo);
-
+
assert(!(condition1 && condition2) || foo);

which is equivalent to the logical formula (condition1 /\ condition2) ==> foo.

source§

fn reconstruct_assign( &mut self, @@ -197,27 +193,27 @@ ) -> (Statement, Self::AdditionalOutput)

source§

fn reconstruct_expression_statement( &mut self, input: ExpressionStatement, -) -> (Statement, Self::AdditionalOutput)

Auto Trait Implementations§

§

impl<'a> Freeze for Flattener<'a>

§

impl<'a> !RefUnwindSafe for Flattener<'a>

§

impl<'a> !Send for Flattener<'a>

§

impl<'a> !Sync for Flattener<'a>

§

impl<'a> Unpin for Flattener<'a>

§

impl<'a> !UnwindSafe for Flattener<'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.

+) -> (Statement, Self::AdditionalOutput)

Auto Trait Implementations§

§

impl<'a> Freeze for Flattener<'a>

§

impl<'a> !RefUnwindSafe for Flattener<'a>

§

impl<'a> !Send for Flattener<'a>

§

impl<'a> !Sync for Flattener<'a>

§

impl<'a> Unpin for Flattener<'a>

§

impl<'a> !UnwindSafe for Flattener<'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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/flattening/index.html b/leo_passes/flattening/index.html index 3a446d5839..38a365b62f 100644 --- a/leo_passes/flattening/index.html +++ b/leo_passes/flattening/index.html @@ -1,4 +1,4 @@ -leo_passes::flattening - Rust

Module leo_passes::flattening

source ·
Expand description

The flattening pass traverses the AST after the SSA pass and converts into a sequential code. +leo_passes::flattening - Rust

leo_passes

Module flattening

source
Expand description

The flattening pass traverses the AST after the SSA pass and converts into a sequential code. The pass flattens ConditionalStatements into a sequence of AssignStatements. The pass rewrites ReturnStatements into AssignStatements and consolidates the returned values as a single ReturnStatement at the end of the function. The pass rewrites ternary expressions over composite data types, into ternary expressions over the individual fields of the composite data type, followed by an expression constructing the composite data type. @@ -16,8 +16,7 @@ } value$3 = $var$0 ? value$1 : value$2; return value$3; -} -

+}

The flattening pass produces the following code.

function main(flag: u8, value: u8) -> u8 {
     $var$0 = flag == 0u8;
@@ -28,5 +27,4 @@
     value$3 = $var$0 ? value$1 : value$2;
     ret$4 = $var$0 ? value$1 : value$3;
     return ret$4;
-}
-

Re-exports§

Modules§

\ No newline at end of file +}

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_passes/function_inlining/assignment_renamer/index.html b/leo_passes/function_inlining/assignment_renamer/index.html index 669f286371..e8b1abbe98 100644 --- a/leo_passes/function_inlining/assignment_renamer/index.html +++ b/leo_passes/function_inlining/assignment_renamer/index.html @@ -1,2 +1,2 @@ -leo_passes::function_inlining::assignment_renamer - Rust

Module leo_passes::function_inlining::assignment_renamer

source ·

Structs§

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/function_inlining/function_inliner/index.html b/leo_passes/function_inlining/function_inliner/index.html index 6437ad1c78..face30e891 100644 --- a/leo_passes/function_inlining/function_inliner/index.html +++ b/leo_passes/function_inlining/function_inliner/index.html @@ -1 +1 @@ -leo_passes::function_inlining::function_inliner - Rust
\ No newline at end of file +leo_passes::function_inlining::function_inliner - Rust
leo_passes::function_inlining

Module function_inliner

source

Structs§

\ No newline at end of file diff --git a/leo_passes/function_inlining/function_inliner/struct.FunctionInliner.html b/leo_passes/function_inlining/function_inliner/struct.FunctionInliner.html index cfd8d5ac53..1dd2c3c2db 100644 --- a/leo_passes/function_inlining/function_inliner/struct.FunctionInliner.html +++ b/leo_passes/function_inlining/function_inliner/struct.FunctionInliner.html @@ -1,25 +1,25 @@ -FunctionInliner in leo_passes::function_inlining::function_inliner - Rust
pub struct FunctionInliner<'a> {
+FunctionInliner in leo_passes::function_inlining::function_inliner - Rust
leo_passes::function_inlining::function_inliner

Struct FunctionInliner

source
pub struct FunctionInliner<'a> {
     pub(crate) node_builder: &'a NodeBuilder,
     pub(crate) call_graph: &'a CallGraph,
     pub(crate) assignment_renamer: AssignmentRenamer<'a>,
     pub(crate) type_table: &'a TypeTable,
-    pub(crate) reconstructed_functions: Vec<(Symbol, Function)>,
-    pub(crate) program: Option<Symbol>,
-    pub(crate) is_async: bool,
+    pub(crate) reconstructed_functions: Vec<(Symbol, Function)>,
+    pub(crate) program: Option<Symbol>,
+    pub(crate) is_async: bool,
 }

Fields§

§node_builder: &'a NodeBuilder

A counter used to create unique NodeIDs.

§call_graph: &'a CallGraph

The call graph for the program.

§assignment_renamer: AssignmentRenamer<'a>

A wrapper around an Assigner used to create unique variable assignments.

§type_table: &'a TypeTable

A mapping between node IDs and their types.

-
§reconstructed_functions: Vec<(Symbol, Function)>

A map of reconstructed functions in the current program scope.

-
§program: Option<Symbol>

The main program.

-
§is_async: bool

Whether or not we are currently traversing an async function block.

+
§reconstructed_functions: Vec<(Symbol, Function)>

A map of reconstructed functions in the current program scope.

+
§program: Option<Symbol>

The main program.

+
§is_async: bool

Whether or not we are currently traversing an async function block.

Implementations§

source§

impl<'a> FunctionInliner<'a>

source

pub fn new( node_builder: &'a NodeBuilder, call_graph: &'a CallGraph, assigner: &'a Assigner, type_table: &'a TypeTable, ) -> Self

Initializes a new FunctionInliner.

-

Trait Implementations§

Trait Implementations§

source§

impl ExpressionReconstructor for FunctionInliner<'_>

source§

impl<'a> Pass for FunctionInliner<'a>

source§

impl<'a> Pass for FunctionInliner<'a>

source§

type Input = (Ast, &'a NodeBuilder, &'a DiGraph<Symbol>, &'a Assigner, &'a TypeTable)

source§

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, @@ -119,27 +119,27 @@ ) -> (Statement, Self::AdditionalOutput)

source§

fn reconstruct_return( &mut self, input: ReturnStatement, -) -> (Statement, Self::AdditionalOutput)

Auto Trait Implementations§

§

impl<'a> Freeze for FunctionInliner<'a>

§

impl<'a> !RefUnwindSafe for FunctionInliner<'a>

§

impl<'a> !Send for FunctionInliner<'a>

§

impl<'a> !Sync for FunctionInliner<'a>

§

impl<'a> Unpin for FunctionInliner<'a>

§

impl<'a> !UnwindSafe for FunctionInliner<'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.

+) -> (Statement, Self::AdditionalOutput)

Auto Trait Implementations§

§

impl<'a> Freeze for FunctionInliner<'a>

§

impl<'a> !RefUnwindSafe for FunctionInliner<'a>

§

impl<'a> !Send for FunctionInliner<'a>

§

impl<'a> !Sync for FunctionInliner<'a>

§

impl<'a> Unpin for FunctionInliner<'a>

§

impl<'a> !UnwindSafe for FunctionInliner<'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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/function_inlining/index.html b/leo_passes/function_inlining/index.html index 15615d4742..8e3d83e41a 100644 --- a/leo_passes/function_inlining/index.html +++ b/leo_passes/function_inlining/index.html @@ -1,4 +1,4 @@ -leo_passes::function_inlining - Rust

Module leo_passes::function_inlining

source ·
Expand description

The Function Inlining pass traverses the AST and inlines function at their call site. +leo_passes::function_inlining - Rust

leo_passes

Module function_inlining

source
Expand description

The Function Inlining pass traverses the AST and inlines function at their call site. See https://en.wikipedia.org/wiki/Inline_expansion for more information. The pass also reorders Functions in a reconstructed ProgramScope so that they are in a post-order of the call graph. In other words, a callee function will appear before a caller function in the order.

@@ -14,8 +14,7 @@ inline foo(x: u8) -> u8 { $var$4 = x * x; return $var$4; -} -
+}

The inlining pass produces the following code.

inline foo(x: u8) -> u8 {
     $var$4 = x * x;
@@ -29,5 +28,4 @@
     value$2 = $var$1;
     value$3 = $var$0 ? value$2 : value;
     return value$3;
-}
-

Re-exports§

Modules§

\ No newline at end of file +}

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_passes/function_inlining/inline_expression/index.html b/leo_passes/function_inlining/inline_expression/index.html index d4f43bbbd1..b0c35f5015 100644 --- a/leo_passes/function_inlining/inline_expression/index.html +++ b/leo_passes/function_inlining/inline_expression/index.html @@ -1 +1 @@ -leo_passes::function_inlining::inline_expression - Rust

Module leo_passes::function_inlining::inline_expression

source ·
\ No newline at end of file +leo_passes::function_inlining::inline_expression - Rust
leo_passes::function_inlining

Module inline_expression

source
\ No newline at end of file diff --git a/leo_passes/function_inlining/inline_program/index.html b/leo_passes/function_inlining/inline_program/index.html index 7005bb2ec1..d31876b247 100644 --- a/leo_passes/function_inlining/inline_program/index.html +++ b/leo_passes/function_inlining/inline_program/index.html @@ -1 +1 @@ -leo_passes::function_inlining::inline_program - Rust

Module leo_passes::function_inlining::inline_program

source ·
\ No newline at end of file +leo_passes::function_inlining::inline_program - Rust
leo_passes::function_inlining

Module inline_program

source
\ No newline at end of file diff --git a/leo_passes/function_inlining/inline_statement/index.html b/leo_passes/function_inlining/inline_statement/index.html index a35b4ac032..289d62b87e 100644 --- a/leo_passes/function_inlining/inline_statement/index.html +++ b/leo_passes/function_inlining/inline_statement/index.html @@ -1 +1 @@ -leo_passes::function_inlining::inline_statement - Rust

Module leo_passes::function_inlining::inline_statement

source ·
\ No newline at end of file +leo_passes::function_inlining::inline_statement - Rust
leo_passes::function_inlining

Module inline_statement

source
\ No newline at end of file diff --git a/leo_passes/index.html b/leo_passes/index.html index 86b91e0b75..bfa02fc449 100644 --- a/leo_passes/index.html +++ b/leo_passes/index.html @@ -1,4 +1,4 @@ -leo_passes - Rust

Crate leo_passes

source ·
Expand description

§leo-passes

+leo_passes - Rust

Crate leo_passes

source
Expand description

§leo-passes

Crates.io Authors License

diff --git a/leo_passes/loop_unrolling/index.html b/leo_passes/loop_unrolling/index.html index ea13f69ecf..ec4c9612bc 100644 --- a/leo_passes/loop_unrolling/index.html +++ b/leo_passes/loop_unrolling/index.html @@ -1 +1 @@ -leo_passes::loop_unrolling - Rust
\ No newline at end of file +leo_passes::loop_unrolling - Rust
leo_passes

Module loop_unrolling

source

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_passes/loop_unrolling/range_iterator/enum.Clusivity.html b/leo_passes/loop_unrolling/range_iterator/enum.Clusivity.html index d524a6fe81..32dc80168c 100644 --- a/leo_passes/loop_unrolling/range_iterator/enum.Clusivity.html +++ b/leo_passes/loop_unrolling/range_iterator/enum.Clusivity.html @@ -1,28 +1,28 @@ -Clusivity in leo_passes::loop_unrolling::range_iterator - Rust
pub(crate) enum Clusivity {
+Clusivity in leo_passes::loop_unrolling::range_iterator - Rust
leo_passes::loop_unrolling::range_iterator

Enum Clusivity

source
pub(crate) enum Clusivity {
     Inclusive,
     Exclusive,
 }
Expand description

Whether or not a bound is inclusive or exclusive.

-

Variants§

§

Inclusive

§

Exclusive

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 - 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.

+

Variants§

§

Inclusive

§

Exclusive

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/loop_unrolling/range_iterator/index.html b/leo_passes/loop_unrolling/range_iterator/index.html index bab78ed770..1ae976ccde 100644 --- a/leo_passes/loop_unrolling/range_iterator/index.html +++ b/leo_passes/loop_unrolling/range_iterator/index.html @@ -1 +1 @@ -leo_passes::loop_unrolling::range_iterator - Rust

Module leo_passes::loop_unrolling::range_iterator

source ·

Structs§

Enums§

  • Clusivity 🔒
    Whether or not a bound is inclusive or exclusive.

Traits§

  • LoopBound 🔒
    A trait for whose implementors are concrete values for loop bounds.
\ No newline at end of file +leo_passes::loop_unrolling::range_iterator - Rust
leo_passes::loop_unrolling

Module range_iterator

source

Structs§

Enums§

  • Clusivity 🔒
    Whether or not a bound is inclusive or exclusive.

Traits§

  • LoopBound 🔒
    A trait for whose implementors are concrete values for loop bounds.
\ No newline at end of file diff --git a/leo_passes/loop_unrolling/range_iterator/struct.RangeIterator.html b/leo_passes/loop_unrolling/range_iterator/struct.RangeIterator.html index ffa453c34d..fb1029abd2 100644 --- a/leo_passes/loop_unrolling/range_iterator/struct.RangeIterator.html +++ b/leo_passes/loop_unrolling/range_iterator/struct.RangeIterator.html @@ -1,1033 +1,1033 @@ -RangeIterator in leo_passes::loop_unrolling::range_iterator - Rust
pub(crate) struct RangeIterator<I: LoopBound> {
+RangeIterator in leo_passes::loop_unrolling::range_iterator - Rust
leo_passes::loop_unrolling::range_iterator

Struct RangeIterator

source
pub(crate) struct RangeIterator<I: LoopBound> {
     end: I,
-    current: Option<I>,
+    current: Option<I>,
     clusivity: Clusivity,
 }
Expand description

An iterator over a range of values.

-

Fields§

§end: I§current: Option<I>§clusivity: Clusivity

Implementations§

source§

impl<I: LoopBound> RangeIterator<I>

source

pub(crate) fn new(start: I, end: I, clusivity: Clusivity) -> Self

Trait Implementations§

source§

impl<I: LoopBound> Iterator for RangeIterator<I>

source§

type Item = I

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<Self::Item>

Advances the iterator and returns the next value. Read more
source§

fn next_chunk<const N: usize>( +

Fields§

§end: I§current: Option<I>§clusivity: Clusivity

Implementations§

source§

impl<I: LoopBound> RangeIterator<I>

source

pub(crate) fn new(start: I, end: I, clusivity: Clusivity) -> Self

Trait Implementations§

source§

impl<I: LoopBound> Iterator for RangeIterator<I>

source§

type Item = I

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<Self::Item>

Advances the iterator and returns the next value. Read more
source§

fn next_chunk<const N: usize>( &mut self, -) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where - Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
1.0.0 · source§

fn count(self) -> usize
where - Self: Sized,

Consumes the iterator, counting the number of iterations and returning it. Read more
1.0.0 · source§

fn last(self) -> Option<Self::Item>
where - Self: Sized,

Consumes the iterator, returning the last element. Read more
source§

fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

🔬This is a nightly-only experimental API. (iter_advance_by)
Advances the iterator by n elements. Read more
1.0.0 · source§

fn nth(&mut self, n: usize) -> Option<Self::Item>

Returns the nth element of the iterator. Read more
1.28.0 · source§

fn step_by(self, step: usize) -> StepBy<Self>
where - Self: Sized,

Creates an iterator starting at the same point, but stepping by -the given amount at each iteration. Read more
1.0.0 · source§

fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter>
where - Self: Sized, - U: IntoIterator<Item = Self::Item>,

Takes two iterators and creates a new iterator over both in sequence. Read more
1.0.0 · source§

fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter>
where - Self: Sized, - U: IntoIterator,

‘Zips up’ two iterators into a single iterator of pairs. Read more
source§

fn intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G>
where - Self: Sized, - G: FnMut() -> Self::Item,

🔬This is a nightly-only experimental API. (iter_intersperse)
Creates a new iterator which places an item generated by separator -between adjacent items of the original iterator. Read more
1.0.0 · source§

fn map<B, F>(self, f: F) -> Map<Self, F>
where - Self: Sized, - F: FnMut(Self::Item) -> B,

Takes a closure and creates an iterator which calls that closure on each -element. Read more
1.21.0 · source§

fn for_each<F>(self, f: F)
where - Self: Sized, - F: FnMut(Self::Item),

Calls a closure on each element of an iterator. Read more
1.0.0 · source§

fn filter<P>(self, predicate: P) -> Filter<Self, P>
where - Self: Sized, - P: FnMut(&Self::Item) -> bool,

Creates an iterator which uses a closure to determine if an element -should be yielded. Read more
1.0.0 · source§

fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F>
where - Self: Sized, - F: FnMut(Self::Item) -> Option<B>,

Creates an iterator that both filters and maps. Read more
1.0.0 · source§

fn enumerate(self) -> Enumerate<Self>
where - Self: Sized,

Creates an iterator which gives the current iteration count as well as -the next value. Read more
1.0.0 · source§

fn peekable(self) -> Peekable<Self>
where - Self: Sized,

Creates an iterator which can use the peek and peek_mut methods +) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where + Self: Sized,
🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
1.0.0 · source§

fn count(self) -> usize
where + Self: Sized,

Consumes the iterator, counting the number of iterations and returning it. Read more
1.0.0 · source§

fn last(self) -> Option<Self::Item>
where + Self: Sized,

Consumes the iterator, returning the last element. Read more
source§

fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

🔬This is a nightly-only experimental API. (iter_advance_by)
Advances the iterator by n elements. Read more
1.0.0 · source§

fn nth(&mut self, n: usize) -> Option<Self::Item>

Returns the nth element of the iterator. Read more
1.28.0 · source§

fn step_by(self, step: usize) -> StepBy<Self>
where + Self: Sized,

Creates an iterator starting at the same point, but stepping by +the given amount at each iteration. Read more
1.0.0 · source§

fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter>
where + Self: Sized, + U: IntoIterator<Item = Self::Item>,

Takes two iterators and creates a new iterator over both in sequence. Read more
1.0.0 · source§

fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter>
where + Self: Sized, + U: IntoIterator,

‘Zips up’ two iterators into a single iterator of pairs. Read more
source§

fn intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G>
where + Self: Sized, + G: FnMut() -> Self::Item,

🔬This is a nightly-only experimental API. (iter_intersperse)
Creates a new iterator which places an item generated by separator +between adjacent items of the original iterator. Read more
1.0.0 · source§

fn map<B, F>(self, f: F) -> Map<Self, F>
where + Self: Sized, + F: FnMut(Self::Item) -> B,

Takes a closure and creates an iterator which calls that closure on each +element. Read more
1.21.0 · source§

fn for_each<F>(self, f: F)
where + Self: Sized, + F: FnMut(Self::Item),

Calls a closure on each element of an iterator. Read more
1.0.0 · source§

fn filter<P>(self, predicate: P) -> Filter<Self, P>
where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Creates an iterator which uses a closure to determine if an element +should be yielded. Read more
1.0.0 · source§

fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F>
where + Self: Sized, + F: FnMut(Self::Item) -> Option<B>,

Creates an iterator that both filters and maps. Read more
1.0.0 · source§

fn enumerate(self) -> Enumerate<Self>
where + Self: Sized,

Creates an iterator which gives the current iteration count as well as +the next value. Read more
1.0.0 · source§

fn peekable(self) -> Peekable<Self>
where + Self: Sized,

Creates an iterator which can use the peek and peek_mut methods to look at the next element of the iterator without consuming it. See -their documentation for more information. Read more
1.0.0 · source§

fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>
where - Self: Sized, - P: FnMut(&Self::Item) -> bool,

Creates an iterator that skips elements based on a predicate. Read more
1.0.0 · source§

fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
where - Self: Sized, - P: FnMut(&Self::Item) -> bool,

Creates an iterator that yields elements based on a predicate. Read more
1.57.0 · source§

fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P>
where - Self: Sized, - P: FnMut(Self::Item) -> Option<B>,

Creates an iterator that both yields elements based on a predicate and maps. Read more
1.0.0 · source§

fn skip(self, n: usize) -> Skip<Self>
where - Self: Sized,

Creates an iterator that skips the first n elements. Read more
1.0.0 · source§

fn take(self, n: usize) -> Take<Self>
where - Self: Sized,

Creates an iterator that yields the first n elements, or fewer -if the underlying iterator ends sooner. Read more
1.0.0 · source§

fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>
where - Self: Sized, - F: FnMut(&mut St, Self::Item) -> Option<B>,

An iterator adapter which, like fold, holds internal state, but -unlike fold, produces a new iterator. Read more
1.0.0 · source§

fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>
where - Self: Sized, - U: IntoIterator, - F: FnMut(Self::Item) -> U,

Creates an iterator that works like map, but flattens nested structure. Read more
source§

fn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N>
where - Self: Sized, - F: FnMut(&[Self::Item; N]) -> R,

🔬This is a nightly-only experimental API. (iter_map_windows)
Calls the given function f for each contiguous window of size N over -self and returns an iterator over the outputs of f. Like slice::windows(), -the windows during mapping overlap as well. Read more
1.0.0 · source§

fn fuse(self) -> Fuse<Self>
where - Self: Sized,

Creates an iterator which ends after the first None. Read more
1.0.0 · source§

fn inspect<F>(self, f: F) -> Inspect<Self, F>
where - Self: Sized, - F: FnMut(&Self::Item),

Does something with each element of an iterator, passing the value on. Read more
1.0.0 · source§

fn by_ref(&mut self) -> &mut Self
where - Self: Sized,

Borrows an iterator, rather than consuming it. Read more
1.0.0 · source§

fn collect<B>(self) -> B
where - B: FromIterator<Self::Item>, - Self: Sized,

Transforms an iterator into a collection. Read more
source§

fn collect_into<E>(self, collection: &mut E) -> &mut E
where - E: Extend<Self::Item>, - Self: Sized,

🔬This is a nightly-only experimental API. (iter_collect_into)
Collects all the items from an iterator into a collection. Read more
1.0.0 · source§

fn partition<B, F>(self, f: F) -> (B, B)
where - Self: Sized, - B: Default + Extend<Self::Item>, - F: FnMut(&Self::Item) -> bool,

Consumes an iterator, creating two collections from it. Read more
source§

fn is_partitioned<P>(self, predicate: P) -> bool
where - Self: Sized, - P: FnMut(Self::Item) -> bool,

🔬This is a nightly-only experimental API. (iter_is_partitioned)
Checks if the elements of this iterator are partitioned according to the given predicate, -such that all those that return true precede all those that return false. Read more
1.27.0 · source§

fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R
where - Self: Sized, - F: FnMut(B, Self::Item) -> R, - R: Try<Output = B>,

An iterator method that applies a function as long as it returns -successfully, producing a single, final value. Read more
1.27.0 · source§

fn try_for_each<F, R>(&mut self, f: F) -> R
where - Self: Sized, - F: FnMut(Self::Item) -> R, - R: Try<Output = ()>,

An iterator method that applies a fallible function to each item in the -iterator, stopping at the first error and returning that error. Read more
1.0.0 · source§

fn fold<B, F>(self, init: B, f: F) -> B
where - Self: Sized, - F: FnMut(B, Self::Item) -> B,

Folds every element into an accumulator by applying an operation, -returning the final result. Read more
1.51.0 · source§

fn reduce<F>(self, f: F) -> Option<Self::Item>
where - Self: Sized, - F: FnMut(Self::Item, Self::Item) -> Self::Item,

Reduces the elements to a single one, by repeatedly applying a reducing -operation. Read more
source§

fn try_reduce<R>( +their documentation for more information. Read more

1.0.0 · source§

fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>
where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Creates an iterator that skips elements based on a predicate. Read more
1.0.0 · source§

fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Creates an iterator that yields elements based on a predicate. Read more
1.57.0 · source§

fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P>
where + Self: Sized, + P: FnMut(Self::Item) -> Option<B>,

Creates an iterator that both yields elements based on a predicate and maps. Read more
1.0.0 · source§

fn skip(self, n: usize) -> Skip<Self>
where + Self: Sized,

Creates an iterator that skips the first n elements. Read more
1.0.0 · source§

fn take(self, n: usize) -> Take<Self>
where + Self: Sized,

Creates an iterator that yields the first n elements, or fewer +if the underlying iterator ends sooner. Read more
1.0.0 · source§

fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>
where + Self: Sized, + F: FnMut(&mut St, Self::Item) -> Option<B>,

An iterator adapter which, like fold, holds internal state, but +unlike fold, produces a new iterator. Read more
1.0.0 · source§

fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>
where + Self: Sized, + U: IntoIterator, + F: FnMut(Self::Item) -> U,

Creates an iterator that works like map, but flattens nested structure. Read more
source§

fn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N>
where + Self: Sized, + F: FnMut(&[Self::Item; N]) -> R,

🔬This is a nightly-only experimental API. (iter_map_windows)
Calls the given function f for each contiguous window of size N over +self and returns an iterator over the outputs of f. Like slice::windows(), +the windows during mapping overlap as well. Read more
1.0.0 · source§

fn fuse(self) -> Fuse<Self>
where + Self: Sized,

Creates an iterator which ends after the first None. Read more
1.0.0 · source§

fn inspect<F>(self, f: F) -> Inspect<Self, F>
where + Self: Sized, + F: FnMut(&Self::Item),

Does something with each element of an iterator, passing the value on. Read more
1.0.0 · source§

fn by_ref(&mut self) -> &mut Self
where + Self: Sized,

Borrows an iterator, rather than consuming it. Read more
1.0.0 · source§

fn collect<B>(self) -> B
where + B: FromIterator<Self::Item>, + Self: Sized,

Transforms an iterator into a collection. Read more
source§

fn collect_into<E>(self, collection: &mut E) -> &mut E
where + E: Extend<Self::Item>, + Self: Sized,

🔬This is a nightly-only experimental API. (iter_collect_into)
Collects all the items from an iterator into a collection. Read more
1.0.0 · source§

fn partition<B, F>(self, f: F) -> (B, B)
where + Self: Sized, + B: Default + Extend<Self::Item>, + F: FnMut(&Self::Item) -> bool,

Consumes an iterator, creating two collections from it. Read more
source§

fn is_partitioned<P>(self, predicate: P) -> bool
where + Self: Sized, + P: FnMut(Self::Item) -> bool,

🔬This is a nightly-only experimental API. (iter_is_partitioned)
Checks if the elements of this iterator are partitioned according to the given predicate, +such that all those that return true precede all those that return false. Read more
1.27.0 · source§

fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R
where + Self: Sized, + F: FnMut(B, Self::Item) -> R, + R: Try<Output = B>,

An iterator method that applies a function as long as it returns +successfully, producing a single, final value. Read more
1.27.0 · source§

fn try_for_each<F, R>(&mut self, f: F) -> R
where + Self: Sized, + F: FnMut(Self::Item) -> R, + R: Try<Output = ()>,

An iterator method that applies a fallible function to each item in the +iterator, stopping at the first error and returning that error. Read more
1.0.0 · source§

fn fold<B, F>(self, init: B, f: F) -> B
where + Self: Sized, + F: FnMut(B, Self::Item) -> B,

Folds every element into an accumulator by applying an operation, +returning the final result. Read more
1.51.0 · source§

fn reduce<F>(self, f: F) -> Option<Self::Item>
where + Self: Sized, + F: FnMut(Self::Item, Self::Item) -> Self::Item,

Reduces the elements to a single one, by repeatedly applying a reducing +operation. Read more
source§

fn try_reduce<R>( &mut self, - f: impl FnMut(Self::Item, Self::Item) -> R, -) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryType
where - Self: Sized, - R: Try<Output = Self::Item>, - <R as Try>::Residual: Residual<Option<Self::Item>>,

🔬This is a nightly-only experimental API. (iterator_try_reduce)
Reduces the elements to a single one by repeatedly applying a reducing operation. If the -closure returns a failure, the failure is propagated back to the caller immediately. Read more
1.0.0 · source§

fn all<F>(&mut self, f: F) -> bool
where - Self: Sized, - F: FnMut(Self::Item) -> bool,

Tests if every element of the iterator matches a predicate. Read more
1.0.0 · source§

fn any<F>(&mut self, f: F) -> bool
where - Self: Sized, - F: FnMut(Self::Item) -> bool,

Tests if any element of the iterator matches a predicate. Read more
1.0.0 · source§

fn find<P>(&mut self, predicate: P) -> Option<Self::Item>
where - Self: Sized, - P: FnMut(&Self::Item) -> bool,

Searches for an element of an iterator that satisfies a predicate. Read more
1.30.0 · source§

fn find_map<B, F>(&mut self, f: F) -> Option<B>
where - Self: Sized, - F: FnMut(Self::Item) -> Option<B>,

Applies function to the elements of iterator and returns -the first non-none result. Read more
source§

fn try_find<R>( + f: impl FnMut(Self::Item, Self::Item) -> R, +) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryType
where + Self: Sized, + R: Try<Output = Self::Item>, + <R as Try>::Residual: Residual<Option<Self::Item>>,

🔬This is a nightly-only experimental API. (iterator_try_reduce)
Reduces the elements to a single one by repeatedly applying a reducing operation. If the +closure returns a failure, the failure is propagated back to the caller immediately. Read more
1.0.0 · source§

fn all<F>(&mut self, f: F) -> bool
where + Self: Sized, + F: FnMut(Self::Item) -> bool,

Tests if every element of the iterator matches a predicate. Read more
1.0.0 · source§

fn any<F>(&mut self, f: F) -> bool
where + Self: Sized, + F: FnMut(Self::Item) -> bool,

Tests if any element of the iterator matches a predicate. Read more
1.0.0 · source§

fn find<P>(&mut self, predicate: P) -> Option<Self::Item>
where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Searches for an element of an iterator that satisfies a predicate. Read more
1.30.0 · source§

fn find_map<B, F>(&mut self, f: F) -> Option<B>
where + Self: Sized, + F: FnMut(Self::Item) -> Option<B>,

Applies function to the elements of iterator and returns +the first non-none result. Read more
source§

fn try_find<R>( &mut self, - f: impl FnMut(&Self::Item) -> R, -) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryType
where - Self: Sized, - R: Try<Output = bool>, - <R as Try>::Residual: Residual<Option<Self::Item>>,

🔬This is a nightly-only experimental API. (try_find)
Applies function to the elements of iterator and returns -the first true result or the first error. Read more
1.0.0 · source§

fn position<P>(&mut self, predicate: P) -> Option<usize>
where - Self: Sized, - P: FnMut(Self::Item) -> bool,

Searches for an element in an iterator, returning its index. Read more
1.6.0 · source§

fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>
where - B: Ord, - Self: Sized, - F: FnMut(&Self::Item) -> B,

Returns the element that gives the maximum value from the -specified function. Read more
1.15.0 · source§

fn max_by<F>(self, compare: F) -> Option<Self::Item>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Returns the element that gives the maximum value with respect to the -specified comparison function. Read more
1.6.0 · source§

fn min_by_key<B, F>(self, f: F) -> Option<Self::Item>
where - B: Ord, - Self: Sized, - F: FnMut(&Self::Item) -> B,

Returns the element that gives the minimum value from the -specified function. Read more
1.15.0 · source§

fn min_by<F>(self, compare: F) -> Option<Self::Item>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Returns the element that gives the minimum value with respect to the -specified comparison function. Read more
1.0.0 · source§

fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)
where - FromA: Default + Extend<A>, - FromB: Default + Extend<B>, - Self: Sized + Iterator<Item = (A, B)>,

Converts an iterator of pairs into a pair of containers. Read more
1.36.0 · source§

fn copied<'a, T>(self) -> Copied<Self>
where - T: 'a + Copy, - Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which copies all of its elements. Read more
1.0.0 · source§

fn cloned<'a, T>(self) -> Cloned<Self>
where - T: 'a + Clone, - Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which clones all of its elements. Read more
source§

fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N>
where - Self: Sized,

🔬This is a nightly-only experimental API. (iter_array_chunks)
Returns an iterator over N elements of the iterator at a time. Read more
1.11.0 · source§

fn sum<S>(self) -> S
where - Self: Sized, - S: Sum<Self::Item>,

Sums the elements of an iterator. Read more
1.11.0 · source§

fn product<P>(self) -> P
where - Self: Sized, - P: Product<Self::Item>,

Iterates over the entire iterator, multiplying all the elements Read more
source§

fn cmp_by<I, F>(self, other: I, cmp: F) -> Ordering
where - Self: Sized, - I: IntoIterator, - F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Ordering,

🔬This is a nightly-only experimental API. (iter_order_by)
Lexicographically compares the elements of this Iterator with those -of another with respect to the specified comparison function. Read more
1.5.0 · source§

fn partial_cmp<I>(self, other: I) -> Option<Ordering>
where - I: IntoIterator, - Self::Item: PartialOrd<<I as IntoIterator>::Item>, - Self: Sized,

Lexicographically compares the PartialOrd elements of -this Iterator with those of another. The comparison works like short-circuit + f: impl FnMut(&Self::Item) -> R, +) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryType
where + Self: Sized, + R: Try<Output = bool>, + <R as Try>::Residual: Residual<Option<Self::Item>>,
🔬This is a nightly-only experimental API. (try_find)
Applies function to the elements of iterator and returns +the first true result or the first error. Read more
1.0.0 · source§

fn position<P>(&mut self, predicate: P) -> Option<usize>
where + Self: Sized, + P: FnMut(Self::Item) -> bool,

Searches for an element in an iterator, returning its index. Read more
1.6.0 · source§

fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>
where + B: Ord, + Self: Sized, + F: FnMut(&Self::Item) -> B,

Returns the element that gives the maximum value from the +specified function. Read more
1.15.0 · source§

fn max_by<F>(self, compare: F) -> Option<Self::Item>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Returns the element that gives the maximum value with respect to the +specified comparison function. Read more
1.6.0 · source§

fn min_by_key<B, F>(self, f: F) -> Option<Self::Item>
where + B: Ord, + Self: Sized, + F: FnMut(&Self::Item) -> B,

Returns the element that gives the minimum value from the +specified function. Read more
1.15.0 · source§

fn min_by<F>(self, compare: F) -> Option<Self::Item>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Returns the element that gives the minimum value with respect to the +specified comparison function. Read more
1.0.0 · source§

fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)
where + FromA: Default + Extend<A>, + FromB: Default + Extend<B>, + Self: Sized + Iterator<Item = (A, B)>,

Converts an iterator of pairs into a pair of containers. Read more
1.36.0 · source§

fn copied<'a, T>(self) -> Copied<Self>
where + T: 'a + Copy, + Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which copies all of its elements. Read more
1.0.0 · source§

fn cloned<'a, T>(self) -> Cloned<Self>
where + T: 'a + Clone, + Self: Sized + Iterator<Item = &'a T>,

Creates an iterator which clones all of its elements. Read more
source§

fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N>
where + Self: Sized,

🔬This is a nightly-only experimental API. (iter_array_chunks)
Returns an iterator over N elements of the iterator at a time. Read more
1.11.0 · source§

fn sum<S>(self) -> S
where + Self: Sized, + S: Sum<Self::Item>,

Sums the elements of an iterator. Read more
1.11.0 · source§

fn product<P>(self) -> P
where + Self: Sized, + P: Product<Self::Item>,

Iterates over the entire iterator, multiplying all the elements Read more
source§

fn cmp_by<I, F>(self, other: I, cmp: F) -> Ordering
where + Self: Sized, + I: IntoIterator, + F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Ordering,

🔬This is a nightly-only experimental API. (iter_order_by)
Lexicographically compares the elements of this Iterator with those +of another with respect to the specified comparison function. Read more
1.5.0 · source§

fn partial_cmp<I>(self, other: I) -> Option<Ordering>
where + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Lexicographically compares the PartialOrd elements of +this Iterator with those of another. The comparison works like short-circuit evaluation, returning a result without comparing the remaining elements. -As soon as an order can be determined, the evaluation stops and a result is returned. Read more
source§

fn partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering>
where - Self: Sized, - I: IntoIterator, - F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>,

🔬This is a nightly-only experimental API. (iter_order_by)
Lexicographically compares the elements of this Iterator with those -of another with respect to the specified comparison function. Read more
1.5.0 · source§

fn eq<I>(self, other: I) -> bool
where - I: IntoIterator, - Self::Item: PartialEq<<I as IntoIterator>::Item>, - Self: Sized,

Determines if the elements of this Iterator are equal to those of -another. Read more
source§

fn eq_by<I, F>(self, other: I, eq: F) -> bool
where - Self: Sized, - I: IntoIterator, - F: FnMut(Self::Item, <I as IntoIterator>::Item) -> bool,

🔬This is a nightly-only experimental API. (iter_order_by)
Determines if the elements of this Iterator are equal to those of -another with respect to the specified equality function. Read more
1.5.0 · source§

fn ne<I>(self, other: I) -> bool
where - I: IntoIterator, - Self::Item: PartialEq<<I as IntoIterator>::Item>, - Self: Sized,

Determines if the elements of this Iterator are not equal to those of -another. Read more
1.5.0 · source§

fn lt<I>(self, other: I) -> bool
where - I: IntoIterator, - Self::Item: PartialOrd<<I as IntoIterator>::Item>, - Self: Sized,

Determines if the elements of this Iterator are lexicographically -less than those of another. Read more
1.5.0 · source§

fn le<I>(self, other: I) -> bool
where - I: IntoIterator, - Self::Item: PartialOrd<<I as IntoIterator>::Item>, - Self: Sized,

Determines if the elements of this Iterator are lexicographically -less or equal to those of another. Read more
1.5.0 · source§

fn gt<I>(self, other: I) -> bool
where - I: IntoIterator, - Self::Item: PartialOrd<<I as IntoIterator>::Item>, - Self: Sized,

Determines if the elements of this Iterator are lexicographically -greater than those of another. Read more
1.5.0 · source§

fn ge<I>(self, other: I) -> bool
where - I: IntoIterator, - Self::Item: PartialOrd<<I as IntoIterator>::Item>, - Self: Sized,

Determines if the elements of this Iterator are lexicographically -greater than or equal to those of another. Read more
1.82.0 · source§

fn is_sorted_by<F>(self, compare: F) -> bool
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> bool,

Checks if the elements of this iterator are sorted using the given comparator function. Read more
1.82.0 · source§

fn is_sorted_by_key<F, K>(self, f: F) -> bool
where - Self: Sized, - F: FnMut(Self::Item) -> K, - K: PartialOrd,

Checks if the elements of this iterator are sorted using the given key extraction -function. Read more

Auto Trait Implementations§

§

impl<I> Freeze for RangeIterator<I>
where - I: Freeze,

§

impl<I> RefUnwindSafe for RangeIterator<I>
where - I: RefUnwindSafe,

§

impl<I> Send for RangeIterator<I>
where - I: Send,

§

impl<I> Sync for RangeIterator<I>
where - I: Sync,

§

impl<I> Unpin for RangeIterator<I>
where - I: Unpin,

§

impl<I> UnwindSafe for RangeIterator<I>
where - I: UnwindSafe,

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.

+As soon as an order can be determined, the evaluation stops and a result is returned. Read more
source§

fn partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering>
where + Self: Sized, + I: IntoIterator, + F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>,

🔬This is a nightly-only experimental API. (iter_order_by)
Lexicographically compares the elements of this Iterator with those +of another with respect to the specified comparison function. Read more
1.5.0 · source§

fn eq<I>(self, other: I) -> bool
where + I: IntoIterator, + Self::Item: PartialEq<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are equal to those of +another. Read more
source§

fn eq_by<I, F>(self, other: I, eq: F) -> bool
where + Self: Sized, + I: IntoIterator, + F: FnMut(Self::Item, <I as IntoIterator>::Item) -> bool,

🔬This is a nightly-only experimental API. (iter_order_by)
Determines if the elements of this Iterator are equal to those of +another with respect to the specified equality function. Read more
1.5.0 · source§

fn ne<I>(self, other: I) -> bool
where + I: IntoIterator, + Self::Item: PartialEq<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are not equal to those of +another. Read more
1.5.0 · source§

fn lt<I>(self, other: I) -> bool
where + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are lexicographically +less than those of another. Read more
1.5.0 · source§

fn le<I>(self, other: I) -> bool
where + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are lexicographically +less or equal to those of another. Read more
1.5.0 · source§

fn gt<I>(self, other: I) -> bool
where + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are lexicographically +greater than those of another. Read more
1.5.0 · source§

fn ge<I>(self, other: I) -> bool
where + I: IntoIterator, + Self::Item: PartialOrd<<I as IntoIterator>::Item>, + Self: Sized,

Determines if the elements of this Iterator are lexicographically +greater than or equal to those of another. Read more
1.82.0 · source§

fn is_sorted_by<F>(self, compare: F) -> bool
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> bool,

Checks if the elements of this iterator are sorted using the given comparator function. Read more
1.82.0 · source§

fn is_sorted_by_key<F, K>(self, f: F) -> bool
where + Self: Sized, + F: FnMut(Self::Item) -> K, + K: PartialOrd,

Checks if the elements of this iterator are sorted using the given key extraction +function. Read more

Auto Trait Implementations§

§

impl<I> Freeze for RangeIterator<I>
where + I: Freeze,

§

impl<I> RefUnwindSafe for RangeIterator<I>
where + I: RefUnwindSafe,

§

impl<I> Send for RangeIterator<I>
where + I: Send,

§

impl<I> Sync for RangeIterator<I>
where + I: Sync,

§

impl<I> Unpin for RangeIterator<I>
where + I: Unpin,

§

impl<I> UnwindSafe for RangeIterator<I>
where + I: UnwindSafe,

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<I> IntoIterator for I
where - I: Iterator,

source§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
source§

type IntoIter = I

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<I> IteratorRandom for I
where - I: Iterator,

source§

fn choose<R>(self, rng: &mut R) -> Option<Self::Item>
where - R: Rng + ?Sized,

Choose one element at random from the iterator. Read more
source§

fn choose_stable<R>(self, rng: &mut R) -> Option<Self::Item>
where - R: Rng + ?Sized,

Choose one element at random from the iterator. Read more
source§

fn choose_multiple_fill<R>(self, rng: &mut R, buf: &mut [Self::Item]) -> usize
where - R: Rng + ?Sized,

Collects values at random from the iterator into a supplied buffer -until that buffer is filled. Read more
source§

fn choose_multiple<R>(self, rng: &mut R, amount: usize) -> Vec<Self::Item>
where - R: Rng + ?Sized,

Collects amount values at random from the iterator into a vector. Read more
§

impl<T> Itertools for T
where - T: Iterator + ?Sized,

§

fn interleave<J>( +otherwise. Read more

source§

impl<I> IntoIterator for I
where + I: Iterator,

source§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
source§

type IntoIter = I

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<I> IteratorRandom for I
where + I: Iterator,

source§

fn choose<R>(self, rng: &mut R) -> Option<Self::Item>
where + R: Rng + ?Sized,

Choose one element at random from the iterator. Read more
source§

fn choose_stable<R>(self, rng: &mut R) -> Option<Self::Item>
where + R: Rng + ?Sized,

Choose one element at random from the iterator. Read more
source§

fn choose_multiple_fill<R>(self, rng: &mut R, buf: &mut [Self::Item]) -> usize
where + R: Rng + ?Sized,

Collects values at random from the iterator into a supplied buffer +until that buffer is filled. Read more
source§

fn choose_multiple<R>(self, rng: &mut R, amount: usize) -> Vec<Self::Item>
where + R: Rng + ?Sized,

Collects amount values at random from the iterator into a vector. Read more
§

impl<T> Itertools for T
where + T: Iterator + ?Sized,

§

fn interleave<J>( self, other: J, -) -> Interleave<Self, <J as IntoIterator>::IntoIter>
where - J: IntoIterator<Item = Self::Item>, - Self: Sized,

Alternate elements from two iterators until both have run out. Read more
§

fn interleave_shortest<J>( +) -> Interleave<Self, <J as IntoIterator>::IntoIter>
where + J: IntoIterator<Item = Self::Item>, + Self: Sized,

Alternate elements from two iterators until both have run out. Read more
§

fn interleave_shortest<J>( self, other: J, -) -> InterleaveShortest<Self, <J as IntoIterator>::IntoIter>
where - J: IntoIterator<Item = Self::Item>, - Self: Sized,

Alternate elements from two iterators until at least one of them has run +) -> InterleaveShortest<Self, <J as IntoIterator>::IntoIter>
where + J: IntoIterator<Item = Self::Item>, + Self: Sized,
Alternate elements from two iterators until at least one of them has run out. Read more
§

fn intersperse( self, - element: Self::Item, -) -> IntersperseWith<Self, IntersperseElementSimple<Self::Item>>
where - Self: Sized, - Self::Item: Clone,

An iterator adaptor to insert a particular value + element: Self::Item, +) -> IntersperseWith<Self, IntersperseElementSimple<Self::Item>>
where + Self: Sized, + Self::Item: Clone,
An iterator adaptor to insert a particular value between each element of the adapted iterator. Read more
§

fn intersperse_with<F>(self, element: F) -> IntersperseWith<Self, F>
where - Self: Sized, - F: FnMut() -> Self::Item,

An iterator adaptor to insert a particular value created by a function + Self: Sized, + F: FnMut() -> Self::Item,
An iterator adaptor to insert a particular value created by a function between each element of the adapted iterator. Read more
§

fn get<R>(self, index: R) -> <R as IteratorIndex<Self>>::Output
where - Self: Sized, + Self: Sized, R: IteratorIndex<Self>,

Returns an iterator over a subsection of the iterator. Read more
§

fn zip_longest<J>( self, other: J, -) -> ZipLongest<Self, <J as IntoIterator>::IntoIter>
where - J: IntoIterator, - Self: Sized,

Create an iterator which iterates over both this and the specified -iterator simultaneously, yielding pairs of two optional elements. Read more
§

fn zip_eq<J>(self, other: J) -> ZipEq<Self, <J as IntoIterator>::IntoIter>
where - J: IntoIterator, - Self: Sized,

Create an iterator which iterates over both this and the specified +) -> ZipLongest<Self, <J as IntoIterator>::IntoIter>
where + J: IntoIterator, + Self: Sized,
Create an iterator which iterates over both this and the specified +iterator simultaneously, yielding pairs of two optional elements. Read more
§

fn zip_eq<J>(self, other: J) -> ZipEq<Self, <J as IntoIterator>::IntoIter>
where + J: IntoIterator, + Self: Sized,

Create an iterator which iterates over both this and the specified iterator simultaneously, yielding pairs of elements. Read more
§

fn batching<B, F>(self, f: F) -> Batching<Self, F>
where - F: FnMut(&mut Self) -> Option<B>, - Self: Sized,

A “meta iterator adaptor”. Its closure receives a reference to the + F: FnMut(&mut Self) -> Option<B>, + Self: Sized,
A “meta iterator adaptor”. Its closure receives a reference to the iterator and may pick off as many elements as it likes, to produce the next iterator element. Read more
§

fn chunk_by<K, F>(self, key: F) -> ChunkBy<K, Self, F>
where - Self: Sized, - F: FnMut(&Self::Item) -> K, - K: PartialEq,

Return an iterable that can group iterator elements. + Self: Sized, + F: FnMut(&Self::Item) -> K, + K: PartialEq,
Return an iterable that can group iterator elements. Consecutive elements that map to the same key (“runs”), are assigned to the same group. Read more
§

fn group_by<K, F>(self, key: F) -> ChunkBy<K, Self, F>
where - Self: Sized, - F: FnMut(&Self::Item) -> K, - K: PartialEq,

👎Deprecated since 0.13.0: Use .chunk_by() instead
§

fn chunks(self, size: usize) -> IntoChunks<Self>
where - Self: Sized,

Return an iterable that can chunk the iterator. Read more
§

fn tuple_windows<T>(self) -> TupleWindows<Self, T>
where - Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, + Self: Sized, + F: FnMut(&Self::Item) -> K, + K: PartialEq,

👎Deprecated since 0.13.0: Use .chunk_by() instead
§

fn chunks(self, size: usize) -> IntoChunks<Self>
where + Self: Sized,

Return an iterable that can chunk the iterator. Read more
§

fn tuple_windows<T>(self) -> TupleWindows<Self, T>
where + Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, T: HomogeneousTuple, - <T as TupleCollect>::Item: Clone,

Return an iterator over all contiguous windows producing tuples of + <T as TupleCollect>::Item: Clone,
Return an iterator over all contiguous windows producing tuples of a specific size (up to 12). Read more
§

fn circular_tuple_windows<T>(self) -> CircularTupleWindows<Self, T>
where - Self: Sized + Clone + Iterator<Item = <T as TupleCollect>::Item> + ExactSizeIterator, - T: TupleCollect + Clone, - <T as TupleCollect>::Item: Clone,

Return an iterator over all windows, wrapping back to the first + Self: Sized + Clone + Iterator<Item = <T as TupleCollect>::Item> + ExactSizeIterator, + T: TupleCollect + Clone, + <T as TupleCollect>::Item: Clone,
Return an iterator over all windows, wrapping back to the first elements when the window would otherwise exceed the length of the iterator, producing tuples of a specific size (up to 12). Read more
§

fn tuples<T>(self) -> Tuples<Self, T>
where - Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, + Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, T: HomogeneousTuple,

Return an iterator that groups the items in tuples of a specific size (up to 12). Read more
§

fn tee(self) -> (Tee<Self>, Tee<Self>)
where - Self: Sized, - Self::Item: Clone,

Split into an iterator pair that both yield all elements from + Self: Sized, + Self::Item: Clone,
Split into an iterator pair that both yield all elements from the original iterator. Read more
§

fn map_into<R>(self) -> MapSpecialCase<Self, MapSpecialCaseFnInto<R>>
where - Self: Sized, - Self::Item: Into<R>,

Convert each item of the iterator using the Into trait. Read more
§

fn map_ok<F, T, U, E>(self, f: F) -> MapSpecialCase<Self, MapSpecialCaseFnOk<F>>
where - Self: Sized + Iterator<Item = Result<T, E>>, - F: FnMut(T) -> U,

Return an iterator adaptor that applies the provided closure + Self: Sized, + Self::Item: Into<R>,
Convert each item of the iterator using the Into trait. Read more
§

fn map_ok<F, T, U, E>(self, f: F) -> MapSpecialCase<Self, MapSpecialCaseFnOk<F>>
where + Self: Sized + Iterator<Item = Result<T, E>>, + F: FnMut(T) -> U,

Return an iterator adaptor that applies the provided closure to every Result::Ok value. Result::Err values are unchanged. Read more
§

fn filter_ok<F, T, E>(self, f: F) -> FilterOk<Self, F>
where - Self: Sized + Iterator<Item = Result<T, E>>, - F: FnMut(&T) -> bool,

Return an iterator adaptor that filters every Result::Ok + Self: Sized + Iterator<Item = Result<T, E>>, + F: FnMut(&T) -> bool,
Return an iterator adaptor that filters every Result::Ok value with the provided closure. Result::Err values are unchanged. Read more
§

fn filter_map_ok<F, T, U, E>(self, f: F) -> FilterMapOk<Self, F>
where - Self: Sized + Iterator<Item = Result<T, E>>, - F: FnMut(T) -> Option<U>,

Return an iterator adaptor that filters and transforms every + Self: Sized + Iterator<Item = Result<T, E>>, + F: FnMut(T) -> Option<U>,
Return an iterator adaptor that filters and transforms every Result::Ok value with the provided closure. Result::Err values are unchanged. Read more
§

fn flatten_ok<T, E>(self) -> FlattenOk<Self, T, E>
where - Self: Sized + Iterator<Item = Result<T, E>>, - T: IntoIterator,

Return an iterator adaptor that flattens every Result::Ok value into -a series of Result::Ok values. Result::Err values are unchanged. Read more
§

fn process_results<F, T, E, R>(self, processor: F) -> Result<R, E>
where - Self: Sized + Iterator<Item = Result<T, E>>, - F: FnOnce(ProcessResults<'_, Self, E>) -> R,

“Lift” a function of the values of the current iterator so as to process + Self: Sized + Iterator<Item = Result<T, E>>, + T: IntoIterator,
Return an iterator adaptor that flattens every Result::Ok value into +a series of Result::Ok values. Result::Err values are unchanged. Read more
§

fn process_results<F, T, E, R>(self, processor: F) -> Result<R, E>
where + Self: Sized + Iterator<Item = Result<T, E>>, + F: FnOnce(ProcessResults<'_, Self, E>) -> R,

“Lift” a function of the values of the current iterator so as to process an iterator of Result values instead. Read more
§

fn merge<J>( self, other: J, -) -> MergeBy<Self, <J as IntoIterator>::IntoIter, MergeLte>
where - Self: Sized, - Self::Item: PartialOrd, - J: IntoIterator<Item = Self::Item>,

Return an iterator adaptor that merges the two base iterators in +) -> MergeBy<Self, <J as IntoIterator>::IntoIter, MergeLte>
where + Self: Sized, + Self::Item: PartialOrd, + J: IntoIterator<Item = Self::Item>,
Return an iterator adaptor that merges the two base iterators in ascending order. If both base iterators are sorted (ascending), the result is sorted. Read more
§

fn merge_by<J, F>( self, other: J, is_first: F, -) -> MergeBy<Self, <J as IntoIterator>::IntoIter, F>
where - Self: Sized, - J: IntoIterator<Item = Self::Item>, - F: FnMut(&Self::Item, &Self::Item) -> bool,

Return an iterator adaptor that merges the two base iterators in order. +) -> MergeBy<Self, <J as IntoIterator>::IntoIter, F>
where + Self: Sized, + J: IntoIterator<Item = Self::Item>, + F: FnMut(&Self::Item, &Self::Item) -> bool,
Return an iterator adaptor that merges the two base iterators in order. This is much like .merge() but allows for a custom ordering. Read more
§

fn merge_join_by<J, F, T>( self, other: J, cmp_fn: F, -) -> MergeBy<Self, <J as IntoIterator>::IntoIter, MergeFuncLR<F, <F as FuncLR<Self::Item, <<J as IntoIterator>::IntoIter as Iterator>::Item>>::T>>
where - J: IntoIterator, - F: FnMut(&Self::Item, &<J as IntoIterator>::Item) -> T, - Self: Sized,

Create an iterator that merges items from both this and the specified -iterator in ascending order. Read more
§

fn kmerge(self) -> KMergeBy<<Self::Item as IntoIterator>::IntoIter, KMergeByLt>
where - Self: Sized, - Self::Item: IntoIterator, - <Self::Item as IntoIterator>::Item: PartialOrd,

Return an iterator adaptor that flattens an iterator of iterators by +) -> MergeBy<Self, <J as IntoIterator>::IntoIter, MergeFuncLR<F, <F as FuncLR<Self::Item, <<J as IntoIterator>::IntoIter as Iterator>::Item>>::T>>
where + J: IntoIterator, + F: FnMut(&Self::Item, &<J as IntoIterator>::Item) -> T, + Self: Sized,
Create an iterator that merges items from both this and the specified +iterator in ascending order. Read more
§

fn kmerge(self) -> KMergeBy<<Self::Item as IntoIterator>::IntoIter, KMergeByLt>
where + Self: Sized, + Self::Item: IntoIterator, + <Self::Item as IntoIterator>::Item: PartialOrd,

Return an iterator adaptor that flattens an iterator of iterators by merging them in ascending order. Read more
§

fn kmerge_by<F>( self, first: F, -) -> KMergeBy<<Self::Item as IntoIterator>::IntoIter, F>
where - Self: Sized, - Self::Item: IntoIterator, - F: FnMut(&<Self::Item as IntoIterator>::Item, &<Self::Item as IntoIterator>::Item) -> bool,

Return an iterator adaptor that flattens an iterator of iterators by +) -> KMergeBy<<Self::Item as IntoIterator>::IntoIter, F>
where + Self: Sized, + Self::Item: IntoIterator, + F: FnMut(&<Self::Item as IntoIterator>::Item, &<Self::Item as IntoIterator>::Item) -> bool,
Return an iterator adaptor that flattens an iterator of iterators by merging them according to the given closure. Read more
§

fn cartesian_product<J>( self, other: J, -) -> Product<Self, <J as IntoIterator>::IntoIter>
where - Self: Sized, - Self::Item: Clone, - J: IntoIterator, - <J as IntoIterator>::IntoIter: Clone,

Return an iterator adaptor that iterates over the cartesian product of +) -> Product<Self, <J as IntoIterator>::IntoIter>
where + Self: Sized, + Self::Item: Clone, + J: IntoIterator, + <J as IntoIterator>::IntoIter: Clone,
Return an iterator adaptor that iterates over the cartesian product of the element sets of two iterators self and J. Read more
§

fn multi_cartesian_product( self, -) -> MultiProduct<<Self::Item as IntoIterator>::IntoIter>
where - Self: Sized, - Self::Item: IntoIterator, - <Self::Item as IntoIterator>::IntoIter: Clone, - <Self::Item as IntoIterator>::Item: Clone,

Return an iterator adaptor that iterates over the cartesian product of +) -> MultiProduct<<Self::Item as IntoIterator>::IntoIter>
where + Self: Sized, + Self::Item: IntoIterator, + <Self::Item as IntoIterator>::IntoIter: Clone, + <Self::Item as IntoIterator>::Item: Clone,
Return an iterator adaptor that iterates over the cartesian product of all subiterators returned by meta-iterator self. Read more
§

fn coalesce<F>(self, f: F) -> CoalesceBy<Self, F, NoCount>
where - Self: Sized, - F: FnMut(Self::Item, Self::Item) -> Result<Self::Item, (Self::Item, Self::Item)>,

Return an iterator adaptor that uses the passed-in closure to + Self: Sized, + F: FnMut(Self::Item, Self::Item) -> Result<Self::Item, (Self::Item, Self::Item)>,
Return an iterator adaptor that uses the passed-in closure to optionally merge together consecutive elements. Read more
§

fn dedup(self) -> CoalesceBy<Self, DedupPred2CoalescePred<DedupEq>, NoCount>
where - Self: Sized, - Self::Item: PartialEq,

Remove duplicates from sections of consecutive identical elements. + Self: Sized, + Self::Item: PartialEq,
Remove duplicates from sections of consecutive identical elements. If the iterator is sorted, all elements will be unique. Read more
§

fn dedup_by<Cmp>( self, cmp: Cmp, ) -> CoalesceBy<Self, DedupPred2CoalescePred<Cmp>, NoCount>
where - Self: Sized, - Cmp: FnMut(&Self::Item, &Self::Item) -> bool,

Remove duplicates from sections of consecutive identical elements, + Self: Sized, + Cmp: FnMut(&Self::Item, &Self::Item) -> bool,
Remove duplicates from sections of consecutive identical elements, determining equality using a comparison function. If the iterator is sorted, all elements will be unique. Read more
§

fn dedup_with_count( self, ) -> CoalesceBy<Self, DedupPredWithCount2CoalescePred<DedupEq>, WithCount>
where - Self: Sized,

Remove duplicates from sections of consecutive identical elements, while keeping a count of + Self: Sized,
Remove duplicates from sections of consecutive identical elements, while keeping a count of how many repeated elements were present. If the iterator is sorted, all elements will be unique. Read more
§

fn dedup_by_with_count<Cmp>( self, cmp: Cmp, ) -> CoalesceBy<Self, DedupPredWithCount2CoalescePred<Cmp>, WithCount>
where - Self: Sized, - Cmp: FnMut(&Self::Item, &Self::Item) -> bool,

Remove duplicates from sections of consecutive identical elements, while keeping a count of + Self: Sized, + Cmp: FnMut(&Self::Item, &Self::Item) -> bool,
Remove duplicates from sections of consecutive identical elements, while keeping a count of how many repeated elements were present. This will determine equality using a comparison function. -If the iterator is sorted, all elements will be unique. Read more
§

fn duplicates(self) -> DuplicatesBy<Self, Self::Item, ById>
where - Self: Sized, - Self::Item: Eq + Hash,

Return an iterator adaptor that produces elements that appear more than once during the +If the iterator is sorted, all elements will be unique. Read more
§

fn duplicates(self) -> DuplicatesBy<Self, Self::Item, ById>
where + Self: Sized, + Self::Item: Eq + Hash,

Return an iterator adaptor that produces elements that appear more than once during the iteration. Duplicates are detected using hash and equality. Read more
§

fn duplicates_by<V, F>(self, f: F) -> DuplicatesBy<Self, V, ByFn<F>>
where - Self: Sized, - V: Eq + Hash, - F: FnMut(&Self::Item) -> V,

Return an iterator adaptor that produces elements that appear more than once during the + Self: Sized, + V: Eq + Hash, + F: FnMut(&Self::Item) -> V,
Return an iterator adaptor that produces elements that appear more than once during the iteration. Duplicates are detected using hash and equality. Read more
§

fn unique(self) -> Unique<Self>
where - Self: Sized, - Self::Item: Clone + Eq + Hash,

Return an iterator adaptor that filters out elements that have + Self: Sized, + Self::Item: Clone + Eq + Hash,
Return an iterator adaptor that filters out elements that have already been produced once during the iteration. Duplicates are detected using hash and equality. Read more
§

fn unique_by<V, F>(self, f: F) -> UniqueBy<Self, V, F>
where - Self: Sized, - V: Eq + Hash, - F: FnMut(&Self::Item) -> V,

Return an iterator adaptor that filters out elements that have + Self: Sized, + V: Eq + Hash, + F: FnMut(&Self::Item) -> V,
Return an iterator adaptor that filters out elements that have already been produced once during the iteration. Read more
§

fn peeking_take_while<F>(&mut self, accept: F) -> PeekingTakeWhile<'_, Self, F>
where - Self: Sized + PeekingNext, - F: FnMut(&Self::Item) -> bool,

Return an iterator adaptor that borrows from this iterator and + Self: Sized + PeekingNext, + F: FnMut(&Self::Item) -> bool,
Return an iterator adaptor that borrows from this iterator and takes items while the closure accept returns true. Read more
§

fn take_while_ref<F>(&mut self, accept: F) -> TakeWhileRef<'_, Self, F>
where - Self: Clone, - F: FnMut(&Self::Item) -> bool,

Return an iterator adaptor that borrows from a Clone-able iterator + Self: Clone, + F: FnMut(&Self::Item) -> bool,
Return an iterator adaptor that borrows from a Clone-able iterator to only pick off elements while the predicate accept returns true. Read more
§

fn take_while_inclusive<F>(self, accept: F) -> TakeWhileInclusive<Self, F>
where - Self: Sized, - F: FnMut(&Self::Item) -> bool,

Returns an iterator adaptor that consumes elements while the given + Self: Sized, + F: FnMut(&Self::Item) -> bool,
Returns an iterator adaptor that consumes elements while the given predicate is true, including the element for which the predicate first returned false. Read more
§

fn while_some<A>(self) -> WhileSome<Self>
where - Self: Sized + Iterator<Item = Option<A>>,

Return an iterator adaptor that filters Option<A> iterator elements + Self: Sized + Iterator<Item = Option<A>>,
Return an iterator adaptor that filters Option<A> iterator elements and produces A. Stops on the first None encountered. Read more
§

fn tuple_combinations<T>(self) -> TupleCombinations<Self, T>
where - Self: Sized + Clone, - Self::Item: Clone, + Self: Sized + Clone, + Self::Item: Clone, T: HasCombination<Self>,

Return an iterator adaptor that iterates over the combinations of the -elements from an iterator. Read more
§

fn combinations(self, k: usize) -> Combinations<Self>
where - Self: Sized, - Self::Item: Clone,

Return an iterator adaptor that iterates over the k-length combinations of +elements from an iterator. Read more
§

fn combinations(self, k: usize) -> Combinations<Self>
where + Self: Sized, + Self::Item: Clone,

Return an iterator adaptor that iterates over the k-length combinations of the elements from an iterator. Read more
§

fn combinations_with_replacement( self, - k: usize, + k: usize, ) -> CombinationsWithReplacement<Self>
where - Self: Sized, - Self::Item: Clone,

Return an iterator that iterates over the k-length combinations of -the elements from an iterator, with replacement. Read more
§

fn permutations(self, k: usize) -> Permutations<Self>
where - Self: Sized, - Self::Item: Clone,

Return an iterator adaptor that iterates over all k-permutations of the + Self: Sized, + Self::Item: Clone,
Return an iterator that iterates over the k-length combinations of +the elements from an iterator, with replacement. Read more
§

fn permutations(self, k: usize) -> Permutations<Self>
where + Self: Sized, + Self::Item: Clone,

Return an iterator adaptor that iterates over all k-permutations of the elements from an iterator. Read more
§

fn powerset(self) -> Powerset<Self>
where - Self: Sized, - Self::Item: Clone,

Return an iterator that iterates through the powerset of the elements from an -iterator. Read more
§

fn pad_using<F>(self, min: usize, f: F) -> PadUsing<Self, F>
where - Self: Sized, - F: FnMut(usize) -> Self::Item,

Return an iterator adaptor that pads the sequence to a minimum length of + Self: Sized, + Self::Item: Clone,
Return an iterator that iterates through the powerset of the elements from an +iterator. Read more
§

fn pad_using<F>(self, min: usize, f: F) -> PadUsing<Self, F>
where + Self: Sized, + F: FnMut(usize) -> Self::Item,

Return an iterator adaptor that pads the sequence to a minimum length of min by filling missing elements using a closure f. Read more
§

fn with_position(self) -> WithPosition<Self>
where - Self: Sized,

Return an iterator adaptor that combines each element with a Position to + Self: Sized,
Return an iterator adaptor that combines each element with a Position to ease special-case handling of the first or last elements. Read more
§

fn positions<P>(self, predicate: P) -> Positions<Self, P>
where - Self: Sized, - P: FnMut(Self::Item) -> bool,

Return an iterator adaptor that yields the indices of all elements + Self: Sized, + P: FnMut(Self::Item) -> bool,
Return an iterator adaptor that yields the indices of all elements satisfying a predicate, counted from the start of the iterator. Read more
§

fn update<F>(self, updater: F) -> Update<Self, F>
where - Self: Sized, - F: FnMut(&mut Self::Item),

Return an iterator adaptor that applies a mutating function -to each element before yielding it. Read more
§

fn next_tuple<T>(&mut self) -> Option<T>
where - Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, + Self: Sized, + F: FnMut(&mut Self::Item),

Return an iterator adaptor that applies a mutating function +to each element before yielding it. Read more
§

fn next_tuple<T>(&mut self) -> Option<T>
where + Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, T: HomogeneousTuple,

Advances the iterator and returns the next items grouped in a tuple of -a specific size (up to 12). Read more
§

fn collect_tuple<T>(self) -> Option<T>
where - Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, +a specific size (up to 12). Read more

§

fn collect_tuple<T>(self) -> Option<T>
where + Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, T: HomogeneousTuple,

Collects all items from the iterator into a tuple of a specific size -(up to 12). Read more
§

fn find_position<P>(&mut self, pred: P) -> Option<(usize, Self::Item)>
where - P: FnMut(&Self::Item) -> bool,

Find the position and value of the first element satisfying a predicate. Read more
§

fn find_or_last<P>(self, predicate: P) -> Option<Self::Item>
where - Self: Sized, - P: FnMut(&Self::Item) -> bool,

Find the value of the first element satisfying a predicate or return the last element, if any. Read more
§

fn find_or_first<P>(self, predicate: P) -> Option<Self::Item>
where - Self: Sized, - P: FnMut(&Self::Item) -> bool,

Find the value of the first element satisfying a predicate or return the first element, if any. Read more
§

fn contains<Q>(&mut self, query: &Q) -> bool
where - Self: Sized, - Self::Item: Borrow<Q>, - Q: PartialEq,

Returns true if the given item is present in this iterator. Read more
§

fn all_equal(&mut self) -> bool
where - Self: Sized, - Self::Item: PartialEq,

Check whether all elements compare equal. Read more
§

fn all_equal_value( +(up to 12). Read more

§

fn find_position<P>(&mut self, pred: P) -> Option<(usize, Self::Item)>
where + P: FnMut(&Self::Item) -> bool,

Find the position and value of the first element satisfying a predicate. Read more
§

fn find_or_last<P>(self, predicate: P) -> Option<Self::Item>
where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Find the value of the first element satisfying a predicate or return the last element, if any. Read more
§

fn find_or_first<P>(self, predicate: P) -> Option<Self::Item>
where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Find the value of the first element satisfying a predicate or return the first element, if any. Read more
§

fn contains<Q>(&mut self, query: &Q) -> bool
where + Self: Sized, + Self::Item: Borrow<Q>, + Q: PartialEq,

Returns true if the given item is present in this iterator. Read more
§

fn all_equal(&mut self) -> bool
where + Self: Sized, + Self::Item: PartialEq,

Check whether all elements compare equal. Read more
§

fn all_equal_value( &mut self, -) -> Result<Self::Item, Option<(Self::Item, Self::Item)>>
where - Self: Sized, - Self::Item: PartialEq,

If there are elements and they are all equal, return a single copy of that element. +) -> Result<Self::Item, Option<(Self::Item, Self::Item)>>
where + Self: Sized, + Self::Item: PartialEq,
If there are elements and they are all equal, return a single copy of that element. If there are no elements, return an Error containing None. If there are elements and they are not all equal, return a tuple containing the first -two non-equal elements found. Read more
§

fn all_unique(&mut self) -> bool
where - Self: Sized, - Self::Item: Eq + Hash,

Check whether all elements are unique (non equal). Read more
§

fn dropping(self, n: usize) -> Self
where - Self: Sized,

Consume the first n elements from the iterator eagerly, -and return the same iterator again. Read more
§

fn dropping_back(self, n: usize) -> Self
where - Self: Sized + DoubleEndedIterator,

Consume the last n elements from the iterator eagerly, -and return the same iterator again. Read more
§

fn concat(self) -> Self::Item
where - Self: Sized, - Self::Item: Extend<<Self::Item as IntoIterator>::Item> + IntoIterator + Default,

Combine all an iterator’s elements into one element by using Extend. Read more
§

fn collect_vec(self) -> Vec<Self::Item>
where - Self: Sized,

.collect_vec() is simply a type specialization of Iterator::collect, -for convenience.
§

fn try_collect<T, U, E>(self) -> Result<U, E>
where - Self: Sized + Iterator<Item = Result<T, E>>, - Result<U, E>: FromIterator<Result<T, E>>,

.try_collect() is more convenient way of writing -.collect::<Result<_, _>>() Read more
§

fn set_from<'a, A, J>(&mut self, from: J) -> usize
where +two non-equal elements found. Read more

§

fn all_unique(&mut self) -> bool
where + Self: Sized, + Self::Item: Eq + Hash,

Check whether all elements are unique (non equal). Read more
§

fn dropping(self, n: usize) -> Self
where + Self: Sized,

Consume the first n elements from the iterator eagerly, +and return the same iterator again. Read more
§

fn dropping_back(self, n: usize) -> Self
where + Self: Sized + DoubleEndedIterator,

Consume the last n elements from the iterator eagerly, +and return the same iterator again. Read more
§

fn concat(self) -> Self::Item
where + Self: Sized, + Self::Item: Extend<<Self::Item as IntoIterator>::Item> + IntoIterator + Default,

Combine all an iterator’s elements into one element by using Extend. Read more
§

fn collect_vec(self) -> Vec<Self::Item>
where + Self: Sized,

.collect_vec() is simply a type specialization of Iterator::collect, +for convenience.
§

fn try_collect<T, U, E>(self) -> Result<U, E>
where + Self: Sized + Iterator<Item = Result<T, E>>, + Result<U, E>: FromIterator<Result<T, E>>,

.try_collect() is more convenient way of writing +.collect::<Result<_, _>>() Read more
§

fn set_from<'a, A, J>(&mut self, from: J) -> usize
where A: 'a, - Self: Iterator<Item = &'a mut A>, - J: IntoIterator<Item = A>,

Assign to each reference in self from the from iterator, -stopping at the shortest of the two iterators. Read more
§

fn join(&mut self, sep: &str) -> String
where - Self::Item: Display,

Combine all iterator elements into one String, separated by sep. Read more
§

fn format(self, sep: &str) -> Format<'_, Self>
where - Self: Sized,

Format all iterator elements, separated by sep. Read more
§

fn format_with<F>(self, sep: &str, format: F) -> FormatWith<'_, Self, F>
where - Self: Sized, - F: FnMut(Self::Item, &mut dyn FnMut(&dyn Display) -> Result<(), Error>) -> Result<(), Error>,

Format all iterator elements, separated by sep. Read more
§

fn fold_ok<A, E, B, F>(&mut self, start: B, f: F) -> Result<B, E>
where - Self: Iterator<Item = Result<A, E>>, - F: FnMut(B, A) -> B,

Fold Result values from an iterator. Read more
§

fn fold_options<A, B, F>(&mut self, start: B, f: F) -> Option<B>
where - Self: Iterator<Item = Option<A>>, - F: FnMut(B, A) -> B,

Fold Option values from an iterator. Read more
§

fn fold1<F>(self, f: F) -> Option<Self::Item>
where - F: FnMut(Self::Item, Self::Item) -> Self::Item, - Self: Sized,

👎Deprecated since 0.10.2: Use Iterator::reduce instead
Accumulator of the elements in the iterator. Read more
§

fn tree_reduce<F>(self, f: F) -> Option<Self::Item>
where - F: FnMut(Self::Item, Self::Item) -> Self::Item, - Self: Sized,

Accumulate the elements in the iterator in a tree-like manner. Read more
§

fn tree_fold1<F>(self, f: F) -> Option<Self::Item>
where - F: FnMut(Self::Item, Self::Item) -> Self::Item, - Self: Sized,

👎Deprecated since 0.13.0: Use .tree_reduce() instead
§

fn fold_while<B, F>(&mut self, init: B, f: F) -> FoldWhile<B>
where - Self: Sized, - F: FnMut(B, Self::Item) -> FoldWhile<B>,

An iterator method that applies a function, producing a single, final value. Read more
§

fn sum1<S>(self) -> Option<S>
where - Self: Sized, - S: Sum<Self::Item>,

Iterate over the entire iterator and add all the elements. Read more
§

fn product1<P>(self) -> Option<P>
where - Self: Sized, - P: Product<Self::Item>,

Iterate over the entire iterator and multiply all the elements. Read more
§

fn sorted_unstable(self) -> IntoIter<Self::Item>
where - Self: Sized, - Self::Item: Ord,

Sort all iterator elements into a new iterator in ascending order. Read more
§

fn sorted_unstable_by<F>(self, cmp: F) -> IntoIter<Self::Item>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Sort all iterator elements into a new iterator in ascending order. Read more
§

fn sorted_unstable_by_key<K, F>(self, f: F) -> IntoIter<Self::Item>
where - Self: Sized, - K: Ord, - F: FnMut(&Self::Item) -> K,

Sort all iterator elements into a new iterator in ascending order. Read more
§

fn sorted(self) -> IntoIter<Self::Item>
where - Self: Sized, - Self::Item: Ord,

Sort all iterator elements into a new iterator in ascending order. Read more
§

fn sorted_by<F>(self, cmp: F) -> IntoIter<Self::Item>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Sort all iterator elements into a new iterator in ascending order. Read more
§

fn sorted_by_key<K, F>(self, f: F) -> IntoIter<Self::Item>
where - Self: Sized, - K: Ord, - F: FnMut(&Self::Item) -> K,

Sort all iterator elements into a new iterator in ascending order. Read more
§

fn sorted_by_cached_key<K, F>(self, f: F) -> IntoIter<Self::Item>
where - Self: Sized, - K: Ord, - F: FnMut(&Self::Item) -> K,

Sort all iterator elements into a new iterator in ascending order. The key function is -called exactly once per key. Read more
§

fn k_smallest(self, k: usize) -> IntoIter<Self::Item>
where - Self: Sized, - Self::Item: Ord,

Sort the k smallest elements into a new iterator, in ascending order. Read more
§

fn k_smallest_by<F>(self, k: usize, cmp: F) -> IntoIter<Self::Item>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Sort the k smallest elements into a new iterator using the provided comparison. Read more
§

fn k_smallest_by_key<F, K>(self, k: usize, key: F) -> IntoIter<Self::Item>
where - Self: Sized, - F: FnMut(&Self::Item) -> K, - K: Ord,

Return the elements producing the k smallest outputs of the provided function. Read more
§

fn k_largest(self, k: usize) -> IntoIter<Self::Item>
where - Self: Sized, - Self::Item: Ord,

Sort the k largest elements into a new iterator, in descending order. Read more
§

fn k_largest_by<F>(self, k: usize, cmp: F) -> IntoIter<Self::Item>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Sort the k largest elements into a new iterator using the provided comparison. Read more
§

fn k_largest_by_key<F, K>(self, k: usize, key: F) -> IntoIter<Self::Item>
where - Self: Sized, - F: FnMut(&Self::Item) -> K, - K: Ord,

Return the elements producing the k largest outputs of the provided function. Read more
§

fn tail(self, n: usize) -> IntoIter<Self::Item>
where - Self: Sized,

Consumes the iterator and return an iterator of the last n elements. Read more
§

fn partition_map<A, B, F, L, R>(self, predicate: F) -> (A, B)
where - Self: Sized, - F: FnMut(Self::Item) -> Either<L, R>, - A: Default + Extend<L>, - B: Default + Extend<R>,

Collect all iterator elements into one of two -partitions. Unlike Iterator::partition, each partition may -have a distinct type. Read more
§

fn partition_result<A, B, T, E>(self) -> (A, B)
where - Self: Sized + Iterator<Item = Result<T, E>>, - A: Default + Extend<T>, - B: Default + Extend<E>,

Partition a sequence of Results into one list of all the Ok elements -and another list of all the Err elements. Read more
§

fn into_group_map<K, V>(self) -> HashMap<K, Vec<V>>
where - Self: Sized + Iterator<Item = (K, V)>, - K: Hash + Eq,

Return a HashMap of keys mapped to Vecs of values. Keys and values -are taken from (Key, Value) tuple pairs yielded by the input iterator. Read more
§

fn into_group_map_by<K, V, F>(self, f: F) -> HashMap<K, Vec<V>>
where - Self: Sized + Iterator<Item = V>, - K: Hash + Eq, - F: FnMut(&V) -> K,

Return an Iterator on a HashMap. Keys mapped to Vecs of values. The key is specified + Self: Iterator<Item = &'a mut A>, + J: IntoIterator<Item = A>,
Assign to each reference in self from the from iterator, +stopping at the shortest of the two iterators. Read more
§

fn join(&mut self, sep: &str) -> String
where + Self::Item: Display,

Combine all iterator elements into one String, separated by sep. Read more
§

fn format(self, sep: &str) -> Format<'_, Self>
where + Self: Sized,

Format all iterator elements, separated by sep. Read more
§

fn format_with<F>(self, sep: &str, format: F) -> FormatWith<'_, Self, F>
where + Self: Sized, + F: FnMut(Self::Item, &mut dyn FnMut(&dyn Display) -> Result<(), Error>) -> Result<(), Error>,

Format all iterator elements, separated by sep. Read more
§

fn fold_ok<A, E, B, F>(&mut self, start: B, f: F) -> Result<B, E>
where + Self: Iterator<Item = Result<A, E>>, + F: FnMut(B, A) -> B,

Fold Result values from an iterator. Read more
§

fn fold_options<A, B, F>(&mut self, start: B, f: F) -> Option<B>
where + Self: Iterator<Item = Option<A>>, + F: FnMut(B, A) -> B,

Fold Option values from an iterator. Read more
§

fn fold1<F>(self, f: F) -> Option<Self::Item>
where + F: FnMut(Self::Item, Self::Item) -> Self::Item, + Self: Sized,

👎Deprecated since 0.10.2: Use Iterator::reduce instead
Accumulator of the elements in the iterator. Read more
§

fn tree_reduce<F>(self, f: F) -> Option<Self::Item>
where + F: FnMut(Self::Item, Self::Item) -> Self::Item, + Self: Sized,

Accumulate the elements in the iterator in a tree-like manner. Read more
§

fn tree_fold1<F>(self, f: F) -> Option<Self::Item>
where + F: FnMut(Self::Item, Self::Item) -> Self::Item, + Self: Sized,

👎Deprecated since 0.13.0: Use .tree_reduce() instead
§

fn fold_while<B, F>(&mut self, init: B, f: F) -> FoldWhile<B>
where + Self: Sized, + F: FnMut(B, Self::Item) -> FoldWhile<B>,

An iterator method that applies a function, producing a single, final value. Read more
§

fn sum1<S>(self) -> Option<S>
where + Self: Sized, + S: Sum<Self::Item>,

Iterate over the entire iterator and add all the elements. Read more
§

fn product1<P>(self) -> Option<P>
where + Self: Sized, + P: Product<Self::Item>,

Iterate over the entire iterator and multiply all the elements. Read more
§

fn sorted_unstable(self) -> IntoIter<Self::Item>
where + Self: Sized, + Self::Item: Ord,

Sort all iterator elements into a new iterator in ascending order. Read more
§

fn sorted_unstable_by<F>(self, cmp: F) -> IntoIter<Self::Item>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Sort all iterator elements into a new iterator in ascending order. Read more
§

fn sorted_unstable_by_key<K, F>(self, f: F) -> IntoIter<Self::Item>
where + Self: Sized, + K: Ord, + F: FnMut(&Self::Item) -> K,

Sort all iterator elements into a new iterator in ascending order. Read more
§

fn sorted(self) -> IntoIter<Self::Item>
where + Self: Sized, + Self::Item: Ord,

Sort all iterator elements into a new iterator in ascending order. Read more
§

fn sorted_by<F>(self, cmp: F) -> IntoIter<Self::Item>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Sort all iterator elements into a new iterator in ascending order. Read more
§

fn sorted_by_key<K, F>(self, f: F) -> IntoIter<Self::Item>
where + Self: Sized, + K: Ord, + F: FnMut(&Self::Item) -> K,

Sort all iterator elements into a new iterator in ascending order. Read more
§

fn sorted_by_cached_key<K, F>(self, f: F) -> IntoIter<Self::Item>
where + Self: Sized, + K: Ord, + F: FnMut(&Self::Item) -> K,

Sort all iterator elements into a new iterator in ascending order. The key function is +called exactly once per key. Read more
§

fn k_smallest(self, k: usize) -> IntoIter<Self::Item>
where + Self: Sized, + Self::Item: Ord,

Sort the k smallest elements into a new iterator, in ascending order. Read more
§

fn k_smallest_by<F>(self, k: usize, cmp: F) -> IntoIter<Self::Item>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Sort the k smallest elements into a new iterator using the provided comparison. Read more
§

fn k_smallest_by_key<F, K>(self, k: usize, key: F) -> IntoIter<Self::Item>
where + Self: Sized, + F: FnMut(&Self::Item) -> K, + K: Ord,

Return the elements producing the k smallest outputs of the provided function. Read more
§

fn k_largest(self, k: usize) -> IntoIter<Self::Item>
where + Self: Sized, + Self::Item: Ord,

Sort the k largest elements into a new iterator, in descending order. Read more
§

fn k_largest_by<F>(self, k: usize, cmp: F) -> IntoIter<Self::Item>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Sort the k largest elements into a new iterator using the provided comparison. Read more
§

fn k_largest_by_key<F, K>(self, k: usize, key: F) -> IntoIter<Self::Item>
where + Self: Sized, + F: FnMut(&Self::Item) -> K, + K: Ord,

Return the elements producing the k largest outputs of the provided function. Read more
§

fn tail(self, n: usize) -> IntoIter<Self::Item>
where + Self: Sized,

Consumes the iterator and return an iterator of the last n elements. Read more
§

fn partition_map<A, B, F, L, R>(self, predicate: F) -> (A, B)
where + Self: Sized, + F: FnMut(Self::Item) -> Either<L, R>, + A: Default + Extend<L>, + B: Default + Extend<R>,

Collect all iterator elements into one of two +partitions. Unlike Iterator::partition, each partition may +have a distinct type. Read more
§

fn partition_result<A, B, T, E>(self) -> (A, B)
where + Self: Sized + Iterator<Item = Result<T, E>>, + A: Default + Extend<T>, + B: Default + Extend<E>,

Partition a sequence of Results into one list of all the Ok elements +and another list of all the Err elements. Read more
§

fn into_group_map<K, V>(self) -> HashMap<K, Vec<V>>
where + Self: Sized + Iterator<Item = (K, V)>, + K: Hash + Eq,

Return a HashMap of keys mapped to Vecs of values. Keys and values +are taken from (Key, Value) tuple pairs yielded by the input iterator. Read more
§

fn into_group_map_by<K, V, F>(self, f: F) -> HashMap<K, Vec<V>>
where + Self: Sized + Iterator<Item = V>, + K: Hash + Eq, + F: FnMut(&V) -> K,

Return an Iterator on a HashMap. Keys mapped to Vecs of values. The key is specified in the closure. Read more
§

fn into_grouping_map<K, V>(self) -> GroupingMap<Self>
where - Self: Sized + Iterator<Item = (K, V)>, - K: Hash + Eq,

Constructs a GroupingMap to be used later with one of the efficient + Self: Sized + Iterator<Item = (K, V)>, + K: Hash + Eq,
Constructs a GroupingMap to be used later with one of the efficient group-and-fold operations it allows to perform. Read more
§

fn into_grouping_map_by<K, V, F>( self, key_mapper: F, ) -> GroupingMap<MapSpecialCase<Self, GroupingMapFn<F>>>
where - Self: Sized + Iterator<Item = V>, - K: Hash + Eq, - F: FnMut(&V) -> K,

Constructs a GroupingMap to be used later with one of the efficient -group-and-fold operations it allows to perform. Read more
§

fn min_set(self) -> Vec<Self::Item>
where - Self: Sized, - Self::Item: Ord,

Return all minimum elements of an iterator. Read more
§

fn min_set_by<F>(self, compare: F) -> Vec<Self::Item>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return all minimum elements of an iterator, as determined by -the specified function. Read more
§

fn min_set_by_key<K, F>(self, key: F) -> Vec<Self::Item>
where - Self: Sized, - K: Ord, - F: FnMut(&Self::Item) -> K,

Return all minimum elements of an iterator, as determined by -the specified function. Read more
§

fn max_set(self) -> Vec<Self::Item>
where - Self: Sized, - Self::Item: Ord,

Return all maximum elements of an iterator. Read more
§

fn max_set_by<F>(self, compare: F) -> Vec<Self::Item>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return all maximum elements of an iterator, as determined by -the specified function. Read more
§

fn max_set_by_key<K, F>(self, key: F) -> Vec<Self::Item>
where - Self: Sized, - K: Ord, - F: FnMut(&Self::Item) -> K,

Return all maximum elements of an iterator, as determined by -the specified function. Read more
§

fn minmax(self) -> MinMaxResult<Self::Item>
where - Self: Sized, - Self::Item: PartialOrd,

Return the minimum and maximum elements in the iterator. Read more
§

fn minmax_by_key<K, F>(self, key: F) -> MinMaxResult<Self::Item>
where - Self: Sized, - K: PartialOrd, - F: FnMut(&Self::Item) -> K,

Return the minimum and maximum element of an iterator, as determined by -the specified function. Read more
§

fn minmax_by<F>(self, compare: F) -> MinMaxResult<Self::Item>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the minimum and maximum element of an iterator, as determined by -the specified comparison function. Read more
§

fn position_max(self) -> Option<usize>
where - Self: Sized, - Self::Item: Ord,

Return the position of the maximum element in the iterator. Read more
§

fn position_max_by_key<K, F>(self, key: F) -> Option<usize>
where - Self: Sized, - K: Ord, - F: FnMut(&Self::Item) -> K,

Return the position of the maximum element in the iterator, as -determined by the specified function. Read more
§

fn position_max_by<F>(self, compare: F) -> Option<usize>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the position of the maximum element in the iterator, as -determined by the specified comparison function. Read more
§

fn position_min(self) -> Option<usize>
where - Self: Sized, - Self::Item: Ord,

Return the position of the minimum element in the iterator. Read more
§

fn position_min_by_key<K, F>(self, key: F) -> Option<usize>
where - Self: Sized, - K: Ord, - F: FnMut(&Self::Item) -> K,

Return the position of the minimum element in the iterator, as -determined by the specified function. Read more
§

fn position_min_by<F>(self, compare: F) -> Option<usize>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the position of the minimum element in the iterator, as -determined by the specified comparison function. Read more
§

fn position_minmax(self) -> MinMaxResult<usize>
where - Self: Sized, - Self::Item: PartialOrd,

Return the positions of the minimum and maximum elements in -the iterator. Read more
§

fn position_minmax_by_key<K, F>(self, key: F) -> MinMaxResult<usize>
where - Self: Sized, - K: PartialOrd, - F: FnMut(&Self::Item) -> K,

Return the postions of the minimum and maximum elements of an -iterator, as determined by the specified function. Read more
§

fn position_minmax_by<F>(self, compare: F) -> MinMaxResult<usize>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the postions of the minimum and maximum elements of an -iterator, as determined by the specified comparison function. Read more
§

fn exactly_one(self) -> Result<Self::Item, ExactlyOneError<Self>>
where - Self: Sized,

If the iterator yields exactly one element, that element will be returned, otherwise + Self: Sized + Iterator<Item = V>, + K: Hash + Eq, + F: FnMut(&V) -> K,
Constructs a GroupingMap to be used later with one of the efficient +group-and-fold operations it allows to perform. Read more
§

fn min_set(self) -> Vec<Self::Item>
where + Self: Sized, + Self::Item: Ord,

Return all minimum elements of an iterator. Read more
§

fn min_set_by<F>(self, compare: F) -> Vec<Self::Item>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return all minimum elements of an iterator, as determined by +the specified function. Read more
§

fn min_set_by_key<K, F>(self, key: F) -> Vec<Self::Item>
where + Self: Sized, + K: Ord, + F: FnMut(&Self::Item) -> K,

Return all minimum elements of an iterator, as determined by +the specified function. Read more
§

fn max_set(self) -> Vec<Self::Item>
where + Self: Sized, + Self::Item: Ord,

Return all maximum elements of an iterator. Read more
§

fn max_set_by<F>(self, compare: F) -> Vec<Self::Item>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return all maximum elements of an iterator, as determined by +the specified function. Read more
§

fn max_set_by_key<K, F>(self, key: F) -> Vec<Self::Item>
where + Self: Sized, + K: Ord, + F: FnMut(&Self::Item) -> K,

Return all maximum elements of an iterator, as determined by +the specified function. Read more
§

fn minmax(self) -> MinMaxResult<Self::Item>
where + Self: Sized, + Self::Item: PartialOrd,

Return the minimum and maximum elements in the iterator. Read more
§

fn minmax_by_key<K, F>(self, key: F) -> MinMaxResult<Self::Item>
where + Self: Sized, + K: PartialOrd, + F: FnMut(&Self::Item) -> K,

Return the minimum and maximum element of an iterator, as determined by +the specified function. Read more
§

fn minmax_by<F>(self, compare: F) -> MinMaxResult<Self::Item>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the minimum and maximum element of an iterator, as determined by +the specified comparison function. Read more
§

fn position_max(self) -> Option<usize>
where + Self: Sized, + Self::Item: Ord,

Return the position of the maximum element in the iterator. Read more
§

fn position_max_by_key<K, F>(self, key: F) -> Option<usize>
where + Self: Sized, + K: Ord, + F: FnMut(&Self::Item) -> K,

Return the position of the maximum element in the iterator, as +determined by the specified function. Read more
§

fn position_max_by<F>(self, compare: F) -> Option<usize>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the position of the maximum element in the iterator, as +determined by the specified comparison function. Read more
§

fn position_min(self) -> Option<usize>
where + Self: Sized, + Self::Item: Ord,

Return the position of the minimum element in the iterator. Read more
§

fn position_min_by_key<K, F>(self, key: F) -> Option<usize>
where + Self: Sized, + K: Ord, + F: FnMut(&Self::Item) -> K,

Return the position of the minimum element in the iterator, as +determined by the specified function. Read more
§

fn position_min_by<F>(self, compare: F) -> Option<usize>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the position of the minimum element in the iterator, as +determined by the specified comparison function. Read more
§

fn position_minmax(self) -> MinMaxResult<usize>
where + Self: Sized, + Self::Item: PartialOrd,

Return the positions of the minimum and maximum elements in +the iterator. Read more
§

fn position_minmax_by_key<K, F>(self, key: F) -> MinMaxResult<usize>
where + Self: Sized, + K: PartialOrd, + F: FnMut(&Self::Item) -> K,

Return the postions of the minimum and maximum elements of an +iterator, as determined by the specified function. Read more
§

fn position_minmax_by<F>(self, compare: F) -> MinMaxResult<usize>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the postions of the minimum and maximum elements of an +iterator, as determined by the specified comparison function. Read more
§

fn exactly_one(self) -> Result<Self::Item, ExactlyOneError<Self>>
where + Self: Sized,

If the iterator yields exactly one element, that element will be returned, otherwise an error will be returned containing an iterator that has the same output as the input -iterator. Read more
§

fn at_most_one(self) -> Result<Option<Self::Item>, ExactlyOneError<Self>>
where - Self: Sized,

If the iterator yields no elements, Ok(None) will be returned. If the iterator yields +iterator. Read more
§

fn at_most_one(self) -> Result<Option<Self::Item>, ExactlyOneError<Self>>
where + Self: Sized,

If the iterator yields no elements, Ok(None) will be returned. If the iterator yields exactly one element, that element will be returned, otherwise an error will be returned containing an iterator that has the same output as the input iterator. Read more
§

fn multipeek(self) -> MultiPeek<Self>
where - Self: Sized,

An iterator adaptor that allows the user to peek at multiple .next() -values without advancing the base iterator. Read more
§

fn counts(self) -> HashMap<Self::Item, usize>
where - Self: Sized, - Self::Item: Eq + Hash,

Collect the items in this iterator and return a HashMap which + Self: Sized,
An iterator adaptor that allows the user to peek at multiple .next() +values without advancing the base iterator. Read more
§

fn counts(self) -> HashMap<Self::Item, usize>
where + Self: Sized, + Self::Item: Eq + Hash,

Collect the items in this iterator and return a HashMap which contains each item that appears in the iterator and the number -of times it appears. Read more
§

fn counts_by<K, F>(self, f: F) -> HashMap<K, usize>
where - Self: Sized, - K: Eq + Hash, - F: FnMut(Self::Item) -> K,

Collect the items in this iterator and return a HashMap which +of times it appears. Read more
§

fn counts_by<K, F>(self, f: F) -> HashMap<K, usize>
where + Self: Sized, + K: Eq + Hash, + F: FnMut(Self::Item) -> K,

Collect the items in this iterator and return a HashMap which contains each item that appears in the iterator and the number of times it appears, determining identity using a keying function. Read more
§

fn multiunzip<FromI>(self) -> FromI
where - Self: Sized + MultiUnzip<FromI>,

Converts an iterator of tuples into a tuple of containers. Read more
§

fn try_len(&self) -> Result<usize, (usize, Option<usize>)>

Returns the length of the iterator if one exists. + Self: Sized + MultiUnzip<FromI>,
Converts an iterator of tuples into a tuple of containers. Read more
§

fn try_len(&self) -> Result<usize, (usize, Option<usize>)>

Returns the length of the iterator if one exists. Otherwise return self.size_hint(). Read more
source§

impl<T> Itertools for T
where - T: Iterator + ?Sized,

source§

fn interleave<J>( self, other: J, -) -> Interleave<Self, <J as IntoIterator>::IntoIter>
where - J: IntoIterator<Item = Self::Item>, - Self: Sized,

Alternate elements from two iterators until both have run out. Read more
source§

fn interleave_shortest<J>( +) -> Interleave<Self, <J as IntoIterator>::IntoIter>
where + J: IntoIterator<Item = Self::Item>, + Self: Sized,

Alternate elements from two iterators until both have run out. Read more
source§

fn interleave_shortest<J>( self, other: J, -) -> InterleaveShortest<Self, <J as IntoIterator>::IntoIter>
where - J: IntoIterator<Item = Self::Item>, - Self: Sized,

Alternate elements from two iterators until at least one of them has run +) -> InterleaveShortest<Self, <J as IntoIterator>::IntoIter>
where + J: IntoIterator<Item = Self::Item>, + Self: Sized,
Alternate elements from two iterators until at least one of them has run out. Read more
source§

fn intersperse( self, - element: Self::Item, -) -> IntersperseWith<Self, IntersperseElementSimple<Self::Item>>
where - Self: Sized, - Self::Item: Clone,

An iterator adaptor to insert a particular value + element: Self::Item, +) -> IntersperseWith<Self, IntersperseElementSimple<Self::Item>>
where + Self: Sized, + Self::Item: Clone,
An iterator adaptor to insert a particular value between each element of the adapted iterator. Read more
source§

fn intersperse_with<F>(self, element: F) -> IntersperseWith<Self, F>
where - Self: Sized, - F: FnMut() -> Self::Item,

An iterator adaptor to insert a particular value created by a function + Self: Sized, + F: FnMut() -> Self::Item,
An iterator adaptor to insert a particular value created by a function between each element of the adapted iterator. Read more
source§

fn zip_longest<J>( self, other: J, -) -> ZipLongest<Self, <J as IntoIterator>::IntoIter>
where - J: IntoIterator, - Self: Sized,

Create an iterator which iterates over both this and the specified -iterator simultaneously, yielding pairs of two optional elements. Read more
source§

fn zip_eq<J>(self, other: J) -> ZipEq<Self, <J as IntoIterator>::IntoIter>
where - J: IntoIterator, - Self: Sized,

Create an iterator which iterates over both this and the specified +) -> ZipLongest<Self, <J as IntoIterator>::IntoIter>
where + J: IntoIterator, + Self: Sized,
Create an iterator which iterates over both this and the specified +iterator simultaneously, yielding pairs of two optional elements. Read more
source§

fn zip_eq<J>(self, other: J) -> ZipEq<Self, <J as IntoIterator>::IntoIter>
where + J: IntoIterator, + Self: Sized,

Create an iterator which iterates over both this and the specified iterator simultaneously, yielding pairs of elements. Read more
source§

fn batching<B, F>(self, f: F) -> Batching<Self, F>
where - F: FnMut(&mut Self) -> Option<B>, - Self: Sized,

A “meta iterator adaptor”. Its closure receives a reference to the + F: FnMut(&mut Self) -> Option<B>, + Self: Sized,
A “meta iterator adaptor”. Its closure receives a reference to the iterator and may pick off as many elements as it likes, to produce the next iterator element. Read more
source§

fn group_by<K, F>(self, key: F) -> GroupBy<K, Self, F>
where - Self: Sized, - F: FnMut(&Self::Item) -> K, - K: PartialEq,

Return an iterable that can group iterator elements. + Self: Sized, + F: FnMut(&Self::Item) -> K, + K: PartialEq,
Return an iterable that can group iterator elements. Consecutive elements that map to the same key (“runs”), are assigned -to the same group. Read more
source§

fn chunks(self, size: usize) -> IntoChunks<Self>
where - Self: Sized,

Return an iterable that can chunk the iterator. Read more
source§

fn tuple_windows<T>(self) -> TupleWindows<Self, T>
where - Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, +to the same group. Read more

source§

fn chunks(self, size: usize) -> IntoChunks<Self>
where + Self: Sized,

Return an iterable that can chunk the iterator. Read more
source§

fn tuple_windows<T>(self) -> TupleWindows<Self, T>
where + Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, T: HomogeneousTuple, - <T as TupleCollect>::Item: Clone,

Return an iterator over all contiguous windows producing tuples of + <T as TupleCollect>::Item: Clone,
Return an iterator over all contiguous windows producing tuples of a specific size (up to 12). Read more
source§

fn circular_tuple_windows<T>(self) -> CircularTupleWindows<Self, T>
where - Self: Sized + Clone + Iterator<Item = <T as TupleCollect>::Item> + ExactSizeIterator, - T: TupleCollect + Clone, - <T as TupleCollect>::Item: Clone,

Return an iterator over all windows, wrapping back to the first + Self: Sized + Clone + Iterator<Item = <T as TupleCollect>::Item> + ExactSizeIterator, + T: TupleCollect + Clone, + <T as TupleCollect>::Item: Clone,
Return an iterator over all windows, wrapping back to the first elements when the window would otherwise exceed the length of the iterator, producing tuples of a specific size (up to 12). Read more
source§

fn tuples<T>(self) -> Tuples<Self, T>
where - Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, + Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, T: HomogeneousTuple,

Return an iterator that groups the items in tuples of a specific size (up to 12). Read more
source§

fn tee(self) -> (Tee<Self>, Tee<Self>)
where - Self: Sized, - Self::Item: Clone,

Split into an iterator pair that both yield all elements from -the original iterator. Read more
source§

fn step(self, n: usize) -> Step<Self>
where - Self: Sized,

👎Deprecated since 0.8.0: Use std .step_by() instead
Return an iterator adaptor that steps n elements in the base iterator + Self: Sized, + Self::Item: Clone,
Split into an iterator pair that both yield all elements from +the original iterator. Read more
source§

fn step(self, n: usize) -> Step<Self>
where + Self: Sized,

👎Deprecated since 0.8.0: Use std .step_by() instead
Return an iterator adaptor that steps n elements in the base iterator for each iteration. Read more
source§

fn map_into<R>(self) -> MapSpecialCase<Self, MapSpecialCaseFnInto<R>>
where - Self: Sized, - Self::Item: Into<R>,

Convert each item of the iterator using the Into trait. Read more
source§

fn map_results<F, T, U, E>( + Self: Sized, + Self::Item: Into<R>,

Convert each item of the iterator using the Into trait. Read more
source§

fn map_results<F, T, U, E>( self, f: F, ) -> MapSpecialCase<Self, MapSpecialCaseFnOk<F>>
where - Self: Sized + Iterator<Item = Result<T, E>>, - F: FnMut(T) -> U,

👎Deprecated since 0.10.0: Use .map_ok() instead
source§

fn map_ok<F, T, U, E>(self, f: F) -> MapSpecialCase<Self, MapSpecialCaseFnOk<F>>
where - Self: Sized + Iterator<Item = Result<T, E>>, - F: FnMut(T) -> U,

Return an iterator adaptor that applies the provided closure + Self: Sized + Iterator<Item = Result<T, E>>, + F: FnMut(T) -> U,
👎Deprecated since 0.10.0: Use .map_ok() instead
source§

fn map_ok<F, T, U, E>(self, f: F) -> MapSpecialCase<Self, MapSpecialCaseFnOk<F>>
where + Self: Sized + Iterator<Item = Result<T, E>>, + F: FnMut(T) -> U,

Return an iterator adaptor that applies the provided closure to every Result::Ok value. Result::Err values are unchanged. Read more
source§

fn filter_ok<F, T, E>(self, f: F) -> FilterOk<Self, F>
where - Self: Sized + Iterator<Item = Result<T, E>>, - F: FnMut(&T) -> bool,

Return an iterator adaptor that filters every Result::Ok + Self: Sized + Iterator<Item = Result<T, E>>, + F: FnMut(&T) -> bool,
Return an iterator adaptor that filters every Result::Ok value with the provided closure. Result::Err values are unchanged. Read more
source§

fn filter_map_ok<F, T, U, E>(self, f: F) -> FilterMapOk<Self, F>
where - Self: Sized + Iterator<Item = Result<T, E>>, - F: FnMut(T) -> Option<U>,

Return an iterator adaptor that filters and transforms every + Self: Sized + Iterator<Item = Result<T, E>>, + F: FnMut(T) -> Option<U>,
Return an iterator adaptor that filters and transforms every Result::Ok value with the provided closure. Result::Err values are unchanged. Read more
source§

fn flatten_ok<T, E>(self) -> FlattenOk<Self, T, E>
where - Self: Sized + Iterator<Item = Result<T, E>>, - T: IntoIterator,

Return an iterator adaptor that flattens every Result::Ok value into -a series of Result::Ok values. Result::Err values are unchanged. Read more
source§

fn process_results<F, T, E, R>(self, processor: F) -> Result<R, E>
where - Self: Sized + Iterator<Item = Result<T, E>>, - F: FnOnce(ProcessResults<'_, Self, E>) -> R,

“Lift” a function of the values of the current iterator so as to process + Self: Sized + Iterator<Item = Result<T, E>>, + T: IntoIterator,
Return an iterator adaptor that flattens every Result::Ok value into +a series of Result::Ok values. Result::Err values are unchanged. Read more
source§

fn process_results<F, T, E, R>(self, processor: F) -> Result<R, E>
where + Self: Sized + Iterator<Item = Result<T, E>>, + F: FnOnce(ProcessResults<'_, Self, E>) -> R,

“Lift” a function of the values of the current iterator so as to process an iterator of Result values instead. Read more
source§

fn merge<J>( self, other: J, -) -> MergeBy<Self, <J as IntoIterator>::IntoIter, MergeLte>
where - Self: Sized, - Self::Item: PartialOrd, - J: IntoIterator<Item = Self::Item>,

Return an iterator adaptor that merges the two base iterators in +) -> MergeBy<Self, <J as IntoIterator>::IntoIter, MergeLte>
where + Self: Sized, + Self::Item: PartialOrd, + J: IntoIterator<Item = Self::Item>,
Return an iterator adaptor that merges the two base iterators in ascending order. If both base iterators are sorted (ascending), the result is sorted. Read more
source§

fn merge_by<J, F>( self, other: J, is_first: F, -) -> MergeBy<Self, <J as IntoIterator>::IntoIter, F>
where - Self: Sized, - J: IntoIterator<Item = Self::Item>, - F: FnMut(&Self::Item, &Self::Item) -> bool,

Return an iterator adaptor that merges the two base iterators in order. +) -> MergeBy<Self, <J as IntoIterator>::IntoIter, F>
where + Self: Sized, + J: IntoIterator<Item = Self::Item>, + F: FnMut(&Self::Item, &Self::Item) -> bool,
Return an iterator adaptor that merges the two base iterators in order. This is much like .merge() but allows for a custom ordering. Read more
source§

fn merge_join_by<J, F, T>( self, other: J, cmp_fn: F, -) -> MergeJoinBy<Self, <J as IntoIterator>::IntoIter, F>
where - J: IntoIterator, - F: FnMut(&Self::Item, &<J as IntoIterator>::Item) -> T, - T: OrderingOrBool<Self::Item, <J as IntoIterator>::Item>, - Self: Sized,

Create an iterator that merges items from both this and the specified -iterator in ascending order. Read more
source§

fn kmerge(self) -> KMergeBy<<Self::Item as IntoIterator>::IntoIter, KMergeByLt>
where - Self: Sized, - Self::Item: IntoIterator, - <Self::Item as IntoIterator>::Item: PartialOrd,

Return an iterator adaptor that flattens an iterator of iterators by +) -> MergeJoinBy<Self, <J as IntoIterator>::IntoIter, F>
where + J: IntoIterator, + F: FnMut(&Self::Item, &<J as IntoIterator>::Item) -> T, + T: OrderingOrBool<Self::Item, <J as IntoIterator>::Item>, + Self: Sized,
Create an iterator that merges items from both this and the specified +iterator in ascending order. Read more
source§

fn kmerge(self) -> KMergeBy<<Self::Item as IntoIterator>::IntoIter, KMergeByLt>
where + Self: Sized, + Self::Item: IntoIterator, + <Self::Item as IntoIterator>::Item: PartialOrd,

Return an iterator adaptor that flattens an iterator of iterators by merging them in ascending order. Read more
source§

fn kmerge_by<F>( self, first: F, -) -> KMergeBy<<Self::Item as IntoIterator>::IntoIter, F>
where - Self: Sized, - Self::Item: IntoIterator, - F: FnMut(&<Self::Item as IntoIterator>::Item, &<Self::Item as IntoIterator>::Item) -> bool,

Return an iterator adaptor that flattens an iterator of iterators by +) -> KMergeBy<<Self::Item as IntoIterator>::IntoIter, F>
where + Self: Sized, + Self::Item: IntoIterator, + F: FnMut(&<Self::Item as IntoIterator>::Item, &<Self::Item as IntoIterator>::Item) -> bool,
Return an iterator adaptor that flattens an iterator of iterators by merging them according to the given closure. Read more
source§

fn cartesian_product<J>( self, other: J, -) -> Product<Self, <J as IntoIterator>::IntoIter>
where - Self: Sized, - Self::Item: Clone, - J: IntoIterator, - <J as IntoIterator>::IntoIter: Clone,

Return an iterator adaptor that iterates over the cartesian product of +) -> Product<Self, <J as IntoIterator>::IntoIter>
where + Self: Sized, + Self::Item: Clone, + J: IntoIterator, + <J as IntoIterator>::IntoIter: Clone,
Return an iterator adaptor that iterates over the cartesian product of the element sets of two iterators self and J. Read more
source§

fn multi_cartesian_product( self, -) -> MultiProduct<<Self::Item as IntoIterator>::IntoIter>
where - Self: Sized, - Self::Item: IntoIterator, - <Self::Item as IntoIterator>::IntoIter: Clone, - <Self::Item as IntoIterator>::Item: Clone,

Return an iterator adaptor that iterates over the cartesian product of -all subiterators returned by meta-iterator self. Read more
source§

fn coalesce<F>(self, f: F) -> CoalesceBy<Self, F, Self::Item>
where - Self: Sized, - F: FnMut(Self::Item, Self::Item) -> Result<Self::Item, (Self::Item, Self::Item)>,

Return an iterator adaptor that uses the passed-in closure to -optionally merge together consecutive elements. Read more
source§

fn dedup(self) -> CoalesceBy<Self, DedupPred2CoalescePred<DedupEq>, Self::Item>
where - Self: Sized, - Self::Item: PartialEq,

Remove duplicates from sections of consecutive identical elements. +) -> MultiProduct<<Self::Item as IntoIterator>::IntoIter>
where + Self: Sized, + Self::Item: IntoIterator, + <Self::Item as IntoIterator>::IntoIter: Clone, + <Self::Item as IntoIterator>::Item: Clone,
Return an iterator adaptor that iterates over the cartesian product of +all subiterators returned by meta-iterator self. Read more
source§

fn coalesce<F>(self, f: F) -> CoalesceBy<Self, F, Self::Item>
where + Self: Sized, + F: FnMut(Self::Item, Self::Item) -> Result<Self::Item, (Self::Item, Self::Item)>,

Return an iterator adaptor that uses the passed-in closure to +optionally merge together consecutive elements. Read more
source§

fn dedup(self) -> CoalesceBy<Self, DedupPred2CoalescePred<DedupEq>, Self::Item>
where + Self: Sized, + Self::Item: PartialEq,

Remove duplicates from sections of consecutive identical elements. If the iterator is sorted, all elements will be unique. Read more
source§

fn dedup_by<Cmp>( self, cmp: Cmp, -) -> CoalesceBy<Self, DedupPred2CoalescePred<Cmp>, Self::Item>
where - Self: Sized, - Cmp: FnMut(&Self::Item, &Self::Item) -> bool,

Remove duplicates from sections of consecutive identical elements, +) -> CoalesceBy<Self, DedupPred2CoalescePred<Cmp>, Self::Item>
where + Self: Sized, + Cmp: FnMut(&Self::Item, &Self::Item) -> bool,
Remove duplicates from sections of consecutive identical elements, determining equality using a comparison function. If the iterator is sorted, all elements will be unique. Read more
source§

fn dedup_with_count( self, -) -> CoalesceBy<Self, DedupPredWithCount2CoalescePred<DedupEq>, (usize, Self::Item)>
where - Self: Sized,

Remove duplicates from sections of consecutive identical elements, while keeping a count of +) -> CoalesceBy<Self, DedupPredWithCount2CoalescePred<DedupEq>, (usize, Self::Item)>
where + Self: Sized,
Remove duplicates from sections of consecutive identical elements, while keeping a count of how many repeated elements were present. If the iterator is sorted, all elements will be unique. Read more
source§

fn dedup_by_with_count<Cmp>( self, cmp: Cmp, -) -> CoalesceBy<Self, DedupPredWithCount2CoalescePred<Cmp>, (usize, Self::Item)>
where - Self: Sized, - Cmp: FnMut(&Self::Item, &Self::Item) -> bool,

Remove duplicates from sections of consecutive identical elements, while keeping a count of +) -> CoalesceBy<Self, DedupPredWithCount2CoalescePred<Cmp>, (usize, Self::Item)>
where + Self: Sized, + Cmp: FnMut(&Self::Item, &Self::Item) -> bool,
Remove duplicates from sections of consecutive identical elements, while keeping a count of how many repeated elements were present. This will determine equality using a comparison function. -If the iterator is sorted, all elements will be unique. Read more
source§

fn duplicates(self) -> DuplicatesBy<Self, Self::Item, ById>
where - Self: Sized, - Self::Item: Eq + Hash,

Return an iterator adaptor that produces elements that appear more than once during the +If the iterator is sorted, all elements will be unique. Read more
source§

fn duplicates(self) -> DuplicatesBy<Self, Self::Item, ById>
where + Self: Sized, + Self::Item: Eq + Hash,

Return an iterator adaptor that produces elements that appear more than once during the iteration. Duplicates are detected using hash and equality. Read more
source§

fn duplicates_by<V, F>(self, f: F) -> DuplicatesBy<Self, V, ByFn<F>>
where - Self: Sized, - V: Eq + Hash, - F: FnMut(&Self::Item) -> V,

Return an iterator adaptor that produces elements that appear more than once during the + Self: Sized, + V: Eq + Hash, + F: FnMut(&Self::Item) -> V,
Return an iterator adaptor that produces elements that appear more than once during the iteration. Duplicates are detected using hash and equality. Read more
source§

fn unique(self) -> Unique<Self>
where - Self: Sized, - Self::Item: Clone + Eq + Hash,

Return an iterator adaptor that filters out elements that have + Self: Sized, + Self::Item: Clone + Eq + Hash,
Return an iterator adaptor that filters out elements that have already been produced once during the iteration. Duplicates are detected using hash and equality. Read more
source§

fn unique_by<V, F>(self, f: F) -> UniqueBy<Self, V, F>
where - Self: Sized, - V: Eq + Hash, - F: FnMut(&Self::Item) -> V,

Return an iterator adaptor that filters out elements that have + Self: Sized, + V: Eq + Hash, + F: FnMut(&Self::Item) -> V,
Return an iterator adaptor that filters out elements that have already been produced once during the iteration. Read more
source§

fn peeking_take_while<F>(&mut self, accept: F) -> PeekingTakeWhile<'_, Self, F>
where - Self: Sized + PeekingNext, - F: FnMut(&Self::Item) -> bool,

Return an iterator adaptor that borrows from this iterator and + Self: Sized + PeekingNext, + F: FnMut(&Self::Item) -> bool,
Return an iterator adaptor that borrows from this iterator and takes items while the closure accept returns true. Read more
source§

fn take_while_ref<F>(&mut self, accept: F) -> TakeWhileRef<'_, Self, F>
where - Self: Clone, - F: FnMut(&Self::Item) -> bool,

Return an iterator adaptor that borrows from a Clone-able iterator + Self: Clone, + F: FnMut(&Self::Item) -> bool,
Return an iterator adaptor that borrows from a Clone-able iterator to only pick off elements while the predicate accept returns true. Read more
source§

fn take_while_inclusive<F>( &mut self, accept: F, ) -> TakeWhileInclusive<'_, Self, F>
where - Self: Sized, - F: FnMut(&Self::Item) -> bool,

Returns an iterator adaptor that consumes elements while the given + Self: Sized, + F: FnMut(&Self::Item) -> bool,
Returns an iterator adaptor that consumes elements while the given predicate is true, including the element for which the predicate first returned false. Read more
source§

fn while_some<A>(self) -> WhileSome<Self>
where - Self: Sized + Iterator<Item = Option<A>>,

Return an iterator adaptor that filters Option<A> iterator elements + Self: Sized + Iterator<Item = Option<A>>,
Return an iterator adaptor that filters Option<A> iterator elements and produces A. Stops on the first None encountered. Read more
source§

fn tuple_combinations<T>(self) -> TupleCombinations<Self, T>
where - Self: Sized + Clone, - Self::Item: Clone, + Self: Sized + Clone, + Self::Item: Clone, T: HasCombination<Self>,

Return an iterator adaptor that iterates over the combinations of the -elements from an iterator. Read more
source§

fn combinations(self, k: usize) -> Combinations<Self>
where - Self: Sized, - Self::Item: Clone,

Return an iterator adaptor that iterates over the k-length combinations of +elements from an iterator. Read more
source§

fn combinations(self, k: usize) -> Combinations<Self>
where + Self: Sized, + Self::Item: Clone,

Return an iterator adaptor that iterates over the k-length combinations of the elements from an iterator. Read more
source§

fn combinations_with_replacement( self, - k: usize, + k: usize, ) -> CombinationsWithReplacement<Self>
where - Self: Sized, - Self::Item: Clone,

Return an iterator that iterates over the k-length combinations of -the elements from an iterator, with replacement. Read more
source§

fn permutations(self, k: usize) -> Permutations<Self>
where - Self: Sized, - Self::Item: Clone,

Return an iterator adaptor that iterates over all k-permutations of the + Self: Sized, + Self::Item: Clone,
Return an iterator that iterates over the k-length combinations of +the elements from an iterator, with replacement. Read more
source§

fn permutations(self, k: usize) -> Permutations<Self>
where + Self: Sized, + Self::Item: Clone,

Return an iterator adaptor that iterates over all k-permutations of the elements from an iterator. Read more
source§

fn powerset(self) -> Powerset<Self>
where - Self: Sized, - Self::Item: Clone,

Return an iterator that iterates through the powerset of the elements from an -iterator. Read more
source§

fn pad_using<F>(self, min: usize, f: F) -> PadUsing<Self, F>
where - Self: Sized, - F: FnMut(usize) -> Self::Item,

Return an iterator adaptor that pads the sequence to a minimum length of + Self: Sized, + Self::Item: Clone,
Return an iterator that iterates through the powerset of the elements from an +iterator. Read more
source§

fn pad_using<F>(self, min: usize, f: F) -> PadUsing<Self, F>
where + Self: Sized, + F: FnMut(usize) -> Self::Item,

Return an iterator adaptor that pads the sequence to a minimum length of min by filling missing elements using a closure f. Read more
source§

fn with_position(self) -> WithPosition<Self>
where - Self: Sized,

Return an iterator adaptor that combines each element with a Position to + Self: Sized,
Return an iterator adaptor that combines each element with a Position to ease special-case handling of the first or last elements. Read more
source§

fn positions<P>(self, predicate: P) -> Positions<Self, P>
where - Self: Sized, - P: FnMut(Self::Item) -> bool,

Return an iterator adaptor that yields the indices of all elements + Self: Sized, + P: FnMut(Self::Item) -> bool,
Return an iterator adaptor that yields the indices of all elements satisfying a predicate, counted from the start of the iterator. Read more
source§

fn update<F>(self, updater: F) -> Update<Self, F>
where - Self: Sized, - F: FnMut(&mut Self::Item),

Return an iterator adaptor that applies a mutating function -to each element before yielding it. Read more
source§

fn next_tuple<T>(&mut self) -> Option<T>
where - Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, + Self: Sized, + F: FnMut(&mut Self::Item),

Return an iterator adaptor that applies a mutating function +to each element before yielding it. Read more
source§

fn next_tuple<T>(&mut self) -> Option<T>
where + Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, T: HomogeneousTuple,

Advances the iterator and returns the next items grouped in a tuple of -a specific size (up to 12). Read more
source§

fn collect_tuple<T>(self) -> Option<T>
where - Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, +a specific size (up to 12). Read more

source§

fn collect_tuple<T>(self) -> Option<T>
where + Self: Sized + Iterator<Item = <T as TupleCollect>::Item>, T: HomogeneousTuple,

Collects all items from the iterator into a tuple of a specific size -(up to 12). Read more
source§

fn find_position<P>(&mut self, pred: P) -> Option<(usize, Self::Item)>
where - P: FnMut(&Self::Item) -> bool,

Find the position and value of the first element satisfying a predicate. Read more
source§

fn find_or_last<P>(self, predicate: P) -> Option<Self::Item>
where - Self: Sized, - P: FnMut(&Self::Item) -> bool,

Find the value of the first element satisfying a predicate or return the last element, if any. Read more
source§

fn find_or_first<P>(self, predicate: P) -> Option<Self::Item>
where - Self: Sized, - P: FnMut(&Self::Item) -> bool,

Find the value of the first element satisfying a predicate or return the first element, if any. Read more
source§

fn contains<Q>(&mut self, query: &Q) -> bool
where - Self: Sized, - Self::Item: Borrow<Q>, - Q: PartialEq,

Returns true if the given item is present in this iterator. Read more
source§

fn all_equal(&mut self) -> bool
where - Self: Sized, - Self::Item: PartialEq,

Check whether all elements compare equal. Read more
source§

fn all_equal_value( +(up to 12). Read more

source§

fn find_position<P>(&mut self, pred: P) -> Option<(usize, Self::Item)>
where + P: FnMut(&Self::Item) -> bool,

Find the position and value of the first element satisfying a predicate. Read more
source§

fn find_or_last<P>(self, predicate: P) -> Option<Self::Item>
where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Find the value of the first element satisfying a predicate or return the last element, if any. Read more
source§

fn find_or_first<P>(self, predicate: P) -> Option<Self::Item>
where + Self: Sized, + P: FnMut(&Self::Item) -> bool,

Find the value of the first element satisfying a predicate or return the first element, if any. Read more
source§

fn contains<Q>(&mut self, query: &Q) -> bool
where + Self: Sized, + Self::Item: Borrow<Q>, + Q: PartialEq,

Returns true if the given item is present in this iterator. Read more
source§

fn all_equal(&mut self) -> bool
where + Self: Sized, + Self::Item: PartialEq,

Check whether all elements compare equal. Read more
source§

fn all_equal_value( &mut self, -) -> Result<Self::Item, Option<(Self::Item, Self::Item)>>
where - Self: Sized, - Self::Item: PartialEq,

If there are elements and they are all equal, return a single copy of that element. +) -> Result<Self::Item, Option<(Self::Item, Self::Item)>>
where + Self: Sized, + Self::Item: PartialEq,
If there are elements and they are all equal, return a single copy of that element. If there are no elements, return an Error containing None. If there are elements and they are not all equal, return a tuple containing the first -two non-equal elements found. Read more
source§

fn all_unique(&mut self) -> bool
where - Self: Sized, - Self::Item: Eq + Hash,

Check whether all elements are unique (non equal). Read more
source§

fn dropping(self, n: usize) -> Self
where - Self: Sized,

Consume the first n elements from the iterator eagerly, -and return the same iterator again. Read more
source§

fn dropping_back(self, n: usize) -> Self
where - Self: Sized + DoubleEndedIterator,

Consume the last n elements from the iterator eagerly, +two non-equal elements found. Read more
source§

fn all_unique(&mut self) -> bool
where + Self: Sized, + Self::Item: Eq + Hash,

Check whether all elements are unique (non equal). Read more
source§

fn dropping(self, n: usize) -> Self
where + Self: Sized,

Consume the first n elements from the iterator eagerly, +and return the same iterator again. Read more
source§

fn dropping_back(self, n: usize) -> Self
where + Self: Sized + DoubleEndedIterator,

Consume the last n elements from the iterator eagerly, and return the same iterator again. Read more
source§

fn foreach<F>(self, f: F)
where - F: FnMut(Self::Item), - Self: Sized,

👎Deprecated since 0.8.0: Use .for_each() instead
Run the closure f eagerly on each element of the iterator. Read more
source§

fn concat(self) -> Self::Item
where - Self: Sized, - Self::Item: Extend<<Self::Item as IntoIterator>::Item> + IntoIterator + Default,

Combine all an iterator’s elements into one element by using Extend. Read more
source§

fn collect_vec(self) -> Vec<Self::Item>
where - Self: Sized,

.collect_vec() is simply a type specialization of Iterator::collect, -for convenience.
source§

fn try_collect<T, U, E>(self) -> Result<U, E>
where - Self: Sized + Iterator<Item = Result<T, E>>, - Result<U, E>: FromIterator<Result<T, E>>,

.try_collect() is more convenient way of writing -.collect::<Result<_, _>>() Read more
source§

fn set_from<'a, A, J>(&mut self, from: J) -> usize
where + F: FnMut(Self::Item), + Self: Sized,

👎Deprecated since 0.8.0: Use .for_each() instead
Run the closure f eagerly on each element of the iterator. Read more
source§

fn concat(self) -> Self::Item
where + Self: Sized, + Self::Item: Extend<<Self::Item as IntoIterator>::Item> + IntoIterator + Default,

Combine all an iterator’s elements into one element by using Extend. Read more
source§

fn collect_vec(self) -> Vec<Self::Item>
where + Self: Sized,

.collect_vec() is simply a type specialization of Iterator::collect, +for convenience.
source§

fn try_collect<T, U, E>(self) -> Result<U, E>
where + Self: Sized + Iterator<Item = Result<T, E>>, + Result<U, E>: FromIterator<Result<T, E>>,

.try_collect() is more convenient way of writing +.collect::<Result<_, _>>() Read more
source§

fn set_from<'a, A, J>(&mut self, from: J) -> usize
where A: 'a, - Self: Iterator<Item = &'a mut A>, - J: IntoIterator<Item = A>,

Assign to each reference in self from the from iterator, -stopping at the shortest of the two iterators. Read more
source§

fn join(&mut self, sep: &str) -> String
where - Self::Item: Display,

Combine all iterator elements into one String, separated by sep. Read more
source§

fn format(self, sep: &str) -> Format<'_, Self>
where - Self: Sized,

Format all iterator elements, separated by sep. Read more
source§

fn format_with<F>(self, sep: &str, format: F) -> FormatWith<'_, Self, F>
where - Self: Sized, - F: FnMut(Self::Item, &mut dyn FnMut(&dyn Display) -> Result<(), Error>) -> Result<(), Error>,

Format all iterator elements, separated by sep. Read more
source§

fn fold_results<A, E, B, F>(&mut self, start: B, f: F) -> Result<B, E>
where - Self: Iterator<Item = Result<A, E>>, - F: FnMut(B, A) -> B,

👎Deprecated since 0.10.0: Use .fold_ok() instead
source§

fn fold_ok<A, E, B, F>(&mut self, start: B, f: F) -> Result<B, E>
where - Self: Iterator<Item = Result<A, E>>, - F: FnMut(B, A) -> B,

Fold Result values from an iterator. Read more
source§

fn fold_options<A, B, F>(&mut self, start: B, f: F) -> Option<B>
where - Self: Iterator<Item = Option<A>>, - F: FnMut(B, A) -> B,

Fold Option values from an iterator. Read more
source§

fn fold1<F>(self, f: F) -> Option<Self::Item>
where - F: FnMut(Self::Item, Self::Item) -> Self::Item, - Self: Sized,

👎Deprecated since 0.10.2: Use Iterator::reduce instead
Accumulator of the elements in the iterator. Read more
source§

fn tree_fold1<F>(self, f: F) -> Option<Self::Item>
where - F: FnMut(Self::Item, Self::Item) -> Self::Item, - Self: Sized,

Accumulate the elements in the iterator in a tree-like manner. Read more
source§

fn fold_while<B, F>(&mut self, init: B, f: F) -> FoldWhile<B>
where - Self: Sized, - F: FnMut(B, Self::Item) -> FoldWhile<B>,

An iterator method that applies a function, producing a single, final value. Read more
source§

fn sum1<S>(self) -> Option<S>
where - Self: Sized, - S: Sum<Self::Item>,

Iterate over the entire iterator and add all the elements. Read more
source§

fn product1<P>(self) -> Option<P>
where - Self: Sized, - P: Product<Self::Item>,

Iterate over the entire iterator and multiply all the elements. Read more
source§

fn sorted_unstable(self) -> IntoIter<Self::Item>
where - Self: Sized, - Self::Item: Ord,

Sort all iterator elements into a new iterator in ascending order. Read more
source§

fn sorted_unstable_by<F>(self, cmp: F) -> IntoIter<Self::Item>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Sort all iterator elements into a new iterator in ascending order. Read more
source§

fn sorted_unstable_by_key<K, F>(self, f: F) -> IntoIter<Self::Item>
where - Self: Sized, - K: Ord, - F: FnMut(&Self::Item) -> K,

Sort all iterator elements into a new iterator in ascending order. Read more
source§

fn sorted(self) -> IntoIter<Self::Item>
where - Self: Sized, - Self::Item: Ord,

Sort all iterator elements into a new iterator in ascending order. Read more
source§

fn sorted_by<F>(self, cmp: F) -> IntoIter<Self::Item>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Sort all iterator elements into a new iterator in ascending order. Read more
source§

fn sorted_by_key<K, F>(self, f: F) -> IntoIter<Self::Item>
where - Self: Sized, - K: Ord, - F: FnMut(&Self::Item) -> K,

Sort all iterator elements into a new iterator in ascending order. Read more
source§

fn sorted_by_cached_key<K, F>(self, f: F) -> IntoIter<Self::Item>
where - Self: Sized, - K: Ord, - F: FnMut(&Self::Item) -> K,

Sort all iterator elements into a new iterator in ascending order. The key function is -called exactly once per key. Read more
source§

fn k_smallest(self, k: usize) -> IntoIter<Self::Item>
where - Self: Sized, - Self::Item: Ord,

Sort the k smallest elements into a new iterator, in ascending order. Read more
source§

fn partition_map<A, B, F, L, R>(self, predicate: F) -> (A, B)
where - Self: Sized, - F: FnMut(Self::Item) -> Either<L, R>, - A: Default + Extend<L>, - B: Default + Extend<R>,

Collect all iterator elements into one of two -partitions. Unlike Iterator::partition, each partition may -have a distinct type. Read more
source§

fn partition_result<A, B, T, E>(self) -> (A, B)
where - Self: Sized + Iterator<Item = Result<T, E>>, - A: Default + Extend<T>, - B: Default + Extend<E>,

Partition a sequence of Results into one list of all the Ok elements -and another list of all the Err elements. Read more
source§

fn into_group_map<K, V>(self) -> HashMap<K, Vec<V>>
where - Self: Sized + Iterator<Item = (K, V)>, - K: Hash + Eq,

Return a HashMap of keys mapped to Vecs of values. Keys and values -are taken from (Key, Value) tuple pairs yielded by the input iterator. Read more
source§

fn into_group_map_by<K, V, F>(self, f: F) -> HashMap<K, Vec<V>>
where - Self: Sized + Iterator<Item = V>, - K: Hash + Eq, - F: Fn(&V) -> K,

Return an Iterator on a HashMap. Keys mapped to Vecs of values. The key is specified + Self: Iterator<Item = &'a mut A>, + J: IntoIterator<Item = A>,
Assign to each reference in self from the from iterator, +stopping at the shortest of the two iterators. Read more
source§

fn join(&mut self, sep: &str) -> String
where + Self::Item: Display,

Combine all iterator elements into one String, separated by sep. Read more
source§

fn format(self, sep: &str) -> Format<'_, Self>
where + Self: Sized,

Format all iterator elements, separated by sep. Read more
source§

fn format_with<F>(self, sep: &str, format: F) -> FormatWith<'_, Self, F>
where + Self: Sized, + F: FnMut(Self::Item, &mut dyn FnMut(&dyn Display) -> Result<(), Error>) -> Result<(), Error>,

Format all iterator elements, separated by sep. Read more
source§

fn fold_results<A, E, B, F>(&mut self, start: B, f: F) -> Result<B, E>
where + Self: Iterator<Item = Result<A, E>>, + F: FnMut(B, A) -> B,

👎Deprecated since 0.10.0: Use .fold_ok() instead
source§

fn fold_ok<A, E, B, F>(&mut self, start: B, f: F) -> Result<B, E>
where + Self: Iterator<Item = Result<A, E>>, + F: FnMut(B, A) -> B,

Fold Result values from an iterator. Read more
source§

fn fold_options<A, B, F>(&mut self, start: B, f: F) -> Option<B>
where + Self: Iterator<Item = Option<A>>, + F: FnMut(B, A) -> B,

Fold Option values from an iterator. Read more
source§

fn fold1<F>(self, f: F) -> Option<Self::Item>
where + F: FnMut(Self::Item, Self::Item) -> Self::Item, + Self: Sized,

👎Deprecated since 0.10.2: Use Iterator::reduce instead
Accumulator of the elements in the iterator. Read more
source§

fn tree_fold1<F>(self, f: F) -> Option<Self::Item>
where + F: FnMut(Self::Item, Self::Item) -> Self::Item, + Self: Sized,

Accumulate the elements in the iterator in a tree-like manner. Read more
source§

fn fold_while<B, F>(&mut self, init: B, f: F) -> FoldWhile<B>
where + Self: Sized, + F: FnMut(B, Self::Item) -> FoldWhile<B>,

An iterator method that applies a function, producing a single, final value. Read more
source§

fn sum1<S>(self) -> Option<S>
where + Self: Sized, + S: Sum<Self::Item>,

Iterate over the entire iterator and add all the elements. Read more
source§

fn product1<P>(self) -> Option<P>
where + Self: Sized, + P: Product<Self::Item>,

Iterate over the entire iterator and multiply all the elements. Read more
source§

fn sorted_unstable(self) -> IntoIter<Self::Item>
where + Self: Sized, + Self::Item: Ord,

Sort all iterator elements into a new iterator in ascending order. Read more
source§

fn sorted_unstable_by<F>(self, cmp: F) -> IntoIter<Self::Item>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Sort all iterator elements into a new iterator in ascending order. Read more
source§

fn sorted_unstable_by_key<K, F>(self, f: F) -> IntoIter<Self::Item>
where + Self: Sized, + K: Ord, + F: FnMut(&Self::Item) -> K,

Sort all iterator elements into a new iterator in ascending order. Read more
source§

fn sorted(self) -> IntoIter<Self::Item>
where + Self: Sized, + Self::Item: Ord,

Sort all iterator elements into a new iterator in ascending order. Read more
source§

fn sorted_by<F>(self, cmp: F) -> IntoIter<Self::Item>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Sort all iterator elements into a new iterator in ascending order. Read more
source§

fn sorted_by_key<K, F>(self, f: F) -> IntoIter<Self::Item>
where + Self: Sized, + K: Ord, + F: FnMut(&Self::Item) -> K,

Sort all iterator elements into a new iterator in ascending order. Read more
source§

fn sorted_by_cached_key<K, F>(self, f: F) -> IntoIter<Self::Item>
where + Self: Sized, + K: Ord, + F: FnMut(&Self::Item) -> K,

Sort all iterator elements into a new iterator in ascending order. The key function is +called exactly once per key. Read more
source§

fn k_smallest(self, k: usize) -> IntoIter<Self::Item>
where + Self: Sized, + Self::Item: Ord,

Sort the k smallest elements into a new iterator, in ascending order. Read more
source§

fn partition_map<A, B, F, L, R>(self, predicate: F) -> (A, B)
where + Self: Sized, + F: FnMut(Self::Item) -> Either<L, R>, + A: Default + Extend<L>, + B: Default + Extend<R>,

Collect all iterator elements into one of two +partitions. Unlike Iterator::partition, each partition may +have a distinct type. Read more
source§

fn partition_result<A, B, T, E>(self) -> (A, B)
where + Self: Sized + Iterator<Item = Result<T, E>>, + A: Default + Extend<T>, + B: Default + Extend<E>,

Partition a sequence of Results into one list of all the Ok elements +and another list of all the Err elements. Read more
source§

fn into_group_map<K, V>(self) -> HashMap<K, Vec<V>>
where + Self: Sized + Iterator<Item = (K, V)>, + K: Hash + Eq,

Return a HashMap of keys mapped to Vecs of values. Keys and values +are taken from (Key, Value) tuple pairs yielded by the input iterator. Read more
source§

fn into_group_map_by<K, V, F>(self, f: F) -> HashMap<K, Vec<V>>
where + Self: Sized + Iterator<Item = V>, + K: Hash + Eq, + F: Fn(&V) -> K,

Return an Iterator on a HashMap. Keys mapped to Vecs of values. The key is specified in the closure. Read more
source§

fn into_grouping_map<K, V>(self) -> GroupingMap<Self>
where - Self: Sized + Iterator<Item = (K, V)>, - K: Hash + Eq,

Constructs a GroupingMap to be used later with one of the efficient + Self: Sized + Iterator<Item = (K, V)>, + K: Hash + Eq,
Constructs a GroupingMap to be used later with one of the efficient group-and-fold operations it allows to perform. Read more
source§

fn into_grouping_map_by<K, V, F>( self, key_mapper: F, ) -> GroupingMap<MapForGrouping<Self, F>>
where - Self: Sized + Iterator<Item = V>, - K: Hash + Eq, - F: FnMut(&V) -> K,

Constructs a GroupingMap to be used later with one of the efficient -group-and-fold operations it allows to perform. Read more
source§

fn min_set(self) -> Vec<Self::Item>
where - Self: Sized, - Self::Item: Ord,

Return all minimum elements of an iterator. Read more
source§

fn min_set_by<F>(self, compare: F) -> Vec<Self::Item>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return all minimum elements of an iterator, as determined by -the specified function. Read more
source§

fn min_set_by_key<K, F>(self, key: F) -> Vec<Self::Item>
where - Self: Sized, - K: Ord, - F: FnMut(&Self::Item) -> K,

Return all minimum elements of an iterator, as determined by -the specified function. Read more
source§

fn max_set(self) -> Vec<Self::Item>
where - Self: Sized, - Self::Item: Ord,

Return all maximum elements of an iterator. Read more
source§

fn max_set_by<F>(self, compare: F) -> Vec<Self::Item>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return all maximum elements of an iterator, as determined by -the specified function. Read more
source§

fn max_set_by_key<K, F>(self, key: F) -> Vec<Self::Item>
where - Self: Sized, - K: Ord, - F: FnMut(&Self::Item) -> K,

Return all maximum elements of an iterator, as determined by -the specified function. Read more
source§

fn minmax(self) -> MinMaxResult<Self::Item>
where - Self: Sized, - Self::Item: PartialOrd,

Return the minimum and maximum elements in the iterator. Read more
source§

fn minmax_by_key<K, F>(self, key: F) -> MinMaxResult<Self::Item>
where - Self: Sized, - K: PartialOrd, - F: FnMut(&Self::Item) -> K,

Return the minimum and maximum element of an iterator, as determined by -the specified function. Read more
source§

fn minmax_by<F>(self, compare: F) -> MinMaxResult<Self::Item>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the minimum and maximum element of an iterator, as determined by -the specified comparison function. Read more
source§

fn position_max(self) -> Option<usize>
where - Self: Sized, - Self::Item: Ord,

Return the position of the maximum element in the iterator. Read more
source§

fn position_max_by_key<K, F>(self, key: F) -> Option<usize>
where - Self: Sized, - K: Ord, - F: FnMut(&Self::Item) -> K,

Return the position of the maximum element in the iterator, as -determined by the specified function. Read more
source§

fn position_max_by<F>(self, compare: F) -> Option<usize>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the position of the maximum element in the iterator, as -determined by the specified comparison function. Read more
source§

fn position_min(self) -> Option<usize>
where - Self: Sized, - Self::Item: Ord,

Return the position of the minimum element in the iterator. Read more
source§

fn position_min_by_key<K, F>(self, key: F) -> Option<usize>
where - Self: Sized, - K: Ord, - F: FnMut(&Self::Item) -> K,

Return the position of the minimum element in the iterator, as -determined by the specified function. Read more
source§

fn position_min_by<F>(self, compare: F) -> Option<usize>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the position of the minimum element in the iterator, as -determined by the specified comparison function. Read more
source§

fn position_minmax(self) -> MinMaxResult<usize>
where - Self: Sized, - Self::Item: PartialOrd,

Return the positions of the minimum and maximum elements in -the iterator. Read more
source§

fn position_minmax_by_key<K, F>(self, key: F) -> MinMaxResult<usize>
where - Self: Sized, - K: PartialOrd, - F: FnMut(&Self::Item) -> K,

Return the postions of the minimum and maximum elements of an -iterator, as determined by the specified function. Read more
source§

fn position_minmax_by<F>(self, compare: F) -> MinMaxResult<usize>
where - Self: Sized, - F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the postions of the minimum and maximum elements of an -iterator, as determined by the specified comparison function. Read more
source§

fn exactly_one(self) -> Result<Self::Item, ExactlyOneError<Self>>
where - Self: Sized,

If the iterator yields exactly one element, that element will be returned, otherwise + Self: Sized + Iterator<Item = V>, + K: Hash + Eq, + F: FnMut(&V) -> K,
Constructs a GroupingMap to be used later with one of the efficient +group-and-fold operations it allows to perform. Read more
source§

fn min_set(self) -> Vec<Self::Item>
where + Self: Sized, + Self::Item: Ord,

Return all minimum elements of an iterator. Read more
source§

fn min_set_by<F>(self, compare: F) -> Vec<Self::Item>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return all minimum elements of an iterator, as determined by +the specified function. Read more
source§

fn min_set_by_key<K, F>(self, key: F) -> Vec<Self::Item>
where + Self: Sized, + K: Ord, + F: FnMut(&Self::Item) -> K,

Return all minimum elements of an iterator, as determined by +the specified function. Read more
source§

fn max_set(self) -> Vec<Self::Item>
where + Self: Sized, + Self::Item: Ord,

Return all maximum elements of an iterator. Read more
source§

fn max_set_by<F>(self, compare: F) -> Vec<Self::Item>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return all maximum elements of an iterator, as determined by +the specified function. Read more
source§

fn max_set_by_key<K, F>(self, key: F) -> Vec<Self::Item>
where + Self: Sized, + K: Ord, + F: FnMut(&Self::Item) -> K,

Return all maximum elements of an iterator, as determined by +the specified function. Read more
source§

fn minmax(self) -> MinMaxResult<Self::Item>
where + Self: Sized, + Self::Item: PartialOrd,

Return the minimum and maximum elements in the iterator. Read more
source§

fn minmax_by_key<K, F>(self, key: F) -> MinMaxResult<Self::Item>
where + Self: Sized, + K: PartialOrd, + F: FnMut(&Self::Item) -> K,

Return the minimum and maximum element of an iterator, as determined by +the specified function. Read more
source§

fn minmax_by<F>(self, compare: F) -> MinMaxResult<Self::Item>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the minimum and maximum element of an iterator, as determined by +the specified comparison function. Read more
source§

fn position_max(self) -> Option<usize>
where + Self: Sized, + Self::Item: Ord,

Return the position of the maximum element in the iterator. Read more
source§

fn position_max_by_key<K, F>(self, key: F) -> Option<usize>
where + Self: Sized, + K: Ord, + F: FnMut(&Self::Item) -> K,

Return the position of the maximum element in the iterator, as +determined by the specified function. Read more
source§

fn position_max_by<F>(self, compare: F) -> Option<usize>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the position of the maximum element in the iterator, as +determined by the specified comparison function. Read more
source§

fn position_min(self) -> Option<usize>
where + Self: Sized, + Self::Item: Ord,

Return the position of the minimum element in the iterator. Read more
source§

fn position_min_by_key<K, F>(self, key: F) -> Option<usize>
where + Self: Sized, + K: Ord, + F: FnMut(&Self::Item) -> K,

Return the position of the minimum element in the iterator, as +determined by the specified function. Read more
source§

fn position_min_by<F>(self, compare: F) -> Option<usize>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the position of the minimum element in the iterator, as +determined by the specified comparison function. Read more
source§

fn position_minmax(self) -> MinMaxResult<usize>
where + Self: Sized, + Self::Item: PartialOrd,

Return the positions of the minimum and maximum elements in +the iterator. Read more
source§

fn position_minmax_by_key<K, F>(self, key: F) -> MinMaxResult<usize>
where + Self: Sized, + K: PartialOrd, + F: FnMut(&Self::Item) -> K,

Return the postions of the minimum and maximum elements of an +iterator, as determined by the specified function. Read more
source§

fn position_minmax_by<F>(self, compare: F) -> MinMaxResult<usize>
where + Self: Sized, + F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Return the postions of the minimum and maximum elements of an +iterator, as determined by the specified comparison function. Read more
source§

fn exactly_one(self) -> Result<Self::Item, ExactlyOneError<Self>>
where + Self: Sized,

If the iterator yields exactly one element, that element will be returned, otherwise an error will be returned containing an iterator that has the same output as the input -iterator. Read more
source§

fn at_most_one(self) -> Result<Option<Self::Item>, ExactlyOneError<Self>>
where - Self: Sized,

If the iterator yields no elements, Ok(None) will be returned. If the iterator yields +iterator. Read more
source§

fn at_most_one(self) -> Result<Option<Self::Item>, ExactlyOneError<Self>>
where + Self: Sized,

If the iterator yields no elements, Ok(None) will be returned. If the iterator yields exactly one element, that element will be returned, otherwise an error will be returned containing an iterator that has the same output as the input iterator. Read more
source§

fn multipeek(self) -> MultiPeek<Self>
where - Self: Sized,

An iterator adaptor that allows the user to peek at multiple .next() -values without advancing the base iterator. Read more
source§

fn counts(self) -> HashMap<Self::Item, usize>
where - Self: Sized, - Self::Item: Eq + Hash,

Collect the items in this iterator and return a HashMap which + Self: Sized,
An iterator adaptor that allows the user to peek at multiple .next() +values without advancing the base iterator. Read more
source§

fn counts(self) -> HashMap<Self::Item, usize>
where + Self: Sized, + Self::Item: Eq + Hash,

Collect the items in this iterator and return a HashMap which contains each item that appears in the iterator and the number -of times it appears. Read more
source§

fn counts_by<K, F>(self, f: F) -> HashMap<K, usize>
where - Self: Sized, - K: Eq + Hash, - F: FnMut(Self::Item) -> K,

Collect the items in this iterator and return a HashMap which +of times it appears. Read more
source§

fn counts_by<K, F>(self, f: F) -> HashMap<K, usize>
where + Self: Sized, + K: Eq + Hash, + F: FnMut(Self::Item) -> K,

Collect the items in this iterator and return a HashMap which contains each item that appears in the iterator and the number of times it appears, determining identity using a keying function. Read more
source§

fn multiunzip<FromI>(self) -> FromI
where - Self: Sized + MultiUnzip<FromI>,

Converts an iterator of tuples into a tuple of containers. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<S, T> ProgressIterator for T
where - T: Iterator<Item = S>,

§

fn progress_with(self, progress: ProgressBar) -> ProgressBarIter<T>

Wrap an iterator with a custom progress bar.
§

fn try_progress(self) -> Option<ProgressBarIter<Self>>

Wrap an iterator with default styling. Uses Iterator::size_hint() to get length. -Returns Some(..) only if size_hint.1 is Some. If you want to create a progress bar -even if size_hint.1 returns None use progress_count() + Self: Sized + MultiUnzip<FromI>,
Converts an iterator of tuples into a tuple of containers. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<S, T> ProgressIterator for T
where + T: Iterator<Item = S>,

§

fn progress_with(self, progress: ProgressBar) -> ProgressBarIter<T>

Wrap an iterator with a custom progress bar.
§

fn try_progress(self) -> Option<ProgressBarIter<Self>>

Wrap an iterator with default styling. Uses Iterator::size_hint() to get length. +Returns Some(..) only if size_hint.1 is Some. If you want to create a progress bar +even if size_hint.1 returns None use progress_count() or progress_with() instead.
§

fn progress(self) -> ProgressBarIter<Self>
where - Self: ExactSizeIterator,

Wrap an iterator with default styling.
§

fn progress_count(self, len: u64) -> ProgressBarIter<Self>

Wrap an iterator with an explicit element count.
§

fn progress_with_style(self, style: ProgressStyle) -> ProgressBarIter<Self>
where - Self: ExactSizeIterator,

Wrap an iterator with a progress bar and style it.
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where + Self: ExactSizeIterator,

Wrap an iterator with default styling.
§

fn progress_count(self, len: u64) -> ProgressBarIter<Self>

Wrap an iterator with an explicit element count.
§

fn progress_with_style(self, style: ProgressStyle) -> ProgressBarIter<Self>
where + Self: ExactSizeIterator,

Wrap an iterator with a progress bar and style it.
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/loop_unrolling/range_iterator/trait.LoopBound.html b/leo_passes/loop_unrolling/range_iterator/trait.LoopBound.html index 417c347cea..2ab1c5571b 100644 --- a/leo_passes/loop_unrolling/range_iterator/trait.LoopBound.html +++ b/leo_passes/loop_unrolling/range_iterator/trait.LoopBound.html @@ -1,8 +1,8 @@ -LoopBound in leo_passes::loop_unrolling::range_iterator - Rust
pub(crate) trait LoopBound:
-    Add<Output = Self>
-    + Copy
-    + Display
+LoopBound in leo_passes::loop_unrolling::range_iterator - Rust
leo_passes::loop_unrolling::range_iterator

Trait LoopBound

source
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 + + 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/unroll_expression/index.html b/leo_passes/loop_unrolling/unroll_expression/index.html index 638b313070..6efbfbdf04 100644 --- a/leo_passes/loop_unrolling/unroll_expression/index.html +++ b/leo_passes/loop_unrolling/unroll_expression/index.html @@ -1 +1 @@ -leo_passes::loop_unrolling::unroll_expression - Rust

Module leo_passes::loop_unrolling::unroll_expression

source ·
\ No newline at end of file +leo_passes::loop_unrolling::unroll_expression - Rust
leo_passes::loop_unrolling

Module unroll_expression

source
\ No newline at end of file diff --git a/leo_passes/loop_unrolling/unroll_program/index.html b/leo_passes/loop_unrolling/unroll_program/index.html index 10cf151db0..b33dfcc039 100644 --- a/leo_passes/loop_unrolling/unroll_program/index.html +++ b/leo_passes/loop_unrolling/unroll_program/index.html @@ -1 +1 @@ -leo_passes::loop_unrolling::unroll_program - Rust

Module leo_passes::loop_unrolling::unroll_program

source ·
\ No newline at end of file +leo_passes::loop_unrolling::unroll_program - Rust
leo_passes::loop_unrolling

Module unroll_program

source
\ No newline at end of file diff --git a/leo_passes/loop_unrolling/unroll_statement/index.html b/leo_passes/loop_unrolling/unroll_statement/index.html index b1af1c5910..734b569ac3 100644 --- a/leo_passes/loop_unrolling/unroll_statement/index.html +++ b/leo_passes/loop_unrolling/unroll_statement/index.html @@ -1 +1 @@ -leo_passes::loop_unrolling::unroll_statement - Rust

Module leo_passes::loop_unrolling::unroll_statement

source ·
\ No newline at end of file +leo_passes::loop_unrolling::unroll_statement - Rust
leo_passes::loop_unrolling

Module unroll_statement

source
\ No newline at end of file diff --git a/leo_passes/loop_unrolling/unroller/index.html b/leo_passes/loop_unrolling/unroller/index.html index 251605259b..ba2ffab1b5 100644 --- a/leo_passes/loop_unrolling/unroller/index.html +++ b/leo_passes/loop_unrolling/unroller/index.html @@ -1 +1 @@ -leo_passes::loop_unrolling::unroller - Rust

Module leo_passes::loop_unrolling::unroller

source ·

Structs§

\ No newline at end of file +leo_passes::loop_unrolling::unroller - Rust
leo_passes::loop_unrolling

Module unroller

source

Structs§

\ 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 755bffa3fa..bf21f44266 100644 --- a/leo_passes/loop_unrolling/unroller/struct.Unroller.html +++ b/leo_passes/loop_unrolling/unroller/struct.Unroller.html @@ -1,29 +1,29 @@ -Unroller in leo_passes::loop_unrolling::unroller - Rust

Struct leo_passes::loop_unrolling::unroller::Unroller

source ·
pub struct Unroller<'a> {
-    pub(crate) constant_propagation_table: RefCell<ConstantPropagationTable>,
-    pub(crate) symbol_table: RefCell<SymbolTable>,
+Unroller in leo_passes::loop_unrolling::unroller - Rust
leo_passes::loop_unrolling::unroller

Struct Unroller

source
pub struct Unroller<'a> {
+    pub(crate) constant_propagation_table: RefCell<ConstantPropagationTable>,
+    pub(crate) symbol_table: RefCell<SymbolTable>,
     pub(crate) type_table: &'a TypeTable,
-    pub(crate) scope_index: usize,
+    pub(crate) scope_index: usize,
     pub(crate) handler: &'a Handler,
     pub(crate) node_builder: &'a NodeBuilder,
-    pub(crate) is_unrolling: bool,
-    pub(crate) current_program: Option<Symbol>,
-}

Fields§

§constant_propagation_table: RefCell<ConstantPropagationTable>

A table of constant variables.

-
§symbol_table: RefCell<SymbolTable>

The symbol table for the function being processed.

+ pub(crate) is_unrolling: bool, + pub(crate) current_program: Option<Symbol>, +}

Fields§

§constant_propagation_table: RefCell<ConstantPropagationTable>

A table of constant variables.

+
§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.

+
§scope_index: usize

The index of the current scope.

§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.

+
§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, node_builder: &'a NodeBuilder, -) -> Self

source

pub(crate) fn current_scope_index(&mut self) -> usize

Returns the index of the current scope. +) -> 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 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 unroll_iteration_statement<I: LoopBound>( &mut self, @@ -34,7 +34,7 @@ input: &IterationStatement, iteration_count: I, ) -> Statement

A helper function to unroll a single iteration an IterationStatement.

-

Trait Implementations§

Trait Implementations§

source§

impl ExpressionReconstructor for Unroller<'_>

source§

impl<'a> Pass for Unroller<'a>

source§

type Input = (Ast, &'a Handler, &'a NodeBuilder, SymbolTable, &'a TypeTable)

source§

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>

source§

type Input = (Ast, &'a Handler, &'a NodeBuilder, SymbolTable, &'a TypeTable)

source§

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( @@ -124,27 +124,27 @@ ) -> (Statement, Self::AdditionalOutput)

source§

fn reconstruct_return( &mut self, input: ReturnStatement, -) -> (Statement, Self::AdditionalOutput)

Auto Trait Implementations§

§

impl<'a> !Freeze for Unroller<'a>

§

impl<'a> !RefUnwindSafe for Unroller<'a>

§

impl<'a> !Send for Unroller<'a>

§

impl<'a> !Sync for Unroller<'a>

§

impl<'a> Unpin for Unroller<'a>

§

impl<'a> !UnwindSafe for Unroller<'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.

+) -> (Statement, Self::AdditionalOutput)

Auto Trait Implementations§

§

impl<'a> !Freeze for Unroller<'a>

§

impl<'a> !RefUnwindSafe for Unroller<'a>

§

impl<'a> !Send for Unroller<'a>

§

impl<'a> !Sync for Unroller<'a>

§

impl<'a> Unpin for Unroller<'a>

§

impl<'a> !UnwindSafe for Unroller<'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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/pass/index.html b/leo_passes/pass/index.html index 825a4ccd3e..1580a6708e 100644 --- a/leo_passes/pass/index.html +++ b/leo_passes/pass/index.html @@ -1 +1 @@ -leo_passes::pass - Rust

Module leo_passes::pass

source ·

Traits§

  • A compiler pass consuming Self::Input and returning Self::Output.
\ No newline at end of file +leo_passes::pass - Rust
leo_passes

Module pass

source

Traits§

  • A compiler pass consuming Self::Input and returning Self::Output.
\ No newline at end of file diff --git a/leo_passes/pass/trait.Pass.html b/leo_passes/pass/trait.Pass.html index f9775b44d0..de8a33f55e 100644 --- a/leo_passes/pass/trait.Pass.html +++ b/leo_passes/pass/trait.Pass.html @@ -1,4 +1,4 @@ -Pass in leo_passes::pass - Rust

Trait leo_passes::pass::Pass

source ·
pub trait Pass {
+Pass in leo_passes::pass - Rust
leo_passes::pass

Trait Pass

source
pub trait Pass {
     type Input;
     type Output;
 
@@ -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>

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>

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 StaticAnalyzer<'a, N>

source§

impl<'a, N: Network> Pass for TypeChecker<'a, N>

\ No newline at end of file +

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a> Pass for CodeGenerator<'a>

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>

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 StaticAnalyzer<'a, N>

source§

impl<'a, N: Network> Pass for TypeChecker<'a, N>

\ No newline at end of file diff --git a/leo_passes/static_analysis/analyze_expression/index.html b/leo_passes/static_analysis/analyze_expression/index.html index 8bf8598321..8ab0243497 100644 --- a/leo_passes/static_analysis/analyze_expression/index.html +++ b/leo_passes/static_analysis/analyze_expression/index.html @@ -1 +1 @@ -leo_passes::static_analysis::analyze_expression - Rust

Module leo_passes::static_analysis::analyze_expression

source ·
\ No newline at end of file +leo_passes::static_analysis::analyze_expression - Rust
leo_passes::static_analysis

Module analyze_expression

source
\ No newline at end of file diff --git a/leo_passes/static_analysis/analyze_program/index.html b/leo_passes/static_analysis/analyze_program/index.html index 9e6a05e857..fae7267dc5 100644 --- a/leo_passes/static_analysis/analyze_program/index.html +++ b/leo_passes/static_analysis/analyze_program/index.html @@ -1 +1 @@ -leo_passes::static_analysis::analyze_program - Rust

Module leo_passes::static_analysis::analyze_program

source ·
\ No newline at end of file +leo_passes::static_analysis::analyze_program - Rust
leo_passes::static_analysis

Module analyze_program

source
\ No newline at end of file diff --git a/leo_passes/static_analysis/analyze_statement/index.html b/leo_passes/static_analysis/analyze_statement/index.html index df87176465..43101a44f7 100644 --- a/leo_passes/static_analysis/analyze_statement/index.html +++ b/leo_passes/static_analysis/analyze_statement/index.html @@ -1 +1 @@ -leo_passes::static_analysis::analyze_statement - Rust

Module leo_passes::static_analysis::analyze_statement

source ·
\ No newline at end of file +leo_passes::static_analysis::analyze_statement - Rust
leo_passes::static_analysis

Module analyze_statement

source
\ No newline at end of file diff --git a/leo_passes/static_analysis/analyzer/index.html b/leo_passes/static_analysis/analyzer/index.html index 4615842fb3..6df91c4c74 100644 --- a/leo_passes/static_analysis/analyzer/index.html +++ b/leo_passes/static_analysis/analyzer/index.html @@ -1 +1 @@ -leo_passes::static_analysis::analyzer - Rust

Module leo_passes::static_analysis::analyzer

source ·

Structs§

\ No newline at end of file +leo_passes::static_analysis::analyzer - Rust
leo_passes::static_analysis

Module analyzer

source

Structs§

\ No newline at end of file diff --git a/leo_passes/static_analysis/analyzer/struct.StaticAnalyzer.html b/leo_passes/static_analysis/analyzer/struct.StaticAnalyzer.html index 1e649bc6dc..b031be2d5f 100644 --- a/leo_passes/static_analysis/analyzer/struct.StaticAnalyzer.html +++ b/leo_passes/static_analysis/analyzer/struct.StaticAnalyzer.html @@ -1,31 +1,31 @@ -StaticAnalyzer in leo_passes::static_analysis::analyzer - Rust

Struct leo_passes::static_analysis::analyzer::StaticAnalyzer

source ·
pub struct StaticAnalyzer<'a, N: Network> {
+StaticAnalyzer in leo_passes::static_analysis::analyzer - Rust
leo_passes::static_analysis::analyzer

Struct StaticAnalyzer

source
pub struct StaticAnalyzer<'a, N: Network> {
     pub(crate) symbol_table: &'a SymbolTable,
     pub(crate) type_table: &'a TypeTable,
     pub(crate) handler: &'a Handler,
     pub(crate) await_checker: AwaitChecker,
-    pub(crate) current_program: Option<Symbol>,
-    pub(crate) variant: Option<Variant>,
-    pub(crate) non_async_external_call_seen: bool,
-    phantom: PhantomData<N>,
+    pub(crate) current_program: Option<Symbol>,
+    pub(crate) variant: Option<Variant>,
+    pub(crate) non_async_external_call_seen: bool,
+    phantom: PhantomData<N>,
 }

Fields§

§symbol_table: &'a SymbolTable

The symbol table for the program.

§type_table: &'a TypeTable

The type table for the program.

§handler: &'a Handler

The error handler.

§await_checker: AwaitChecker

Struct to store the state relevant to checking all futures are awaited.

-
§current_program: Option<Symbol>

The current program name.

-
§variant: Option<Variant>

The variant of the function that we are currently traversing.

-
§non_async_external_call_seen: bool

Whether or not a non-async external call has been seen in this function.

-
§phantom: PhantomData<N>

Implementations§

source§

impl<'a, N: Network> StaticAnalyzer<'a, N>

source

pub fn new( +

§current_program: Option<Symbol>

The current program name.

+
§variant: Option<Variant>

The variant of the function that we are currently traversing.

+
§non_async_external_call_seen: bool

Whether or not a non-async external call has been seen in this function.

+
§phantom: PhantomData<N>

Implementations§

source§

impl<'a, N: Network> StaticAnalyzer<'a, N>

source

pub fn new( symbol_table: &'a SymbolTable, _type_table: &'a TypeTable, handler: &'a Handler, - max_depth: usize, - disabled: bool, + max_depth: usize, + disabled: bool, ) -> Self

Returns a new static analyzer given a symbol table and error handler.

source

pub(crate) fn emit_err(&self, err: StaticAnalyzerError)

Emits a type checker error.

source

pub fn emit_warning(&self, warning: StaticAnalyzerWarning)

Emits a type checker warning

source

pub(crate) fn assert_future_await( &mut self, - future: &Option<&Expression>, + future: &Option<&Expression>, span: Span, )

Type checks the awaiting of a future.

source

pub(crate) fn assert_simple_async_transition_call( @@ -35,7 +35,7 @@ span: Span, )

Assert that an async call is a “simple” one. Simple is defined as an async transition function which does not return a Future that itself takes a Future as an argument.

-

Trait Implementations§

Trait Implementations§

source§

impl<'a, N: Network> ExpressionVisitor<'a> for StaticAnalyzer<'a, N>

source§

type AdditionalInput = ()

source§

type Output = ()

source§

fn visit_access( &mut self, input: &'a AccessExpression, _: &Self::AdditionalInput, @@ -95,30 +95,30 @@ &mut self, _input: &'a UnitExpression, _additional: &Self::AdditionalInput, -) -> Self::Output

source§

impl<'a, N: Network> Pass for StaticAnalyzer<'a, N>

source§

impl<'a, N: Network> Pass for StaticAnalyzer<'a, N>

source§

type Input = (&'a Ast, &'a Handler, &'a SymbolTable, &'a TypeTable, usize, bool)

source§

type Output = Result<(), 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 StaticAnalyzer<'a, N>

source§

fn visit_program_scope(&mut self, input: &'a ProgramScope)

source§

fn visit_function(&mut self, function: &'a Function)

source§

fn visit_program(&mut self, input: &'a Program)

source§

fn visit_stub(&mut self, _input: &'a Stub)

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_stub(&mut self, _input: &'a FunctionStub)

source§

fn visit_struct_stub(&mut self, _input: &'a Composite)

source§

impl<'a, N: Network> StatementVisitor<'a> for StaticAnalyzer<'a, N>

source§

fn visit_conditional(&mut self, input: &'a ConditionalStatement)

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_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, N> Freeze for StaticAnalyzer<'a, N>

§

impl<'a, N> !RefUnwindSafe for StaticAnalyzer<'a, N>

§

impl<'a, N> !Send for StaticAnalyzer<'a, N>

§

impl<'a, N> !Sync for StaticAnalyzer<'a, N>

§

impl<'a, N> Unpin for StaticAnalyzer<'a, N>
where - N: Unpin,

§

impl<'a, N> !UnwindSafe for StaticAnalyzer<'a, N>

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.

+) -> Self::Output
Runs the compiler pass.
source§

impl<'a, N: Network> ProgramVisitor<'a> for StaticAnalyzer<'a, N>

source§

fn visit_program_scope(&mut self, input: &'a ProgramScope)

source§

fn visit_function(&mut self, function: &'a Function)

source§

fn visit_program(&mut self, input: &'a Program)

source§

fn visit_stub(&mut self, _input: &'a Stub)

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_stub(&mut self, _input: &'a FunctionStub)

source§

fn visit_struct_stub(&mut self, _input: &'a Composite)

source§

impl<'a, N: Network> StatementVisitor<'a> for StaticAnalyzer<'a, N>

source§

fn visit_conditional(&mut self, input: &'a ConditionalStatement)

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_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, N> Freeze for StaticAnalyzer<'a, N>

§

impl<'a, N> !RefUnwindSafe for StaticAnalyzer<'a, N>

§

impl<'a, N> !Send for StaticAnalyzer<'a, N>

§

impl<'a, N> !Sync for StaticAnalyzer<'a, N>

§

impl<'a, N> Unpin for StaticAnalyzer<'a, N>
where + N: Unpin,

§

impl<'a, N> !UnwindSafe for StaticAnalyzer<'a, N>

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/static_analysis/await_checker/index.html b/leo_passes/static_analysis/await_checker/index.html index d944e2c1c1..141c0877d3 100644 --- a/leo_passes/static_analysis/await_checker/index.html +++ b/leo_passes/static_analysis/await_checker/index.html @@ -1 +1 @@ -leo_passes::static_analysis::await_checker - Rust

Module leo_passes::static_analysis::await_checker

source ·

Structs§

\ No newline at end of file +leo_passes::static_analysis::await_checker - Rust
leo_passes::static_analysis

Module await_checker

source

Structs§

\ No newline at end of file diff --git a/leo_passes/static_analysis/await_checker/struct.AwaitChecker.html b/leo_passes/static_analysis/await_checker/struct.AwaitChecker.html index d2057a7e60..e075b82aef 100644 --- a/leo_passes/static_analysis/await_checker/struct.AwaitChecker.html +++ b/leo_passes/static_analysis/await_checker/struct.AwaitChecker.html @@ -1,52 +1,52 @@ -AwaitChecker in leo_passes::static_analysis::await_checker - Rust
pub struct AwaitChecker {
-    pub(crate) to_await: Vec<ConditionalTreeNode>,
+AwaitChecker in leo_passes::static_analysis::await_checker - Rust
leo_passes::static_analysis::await_checker

Struct AwaitChecker

source
pub struct AwaitChecker {
+    pub(crate) to_await: Vec<ConditionalTreeNode>,
     pub(crate) static_to_await: IndexSet<Symbol>,
-    pub(crate) enabled: bool,
-    pub(crate) max_depth: usize,
-}

Fields§

§to_await: Vec<ConditionalTreeNode>

All possible subsets of futures that must be awaited.

+ pub(crate) enabled: bool, + pub(crate) max_depth: usize, +}

Fields§

§to_await: Vec<ConditionalTreeNode>

All possible subsets of futures that must be awaited.

§static_to_await: IndexSet<Symbol>

Statically updated set of futures to await.

-
§enabled: bool

Whether or not to do full tree search for await checking.

-
§max_depth: usize

Maximum nesting depth to search for await checking.

-

Implementations§

source§

impl AwaitChecker

source

pub fn new(max_depth: usize, enabled: bool) -> Self

Initializes a new AwaitChecker.

-
source

pub fn remove(&mut self, id: &Identifier) -> bool

Remove from list. +

§enabled: bool

Whether or not to do full tree search for await checking.

+
§max_depth: usize

Maximum nesting depth to search for await checking.

+

Implementations§

source§

impl AwaitChecker

source

pub fn new(max_depth: usize, enabled: bool) -> Self

Initializes a new AwaitChecker.

+
source

pub fn remove(&mut self, id: &Identifier) -> bool

Remove from list. Returns true if there was a path where the future was not awaited in the order of the input list.

source

pub fn set_futures(&mut self, futures: IndexSet<Symbol>)

Initialize futures.

source

pub fn create_then_scope( &mut self, - is_finalize: bool, + is_finalize: bool, input: Span, -) -> Result<Vec<ConditionalTreeNode>, StaticAnalyzerWarning>

Enter scope for then branch of conditional.

+) -> Result<Vec<ConditionalTreeNode>, StaticAnalyzerWarning>

Enter scope for then branch of conditional.

source

pub fn exit_then_scope( &mut self, - is_finalize: bool, - parent_nodes: Vec<ConditionalTreeNode>, -) -> Vec<ConditionalTreeNode>

Exit scope for then branch of conditional.

+ is_finalize: bool, + parent_nodes: Vec<ConditionalTreeNode>, +) -> Vec<ConditionalTreeNode>

Exit scope for then branch of conditional.

source

pub fn exit_statement_scope( &mut self, - is_finalize: bool, - then_nodes: Vec<ConditionalTreeNode>, + is_finalize: bool, + then_nodes: Vec<ConditionalTreeNode>, )

Exit scope for conditional statement at current depth.

-

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 - 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.

+

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/static_analysis/index.html b/leo_passes/static_analysis/index.html index 18d1a6796f..7fbd61bfae 100644 --- a/leo_passes/static_analysis/index.html +++ b/leo_passes/static_analysis/index.html @@ -1 +1 @@ -leo_passes::static_analysis - Rust
\ No newline at end of file +leo_passes::static_analysis - Rust
leo_passes

Module static_analysis

source

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_passes/static_single_assignment/index.html b/leo_passes/static_single_assignment/index.html index b615977266..519392a183 100644 --- a/leo_passes/static_single_assignment/index.html +++ b/leo_passes/static_single_assignment/index.html @@ -1,4 +1,4 @@ -leo_passes::static_single_assignment - Rust

Module leo_passes::static_single_assignment

source ·
Expand description

The Static Single Assignment pass traverses the AST and converts it into SSA form. +leo_passes::static_single_assignment - Rust

leo_passes

Module static_single_assignment

source
Expand description

The Static Single Assignment pass traverses the AST and converts it into SSA form. See https://en.wikipedia.org/wiki/Static_single-assignment_form for more information. The pass also replaces DefinitionStatements with AssignmentStatements. The pass also simplifies complex expressions into a sequence of AssignStatements. For example, (a + b) * c is rewritten into $var$1 = a + b; $var$2 = $var$1 * c.

@@ -11,8 +11,7 @@ value += 2u8; } return value; -} -
+}

The SSA pass produces the following code.

function main(flag: u8, value: u8) -> u8 {
     $var$0 = flag == 0u8;
@@ -26,7 +25,6 @@
     }
     value$3 = $var$0 ? value$1 : value$2;
     return value$3;
-}
-
+}

Note that the redundant assignments have no effect on the bytecode generated by the compiler.

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_passes/static_single_assignment/rename_expression/index.html b/leo_passes/static_single_assignment/rename_expression/index.html index dbb4561d8b..1a0a58c69f 100644 --- a/leo_passes/static_single_assignment/rename_expression/index.html +++ b/leo_passes/static_single_assignment/rename_expression/index.html @@ -1 +1 @@ -leo_passes::static_single_assignment::rename_expression - Rust
\ No newline at end of file +leo_passes::static_single_assignment::rename_expression - Rust
leo_passes::static_single_assignment

Module rename_expression

source
\ No newline at end of file diff --git a/leo_passes/static_single_assignment/rename_program/index.html b/leo_passes/static_single_assignment/rename_program/index.html index 00a892ee3f..4aabb39db3 100644 --- a/leo_passes/static_single_assignment/rename_program/index.html +++ b/leo_passes/static_single_assignment/rename_program/index.html @@ -1 +1 @@ -leo_passes::static_single_assignment::rename_program - Rust
\ No newline at end of file +leo_passes::static_single_assignment::rename_program - Rust
leo_passes::static_single_assignment

Module rename_program

source
\ No newline at end of file diff --git a/leo_passes/static_single_assignment/rename_statement/index.html b/leo_passes/static_single_assignment/rename_statement/index.html index cb7cc25ba8..6dd043ed72 100644 --- a/leo_passes/static_single_assignment/rename_statement/index.html +++ b/leo_passes/static_single_assignment/rename_statement/index.html @@ -1 +1 @@ -leo_passes::static_single_assignment::rename_statement - Rust
\ No newline at end of file +leo_passes::static_single_assignment::rename_statement - Rust
leo_passes::static_single_assignment

Module rename_statement

source
\ No newline at end of file diff --git a/leo_passes/static_single_assignment/static_single_assigner/index.html b/leo_passes/static_single_assignment/static_single_assigner/index.html index 5480413a67..08d528ca17 100644 --- a/leo_passes/static_single_assignment/static_single_assigner/index.html +++ b/leo_passes/static_single_assignment/static_single_assigner/index.html @@ -1 +1 @@ -leo_passes::static_single_assignment::static_single_assigner - Rust
\ No newline at end of file +leo_passes::static_single_assignment::static_single_assigner - Rust
leo_passes::static_single_assignment

Module static_single_assigner

source

Structs§

\ 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 5f276f8092..4fa3a579d4 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 @@ -1,18 +1,18 @@ -StaticSingleAssigner in leo_passes::static_single_assignment::static_single_assigner - Rust
pub struct StaticSingleAssigner<'a> {
+StaticSingleAssigner in leo_passes::static_single_assignment::static_single_assigner - Rust
leo_passes::static_single_assignment::static_single_assigner

Struct StaticSingleAssigner

source
pub struct StaticSingleAssigner<'a> {
     pub(crate) node_builder: &'a NodeBuilder,
     pub(crate) symbol_table: &'a SymbolTable,
     pub(crate) type_table: &'a TypeTable,
     pub(crate) rename_table: RenameTable,
-    pub(crate) is_lhs: bool,
+    pub(crate) is_lhs: bool,
     pub(crate) assigner: &'a Assigner,
-    pub(crate) program: Option<Symbol>,
+    pub(crate) program: Option<Symbol>,
 }

Fields§

§node_builder: &'a NodeBuilder

A counter used to generate unique node IDs.

§symbol_table: &'a SymbolTable

The SymbolTable of the program.

§type_table: &'a TypeTable

A mapping from node IDs to their types.

§rename_table: RenameTable

The RenameTable for the current basic block in the AST

-
§is_lhs: bool

A flag to determine whether or not the traversal is on the left-hand side of a definition or an assignment.

+
§is_lhs: bool

A flag to determine whether or not the traversal is on the left-hand side of a definition or an assignment.

§assigner: &'a Assigner

A struct used to construct (unique) assignment statements.

-
§program: Option<Symbol>

The main program name.

+
§program: Option<Symbol>

The main program name.

Implementations§

source§

impl<'a> StaticSingleAssigner<'a>

source

pub(crate) fn new( node_builder: &'a NodeBuilder, symbol_table: &'a SymbolTable, @@ -43,8 +43,8 @@

source§

fn consume_ternary(&mut self, input: TernaryExpression) -> Self::Output

Consumes a ternary expression, accumulating any statements that are generated.

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.

-
source§

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.

-
source§

type Output = Function

source§

impl<'a> Pass for StaticSingleAssigner<'a>

source§

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.

+
source§

type Output = Function

source§

impl<'a> Pass for StaticSingleAssigner<'a>

source§

type Input = (Ast, &'a NodeBuilder, &'a Assigner, &'a SymbolTable, &'a TypeTable)

source§

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<'_>

source§

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.

@@ -72,28 +72,28 @@ ) -> Self::Output

Consumes the expressions associated with ExpressionStatement, returning the simplified ExpressionStatement.

source§

fn consume_return(&mut self, input: ReturnStatement) -> Self::Output

Reconstructs the expression associated with the return statement, returning a simplified ReturnStatement. Note that type checking guarantees that there is at most one ReturnStatement in a block.

-
source§

type Output = Vec<Statement>

source§

fn consume_const(&mut self, _: ConstDeclaration) -> Self::Output

source§

fn consume_iteration(&mut self, _input: IterationStatement) -> Self::Output

source§

fn consume_statement(&mut self, input: Statement) -> Self::Output

source§

impl StructConsumer for StaticSingleAssigner<'_>

source§

fn consume_struct(&mut self, struct_: Composite) -> Self::Output

Reconstructs records in the program, ordering its fields such that owner and is the first field.

-
source§

type Output = Composite

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 - 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.

+
source§

type Output = Vec<Statement>

source§

fn consume_const(&mut self, _: ConstDeclaration) -> Self::Output

source§

fn consume_iteration(&mut self, _input: IterationStatement) -> Self::Output

source§

fn consume_statement(&mut self, input: Statement) -> Self::Output

source§

impl StructConsumer for StaticSingleAssigner<'_>

source§

fn consume_struct(&mut self, struct_: Composite) -> Self::Output

Reconstructs records in the program, ordering its fields such that owner and is the first field.

+
source§

type Output = Composite

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/symbol_table_creation/creator/index.html b/leo_passes/symbol_table_creation/creator/index.html index 7f771defc7..ed1c4aa8ac 100644 --- a/leo_passes/symbol_table_creation/creator/index.html +++ b/leo_passes/symbol_table_creation/creator/index.html @@ -1,3 +1,3 @@ -leo_passes::symbol_table_creation::creator - Rust

Module leo_passes::symbol_table_creation::creator

source ·

Structs§

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/symbol_table_creation/index.html b/leo_passes/symbol_table_creation/index.html index d2532ff7c6..f248ed8aea 100644 --- a/leo_passes/symbol_table_creation/index.html +++ b/leo_passes/symbol_table_creation/index.html @@ -1 +1 @@ -leo_passes::symbol_table_creation - Rust

Module leo_passes::symbol_table_creation

source ·

Re-exports§

Modules§

\ No newline at end of file +leo_passes::symbol_table_creation - Rust
leo_passes

Module symbol_table_creation

source

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_passes/type_checking/check_expressions/fn.return_incorrect_type.html b/leo_passes/type_checking/check_expressions/fn.return_incorrect_type.html index b405d57401..92a3d410d3 100644 --- a/leo_passes/type_checking/check_expressions/fn.return_incorrect_type.html +++ b/leo_passes/type_checking/check_expressions/fn.return_incorrect_type.html @@ -1,5 +1,5 @@ -return_incorrect_type in leo_passes::type_checking::check_expressions - Rust
fn return_incorrect_type(
-    t1: Option<Type>,
-    t2: Option<Type>,
-    expected: &Option<Type>,
-) -> Option<Type>
\ No newline at end of file +return_incorrect_type in leo_passes::type_checking::check_expressions - Rust
leo_passes::type_checking::check_expressions

Function return_incorrect_type

source
fn return_incorrect_type(
+    t1: Option<Type>,
+    t2: Option<Type>,
+    expected: &Option<Type>,
+) -> Option<Type>
\ No newline at end of file diff --git a/leo_passes/type_checking/check_expressions/index.html b/leo_passes/type_checking/check_expressions/index.html index 8605235f97..ed79c7f054 100644 --- a/leo_passes/type_checking/check_expressions/index.html +++ b/leo_passes/type_checking/check_expressions/index.html @@ -1 +1 @@ -leo_passes::type_checking::check_expressions - Rust

Module leo_passes::type_checking::check_expressions

source ·

Functions§

\ No newline at end of file +leo_passes::type_checking::check_expressions - Rust
leo_passes::type_checking

Module check_expressions

source

Functions§

\ No newline at end of file diff --git a/leo_passes/type_checking/check_program/index.html b/leo_passes/type_checking/check_program/index.html index 8d1903191e..b8226dc1b9 100644 --- a/leo_passes/type_checking/check_program/index.html +++ b/leo_passes/type_checking/check_program/index.html @@ -1 +1 @@ -leo_passes::type_checking::check_program - Rust

Module leo_passes::type_checking::check_program

source ·
\ No newline at end of file +leo_passes::type_checking::check_program - Rust
leo_passes::type_checking

Module check_program

source
\ No newline at end of file diff --git a/leo_passes/type_checking/check_statements/index.html b/leo_passes/type_checking/check_statements/index.html index cee218f630..8036118776 100644 --- a/leo_passes/type_checking/check_statements/index.html +++ b/leo_passes/type_checking/check_statements/index.html @@ -1 +1 @@ -leo_passes::type_checking::check_statements - Rust

Module leo_passes::type_checking::check_statements

source ·
\ No newline at end of file +leo_passes::type_checking::check_statements - Rust
leo_passes::type_checking

Module check_statements

source
\ No newline at end of file diff --git a/leo_passes/type_checking/checker/constant.ADDRESS_TYPE.html b/leo_passes/type_checking/checker/constant.ADDRESS_TYPE.html index b4759adc1f..9f1fc506c6 100644 --- a/leo_passes/type_checking/checker/constant.ADDRESS_TYPE.html +++ b/leo_passes/type_checking/checker/constant.ADDRESS_TYPE.html @@ -1 +1 @@ -ADDRESS_TYPE in leo_passes::type_checking::checker - Rust

Constant leo_passes::type_checking::checker::ADDRESS_TYPE

source ·
const ADDRESS_TYPE: Type;
\ No newline at end of file +ADDRESS_TYPE in leo_passes::type_checking::checker - Rust
leo_passes::type_checking::checker

Constant ADDRESS_TYPE

source
const ADDRESS_TYPE: Type;
\ No newline at end of file diff --git a/leo_passes/type_checking/checker/constant.BOOLEAN_TYPE.html b/leo_passes/type_checking/checker/constant.BOOLEAN_TYPE.html index f8a1bdfc70..d204667a2c 100644 --- a/leo_passes/type_checking/checker/constant.BOOLEAN_TYPE.html +++ b/leo_passes/type_checking/checker/constant.BOOLEAN_TYPE.html @@ -1 +1 @@ -BOOLEAN_TYPE in leo_passes::type_checking::checker - Rust

Constant leo_passes::type_checking::checker::BOOLEAN_TYPE

source ·
const BOOLEAN_TYPE: Type;
\ No newline at end of file +BOOLEAN_TYPE in leo_passes::type_checking::checker - Rust
leo_passes::type_checking::checker

Constant BOOLEAN_TYPE

source
const BOOLEAN_TYPE: Type;
\ No newline at end of file diff --git a/leo_passes/type_checking/checker/constant.FIELD_TYPE.html b/leo_passes/type_checking/checker/constant.FIELD_TYPE.html index b57b696423..c6c461418a 100644 --- a/leo_passes/type_checking/checker/constant.FIELD_TYPE.html +++ b/leo_passes/type_checking/checker/constant.FIELD_TYPE.html @@ -1 +1 @@ -FIELD_TYPE in leo_passes::type_checking::checker - Rust

Constant leo_passes::type_checking::checker::FIELD_TYPE

source ·
const FIELD_TYPE: Type;
\ No newline at end of file +FIELD_TYPE in leo_passes::type_checking::checker - Rust
leo_passes::type_checking::checker

Constant FIELD_TYPE

source
const FIELD_TYPE: Type;
\ No newline at end of file diff --git a/leo_passes/type_checking/checker/constant.GROUP_TYPE.html b/leo_passes/type_checking/checker/constant.GROUP_TYPE.html index 332a2f2aed..f4f2af59f9 100644 --- a/leo_passes/type_checking/checker/constant.GROUP_TYPE.html +++ b/leo_passes/type_checking/checker/constant.GROUP_TYPE.html @@ -1 +1 @@ -GROUP_TYPE in leo_passes::type_checking::checker - Rust

Constant leo_passes::type_checking::checker::GROUP_TYPE

source ·
const GROUP_TYPE: Type;
\ No newline at end of file +GROUP_TYPE in leo_passes::type_checking::checker - Rust
leo_passes::type_checking::checker

Constant GROUP_TYPE

source
const GROUP_TYPE: Type;
\ No newline at end of file diff --git a/leo_passes/type_checking/checker/constant.INT_TYPES.html b/leo_passes/type_checking/checker/constant.INT_TYPES.html index 7a04d0207a..2c70f1c957 100644 --- a/leo_passes/type_checking/checker/constant.INT_TYPES.html +++ b/leo_passes/type_checking/checker/constant.INT_TYPES.html @@ -1 +1 @@ -INT_TYPES in leo_passes::type_checking::checker - Rust

Constant leo_passes::type_checking::checker::INT_TYPES

source ·
const INT_TYPES: [Type; 10];
\ No newline at end of file +INT_TYPES in leo_passes::type_checking::checker - Rust
leo_passes::type_checking::checker

Constant INT_TYPES

source
const INT_TYPES: [Type; 10];
\ No newline at end of file diff --git a/leo_passes/type_checking/checker/constant.MAGNITUDE_TYPES.html b/leo_passes/type_checking/checker/constant.MAGNITUDE_TYPES.html index 1fd5c6787e..224e73c4a9 100644 --- a/leo_passes/type_checking/checker/constant.MAGNITUDE_TYPES.html +++ b/leo_passes/type_checking/checker/constant.MAGNITUDE_TYPES.html @@ -1 +1 @@ -MAGNITUDE_TYPES in leo_passes::type_checking::checker - Rust

Constant leo_passes::type_checking::checker::MAGNITUDE_TYPES

source ·
const MAGNITUDE_TYPES: [Type; 3];
\ No newline at end of file +MAGNITUDE_TYPES in leo_passes::type_checking::checker - Rust
leo_passes::type_checking::checker

Constant MAGNITUDE_TYPES

source
const MAGNITUDE_TYPES: [Type; 3];
\ No newline at end of file diff --git a/leo_passes/type_checking/checker/constant.SCALAR_TYPE.html b/leo_passes/type_checking/checker/constant.SCALAR_TYPE.html index 65f14005f9..703e91e4f8 100644 --- a/leo_passes/type_checking/checker/constant.SCALAR_TYPE.html +++ b/leo_passes/type_checking/checker/constant.SCALAR_TYPE.html @@ -1 +1 @@ -SCALAR_TYPE in leo_passes::type_checking::checker - Rust

Constant leo_passes::type_checking::checker::SCALAR_TYPE

source ·
const SCALAR_TYPE: Type;
\ No newline at end of file +SCALAR_TYPE in leo_passes::type_checking::checker - Rust
leo_passes::type_checking::checker

Constant SCALAR_TYPE

source
const SCALAR_TYPE: Type;
\ No newline at end of file diff --git a/leo_passes/type_checking/checker/constant.SIGNATURE_TYPE.html b/leo_passes/type_checking/checker/constant.SIGNATURE_TYPE.html index 3323b90599..7bf955d6ac 100644 --- a/leo_passes/type_checking/checker/constant.SIGNATURE_TYPE.html +++ b/leo_passes/type_checking/checker/constant.SIGNATURE_TYPE.html @@ -1 +1 @@ -SIGNATURE_TYPE in leo_passes::type_checking::checker - Rust

Constant leo_passes::type_checking::checker::SIGNATURE_TYPE

source ·
const SIGNATURE_TYPE: Type;
\ No newline at end of file +SIGNATURE_TYPE in leo_passes::type_checking::checker - Rust
leo_passes::type_checking::checker

Constant SIGNATURE_TYPE

source
const SIGNATURE_TYPE: Type;
\ No newline at end of file diff --git a/leo_passes/type_checking/checker/constant.SIGNED_INT_TYPES.html b/leo_passes/type_checking/checker/constant.SIGNED_INT_TYPES.html index 1af7c81632..69e930042a 100644 --- a/leo_passes/type_checking/checker/constant.SIGNED_INT_TYPES.html +++ b/leo_passes/type_checking/checker/constant.SIGNED_INT_TYPES.html @@ -1 +1 @@ -SIGNED_INT_TYPES in leo_passes::type_checking::checker - Rust

Constant leo_passes::type_checking::checker::SIGNED_INT_TYPES

source ·
const SIGNED_INT_TYPES: [Type; 5];
\ No newline at end of file +SIGNED_INT_TYPES in leo_passes::type_checking::checker - Rust
leo_passes::type_checking::checker

Constant SIGNED_INT_TYPES

source
const SIGNED_INT_TYPES: [Type; 5];
\ No newline at end of file diff --git a/leo_passes/type_checking/checker/constant.UNSIGNED_INT_TYPES.html b/leo_passes/type_checking/checker/constant.UNSIGNED_INT_TYPES.html index 589d6098ac..7e0f519da3 100644 --- a/leo_passes/type_checking/checker/constant.UNSIGNED_INT_TYPES.html +++ b/leo_passes/type_checking/checker/constant.UNSIGNED_INT_TYPES.html @@ -1 +1 @@ -UNSIGNED_INT_TYPES in leo_passes::type_checking::checker - Rust

Constant leo_passes::type_checking::checker::UNSIGNED_INT_TYPES

source ·
const UNSIGNED_INT_TYPES: [Type; 5];
\ No newline at end of file +UNSIGNED_INT_TYPES in leo_passes::type_checking::checker - Rust
leo_passes::type_checking::checker

Constant UNSIGNED_INT_TYPES

source
const UNSIGNED_INT_TYPES: [Type; 5];
\ No newline at end of file diff --git a/leo_passes/type_checking/checker/fn.types_to_string.html b/leo_passes/type_checking/checker/fn.types_to_string.html index 51e3c04a84..61f42d8b97 100644 --- a/leo_passes/type_checking/checker/fn.types_to_string.html +++ b/leo_passes/type_checking/checker/fn.types_to_string.html @@ -1 +1 @@ -types_to_string in leo_passes::type_checking::checker - Rust

Function leo_passes::type_checking::checker::types_to_string

source ·
fn types_to_string(types: &[Type]) -> String
\ No newline at end of file +types_to_string in leo_passes::type_checking::checker - Rust
leo_passes::type_checking::checker

Function types_to_string

source
fn types_to_string(types: &[Type]) -> String
\ No newline at end of file diff --git a/leo_passes/type_checking/checker/index.html b/leo_passes/type_checking/checker/index.html index 44c2019dec..adfd10393e 100644 --- a/leo_passes/type_checking/checker/index.html +++ b/leo_passes/type_checking/checker/index.html @@ -1 +1 @@ -leo_passes::type_checking::checker - Rust

Module leo_passes::type_checking::checker

source ·

Structs§

Constants§

Functions§

\ No newline at end of file +leo_passes::type_checking::checker - Rust
leo_passes::type_checking

Module checker

source

Structs§

Constants§

Functions§

\ No newline at end of file diff --git a/leo_passes/type_checking/checker/struct.TypeChecker.html b/leo_passes/type_checking/checker/struct.TypeChecker.html index 3cc66101ae..e31c9e764e 100644 --- a/leo_passes/type_checking/checker/struct.TypeChecker.html +++ b/leo_passes/type_checking/checker/struct.TypeChecker.html @@ -1,114 +1,114 @@ -TypeChecker in leo_passes::type_checking::checker - Rust

Struct leo_passes::type_checking::checker::TypeChecker

source ·
pub struct TypeChecker<'a, N: Network> {
-    pub(crate) symbol_table: RefCell<SymbolTable>,
+TypeChecker in leo_passes::type_checking::checker - Rust
leo_passes::type_checking::checker

Struct TypeChecker

source
pub struct TypeChecker<'a, N: Network> {
+    pub(crate) symbol_table: RefCell<SymbolTable>,
     pub(crate) type_table: &'a TypeTable,
     pub(crate) struct_graph: StructGraph,
     pub(crate) call_graph: CallGraph,
     pub(crate) handler: &'a Handler,
     pub(crate) scope_state: ScopeState,
-    pub(crate) async_function_input_types: IndexMap<Location, Vec<Type>>,
+    pub(crate) async_function_input_types: IndexMap<Location, Vec<Type>>,
     pub(crate) used_structs: IndexSet<Symbol>,
-    phantom: PhantomData<N>,
-}

Fields§

§symbol_table: RefCell<SymbolTable>

The symbol table for the program.

+ phantom: PhantomData<N>, +}

Fields§

§symbol_table: RefCell<SymbolTable>

The symbol table for the program.

§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.

§scope_state: ScopeState

The state of the current scope being traversed.

-
§async_function_input_types: IndexMap<Location, Vec<Type>>

Mapping from async function name to the inferred input types.

+
§async_function_input_types: IndexMap<Location, Vec<Type>>

Mapping from async function name to the inferred input types.

§used_structs: IndexSet<Symbol>

The set of used composites.

-
§phantom: PhantomData<N>

Implementations§

source§

impl<'a, N: Network> TypeChecker<'a, N>

source

pub fn new( +

§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, ) -> 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 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

fn check_type( &self, - is_valid: impl Fn(&Type) -> bool, - error_string: String, - type_: &Option<Type>, + is_valid: impl Fn(&Type) -> bool, + error_string: String, + type_: &Option<Type>, span: Span, )

Emits an error to the handler if the given type is invalid.

source

pub(crate) fn check_eq_types( &self, - t1: &Option<Type>, - t2: &Option<Type>, + t1: &Option<Type>, + t2: &Option<Type>, span: Span, )

Emits an error if the two given types are not equal.

source

pub(crate) fn assert_and_return_type( &mut self, actual: Type, - expected: &Option<Type>, + expected: &Option<Type>, span: Span, ) -> Type

Use this method when you know the actual type. Emits an error to the handler if the actual type is not equal to the expected type.

source

pub(crate) fn assert_type( &mut self, - actual: &Option<Type>, + actual: &Option<Type>, expected: &Type, span: Span, )

Emits an error to the error handler if the actual type is not equal to the expected type.

-
source

pub(crate) fn assert_address_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the error handler if the given type is not an address.

-
source

pub(crate) fn assert_bool_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a boolean.

-
source

pub(crate) fn assert_field_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a field.

-
source

pub(crate) fn assert_group_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a group.

-
source

pub(crate) fn assert_scalar_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a scalar.

-
source

pub(crate) fn assert_signature_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a signature.

-
source

pub(crate) fn assert_int_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not an integer.

-
source

pub(crate) fn assert_signed_int_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a signed integer.

-
source

pub(crate) fn assert_unsigned_int_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not an unsigned integer.

-
source

pub(crate) fn assert_magnitude_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a magnitude (u8, u16, u32).

-
source

pub(crate) fn assert_bool_int_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a boolean or an integer.

-
source

pub(crate) fn assert_field_int_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a field or integer.

-
source

pub(crate) fn assert_field_group_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a field or group.

+
source

pub(crate) fn assert_address_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the error handler if the given type is not an address.

+
source

pub(crate) fn assert_bool_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a boolean.

+
source

pub(crate) fn assert_field_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a field.

+
source

pub(crate) fn assert_group_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a group.

+
source

pub(crate) fn assert_scalar_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a scalar.

+
source

pub(crate) fn assert_signature_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a signature.

+
source

pub(crate) fn assert_int_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not an integer.

+
source

pub(crate) fn assert_signed_int_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a signed integer.

+
source

pub(crate) fn assert_unsigned_int_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not an unsigned integer.

+
source

pub(crate) fn assert_magnitude_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a magnitude (u8, u16, u32).

+
source

pub(crate) fn assert_bool_int_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a boolean or an integer.

+
source

pub(crate) fn assert_field_int_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a field or integer.

+
source

pub(crate) fn assert_field_group_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a field or group.

source

pub(crate) fn assert_field_group_int_type( &self, - type_: &Option<Type>, + type_: &Option<Type>, span: Span, )

Emits an error to the handler if the given type is not a field, group, or integer.

source

pub(crate) fn assert_field_group_signed_int_type( &self, - type_: &Option<Type>, + type_: &Option<Type>, span: Span, )

Emits an error to the handler if the given type is not a field, group, or signed integer.

source

pub(crate) fn assert_field_scalar_int_type( &self, - type_: &Option<Type>, + type_: &Option<Type>, span: Span, )

Emits an error to the handler if the given type is not a field, scalar, or integer.

source

pub(crate) fn assert_field_group_scalar_int_type( &self, - type_: &Option<Type>, + type_: &Option<Type>, span: Span, )

Emits an error to the handler if the given type is not a field, group, scalar, integer, or boolean.

-
source

pub(crate) fn assert_castable_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a field, group, scalar, integer, boolean, or address.

+
source

pub(crate) fn assert_castable_type(&self, type_: &Option<Type>, span: Span)

Emits an error to the handler if the given type is not a field, group, scalar, integer, boolean, or address.

source

pub(crate) fn get_core_constant( &self, type_: &Type, constant: &Identifier, -) -> Option<CoreConstant>

Type checks the inputs to an associated constant and returns the expected output type.

+) -> Option<CoreConstant>

Type checks the inputs to an associated constant and returns the expected output type.

source

pub(crate) fn get_core_function_call( &self, struct_: &Identifier, function: &Identifier, -) -> Option<CoreFunction>

Emits an error if the struct is not a core library struct. +) -> Option<CoreFunction>

Emits an error if the struct is not a core library struct. Emits an error if the function is not supported by the struct.

source

pub(crate) fn check_core_function_call( &mut self, core_function: CoreFunction, - arguments: &[(Option<Type>, Span)], + arguments: &[(Option<Type>, Span)], function_span: Span, -) -> Option<Type>

Type checks the inputs to a core function call and returns the expected output type. +) -> Option<Type>

Type checks the inputs to a core function call and returns the expected output type. Emits an error if the correct number of arguments are not provided. Emits an error if the arguments are not of the correct type.

source

pub(crate) fn check_expected_struct( &mut self, struct_: &Composite, - expected: &Option<Type>, + expected: &Option<Type>, span: Span, ) -> Type

Returns the struct type and emits an error if the expected type does not match.

source

pub(crate) fn assert_member_is_not_record( @@ -117,33 +117,33 @@ parent: Symbol, type_: &Type, )

Emits an error if the struct member is a record type.

-
source

pub(crate) fn assert_type_is_valid(&mut self, type_: &Type, span: Span) -> bool

Emits an error if the type or its constituent types is not valid.

+
source

pub(crate) fn assert_type_is_valid(&mut self, type_: &Type, span: Span) -> bool

Emits an error if the type or its constituent types is not valid.

source

pub(crate) fn assert_mapping_type( &self, - type_: &Option<Type>, + type_: &Option<Type>, span: Span, -) -> Option<MappingType>

Emits an error if the type is not a mapping.

-
source

pub(crate) fn assert_array_type(&self, type_: &Option<Type>, span: Span)

Emits an error if the type is not an array.

+) -> Option<MappingType>

Emits an error if the type is not a mapping.

+
source

pub(crate) fn assert_array_type(&self, type_: &Option<Type>, span: Span)

Emits an error if the type is not an array.

source

pub(crate) fn check_function_signature(&mut self, function: &Function)

Helper function to check that the input and output of function are valid

source

pub(crate) fn lookup_struct( &mut self, - program: Option<Symbol>, + program: Option<Symbol>, name: Symbol, -) -> Option<Composite>

Wrapper around lookup_struct that additionally records all structs that are used in the program.

+) -> Option<Composite>

Wrapper around lookup_struct that additionally records all structs that are used in the program.

source

pub(crate) fn insert_variable( &mut self, - inferred_type: Option<Type>, + inferred_type: Option<Type>, name: &Identifier, type_: Type, - index: usize, + index: usize, span: Span, )

Inserts variable to symbol table.

source

pub(crate) fn check_access_allowed( &mut self, - name: &str, - finalize_op: bool, + name: &str, + finalize_op: bool, span: Span, -)

Trait Implementations§

Trait Implementations§

source§

impl<'a, N: Network> ExpressionVisitor<'a> for TypeChecker<'a, N>

source§

type AdditionalInput = Option<Type>

source§

type Output = Option<Type>

source§

fn visit_expression( &mut self, input: &'a Expression, additional: &Self::AdditionalInput, @@ -203,28 +203,28 @@ &mut self, input: &'a UnitExpression, _additional: &Self::AdditionalInput, -) -> Self::Output

source§

impl<'a, N: Network> Pass for TypeChecker<'a, N>

source§

type Input = (&'a Ast, &'a Handler, SymbolTable, &'a TypeTable)

source§

type Output = Result<(SymbolTable, DiGraph<Symbol>, DiGraph<Symbol>), LeoError>

source§

fn do_pass((ast, handler, st, tt): 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 - 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.

+) -> Self::Output
source§

impl<'a, N: Network> Pass for TypeChecker<'a, N>

source§

type Input = (&'a Ast, &'a Handler, SymbolTable, &'a TypeTable)

source§

type Output = Result<(SymbolTable, DiGraph<Symbol>, DiGraph<Symbol>), LeoError>

source§

fn do_pass((ast, handler, st, tt): 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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_passes/type_checking/index.html b/leo_passes/type_checking/index.html index b1330eed93..8557afac99 100644 --- a/leo_passes/type_checking/index.html +++ b/leo_passes/type_checking/index.html @@ -1 +1 @@ -leo_passes::type_checking - Rust
\ No newline at end of file +leo_passes::type_checking - Rust
leo_passes

Module type_checking

source

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_passes/type_checking/scope_state/index.html b/leo_passes/type_checking/scope_state/index.html index a66db4615d..fcb31d3e65 100644 --- a/leo_passes/type_checking/scope_state/index.html +++ b/leo_passes/type_checking/scope_state/index.html @@ -1 +1 @@ -leo_passes::type_checking::scope_state - Rust

Module leo_passes::type_checking::scope_state

source ·

Structs§

\ No newline at end of file +leo_passes::type_checking::scope_state - Rust
leo_passes::type_checking

Module scope_state

source

Structs§

\ No newline at end of file diff --git a/leo_passes/type_checking/scope_state/struct.ScopeState.html b/leo_passes/type_checking/scope_state/struct.ScopeState.html index def830c1ff..e7ad509127 100644 --- a/leo_passes/type_checking/scope_state/struct.ScopeState.html +++ b/leo_passes/type_checking/scope_state/struct.ScopeState.html @@ -1,50 +1,50 @@ -ScopeState in leo_passes::type_checking::scope_state - Rust

Struct leo_passes::type_checking::scope_state::ScopeState

source ·
pub struct ScopeState {
-    pub(crate) function: Option<Symbol>,
-    pub(crate) variant: Option<Variant>,
-    pub(crate) has_return: bool,
-    pub(crate) is_return: bool,
-    pub(crate) program_name: Option<Symbol>,
-    pub(crate) is_stub: bool,
+ScopeState in leo_passes::type_checking::scope_state - Rust
leo_passes::type_checking::scope_state

Struct ScopeState

source
pub struct ScopeState {
+    pub(crate) function: Option<Symbol>,
+    pub(crate) variant: Option<Variant>,
+    pub(crate) has_return: bool,
+    pub(crate) is_return: bool,
+    pub(crate) program_name: Option<Symbol>,
+    pub(crate) is_stub: bool,
     pub(crate) futures: IndexMap<Symbol, Location>,
-    pub(crate) has_called_finalize: bool,
-    pub(crate) is_conditional: bool,
-    pub(crate) is_call: bool,
-    pub(crate) call_location: Option<Location>,
-}

Fields§

§function: Option<Symbol>

The name of the function that we are currently traversing.

-
§variant: Option<Variant>

The variant of the function that we are currently traversing.

-
§has_return: bool

Whether or not the function that we are currently traversing has a return statement.

-
§is_return: bool

Whether or not we are currently traversing a return statement.

-
§program_name: Option<Symbol>

Current program name.

-
§is_stub: bool

Whether or not we are currently traversing a stub.

+ pub(crate) has_called_finalize: bool, + pub(crate) is_conditional: bool, + pub(crate) is_call: bool, + pub(crate) call_location: Option<Location>, +}

Fields§

§function: Option<Symbol>

The name of the function that we are currently traversing.

+
§variant: Option<Variant>

The variant of the function that we are currently traversing.

+
§has_return: bool

Whether or not the function that we are currently traversing has a return statement.

+
§is_return: bool

Whether or not we are currently traversing a return statement.

+
§program_name: Option<Symbol>

Current program name.

+
§is_stub: bool

Whether or not we are currently traversing a stub.

§futures: IndexMap<Symbol, Location>

The futures that must be propagated to an async function.

-
§has_called_finalize: bool

Whether the finalize caller has called the finalize function.

-
§is_conditional: bool

Whether currently traversing a conditional statement.

-
§is_call: bool

Whether the current function is a call.

-
§call_location: Option<Location>

Location of most recent external call that produced a future.

+
§has_called_finalize: bool

Whether the finalize caller has called the finalize function.

+
§is_conditional: bool

Whether currently traversing a conditional statement.

+
§is_call: bool

Whether the current function is a call.

+
§call_location: Option<Location>

Location of most recent external call that produced a future.

Implementations§

source§

impl ScopeState

source

pub fn new() -> Self

Initializes a new ScopeState.

source

pub fn initialize_function_state(&mut self, variant: Variant)

Initialize state variables for new function.

source

pub fn location(&self) -> Location

Get the current location.

-

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 - 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.

+

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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_retriever/all.html b/leo_retriever/all.html index b57ee09ed8..01256a8877 100644 --- a/leo_retriever/all.html +++ b/leo_retriever/all.html @@ -1 +1 @@ -List of all items in this crate
\ No newline at end of file +List of all items in this crate
\ No newline at end of file diff --git a/leo_retriever/index.html b/leo_retriever/index.html index d0c8269ba8..cf5675dfe9 100644 --- a/leo_retriever/index.html +++ b/leo_retriever/index.html @@ -1 +1 @@ -leo_retriever - Rust

Crate leo_retriever

source ·

Re-exports§

Modules§

\ No newline at end of file +leo_retriever - Rust

Crate leo_retriever

source

Re-exports§

Modules§

\ No newline at end of file diff --git a/leo_retriever/program_context/dependency/index.html b/leo_retriever/program_context/dependency/index.html index 9361ee0797..d041ff4513 100644 --- a/leo_retriever/program_context/dependency/index.html +++ b/leo_retriever/program_context/dependency/index.html @@ -1 +1 @@ -leo_retriever::program_context::dependency - Rust

Module leo_retriever::program_context::dependency

source ·

Structs§

\ No newline at end of file +leo_retriever::program_context::dependency - Rust
leo_retriever::program_context

Module dependency

source

Structs§

\ No newline at end of file diff --git a/leo_retriever/program_context/dependency/struct.Dependency.html b/leo_retriever/program_context/dependency/struct.Dependency.html index d2d1435834..d70b2f9300 100644 --- a/leo_retriever/program_context/dependency/struct.Dependency.html +++ b/leo_retriever/program_context/dependency/struct.Dependency.html @@ -1,53 +1,53 @@ -Dependency in leo_retriever::program_context::dependency - Rust

Struct leo_retriever::program_context::dependency::Dependency

source ·
pub struct Dependency {
-    name: String,
+Dependency in leo_retriever::program_context::dependency - Rust
leo_retriever::program_context::dependency

Struct Dependency

source
pub struct Dependency {
+    name: String,
     location: Location,
-    network: Option<NetworkName>,
-    path: Option<PathBuf>,
-}

Fields§

§name: String§location: Location§network: Option<NetworkName>§path: Option<PathBuf>

Implementations§

source§

impl Dependency

source

pub fn new( - name: String, + network: Option<NetworkName>, + path: Option<PathBuf>, +}

Fields§

§name: String§location: Location§network: Option<NetworkName>§path: Option<PathBuf>

Implementations§

source§

impl Dependency

source

pub fn new( + name: String, location: Location, - network: Option<NetworkName>, - path: Option<PathBuf>, -) -> Self

source

pub fn name(&self) -> &String

source

pub fn location(&self) -> &Location

source

pub fn network(&self) -> &Option<NetworkName>

source

pub fn path(&self) -> &Option<PathBuf>

Trait Implementations§

source§

impl Clone for Dependency

source§

fn clone(&self) -> Dependency

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 Dependency

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Dependency

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 From<&Dependency> for Symbol

source§

fn from(context: &Dependency) -> Self

Converts to this type from the input type.
source§

impl From<Dependency> for ProgramContext

source§

fn from(dependency: Dependency) -> Self

Converts to this type from the input type.
source§

impl Hash for Dependency

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where - H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Dependency

source§

fn eq(&self, other: &Dependency) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for Dependency

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 Eq for Dependency

source§

impl StructuralPartialEq for Dependency

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where + network: Option<NetworkName>, + path: Option<PathBuf>, +) -> Self

source

pub fn name(&self) -> &String

source

pub fn location(&self) -> &Location

source

pub fn network(&self) -> &Option<NetworkName>

source

pub fn path(&self) -> &Option<PathBuf>

Trait Implementations§

source§

impl Clone for Dependency

source§

fn clone(&self) -> Dependency

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 Dependency

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Dependency

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 From<&Dependency> for Symbol

source§

fn from(context: &Dependency) -> Self

Converts to this type from the input type.
source§

impl From<Dependency> for ProgramContext

source§

fn from(dependency: Dependency) -> Self

Converts to this type from the input type.
source§

impl Hash for Dependency

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Dependency

source§

fn eq(&self, other: &Dependency) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for Dependency

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 Eq for Dependency

source§

impl StructuralPartialEq for Dependency

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_retriever/program_context/index.html b/leo_retriever/program_context/index.html index e6a7b5c08e..959e26e420 100644 --- a/leo_retriever/program_context/index.html +++ b/leo_retriever/program_context/index.html @@ -1 +1 @@ -leo_retriever::program_context - Rust

Module leo_retriever::program_context

source ·

Re-exports§

Modules§

Structs§

\ No newline at end of file +leo_retriever::program_context - Rust
leo_retriever

Module program_context

source

Re-exports§

Modules§

Structs§

\ No newline at end of file diff --git a/leo_retriever/program_context/location/enum.Location.html b/leo_retriever/program_context/location/enum.Location.html index c06181119e..d38acb59c2 100644 --- a/leo_retriever/program_context/location/enum.Location.html +++ b/leo_retriever/program_context/location/enum.Location.html @@ -1,47 +1,47 @@ -Location in leo_retriever::program_context::location - Rust

Enum leo_retriever::program_context::location::Location

source ·
pub enum Location {
+Location in leo_retriever::program_context::location - Rust
leo_retriever::program_context::location

Enum Location

source
pub enum Location {
     Network,
     Local,
     Git,
-}

Variants§

§

Network

§

Local

§

Git

Trait Implementations§

source§

impl Clone for Location

source§

fn clone(&self) -> Location

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 Location

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Location

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 Hash for Location

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where - H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Location

source§

fn eq(&self, other: &Location) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for Location

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 Eq for Location

source§

impl StructuralPartialEq for Location

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +}

Variants§

§

Network

§

Local

§

Git

Trait Implementations§

source§

impl Clone for Location

source§

fn clone(&self) -> Location

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 Location

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Location

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 Hash for Location

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Location

source§

fn eq(&self, other: &Location) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for Location

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 Eq for Location

source§

impl StructuralPartialEq for Location

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_retriever/program_context/location/index.html b/leo_retriever/program_context/location/index.html index 81a905910a..76271e3ea7 100644 --- a/leo_retriever/program_context/location/index.html +++ b/leo_retriever/program_context/location/index.html @@ -1 +1 @@ -leo_retriever::program_context::location - Rust

Module leo_retriever::program_context::location

source ·

Enums§

\ No newline at end of file +leo_retriever::program_context::location - Rust
leo_retriever::program_context

Module location

source

Enums§

\ No newline at end of file diff --git a/leo_retriever/program_context/lock_file_entry/index.html b/leo_retriever/program_context/lock_file_entry/index.html index b88b3183b3..b097e85ba6 100644 --- a/leo_retriever/program_context/lock_file_entry/index.html +++ b/leo_retriever/program_context/lock_file_entry/index.html @@ -1 +1 @@ -leo_retriever::program_context::lock_file_entry - Rust
\ No newline at end of file +leo_retriever::program_context::lock_file_entry - Rust
leo_retriever::program_context

Module lock_file_entry

source

Structs§

\ No newline at end of file diff --git a/leo_retriever/program_context/lock_file_entry/struct.LockFileEntry.html b/leo_retriever/program_context/lock_file_entry/struct.LockFileEntry.html index 177d5e6c43..4379a6ce3c 100644 --- a/leo_retriever/program_context/lock_file_entry/struct.LockFileEntry.html +++ b/leo_retriever/program_context/lock_file_entry/struct.LockFileEntry.html @@ -1,41 +1,41 @@ -LockFileEntry in leo_retriever::program_context::lock_file_entry - Rust
pub struct LockFileEntry {
-    name: String,
-    network: Option<NetworkName>,
+LockFileEntry in leo_retriever::program_context::lock_file_entry - Rust
leo_retriever::program_context::lock_file_entry

Struct LockFileEntry

source
pub struct LockFileEntry {
+    name: String,
+    network: Option<NetworkName>,
     location: Location,
-    path: Option<PathBuf>,
-    checksum: String,
-    dependencies: Vec<String>,
-}

Fields§

§name: String§network: Option<NetworkName>§location: Location§path: Option<PathBuf>§checksum: String§dependencies: Vec<String>

Implementations§

source§

impl LockFileEntry

source

pub fn path(&self) -> Option<&PathBuf>

source

pub fn name(&self) -> &str

Trait Implementations§

source§

impl Clone for LockFileEntry

source§

fn clone(&self) -> LockFileEntry

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 LockFileEntry

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for LockFileEntry

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 From<&ProgramContext> for LockFileEntry

source§

fn from(context: &ProgramContext) -> Self

Converts to this type from the input type.
source§

impl Serialize for LockFileEntry

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 - 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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where + path: Option<PathBuf>, + checksum: String, + dependencies: Vec<String>, +}

Fields§

§name: String§network: Option<NetworkName>§location: Location§path: Option<PathBuf>§checksum: String§dependencies: Vec<String>

Implementations§

source§

impl LockFileEntry

source

pub fn path(&self) -> Option<&PathBuf>

source

pub fn name(&self) -> &str

Trait Implementations§

source§

impl Clone for LockFileEntry

source§

fn clone(&self) -> LockFileEntry

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 LockFileEntry

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for LockFileEntry

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 From<&ProgramContext> for LockFileEntry

source§

fn from(context: &ProgramContext) -> Self

Converts to this type from the input type.
source§

impl Serialize for LockFileEntry

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 + 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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_retriever/program_context/manifest/index.html b/leo_retriever/program_context/manifest/index.html index 907a536e7e..a85e3ed1d3 100644 --- a/leo_retriever/program_context/manifest/index.html +++ b/leo_retriever/program_context/manifest/index.html @@ -1 +1 @@ -leo_retriever::program_context::manifest - Rust

Module leo_retriever::program_context::manifest

source ·

Structs§

\ No newline at end of file +leo_retriever::program_context::manifest - Rust
leo_retriever::program_context

Module manifest

source

Structs§

\ No newline at end of file diff --git a/leo_retriever/program_context/manifest/struct.Manifest.html b/leo_retriever/program_context/manifest/struct.Manifest.html index d4d8532d23..39eb822178 100644 --- a/leo_retriever/program_context/manifest/struct.Manifest.html +++ b/leo_retriever/program_context/manifest/struct.Manifest.html @@ -1,46 +1,46 @@ -Manifest in leo_retriever::program_context::manifest - Rust

Struct leo_retriever::program_context::manifest::Manifest

source ·
pub struct Manifest {
-    program: String,
-    version: String,
-    description: String,
-    license: String,
-    dependencies: Option<Vec<Dependency>>,
-}

Fields§

§program: String§version: String§description: String§license: String§dependencies: Option<Vec<Dependency>>

Implementations§

source§

impl Manifest

source

pub fn new( - program: &str, - version: &str, - 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 - __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 - 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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +Manifest in leo_retriever::program_context::manifest - Rust
leo_retriever::program_context::manifest

Struct Manifest

source
pub struct Manifest {
+    program: String,
+    version: String,
+    description: String,
+    license: String,
+    dependencies: Option<Vec<Dependency>>,
+}

Fields§

§program: String§version: String§description: String§license: String§dependencies: Option<Vec<Dependency>>

Implementations§

source§

impl Manifest

source

pub fn new( + program: &str, + version: &str, + 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 + __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 + 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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where + D: Deserializer<'de>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_retriever/program_context/network_name/enum.NetworkName.html b/leo_retriever/program_context/network_name/enum.NetworkName.html index 632b1ff40e..04e9adf7ff 100644 --- a/leo_retriever/program_context/network_name/enum.NetworkName.html +++ b/leo_retriever/program_context/network_name/enum.NetworkName.html @@ -1,49 +1,49 @@ -NetworkName in leo_retriever::program_context::network_name - Rust
pub enum NetworkName {
+NetworkName in leo_retriever::program_context::network_name - Rust
leo_retriever::program_context::network_name

Enum NetworkName

source
pub enum NetworkName {
     TestnetV0,
     MainnetV0,
     CanaryV0,
-}

Variants§

§

TestnetV0

§

MainnetV0

§

CanaryV0

Implementations§

source§

impl NetworkName

source

pub fn id(&self) -> u16

Trait Implementations§

source§

impl Clone for NetworkName

source§

fn clone(&self) -> NetworkName

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 NetworkName

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for NetworkName

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 Display for NetworkName

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for NetworkName

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where - H: Hasher, - 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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

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

source§

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 TryFrom<String> for NetworkName

source§

type Error = LeoError

The type returned in the event of a conversion error.
source§

fn try_from(network: String) -> Result<Self, LeoError>

Performs the conversion.
source§

impl Copy for NetworkName

source§

impl Eq for NetworkName

source§

impl StructuralPartialEq for NetworkName

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T
where +}

Variants§

§

TestnetV0

§

MainnetV0

§

CanaryV0

Implementations§

source§

impl NetworkName

source

pub fn id(&self) -> u16

Trait Implementations§

source§

impl Clone for NetworkName

source§

fn clone(&self) -> NetworkName

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 NetworkName

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for NetworkName

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 Display for NetworkName

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for NetworkName

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + 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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

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

source§

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 TryFrom<String> for NetworkName

source§

type Error = LeoError

The type returned in the event of a conversion error.
source§

fn try_from(network: String) -> Result<Self, LeoError>

Performs the conversion.
source§

impl Copy for NetworkName

source§

impl Eq for NetworkName

source§

impl StructuralPartialEq for NetworkName

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<'de, T> DeserializeExt<'de> for T

§

fn take_from_value<D>( value: &mut Value, - field: &str, -) -> Result<T, <D as Deserializer<'de>>::Error>
where + field: &str, +) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where - T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToSmolStr for T
where + T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_retriever/program_context/network_name/index.html b/leo_retriever/program_context/network_name/index.html index 0125013b54..dba453dfd4 100644 --- a/leo_retriever/program_context/network_name/index.html +++ b/leo_retriever/program_context/network_name/index.html @@ -1 +1 @@ -leo_retriever::program_context::network_name - Rust
\ No newline at end of file +leo_retriever::program_context::network_name - Rust
leo_retriever::program_context

Module network_name

source

Enums§

\ No newline at end of file diff --git a/leo_retriever/program_context/struct.ProgramContext.html b/leo_retriever/program_context/struct.ProgramContext.html index cce3156c09..e0dfc9f434 100644 --- a/leo_retriever/program_context/struct.ProgramContext.html +++ b/leo_retriever/program_context/struct.ProgramContext.html @@ -1,42 +1,42 @@ -ProgramContext in leo_retriever::program_context - Rust

Struct leo_retriever::program_context::ProgramContext

source ·
pub struct ProgramContext {
+ProgramContext in leo_retriever::program_context - Rust
leo_retriever::program_context

Struct ProgramContext

source
pub struct ProgramContext {
     name: Symbol,
-    full_name: String,
+    full_name: String,
     location: Location,
-    network: Option<NetworkName>,
-    path: Option<PathBuf>,
-    full_path: Option<PathBuf>,
-    compiled_file_path: Option<PathBuf>,
-    dependencies: Option<Vec<Symbol>>,
-    checksum: Option<String>,
-    stub: Option<Stub>,
-    post_order: Option<IndexSet<Symbol>>,
-}

Fields§

§name: Symbol§full_name: String§location: Location§network: Option<NetworkName>§path: Option<PathBuf>§full_path: Option<PathBuf>§compiled_file_path: Option<PathBuf>§dependencies: Option<Vec<Symbol>>§checksum: Option<String>§stub: Option<Stub>§post_order: Option<IndexSet<Symbol>>

Implementations§

source§

impl ProgramContext

source

pub fn new_main( + network: Option<NetworkName>, + path: Option<PathBuf>, + full_path: Option<PathBuf>, + compiled_file_path: Option<PathBuf>, + dependencies: Option<Vec<Symbol>>, + checksum: Option<String>, + stub: Option<Stub>, + post_order: Option<IndexSet<Symbol>>, +}

Fields§

§name: Symbol§full_name: String§location: Location§network: Option<NetworkName>§path: Option<PathBuf>§full_path: Option<PathBuf>§compiled_file_path: Option<PathBuf>§dependencies: Option<Vec<Symbol>>§checksum: Option<String>§stub: Option<Stub>§post_order: Option<IndexSet<Symbol>>

Implementations§

source§

impl ProgramContext

source

pub fn new_main( name: Symbol, - path: PathBuf, - dependencies: Vec<Dependency>, -) -> Self

source

pub fn name(&self) -> &Symbol

source

pub fn full_name(&self) -> &String

source

pub fn network(&self) -> &NetworkName

source

pub fn location(&self) -> &Location

source

pub fn path(&self) -> &PathBuf

source

pub fn full_path(&self) -> &PathBuf

source

pub fn add_full_path(&mut self, full_path: &Path)

source

pub fn compiled_file_path(&self) -> &PathBuf

source

pub fn add_compiled_file_path(&mut self, path: &Path)

source

pub fn checksum(&self) -> &String

source

pub fn add_checksum(&mut self)

source

pub fn add_stub(&mut self, stub: Stub) -> bool

source

pub fn stub(&self) -> &Stub

source

pub fn dependencies(&self) -> Vec<Symbol>

source

pub fn add_dependencies(&mut self, dependencies: Vec<Symbol>)

source

pub fn post_order(&self) -> &IndexSet<Symbol>

source

pub fn add_post_order(&mut self, post_order: IndexSet<Symbol>)

Trait Implementations§

source§

impl Clone for ProgramContext

source§

fn clone(&self) -> ProgramContext

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 ProgramContext

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<&ProgramContext> for LockFileEntry

source§

fn from(context: &ProgramContext) -> Self

Converts to this type from the input type.
source§

impl From<Dependency> for ProgramContext

source§

fn from(dependency: Dependency) -> Self

Converts to this type from the input type.

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ path: PathBuf, + dependencies: Vec<Dependency>, +) -> Self
source

pub fn name(&self) -> &Symbol

source

pub fn full_name(&self) -> &String

source

pub fn network(&self) -> &NetworkName

source

pub fn location(&self) -> &Location

source

pub fn path(&self) -> &PathBuf

source

pub fn full_path(&self) -> &PathBuf

source

pub fn add_full_path(&mut self, full_path: &Path)

source

pub fn compiled_file_path(&self) -> &PathBuf

source

pub fn add_compiled_file_path(&mut self, path: &Path)

source

pub fn checksum(&self) -> &String

source

pub fn add_checksum(&mut self)

source

pub fn add_stub(&mut self, stub: Stub) -> bool

source

pub fn stub(&self) -> &Stub

source

pub fn dependencies(&self) -> Vec<Symbol>

source

pub fn add_dependencies(&mut self, dependencies: Vec<Symbol>)

source

pub fn post_order(&self) -> &IndexSet<Symbol>

source

pub fn add_post_order(&mut self, post_order: IndexSet<Symbol>)

Trait Implementations§

source§

impl Clone for ProgramContext

source§

fn clone(&self) -> ProgramContext

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 ProgramContext

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<&ProgramContext> for LockFileEntry

source§

fn from(context: &ProgramContext) -> Self

Converts to this type from the input type.
source§

impl From<Dependency> for ProgramContext

source§

fn from(dependency: Dependency) -> Self

Converts to this type from the input type.

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_retriever/retriever/fn.fetch_from_network.html b/leo_retriever/retriever/fn.fetch_from_network.html index 43bb2a261f..038dcb5889 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
leo_retriever::retriever

Function 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 5bba035375..98c306a6cc 100644 --- a/leo_retriever/retriever/fn.retrieve_from_network.html +++ b/leo_retriever/retriever/fn.retrieve_from_network.html @@ -1,6 +1,6 @@ -retrieve_from_network in leo_retriever::retriever - Rust

Function leo_retriever::retriever::retrieve_from_network

source ·
fn retrieve_from_network<N: Network>(
-    project_path: &Path,
-    home_path: &Path,
-    name: &String,
-    endpoint: &String,
-) -> Result<(Stub, Vec<Dependency>), UtilError>
\ No newline at end of file +retrieve_from_network in leo_retriever::retriever - Rust
leo_retriever::retriever

Function retrieve_from_network

source
fn retrieve_from_network<N: Network>(
+    project_path: &Path,
+    home_path: &Path,
+    name: &String,
+    endpoint: &String,
+) -> 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 bb46a57390..03588a72a2 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 +retrieve_local in leo_retriever::retriever - Rust
leo_retriever::retriever

Function retrieve_local

source
fn retrieve_local(
+    name: &String,
+    path: &PathBuf,
+) -> 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 1d03d3963a..53ec94e896 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 +verify_valid_program in leo_retriever::retriever - Rust
leo_retriever::retriever

Function verify_valid_program

source
pub fn verify_valid_program<N: Network>(
+    name: &str,
+    program: &str,
+) -> Result<(), UtilError>
\ No newline at end of file diff --git a/leo_retriever/retriever/index.html b/leo_retriever/retriever/index.html index 7db07aa72a..e314f4a2c3 100644 --- a/leo_retriever/retriever/index.html +++ b/leo_retriever/retriever/index.html @@ -1 +1 @@ -leo_retriever::retriever - Rust
\ No newline at end of file +leo_retriever::retriever - Rust
\ No newline at end of file diff --git a/leo_retriever/retriever/struct.Retriever.html b/leo_retriever/retriever/struct.Retriever.html index daf208cb1c..28e52792e8 100644 --- a/leo_retriever/retriever/struct.Retriever.html +++ b/leo_retriever/retriever/struct.Retriever.html @@ -1,46 +1,46 @@ -Retriever in leo_retriever::retriever - Rust

Struct leo_retriever::retriever::Retriever

source ·
pub struct Retriever<N: Network> {
+Retriever in leo_retriever::retriever - Rust
leo_retriever::retriever

Struct Retriever

source
pub struct Retriever<N: Network> {
     name: Symbol,
     contexts: IndexMap<Symbol, ProgramContext>,
-    project_path: PathBuf,
-    registry_path: PathBuf,
-    endpoint: String,
-    phantom: PhantomData<N>,
-}

Fields§

§name: Symbol§contexts: IndexMap<Symbol, ProgramContext>§project_path: PathBuf§registry_path: PathBuf§endpoint: String§phantom: PhantomData<N>

Implementations§

source§

impl<N: Network> Retriever<N>

source

pub fn new( + project_path: PathBuf, + registry_path: PathBuf, + endpoint: String, + phantom: PhantomData<N>, +}

Fields§

§name: Symbol§contexts: IndexMap<Symbol, ProgramContext>§project_path: PathBuf§registry_path: PathBuf§endpoint: String§phantom: PhantomData<N>

Implementations§

source§

impl<N: Network> Retriever<N>

source

pub fn new( name: Symbol, - 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( + 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( &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 - 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 - 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.

+ 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 + 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 + 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a + S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/leo_span/all.html b/leo_span/all.html index b5719896a5..c4bd9f8f3a 100644 --- a/leo_span/all.html +++ b/leo_span/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Structs

Enums

Traits

Macros

Functions

Statics

Constants

\ No newline at end of file +List of all items in this crate

List of all items

Structs

Enums

Traits

Macros

Functions

Statics

Constants

\ No newline at end of file diff --git a/leo_span/index.html b/leo_span/index.html index d1f2f48cc4..22660ec7ef 100644 --- a/leo_span/index.html +++ b/leo_span/index.html @@ -1,4 +1,4 @@ -leo_span - Rust

Crate leo_span

source ·

Re-exports§

Modules§

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_span/source_map/fn.analyze_source_file.html b/leo_span/source_map/fn.analyze_source_file.html index ed23cb2158..690140ce8c 100644 --- a/leo_span/source_map/fn.analyze_source_file.html +++ b/leo_span/source_map/fn.analyze_source_file.html @@ -1,7 +1,7 @@ -analyze_source_file in leo_span::source_map - Rust

Function leo_span::source_map::analyze_source_file

source ·
fn analyze_source_file(
-    src: &str,
+analyze_source_file in leo_span::source_map - Rust
leo_span::source_map

Function analyze_source_file

source
fn analyze_source_file(
+    src: &str,
     source_file_start_pos: BytePos,
-) -> (Vec<BytePos>, Vec<MultiByteChar>)
Expand description

Finds all newlines, multi-byte characters, and non-narrow characters in a +) -> (Vec<BytePos>, Vec<MultiByteChar>)

Expand description

Finds all newlines, multi-byte characters, and non-narrow characters in a SourceFile.

This function will use an SSE2 enhanced implementation if hardware support is detected at runtime.

diff --git a/leo_span/source_map/fn.is_not_test_framework.html b/leo_span/source_map/fn.is_not_test_framework.html index 55b4a35db1..03fcf64a2e 100644 --- a/leo_span/source_map/fn.is_not_test_framework.html +++ b/leo_span/source_map/fn.is_not_test_framework.html @@ -1,2 +1,2 @@ -is_not_test_framework in leo_span::source_map - Rust

Function leo_span::source_map::is_not_test_framework

source ·
pub fn is_not_test_framework() -> bool
Expand description

Is the env var LEO_TESTFRAMEWORK not enabled?

+is_not_test_framework in leo_span::source_map - Rust
leo_span::source_map

Function is_not_test_framework

source
pub fn is_not_test_framework() -> bool
Expand description

Is the env var LEO_TESTFRAMEWORK not enabled?

\ No newline at end of file diff --git a/leo_span/source_map/fn.normalize_newlines.html b/leo_span/source_map/fn.normalize_newlines.html index 1d691451a9..d7cfd74824 100644 --- a/leo_span/source_map/fn.normalize_newlines.html +++ b/leo_span/source_map/fn.normalize_newlines.html @@ -1,3 +1,3 @@ -normalize_newlines in leo_span::source_map - Rust

Function leo_span::source_map::normalize_newlines

source ·
fn normalize_newlines(src: &mut String)
Expand description

Replaces \r\n with \n in-place in src.

+normalize_newlines in leo_span::source_map - Rust
leo_span::source_map

Function normalize_newlines

source
fn normalize_newlines(src: &mut String)
Expand description

Replaces \r\n with \n in-place in src.

Isolated carriage returns are left alone.

\ No newline at end of file diff --git a/leo_span/source_map/fn.normalize_src.html b/leo_span/source_map/fn.normalize_src.html index c47a185b73..423e2276bd 100644 --- a/leo_span/source_map/fn.normalize_src.html +++ b/leo_span/source_map/fn.normalize_src.html @@ -1,2 +1,2 @@ -normalize_src in leo_span::source_map - Rust

Function leo_span::source_map::normalize_src

source ·
fn normalize_src(src: &mut String)
Expand description

Normalizes the source code and records the normalizations.

+normalize_src in leo_span::source_map - Rust
leo_span::source_map

Function normalize_src

source
fn normalize_src(src: &mut String)
Expand description

Normalizes the source code and records the normalizations.

\ No newline at end of file diff --git a/leo_span/source_map/fn.remove_bom.html b/leo_span/source_map/fn.remove_bom.html index ff122fde15..f23b8d689f 100644 --- a/leo_span/source_map/fn.remove_bom.html +++ b/leo_span/source_map/fn.remove_bom.html @@ -1,2 +1,2 @@ -remove_bom in leo_span::source_map - Rust

Function leo_span::source_map::remove_bom

source ·
fn remove_bom(src: &mut String)
Expand description

Removes UTF-8 BOM, if any.

+remove_bom in leo_span::source_map - Rust
leo_span::source_map

Function remove_bom

source
fn remove_bom(src: &mut String)
Expand description

Removes UTF-8 BOM, if any.

\ No newline at end of file diff --git a/leo_span/source_map/index.html b/leo_span/source_map/index.html index 477abe23e8..4b32fa25a5 100644 --- a/leo_span/source_map/index.html +++ b/leo_span/source_map/index.html @@ -1,4 +1,4 @@ -leo_span::source_map - Rust

Module leo_span::source_map

source ·
Expand description

The source map provides an address space for positions in spans +leo_span::source_map - Rust

leo_span

Module source_map

source
Expand description

The source map provides an address space for positions in spans that is global across the source files that are compiled together. The source files are organized in a sequence, with the positions of each source following the ones of the previous source diff --git a/leo_span/source_map/struct.LineCol.html b/leo_span/source_map/struct.LineCol.html index 8e79795f68..2cf99169df 100644 --- a/leo_span/source_map/struct.LineCol.html +++ b/leo_span/source_map/struct.LineCol.html @@ -1,26 +1,26 @@ -LineCol in leo_span::source_map - Rust

Struct leo_span::source_map::LineCol

source ·
pub struct LineCol {
-    pub source_file: Rc<SourceFile>,
-    pub line: usize,
+LineCol in leo_span::source_map - Rust
leo_span::source_map

Struct LineCol

source
pub struct LineCol {
+    pub source_file: Rc<SourceFile>,
+    pub line: usize,
     pub col: CharPos,
 }
Expand description

File / Line / Column information on a BytePos.

-

Fields§

§source_file: Rc<SourceFile>

Information on the original source.

-
§line: usize

The 1-based line number.

+

Fields§

§source_file: Rc<SourceFile>

Information on the original source.

+
§line: usize

The 1-based line number.

§col: CharPos

The (0-based) column offset into the line.

-

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 - 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.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

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 + 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.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_span/source_map/struct.MultiByteChar.html b/leo_span/source_map/struct.MultiByteChar.html index 10de426b1d..bc35b57a7c 100644 --- a/leo_span/source_map/struct.MultiByteChar.html +++ b/leo_span/source_map/struct.MultiByteChar.html @@ -1,31 +1,31 @@ -MultiByteChar in leo_span::source_map - Rust

Struct leo_span::source_map::MultiByteChar

source ·
struct MultiByteChar {
+MultiByteChar in leo_span::source_map - Rust
leo_span::source_map

Struct MultiByteChar

source
struct MultiByteChar {
     pub pos: BytePos,
-    pub bytes: u8,
+    pub bytes: u8,
 }
Expand description

Identifies an offset of a multi-byte character in a SourceFile.

Fields§

§pos: BytePos

The absolute offset of the character in the SourceMap.

-
§bytes: u8

The number of bytes, >= 2.

-

Trait Implementations§

source§

impl Clone for MultiByteChar

source§

fn clone(&self) -> MultiByteChar

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 MultiByteChar

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for MultiByteChar

source§

fn eq(&self, other: &MultiByteChar) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Copy for MultiByteChar

source§

impl Eq for MultiByteChar

source§

impl StructuralPartialEq for MultiByteChar

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+
§bytes: u8

The number of bytes, >= 2.

+

Trait Implementations§

source§

impl Clone for MultiByteChar

source§

fn clone(&self) -> MultiByteChar

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 MultiByteChar

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for MultiByteChar

source§

fn eq(&self, other: &MultiByteChar) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Copy for MultiByteChar

source§

impl Eq for MultiByteChar

source§

impl StructuralPartialEq for MultiByteChar

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_span/source_map/struct.SourceFile.html b/leo_span/source_map/struct.SourceFile.html index 6f0ea0d5b1..c2fa519229 100644 --- a/leo_span/source_map/struct.SourceFile.html +++ b/leo_span/source_map/struct.SourceFile.html @@ -1,43 +1,43 @@ -SourceFile in leo_span::source_map - Rust

Struct leo_span::source_map::SourceFile

source ·
pub struct SourceFile {
+SourceFile in leo_span::source_map - Rust
leo_span::source_map

Struct SourceFile

source
pub struct SourceFile {
     pub name: FileName,
-    pub src: String,
+    pub src: String,
     pub start_pos: BytePos,
     pub end_pos: BytePos,
-    lines: Vec<BytePos>,
-    multibyte_chars: Vec<MultiByteChar>,
+    lines: Vec<BytePos>,
+    multibyte_chars: Vec<MultiByteChar>,
 }
Expand description

A single source in the SourceMap.

Fields§

§name: FileName

The name of the file that the source came from.

-
§src: String

The complete source code.

+
§src: String

The complete source code.

§start_pos: BytePos

The start position of this source in the SourceMap.

§end_pos: BytePos

The end position of this source in the SourceMap.

-
§lines: Vec<BytePos>

Locations of line beginnings in the source code.

-
§multibyte_chars: Vec<MultiByteChar>

Locations of multi-byte characters in the source code.

-

Implementations§

source§

impl SourceFile

source

fn new(name: FileName, src: String, start_pos: BytePos) -> Self

Creates a new SourceFile given the file name, +

§lines: Vec<BytePos>

Locations of line beginnings in the source code.

+
§multibyte_chars: Vec<MultiByteChar>

Locations of multi-byte characters in the source code.

+

Implementations§

source§

impl SourceFile

source

fn new(name: FileName, src: String, start_pos: BytePos) -> Self

Creates a new SourceFile given the file name, source contents, and the start_position.

This position is used for analysis purposes.

source

fn bytepos_to_file_charpos(&self, bpos: BytePos) -> CharPos

Converts an absolute BytePos to a CharPos relative to the SourceFile.

-
source

fn lookup_line(&self, pos: BytePos) -> Option<usize>

Finds the line containing the given position. The return value is the +

source

fn lookup_line(&self, pos: BytePos) -> Option<usize>

Finds the line containing the given position. The return value is the index into the lines array of this SourceFile, not the 1-based line number. If the source file is empty or the position is located before the first line, None is returned.

-
source

fn lookup_file_pos(&self, pos: BytePos) -> (usize, CharPos)

Looks up the file’s (1-based) line number and (0-based CharPos) column offset, for a +

source

fn lookup_file_pos(&self, pos: BytePos) -> (usize, CharPos)

Looks up the file’s (1-based) line number and (0-based CharPos) column offset, for a given BytePos.

-
source

fn contents_of_span(&self, span: Span) -> String

Returns contents of a span assumed to be within the given file.

-

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 - 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.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+
source

fn contents_of_span(&self, span: Span) -> String

Returns contents of a span assumed to be within the given file.

+

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 + 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.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_span/source_map/struct.SourceMap.html b/leo_span/source_map/struct.SourceMap.html index bc1acaf1e4..2e6a6a7ca8 100644 --- a/leo_span/source_map/struct.SourceMap.html +++ b/leo_span/source_map/struct.SourceMap.html @@ -1,41 +1,40 @@ -SourceMap in leo_span::source_map - Rust

Struct leo_span::source_map::SourceMap

source ·
pub struct SourceMap {
-    inner: RefCell<SourceMapInner>,
+SourceMap in leo_span::source_map - Rust
leo_span::source_map

Struct SourceMap

source
pub struct SourceMap {
+    inner: RefCell<SourceMapInner>,
 }
Expand description

The source map containing all recorded sources, methods to register new ones, and methods to query about spans in relation to recorded sources.

-

Fields§

§inner: RefCell<SourceMapInner>

The actual source map data.

-

Implementations§

source§

impl SourceMap

source

pub fn load_file(&self, path: &Path) -> Result<Rc<SourceFile>>

Loads the given path and returns a SourceFile for it.

-
source

pub fn new_source(&self, source: &str, name: FileName) -> Rc<SourceFile>

Registers source under the given file name, returning a SourceFile back.

-
source

fn find_source_file_index(&self, pos: BytePos) -> Option<usize>

Find the index for the source file containing pos.

-
source

fn find_source_file(&self, pos: BytePos) -> Option<Rc<SourceFile>>

Find the source file containing pos.

-
source

fn find_line_col(&self, pos: BytePos) -> Option<LineCol>

Finds line column info about a given pos.

-
source

pub fn span_to_location(&self, sp: Span) -> Option<SpanLocation>

Retrieves the location (source file, lines, columns) on the given span.

-
source

pub fn span_to_string(&self, span: Span) -> String

Returns a displayable representation of the span as a string.

-
source

pub fn contents_of_span(&self, span: Span) -> Option<String>

Returns the source contents that is spanned by span.

-
source

pub fn line_contents_of_span(&self, span: Span) -> Option<String>

Returns the source contents of the lines that span is within.

+

Fields§

§inner: RefCell<SourceMapInner>

The actual source map data.

+

Implementations§

source§

impl SourceMap

source

pub fn load_file(&self, path: &Path) -> Result<Rc<SourceFile>>

Loads the given path and returns a SourceFile for it.

+
source

pub fn new_source(&self, source: &str, name: FileName) -> Rc<SourceFile>

Registers source under the given file name, returning a SourceFile back.

+
source

fn find_source_file_index(&self, pos: BytePos) -> Option<usize>

Find the index for the source file containing pos.

+
source

fn find_source_file(&self, pos: BytePos) -> Option<Rc<SourceFile>>

Find the source file containing pos.

+
source

fn find_line_col(&self, pos: BytePos) -> Option<LineCol>

Finds line column info about a given pos.

+
source

pub fn span_to_location(&self, sp: Span) -> Option<SpanLocation>

Retrieves the location (source file, lines, columns) on the given span.

+
source

pub fn span_to_string(&self, span: Span) -> String

Returns a displayable representation of the span as a string.

+
source

pub fn contents_of_span(&self, span: Span) -> Option<String>

Returns the source contents that is spanned by span.

+
source

pub fn line_contents_of_span(&self, span: Span) -> Option<String>

Returns the source contents of the lines that span is within.

That is, if the span refers to x = 4 in the source code:

// Line 1
 let x
     = 4;
-// Line 4
-
+// Line 4

then the contents on lines 2 and 3 are returned.

-

Trait Implementations§

source§

impl Default for SourceMap

source§

fn default() -> SourceMap

Returns the “default value” for a type. 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 - 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.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

Trait Implementations§

source§

impl Default for SourceMap

source§

fn default() -> SourceMap

Returns the “default value” for a type. 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 + 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.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_span/source_map/struct.SourceMapInner.html b/leo_span/source_map/struct.SourceMapInner.html index 12a3ae0bb1..8a73ff2d01 100644 --- a/leo_span/source_map/struct.SourceMapInner.html +++ b/leo_span/source_map/struct.SourceMapInner.html @@ -1,28 +1,28 @@ -SourceMapInner in leo_span::source_map - Rust

Struct leo_span::source_map::SourceMapInner

source ·
struct SourceMapInner {
-    used_address_space: u32,
-    source_files: Vec<Rc<SourceFile>>,
+SourceMapInner in leo_span::source_map - Rust
leo_span::source_map

Struct SourceMapInner

source
struct SourceMapInner {
+    used_address_space: u32,
+    source_files: Vec<Rc<SourceFile>>,
 }
Expand description

Actual data of the source map. We use this setup for purposes of interior mutability.

-

Fields§

§used_address_space: u32

The address space below this value is currently used by the files in the source map.

-
§source_files: Vec<Rc<SourceFile>>

All the source files recorded thus far.

+

Fields§

§used_address_space: u32

The address space below this value is currently used by the files in the source map.

+
§source_files: Vec<Rc<SourceFile>>

All the source files recorded thus far.

The list is append-only with mappings from the start byte position for fast lookup from a Span to its SourceFile.

-

Implementations§

source§

impl SourceMapInner

source

fn try_allocate_address_space(&mut self, size: u32) -> Option<BytePos>

Attempt reserving address space for size number of bytes.

-

Trait Implementations§

source§

impl Default for SourceMapInner

source§

fn default() -> SourceMapInner

Returns the “default value” for a type. 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 - 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.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

Implementations§

source§

impl SourceMapInner

source

fn try_allocate_address_space(&mut self, size: u32) -> Option<BytePos>

Attempt reserving address space for size number of bytes.

+

Trait Implementations§

source§

impl Default for SourceMapInner

source§

fn default() -> SourceMapInner

Returns the “default value” for a type. 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 + 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.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_span/source_map/struct.SpanLocation.html b/leo_span/source_map/struct.SpanLocation.html index d237831f2e..26949ca005 100644 --- a/leo_span/source_map/struct.SpanLocation.html +++ b/leo_span/source_map/struct.SpanLocation.html @@ -1,26 +1,26 @@ -SpanLocation in leo_span::source_map - Rust

Struct leo_span::source_map::SpanLocation

source ·
pub struct SpanLocation {
-    pub source_file: Rc<SourceFile>,
-    pub line_start: usize,
-    pub line_stop: usize,
-    pub col_start: usize,
-    pub col_stop: usize,
+SpanLocation in leo_span::source_map - Rust
leo_span::source_map

Struct SpanLocation

source
pub struct SpanLocation {
+    pub source_file: Rc<SourceFile>,
+    pub line_start: usize,
+    pub line_stop: usize,
+    pub col_start: usize,
+    pub col_stop: usize,
 }
Expand description

Detailed information on a Span.

-

Fields§

§source_file: Rc<SourceFile>§line_start: usize§line_stop: usize§col_start: usize§col_stop: usize

Implementations§

source§

impl SpanLocation

source

pub fn dummy() -> Self

Returns a dummy location.

-

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 - 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.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

Fields§

§source_file: Rc<SourceFile>§line_start: usize§line_stop: usize§col_start: usize§col_stop: usize

Implementations§

source§

impl SpanLocation

source

pub fn dummy() -> Self

Returns a dummy location.

+

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 + 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.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_span/span/index.html b/leo_span/span/index.html index fc31565087..21a0ba0610 100644 --- a/leo_span/span/index.html +++ b/leo_span/span/index.html @@ -1,4 +1,4 @@ -leo_span::span - Rust

Module leo_span::span

source ·
Expand description

Defines the Span type used to track where code comes from.

+leo_span::span - Rust
leo_span

Module span

source
Expand description

Defines the Span type used to track where code comes from.

Macros§

  • impl_pos 🔒
    Generate one-component tuple structs that implement the Pos trait.

Structs§

  • A byte offset.
  • A character offset.
  • The span type which tracks where formatted errors originate from in a Leo file. This is used in many spots throughout the rest of the Leo crates.

Traits§

  • Offsets (i.e. positions), in some units (e.g. bytes or characters), with conversions between unsigned integers.
\ No newline at end of file diff --git a/leo_span/span/macro.impl_pos.html b/leo_span/span/macro.impl_pos.html index 240c10b3c6..6cb487025b 100644 --- a/leo_span/span/macro.impl_pos.html +++ b/leo_span/span/macro.impl_pos.html @@ -1,4 +1,4 @@ -impl_pos in leo_span::span - Rust

Macro leo_span::span::impl_pos

source ·
macro_rules! impl_pos {
+impl_pos in leo_span::span - Rust
leo_span::span

Macro impl_pos

source
macro_rules! impl_pos {
     (
         $(
             $(#[$attr:meta])*
diff --git a/leo_span/span/struct.BytePos.html b/leo_span/span/struct.BytePos.html
index 74ba841e62..5b8bc5449b 100644
--- a/leo_span/span/struct.BytePos.html
+++ b/leo_span/span/struct.BytePos.html
@@ -1,39 +1,39 @@
-BytePos in leo_span::span - Rust

Struct leo_span::span::BytePos

source ·
pub struct BytePos(pub u32);
Expand description

A byte offset.

-

Tuple Fields§

§0: u32

Trait Implementations§

source§

impl Add for BytePos

source§

type Output = BytePos

The resulting type after applying the + operator.
source§

fn add(self, rhs: BytePos) -> BytePos

Performs the + operation. Read more
source§

impl Clone for BytePos

source§

fn clone(&self) -> BytePos

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 BytePos

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for BytePos

source§

fn default() -> BytePos

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for BytePos

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 Hash for BytePos

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where - H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for BytePos

source§

fn cmp(&self, other: &BytePos) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where - Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where - Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for BytePos

source§

fn eq(&self, other: &BytePos) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl PartialOrd for BytePos

source§

fn partial_cmp(&self, other: &BytePos) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the -<= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > -operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
source§

impl Pos for BytePos

source§

impl Serialize for BytePos

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 Sub for BytePos

source§

type Output = BytePos

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BytePos) -> BytePos

Performs the - operation. Read more
source§

impl Copy for BytePos

source§

impl Eq for BytePos

source§

impl StructuralPartialEq for BytePos

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Comparable<K> for Q
where - Q: Ord + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+BytePos in leo_span::span - Rust
leo_span::span

Struct BytePos

source
pub struct BytePos(pub u32);
Expand description

A byte offset.

+

Tuple Fields§

§0: u32

Trait Implementations§

source§

impl Add for BytePos

source§

type Output = BytePos

The resulting type after applying the + operator.
source§

fn add(self, rhs: BytePos) -> BytePos

Performs the + operation. Read more
source§

impl Clone for BytePos

source§

fn clone(&self) -> BytePos

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 BytePos

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for BytePos

source§

fn default() -> BytePos

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for BytePos

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 Hash for BytePos

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for BytePos

source§

fn cmp(&self, other: &BytePos) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where + Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where + Self: Sized,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for BytePos

source§

fn eq(&self, other: &BytePos) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl PartialOrd for BytePos

source§

fn partial_cmp(&self, other: &BytePos) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > +operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
source§

impl Pos for BytePos

source§

impl Serialize for BytePos

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 Sub for BytePos

source§

type Output = BytePos

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BytePos) -> BytePos

Performs the - operation. Read more
source§

impl Copy for BytePos

source§

impl Eq for BytePos

source§

impl StructuralPartialEq for BytePos

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Comparable<K> for Q
where + Q: Ord + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_span/span/struct.CharPos.html b/leo_span/span/struct.CharPos.html index 249b7d57f2..b851633bd6 100644 --- a/leo_span/span/struct.CharPos.html +++ b/leo_span/span/struct.CharPos.html @@ -1,37 +1,37 @@ -CharPos in leo_span::span - Rust

Struct leo_span::span::CharPos

source ·
pub struct CharPos(pub usize);
Expand description

A character offset.

+CharPos in leo_span::span - Rust
leo_span::span

Struct CharPos

source
pub struct CharPos(pub usize);
Expand description

A character offset.

Because of multibyte UTF-8 characters, a byte offset is not equivalent to a character offset. The [SourceMap] will convert BytePos values to CharPos values as necessary.

-

Tuple Fields§

§0: usize

Trait Implementations§

source§

impl Add for CharPos

source§

type Output = CharPos

The resulting type after applying the + operator.
source§

fn add(self, rhs: CharPos) -> CharPos

Performs the + operation. Read more
source§

impl Clone for CharPos

source§

fn clone(&self) -> CharPos

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 CharPos

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Ord for CharPos

source§

fn cmp(&self, other: &CharPos) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where - Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where - Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for CharPos

source§

fn eq(&self, other: &CharPos) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl PartialOrd for CharPos

source§

fn partial_cmp(&self, other: &CharPos) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the -<= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > -operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
source§

impl Pos for CharPos

source§

impl Sub for CharPos

source§

type Output = CharPos

The resulting type after applying the - operator.
source§

fn sub(self, rhs: CharPos) -> CharPos

Performs the - operation. Read more
source§

impl Copy for CharPos

source§

impl Eq for CharPos

source§

impl StructuralPartialEq for CharPos

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Comparable<K> for Q
where - Q: Ord + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

Tuple Fields§

§0: usize

Trait Implementations§

source§

impl Add for CharPos

source§

type Output = CharPos

The resulting type after applying the + operator.
source§

fn add(self, rhs: CharPos) -> CharPos

Performs the + operation. Read more
source§

impl Clone for CharPos

source§

fn clone(&self) -> CharPos

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 CharPos

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Ord for CharPos

source§

fn cmp(&self, other: &CharPos) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where + Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where + Self: Sized,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for CharPos

source§

fn eq(&self, other: &CharPos) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl PartialOrd for CharPos

source§

fn partial_cmp(&self, other: &CharPos) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > +operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
source§

impl Pos for CharPos

source§

impl Sub for CharPos

source§

type Output = CharPos

The resulting type after applying the - operator.
source§

fn sub(self, rhs: CharPos) -> CharPos

Performs the - operation. Read more
source§

impl Copy for CharPos

source§

impl Eq for CharPos

source§

impl StructuralPartialEq for CharPos

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Comparable<K> for Q
where + Q: Ord + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_span/span/struct.Span.html b/leo_span/span/struct.Span.html index ac67c32332..7c3ed0c45b 100644 --- a/leo_span/span/struct.Span.html +++ b/leo_span/span/struct.Span.html @@ -1,4 +1,4 @@ -Span in leo_span::span - Rust

Struct leo_span::span::Span

source ·
pub struct Span {
+Span in leo_span::span - Rust
leo_span::span

Struct Span

source
pub struct Span {
     pub lo: BytePos,
     pub hi: BytePos,
 }
Expand description

The span type which tracks where formatted errors originate from in a Leo file. @@ -9,38 +9,38 @@

Implementations§

source§

impl Span

source

pub fn new(start: BytePos, end: BytePos) -> Self

Generate a new span from the starting and ending positions.

source

pub const fn dummy() -> Self

Generates a dummy span with all defaults. Should only be used in temporary situations.

-
source

pub fn is_dummy(&self) -> bool

Is the span a dummy?

-

Trait Implementations§

source§

impl Add for &Span

source§

fn add(self, other: &Span) -> Span

Add two spans (by reference) together.

-
source§

type Output = Span

The resulting type after applying the + operator.
source§

impl Add for Span

source§

fn add(self, other: Self) -> Self

Add two spans together. +

source

pub fn is_dummy(&self) -> bool

Is the span a dummy?

+

Trait Implementations§

source§

impl Add for &Span

source§

fn add(self, other: &Span) -> Span

Add two spans (by reference) together.

+
source§

type Output = Span

The resulting type after applying the + operator.
source§

impl Add for Span

source§

fn add(self, other: Self) -> Self

Add two spans together. The resulting span is the smallest span that includes both.

-
source§

type Output = Span

The resulting type after applying the + operator.
source§

impl Clone for Span

source§

fn clone(&self) -> Span

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 Span

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Span

source§

fn default() -> Span

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Span

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 Display for Span

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for Span

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where - H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Span

source§

fn eq(&self, other: &Span) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for Span

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 Copy for Span

source§

impl Eq for Span

source§

impl StructuralPartialEq for Span

Auto Trait Implementations§

§

impl Freeze for Span

§

impl RefUnwindSafe for Span

§

impl Send for Span

§

impl Sync for Span

§

impl Unpin for Span

§

impl UnwindSafe for Span

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+
source§

type Output = Span

The resulting type after applying the + operator.
source§

impl Clone for Span

source§

fn clone(&self) -> Span

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 Span

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Span

source§

fn default() -> Span

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Span

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 Display for Span

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for Span

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Span

source§

fn eq(&self, other: &Span) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for Span

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 Copy for Span

source§

impl Eq for Span

source§

impl StructuralPartialEq for Span

Auto Trait Implementations§

§

impl Freeze for Span

§

impl RefUnwindSafe for Span

§

impl Send for Span

§

impl Sync for Span

§

impl Unpin for Span

§

impl UnwindSafe for Span

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_span/span/trait.Pos.html b/leo_span/span/trait.Pos.html index 196efd419a..217521a4e9 100644 --- a/leo_span/span/trait.Pos.html +++ b/leo_span/span/trait.Pos.html @@ -1,9 +1,9 @@ -Pos in leo_span::span - Rust

Trait leo_span::span::Pos

source ·
pub trait Pos {
+Pos in leo_span::span - Rust
leo_span::span

Trait Pos

source
pub trait Pos {
     // Required methods
-    fn from_usize(n: usize) -> Self;
-    fn to_usize(&self) -> usize;
-    fn from_u32(n: u32) -> Self;
-    fn to_u32(&self) -> u32;
+    fn from_usize(n: usize) -> Self;
+    fn to_usize(&self) -> usize;
+    fn from_u32(n: u32) -> Self;
+    fn to_u32(&self) -> u32;
 }
Expand description

Offsets (i.e. positions), in some units (e.g. bytes or characters), with conversions between unsigned integers.

-

Required Methods§

source

fn from_usize(n: usize) -> Self

source

fn to_usize(&self) -> usize

source

fn from_u32(n: u32) -> Self

source

fn to_u32(&self) -> u32

Object Safety§

This trait is not object safe.

Implementors§

\ No newline at end of file +

Required Methods§

source

fn from_usize(n: usize) -> Self

source

fn to_usize(&self) -> usize

source

fn from_u32(n: u32) -> Self

source

fn to_u32(&self) -> u32

Object Safety§

This trait is not object safe.

Implementors§

\ No newline at end of file diff --git a/leo_span/span_json/fn.deserialize.html b/leo_span/span_json/fn.deserialize.html index 97b05e8887..a02e92013e 100644 --- a/leo_span/span_json/fn.deserialize.html +++ b/leo_span/span_json/fn.deserialize.html @@ -1,4 +1,4 @@ -deserialize in leo_span::span_json - Rust

Function leo_span::span_json::deserialize

source ·
pub fn deserialize<'de, D: Deserializer<'de>>(
+deserialize in leo_span::span_json - Rust
leo_span::span_json

Function deserialize

source
pub fn deserialize<'de, D: Deserializer<'de>>(
     deserializer: D,
-) -> Result<Span, D::Error>
Expand description

Custom deserialization to enable removing spans from enums.

+) -> Result<Span, D::Error>
Expand description

Custom deserialization to enable removing spans from enums.

\ No newline at end of file diff --git a/leo_span/span_json/fn.serialize.html b/leo_span/span_json/fn.serialize.html index 5637493934..449b75bb1e 100644 --- a/leo_span/span_json/fn.serialize.html +++ b/leo_span/span_json/fn.serialize.html @@ -1,7 +1,7 @@ -serialize in leo_span::span_json - Rust

Function leo_span::span_json::serialize

source ·
pub fn serialize<S: Serializer>(
+serialize in leo_span::span_json - Rust
leo_span::span_json

Function serialize

source
pub fn serialize<S: Serializer>(
     span: &Span,
     serializer: S,
-) -> Result<S::Ok, S::Error>
Expand description

The AST contains a few tuple-like enum variants that contain spans. +) -> Result<S::Ok, S::Error>

Expand description

The AST contains a few tuple-like enum variants that contain spans. #[derive(Serialize, Deserialize)] outputs these fields as anonymous mappings, which makes them difficult to remove from the JSON AST. This function provides a custom serialization that maps the keyword diff --git a/leo_span/span_json/index.html b/leo_span/span_json/index.html index 5300c2322a..306d991c7b 100644 --- a/leo_span/span_json/index.html +++ b/leo_span/span_json/index.html @@ -1,4 +1,4 @@ -leo_span::span_json - Rust

Module leo_span::span_json

source ·
Expand description

Provides custom serialize/deserialize implementations for Span.

+leo_span::span_json - Rust
leo_span

Module span_json

source
Expand description

Provides custom serialize/deserialize implementations for Span.

Structs§

  • This visitor is used by the deserializer to unwrap mappings and extract span information.

Functions§

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for T
where + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_span/symbol/constant.PRE_DEFINED.html b/leo_span/symbol/constant.PRE_DEFINED.html index 69a60e50cc..273e6f954b 100644 --- a/leo_span/symbol/constant.PRE_DEFINED.html +++ b/leo_span/symbol/constant.PRE_DEFINED.html @@ -1 +1 @@ -PRE_DEFINED in leo_span::symbol - Rust

Constant leo_span::symbol::PRE_DEFINED

source ·
const PRE_DEFINED: &[&str];
\ No newline at end of file +PRE_DEFINED in leo_span::symbol - Rust
leo_span::symbol

Constant PRE_DEFINED

source
const PRE_DEFINED: &[&str];
\ No newline at end of file diff --git a/leo_span/symbol/enum.InternedStr.html b/leo_span/symbol/enum.InternedStr.html index 862dfb86d9..0508da25cd 100644 --- a/leo_span/symbol/enum.InternedStr.html +++ b/leo_span/symbol/enum.InternedStr.html @@ -1,13 +1,13 @@ -InternedStr in leo_span::symbol - Rust

Enum leo_span::symbol::InternedStr

source ·
enum InternedStr {
-    Static(&'static str),
-    Owned(Box<str>),
+InternedStr in leo_span::symbol - Rust
leo_span::symbol

Enum InternedStr

source
enum InternedStr {
+    Static(&'static str),
+    Owned(Box<str>),
 }
Expand description

An interned string, either prefilled “at compile time” (Static), or created at runtime (Owned).

-

Variants§

§

Static(&'static str)

String is stored “at compile time”, i.e. prefilled.

-
§

Owned(Box<str>)

String is constructed and stored during runtime.

-

Methods from Deref<Target = str>§

1.0.0 · source

pub fn len(&self) -> usize

Returns the length of self.

-

This length is in bytes, not chars or graphemes. In other words, +

Variants§

§

Static(&'static str)

String is stored “at compile time”, i.e. prefilled.

+
§

Owned(Box<str>)

String is constructed and stored during runtime.

+

Methods from Deref<Target = str>§

1.0.0 · source

pub fn len(&self) -> usize

Returns the length of self.

+

This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

§Examples
let len = "foo".len();
@@ -15,14 +15,14 @@ 
§Examples
assert_eq!("ƒoo".len(), 4); // fancy f! assert_eq!("ƒoo".chars().count(), 3);
-
1.0.0 · source

pub fn is_empty(&self) -> bool

Returns true if self has a length of zero bytes.

+
1.0.0 · source

pub fn is_empty(&self) -> bool

Returns true if self has a length of zero bytes.

§Examples
let s = "";
 assert!(s.is_empty());
 
 let s = "not empty";
 assert!(!s.is_empty());
-
1.9.0 · source

pub fn is_char_boundary(&self, index: usize) -> bool

Checks that index-th byte is the first byte in a UTF-8 code point +

1.9.0 · source

pub fn is_char_boundary(&self, index: usize) -> bool

Checks that index-th byte is the first byte in a UTF-8 code point sequence or the end of the string.

The start and end of the string (when index == self.len()) are considered to be boundaries.

@@ -39,7 +39,7 @@
§Examples
// third byte of `老` assert!(!s.is_char_boundary(8));
-
source

pub fn floor_char_boundary(&self, index: usize) -> usize

🔬This is a nightly-only experimental API. (round_char_boundary)

Finds the closest x not exceeding index where is_char_boundary(x) is true.

+
source

pub fn floor_char_boundary(&self, index: usize) -> usize

🔬This is a nightly-only experimental API. (round_char_boundary)

Finds the closest x not exceeding index where is_char_boundary(x) is true.

This method can help you truncate a string so that it’s still valid UTF-8, but doesn’t exceed a given number of bytes. Note that this is done purely at the character level and can still visually split graphemes, even though the underlying characters aren’t @@ -54,9 +54,9 @@

§Examples
let closest = s.floor_char_boundary(13); assert_eq!(closest, 10); assert_eq!(&s[..closest], "❤️🧡");
-
source

pub fn ceil_char_boundary(&self, index: usize) -> usize

🔬This is a nightly-only experimental API. (round_char_boundary)

Finds the closest x not below index where is_char_boundary(x) is true.

+
source

pub fn ceil_char_boundary(&self, index: usize) -> usize

🔬This is a nightly-only experimental API. (round_char_boundary)

Finds the closest x not below index where is_char_boundary(x) is true.

If index is greater than the length of the string, this returns the length of the string.

-

This method is the natural complement to floor_char_boundary. See that method +

This method is the natural complement to floor_char_boundary. See that method for more details.

§Examples
#![feature(round_char_boundary)]
@@ -67,24 +67,24 @@ 
§Examples
let closest = s.ceil_char_boundary(13); assert_eq!(closest, 14); assert_eq!(&s[..closest], "❤️🧡💛");
-
1.0.0 · source

pub fn as_bytes(&self) -> &[u8]

Converts a string slice to a byte slice. To convert the byte slice back -into a string slice, use the from_utf8 function.

+
1.0.0 · source

pub fn as_bytes(&self) -> &[u8]

Converts a string slice to a byte slice. To convert the byte slice back +into a string slice, use the from_utf8 function.

§Examples
let bytes = "bors".as_bytes();
 assert_eq!(b"bors", bytes);
-
1.0.0 · source

pub fn as_ptr(&self) -> *const u8

Converts a string slice to a raw pointer.

+
1.0.0 · source

pub fn as_ptr(&self) -> *const u8

Converts a string slice to a raw pointer.

As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

The caller must ensure that the returned pointer is never written to. -If you need to mutate the contents of the string slice, use as_mut_ptr.

+If you need to mutate the contents of the string slice, use as_mut_ptr.

§Examples
let s = "Hello";
 let ptr = s.as_ptr();
-
1.20.0 · source

pub fn get<I>(&self, i: I) -> Option<&<I as SliceIndex<str>>::Output>
where - I: SliceIndex<str>,

Returns a subslice of str.

+
1.20.0 · source

pub fn get<I>(&self, i: I) -> Option<&<I as SliceIndex<str>>::Output>
where + I: SliceIndex<str>,

Returns a subslice of str.

This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

+None whenever equivalent indexing operation would panic.

§Examples
let v = String::from("🗻∈🌏");
 
@@ -96,8 +96,8 @@ 
§Examples
// out of bounds assert!(v.get(..42).is_none());
-
1.20.0 · source

pub unsafe fn get_unchecked<I>(&self, i: I) -> &<I as SliceIndex<str>>::Output
where - I: SliceIndex<str>,

Returns an unchecked subslice of str.

+
1.20.0 · source

pub unsafe fn get_unchecked<I>(&self, i: I) -> &<I as SliceIndex<str>>::Output
where + I: SliceIndex<str>,

Returns an unchecked subslice of str.

This is the unchecked alternative to indexing the str.

§Safety

Callers of this function are responsible that these preconditions are @@ -116,14 +116,14 @@

§Examples
assert_eq!("∈", v.get_unchecked(4..7)); assert_eq!("🌏", v.get_unchecked(7..11)); }
-
1.0.0 · source

pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str

👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

Creates a string slice from another string slice, bypassing safety +

1.0.0 · source

pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str

👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

Creates a string slice from another string slice, bypassing safety checks.

This is generally not recommended, use with caution! For a safe -alternative see str and Index.

+alternative see str and Index.

This new slice goes from begin to end, including begin but excluding end.

To get a mutable string slice instead, see the -slice_mut_unchecked method.

+slice_mut_unchecked method.

§Safety

Callers of this function are responsible that three preconditions are satisfied:

@@ -144,17 +144,17 @@
§Examples
unsafe { assert_eq!("world", s.slice_unchecked(7, 12)); }
-
1.4.0 · source

pub fn split_at(&self, mid: usize) -> (&str, &str)

Divides one string slice into two at an index.

+
1.4.0 · source

pub fn split_at(&self, mid: usize) -> (&str, &str)

Divides one string slice into two at an index.

The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

-

To get mutable string slices instead, see the split_at_mut +

To get mutable string slices instead, see the split_at_mut method.

§Panics

Panics if mid is not on a UTF-8 code point boundary, or if it is past the end of the last code point of the string slice. For a non-panicking -alternative see split_at_checked.

+alternative see split_at_checked.

§Examples
let s = "Per Martin-Löf";
 
@@ -162,13 +162,13 @@ 
§Examplesassert_eq!("Per", first); assert_eq!(" Martin-Löf", last);
-
1.80.0 · source

pub fn split_at_checked(&self, mid: usize) -> Option<(&str, &str)>

Divides one string slice into two at an index.

+
1.80.0 · source

pub fn split_at_checked(&self, mid: usize) -> Option<(&str, &str)>

Divides one string slice into two at an index.

The argument, mid, should be a valid byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point. The method returns None if that’s not the case.

The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

-

To get mutable string slices instead, see the split_at_mut_checked +

To get mutable string slices instead, see the split_at_mut_checked method.

§Examples
let s = "Per Martin-Löf";
@@ -179,10 +179,10 @@ 
§Examplesassert_eq!(None, s.split_at_checked(13)); // Inside “ö” assert_eq!(None, s.split_at_checked(16)); // Beyond the string length
-
1.0.0 · source

pub fn chars(&self) -> Chars<'_>

Returns an iterator over the chars of a string slice.

+
1.0.0 · source

pub fn chars(&self) -> Chars<'_>

Returns an iterator over the chars of a string slice.

As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns such an iterator.

-

It’s important to remember that char represents a Unicode Scalar +string slice by char. This method returns such an iterator.

+

It’s important to remember that char represents a Unicode Scalar Value, and might not match your idea of what a ‘character’ is. Iteration over grapheme clusters may be what you actually want. This functionality is not provided by Rust’s standard library, check crates.io instead.

@@ -205,7 +205,7 @@
§Examplesassert_eq!(Some('e'), chars.next()); assert_eq!(None, chars.next());
-

Remember, chars might not match your intuition about characters:

+

Remember, chars might not match your intuition about characters:

let y = "y̆";
 
@@ -215,12 +215,12 @@ 
§Examplesassert_eq!(Some('\u{0306}'), chars.next()); assert_eq!(None, chars.next());
-
1.0.0 · source

pub fn char_indices(&self) -> CharIndices<'_>

Returns an iterator over the chars of a string slice, and their +

1.0.0 · source

pub fn char_indices(&self) -> CharIndices<'_>

Returns an iterator over the chars of a string slice, and their positions.

As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns an iterator of both -these chars, as well as their byte positions.

-

The iterator yields tuples. The position is first, the char is +string slice by char. This method returns an iterator of both +these chars, as well as their byte positions.

+

The iterator yields tuples. The position is first, the char is second.

§Examples

Basic usage:

@@ -241,7 +241,7 @@
§Examplesassert_eq!(Some((6, 'e')), char_indices.next()); assert_eq!(None, char_indices.next());
-

Remember, chars might not match your intuition about characters:

+

Remember, chars might not match your intuition about characters:

let yes = "y̆es";
 
@@ -255,7 +255,7 @@ 
§Examplesassert_eq!(Some((4, 's')), char_indices.next()); assert_eq!(None, char_indices.next());
-
1.0.0 · source

pub fn bytes(&self) -> Bytes<'_>

Returns an iterator over the bytes of a string slice.

+
1.0.0 · source

pub fn bytes(&self) -> Bytes<'_>

Returns an iterator over the bytes of a string slice.

As a string slice consists of a sequence of bytes, we can iterate through a string slice by byte. This method returns such an iterator.

§Examples
@@ -267,12 +267,12 @@
§Examplesassert_eq!(Some(b's'), bytes.next()); assert_eq!(None, bytes.next());
-
1.1.0 · source

pub fn split_whitespace(&self) -> SplitWhitespace<'_>

Splits a string slice by whitespace.

+
1.1.0 · source

pub fn split_whitespace(&self) -> SplitWhitespace<'_>

Splits a string slice by whitespace.

The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of whitespace.

‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space. If you only want to split on ASCII whitespace -instead, use split_ascii_whitespace.

+instead, use split_ascii_whitespace.

§Examples

Basic usage:

@@ -297,10 +297,10 @@
§Examples
assert_eq!("".split_whitespace().next(), None);
 assert_eq!("   ".split_whitespace().next(), None);
-
1.34.0 · source

pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_>

Splits a string slice by ASCII whitespace.

+
1.34.0 · source

pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_>

Splits a string slice by ASCII whitespace.

The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of ASCII whitespace.

-

To split by Unicode Whitespace instead, use split_whitespace.

+

To split by Unicode Whitespace instead, use split_whitespace.

§Examples

Basic usage:

@@ -325,7 +325,7 @@
§Examples
assert_eq!("".split_ascii_whitespace().next(), None);
 assert_eq!("   ".split_ascii_whitespace().next(), None);
-
1.0.0 · source

pub fn lines(&self) -> Lines<'_>

Returns an iterator over the lines of a string, as string slices.

+
1.0.0 · source

pub fn lines(&self) -> Lines<'_>

Returns an iterator over the lines of a string, as string slices.

Lines are split at line endings that are either newlines (\n) or sequences of a carriage return followed by a line feed (\r\n).

Line terminators are not included in the lines returned by the iterator.

@@ -359,8 +359,8 @@
§Examplesassert_eq!(Some("baz"), lines.next()); assert_eq!(None, lines.next());
-
1.0.0 · source

pub fn lines_any(&self) -> LinesAny<'_>

👎Deprecated since 1.4.0: use lines() instead now

Returns an iterator over the lines of a string.

-
1.8.0 · source

pub fn encode_utf16(&self) -> EncodeUtf16<'_>

Returns an iterator of u16 over the string encoded as UTF-16.

+
1.0.0 · source

pub fn lines_any(&self) -> LinesAny<'_>

👎Deprecated since 1.4.0: use lines() instead now

Returns an iterator over the lines of a string.

+
1.8.0 · source

pub fn encode_utf16(&self) -> EncodeUtf16<'_>

Returns an iterator of u16 over the string encoded as UTF-16.

§Examples
let text = "Zażółć gęślą jaźń";
 
@@ -368,27 +368,27 @@ 
§Exampleslet utf16_len = text.encode_utf16().count(); assert!(utf16_len <= utf8_len);
-
1.0.0 · source

pub fn contains<P>(&self, pat: P) -> bool
where - P: Pattern,

Returns true if the given pattern matches a sub-slice of +

1.0.0 · source

pub fn contains<P>(&self, pat: P) -> bool
where + P: Pattern,

Returns true if the given pattern matches a sub-slice of this string slice.

Returns false if it does not.

-

The pattern can be a &str, char, a slice of chars, or a +

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

§Examples
let bananas = "bananas";
 
 assert!(bananas.contains("nana"));
 assert!(!bananas.contains("apples"));
-
1.0.0 · source

pub fn starts_with<P>(&self, pat: P) -> bool
where - P: Pattern,

Returns true if the given pattern matches a prefix of this +

1.0.0 · source

pub fn starts_with<P>(&self, pat: P) -> bool
where + P: Pattern,

Returns true if the given pattern matches a prefix of this string slice.

Returns false if it does not.

-

The pattern can be a &str, in which case this function will return true if +

The pattern can be a &str, in which case this function will return true if the &str is a prefix of this string slice.

-

The pattern can also be a char, a slice of chars, or a +

The pattern can also be a char, a slice of chars, or a function or closure that determines if a character matches. These will only be checked against the first character of this string slice. -Look at the second example below regarding behavior for slices of chars.

+Look at the second example below regarding behavior for slices of chars.

§Examples
let bananas = "bananas";
 
@@ -400,23 +400,23 @@ 
§Examples// Note that both of these assert successfully. assert!(bananas.starts_with(&['b', 'a', 'n', 'a'])); assert!(bananas.starts_with(&['a', 'b', 'c', 'd']));
-
1.0.0 · source

pub fn ends_with<P>(&self, pat: P) -> bool
where - P: Pattern, - <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Returns true if the given pattern matches a suffix of this +

1.0.0 · source

pub fn ends_with<P>(&self, pat: P) -> bool
where + P: Pattern, + <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Returns true if the given pattern matches a suffix of this string slice.

Returns false if it does not.

-

The pattern can be a &str, char, a slice of chars, or a +

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

§Examples
let bananas = "bananas";
 
 assert!(bananas.ends_with("anas"));
 assert!(!bananas.ends_with("nana"));
-
1.0.0 · source

pub fn find<P>(&self, pat: P) -> Option<usize>
where - P: Pattern,

Returns the byte index of the first character of this string slice that +

1.0.0 · source

pub fn find<P>(&self, pat: P) -> Option<usize>
where + P: Pattern,

Returns the byte index of the first character of this string slice that matches the pattern.

-

Returns None if the pattern doesn’t match.

-

The pattern can be a &str, char, a slice of chars, or a +

Returns None if the pattern doesn’t match.

+

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

§Examples

Simple patterns:

@@ -440,12 +440,12 @@
§Exampleslet x: &[_] = &['1', '2']; assert_eq!(s.find(x), None);
-
1.0.0 · source

pub fn rfind<P>(&self, pat: P) -> Option<usize>
where - P: Pattern, - <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Returns the byte index for the first character of the last match of the pattern in +

1.0.0 · source

pub fn rfind<P>(&self, pat: P) -> Option<usize>
where + P: Pattern, + <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Returns the byte index for the first character of the last match of the pattern in this string slice.

-

Returns None if the pattern doesn’t match.

-

The pattern can be a &str, char, a slice of chars, or a +

Returns None if the pattern doesn’t match.

+

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

§Examples

Simple patterns:

@@ -467,17 +467,17 @@
§Exampleslet x: &[_] = &['1', '2']; assert_eq!(s.rfind(x), None);
-
1.0.0 · source

pub fn split<P>(&self, pat: P) -> Split<'_, P>
where - P: Pattern,

Returns an iterator over substrings of this string slice, separated by +

1.0.0 · source

pub fn split<P>(&self, pat: P) -> Split<'_, P>
where + P: Pattern,

Returns an iterator over substrings of this string slice, separated by characters matched by a pattern.

-

The pattern can be a &str, char, a slice of chars, or a +

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

§Iterator behavior
-

The returned iterator will be a DoubleEndedIterator if the pattern +

The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

+elements. This is true for, e.g., char, but not for &str.

If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit method can be used.

+from a forward search, the rsplit method can be used.

§Examples

Simple patterns:

@@ -540,13 +540,13 @@
§ExamplesIt does not give you:

assert_eq!(d, &["a", "b", "c"]);
-

Use split_whitespace for this behavior.

-
1.51.0 · source

pub fn split_inclusive<P>(&self, pat: P) -> SplitInclusive<'_, P>
where - P: Pattern,

Returns an iterator over substrings of this string slice, separated by +

Use split_whitespace for this behavior.

+
1.51.0 · source

pub fn split_inclusive<P>(&self, pat: P) -> SplitInclusive<'_, P>
where + P: Pattern,

Returns an iterator over substrings of this string slice, separated by characters matched by a pattern.

Differs from the iterator produced by split in that split_inclusive leaves the matched part as the terminator of the substring.

-

The pattern can be a &str, char, a slice of chars, or a +

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

§Examples
let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb."
@@ -559,17 +559,17 @@ 
§Examples
let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb.\n"
     .split_inclusive('\n').collect();
 assert_eq!(v, ["Mary had a little lamb\n", "little lamb\n", "little lamb.\n"]);
-
1.0.0 · source

pub fn rsplit<P>(&self, pat: P) -> RSplit<'_, P>
where - P: Pattern, - <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Returns an iterator over substrings of the given string slice, separated +

1.0.0 · source

pub fn rsplit<P>(&self, pat: P) -> RSplit<'_, P>
where + P: Pattern, + <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Returns an iterator over substrings of the given string slice, separated by characters matched by a pattern and yielded in reverse order.

-

The pattern can be a &str, char, a slice of chars, or a +

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

§Iterator behavior

The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

-

For iterating from the front, the split method can be used.

+

For iterating from the front, the split method can be used.

§Examples

Simple patterns:

@@ -588,21 +588,21 @@
§Examples
let v: Vec<&str> = "abc1defXghi".rsplit(|c| c == '1' || c == 'X').collect();
 assert_eq!(v, ["ghi", "def", "abc"]);
-
1.0.0 · source

pub fn split_terminator<P>(&self, pat: P) -> SplitTerminator<'_, P>
where - P: Pattern,

Returns an iterator over substrings of the given string slice, separated +

1.0.0 · source

pub fn split_terminator<P>(&self, pat: P) -> SplitTerminator<'_, P>
where + P: Pattern,

Returns an iterator over substrings of the given string slice, separated by characters matched by a pattern.

-

The pattern can be a &str, char, a slice of chars, or a +

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

-

Equivalent to split, except that the trailing substring +

Equivalent to split, except that the trailing substring is skipped if empty.

This method can be used for string data that is terminated, rather than separated by a pattern.

§Iterator behavior
-

The returned iterator will be a DoubleEndedIterator if the pattern +

The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

+elements. This is true for, e.g., char, but not for &str.

If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit_terminator method can be used.

+from a forward search, the rsplit_terminator method can be used.

§Examples
let v: Vec<&str> = "A.B.".split_terminator('.').collect();
 assert_eq!(v, ["A", "B"]);
@@ -612,13 +612,13 @@ 
§Exampleslet v: Vec<&str> = "A.B:C.D".split_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["A", "B", "C", "D"]);
-
1.0.0 · source

pub fn rsplit_terminator<P>(&self, pat: P) -> RSplitTerminator<'_, P>
where - P: Pattern, - <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Returns an iterator over substrings of self, separated by characters +

1.0.0 · source

pub fn rsplit_terminator<P>(&self, pat: P) -> RSplitTerminator<'_, P>
where + P: Pattern, + <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Returns an iterator over substrings of self, separated by characters matched by a pattern and yielded in reverse order.

-

The pattern can be a &str, char, a slice of chars, or a +

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

-

Equivalent to split, except that the trailing substring is +

Equivalent to split, except that the trailing substring is skipped if empty.

This method can be used for string data that is terminated, rather than separated by a pattern.

@@ -626,7 +626,7 @@

The returned iterator requires that the pattern supports a reverse search, and it will be double ended if a forward/reverse search yields the same elements.

-

For iterating from the front, the split_terminator method can be +

For iterating from the front, the split_terminator method can be used.

§Examples
let v: Vec<&str> = "A.B.".rsplit_terminator('.').collect();
@@ -637,17 +637,17 @@ 
§Exampleslet v: Vec<&str> = "A.B:C.D".rsplit_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["D", "C", "B", "A"]);
-
1.0.0 · source

pub fn splitn<P>(&self, n: usize, pat: P) -> SplitN<'_, P>
where - P: Pattern,

Returns an iterator over substrings of the given string slice, separated +

1.0.0 · source

pub fn splitn<P>(&self, n: usize, pat: P) -> SplitN<'_, P>
where + P: Pattern,

Returns an iterator over substrings of the given string slice, separated by a pattern, restricted to returning at most n items.

If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

-

The pattern can be a &str, char, a slice of chars, or a +

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

§Iterator behavior

The returned iterator will not be double ended, because it is not efficient to support.

-

If the pattern allows a reverse search, the rsplitn method can be +

If the pattern allows a reverse search, the rsplitn method can be used.

§Examples

Simple patterns:

@@ -667,19 +667,19 @@
§Examples
let v: Vec<&str> = "abc1defXghi".splitn(2, |c| c == '1' || c == 'X').collect();
 assert_eq!(v, ["abc", "defXghi"]);
-
1.0.0 · source

pub fn rsplitn<P>(&self, n: usize, pat: P) -> RSplitN<'_, P>
where - P: Pattern, - <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Returns an iterator over substrings of this string slice, separated by a +

1.0.0 · source

pub fn rsplitn<P>(&self, n: usize, pat: P) -> RSplitN<'_, P>
where + P: Pattern, + <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Returns an iterator over substrings of this string slice, separated by a pattern, starting from the end of the string, restricted to returning at most n items.

If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

-

The pattern can be a &str, char, a slice of chars, or a +

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

§Iterator behavior

The returned iterator will not be double ended, because it is not efficient to support.

-

For splitting from the front, the splitn method can be used.

+

For splitting from the front, the splitn method can be used.

§Examples

Simple patterns:

@@ -695,69 +695,69 @@
§Examples
let v: Vec<&str> = "abc1defXghi".rsplitn(2, |c| c == '1' || c == 'X').collect();
 assert_eq!(v, ["ghi", "abc1def"]);
-
1.52.0 · source

pub fn split_once<P>(&self, delimiter: P) -> Option<(&str, &str)>
where - P: Pattern,

Splits the string on the first occurrence of the specified delimiter and +

1.52.0 · source

pub fn split_once<P>(&self, delimiter: P) -> Option<(&str, &str)>
where + P: Pattern,

Splits the string on the first occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

§Examples
assert_eq!("cfg".split_once('='), None);
 assert_eq!("cfg=".split_once('='), Some(("cfg", "")));
 assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
 assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
-
1.52.0 · source

pub fn rsplit_once<P>(&self, delimiter: P) -> Option<(&str, &str)>
where - P: Pattern, - <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Splits the string on the last occurrence of the specified delimiter and +

1.52.0 · source

pub fn rsplit_once<P>(&self, delimiter: P) -> Option<(&str, &str)>
where + P: Pattern, + <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Splits the string on the last occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

§Examples
assert_eq!("cfg".rsplit_once('='), None);
 assert_eq!("cfg=foo".rsplit_once('='), Some(("cfg", "foo")));
 assert_eq!("cfg=foo=bar".rsplit_once('='), Some(("cfg=foo", "bar")));
-
1.2.0 · source

pub fn matches<P>(&self, pat: P) -> Matches<'_, P>
where - P: Pattern,

Returns an iterator over the disjoint matches of a pattern within the +

1.2.0 · source

pub fn matches<P>(&self, pat: P) -> Matches<'_, P>
where + P: Pattern,

Returns an iterator over the disjoint matches of a pattern within the given string slice.

-

The pattern can be a &str, char, a slice of chars, or a +

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

§Iterator behavior
-

The returned iterator will be a DoubleEndedIterator if the pattern +

The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

+elements. This is true for, e.g., char, but not for &str.

If the pattern allows a reverse search but its results might differ -from a forward search, the rmatches method can be used.

+from a forward search, the rmatches method can be used.

§Examples
let v: Vec<&str> = "abcXXXabcYYYabc".matches("abc").collect();
 assert_eq!(v, ["abc", "abc", "abc"]);
 
 let v: Vec<&str> = "1abc2abc3".matches(char::is_numeric).collect();
 assert_eq!(v, ["1", "2", "3"]);
-
1.2.0 · source

pub fn rmatches<P>(&self, pat: P) -> RMatches<'_, P>
where - P: Pattern, - <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Returns an iterator over the disjoint matches of a pattern within this +

1.2.0 · source

pub fn rmatches<P>(&self, pat: P) -> RMatches<'_, P>
where + P: Pattern, + <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Returns an iterator over the disjoint matches of a pattern within this string slice, yielded in reverse order.

-

The pattern can be a &str, char, a slice of chars, or a +

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

§Iterator behavior

The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

-

For iterating from the front, the matches method can be used.

+

For iterating from the front, the matches method can be used.

§Examples
let v: Vec<&str> = "abcXXXabcYYYabc".rmatches("abc").collect();
 assert_eq!(v, ["abc", "abc", "abc"]);
 
 let v: Vec<&str> = "1abc2abc3".rmatches(char::is_numeric).collect();
 assert_eq!(v, ["3", "2", "1"]);
-
1.5.0 · source

pub fn match_indices<P>(&self, pat: P) -> MatchIndices<'_, P>
where - P: Pattern,

Returns an iterator over the disjoint matches of a pattern within this string +

1.5.0 · source

pub fn match_indices<P>(&self, pat: P) -> MatchIndices<'_, P>
where + P: Pattern,

Returns an iterator over the disjoint matches of a pattern within this string slice as well as the index that the match starts at.

For matches of pat within self that overlap, only the indices corresponding to the first match are returned.

-

The pattern can be a &str, char, a slice of chars, or a +

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

§Iterator behavior
-

The returned iterator will be a DoubleEndedIterator if the pattern +

The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

+elements. This is true for, e.g., char, but not for &str.

If the pattern allows a reverse search but its results might differ -from a forward search, the rmatch_indices method can be used.

+from a forward search, the rmatch_indices method can be used.

§Examples
let v: Vec<_> = "abcXXXabcYYYabc".match_indices("abc").collect();
 assert_eq!(v, [(0, "abc"), (6, "abc"), (12, "abc")]);
@@ -767,19 +767,19 @@ 
§Exampleslet v: Vec<_> = "ababa".match_indices("aba").collect(); assert_eq!(v, [(0, "aba")]); // only the first `aba`
-
1.5.0 · source

pub fn rmatch_indices<P>(&self, pat: P) -> RMatchIndices<'_, P>
where - P: Pattern, - <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Returns an iterator over the disjoint matches of a pattern within self, +

1.5.0 · source

pub fn rmatch_indices<P>(&self, pat: P) -> RMatchIndices<'_, P>
where + P: Pattern, + <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Returns an iterator over the disjoint matches of a pattern within self, yielded in reverse order along with the index of the match.

For matches of pat within self that overlap, only the indices corresponding to the last match are returned.

-

The pattern can be a &str, char, a slice of chars, or a +

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

§Iterator behavior

The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

-

For iterating from the front, the match_indices method can be used.

+

For iterating from the front, the match_indices method can be used.

§Examples
let v: Vec<_> = "abcXXXabcYYYabc".rmatch_indices("abc").collect();
 assert_eq!(v, [(12, "abc"), (6, "abc"), (0, "abc")]);
@@ -789,14 +789,14 @@ 
§Exampleslet v: Vec<_> = "ababa".rmatch_indices("aba").collect(); assert_eq!(v, [(2, "aba")]); // only the last `aba`
-
1.0.0 · source

pub fn trim(&self) -> &str

Returns a string slice with leading and trailing whitespace removed.

+
1.0.0 · source

pub fn trim(&self) -> &str

Returns a string slice with leading and trailing whitespace removed.

‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

§Examples
let s = "\n Hello\tworld\t\n";
 
 assert_eq!("Hello\tworld", s.trim());
-
1.30.0 · source

pub fn trim_start(&self) -> &str

Returns a string slice with leading whitespace removed.

+
1.30.0 · source

pub fn trim_start(&self) -> &str

Returns a string slice with leading whitespace removed.

‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

§Text directionality
@@ -816,7 +816,7 @@
§Exampleslet s = " עברית "; assert!(Some('ע') == s.trim_start().chars().next());
-
1.30.0 · source

pub fn trim_end(&self) -> &str

Returns a string slice with trailing whitespace removed.

+
1.30.0 · source

pub fn trim_end(&self) -> &str

Returns a string slice with trailing whitespace removed.

‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

§Text directionality
@@ -836,7 +836,7 @@
§Exampleslet s = " עברית "; assert!(Some('ת') == s.trim_end().chars().rev().next());
-
1.0.0 · source

pub fn trim_left(&self) -> &str

👎Deprecated since 1.33.0: superseded by trim_start

Returns a string slice with leading whitespace removed.

+
1.0.0 · source

pub fn trim_left(&self) -> &str

👎Deprecated since 1.33.0: superseded by trim_start

Returns a string slice with leading whitespace removed.

‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

§Text directionality
@@ -857,7 +857,7 @@
§Exampleslet s = " עברית"; assert!(Some('ע') == s.trim_left().chars().next());
-
1.0.0 · source

pub fn trim_right(&self) -> &str

👎Deprecated since 1.33.0: superseded by trim_end

Returns a string slice with trailing whitespace removed.

+
1.0.0 · source

pub fn trim_right(&self) -> &str

👎Deprecated since 1.33.0: superseded by trim_end

Returns a string slice with trailing whitespace removed.

‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

§Text directionality
@@ -878,11 +878,11 @@
§Exampleslet s = "עברית "; assert!(Some('ת') == s.trim_right().chars().rev().next());
-
1.0.0 · source

pub fn trim_matches<P>(&self, pat: P) -> &str
where - P: Pattern, - <P as Pattern>::Searcher<'a>: for<'a> DoubleEndedSearcher<'a>,

Returns a string slice with all prefixes and suffixes that match a +

1.0.0 · source

pub fn trim_matches<P>(&self, pat: P) -> &str
where + P: Pattern, + <P as Pattern>::Searcher<'a>: for<'a> DoubleEndedSearcher<'a>,

Returns a string slice with all prefixes and suffixes that match a pattern repeatedly removed.

-

The pattern can be a char, a slice of chars, or a function +

The pattern can be a char, a slice of chars, or a function or closure that determines if a character matches.

§Examples

Simple patterns:

@@ -895,10 +895,10 @@
§ExamplesA more complex pattern, using a closure:

assert_eq!("1foo1barXX".trim_matches(|c| c == '1' || c == 'X'), "foo1bar");
-
1.30.0 · source

pub fn trim_start_matches<P>(&self, pat: P) -> &str
where - P: Pattern,

Returns a string slice with all prefixes that match a pattern +

1.30.0 · source

pub fn trim_start_matches<P>(&self, pat: P) -> &str
where + P: Pattern,

Returns a string slice with all prefixes that match a pattern repeatedly removed.

-

The pattern can be a &str, char, a slice of chars, or a +

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

§Text directionality

A string is a sequence of bytes. start in this context means the first @@ -911,34 +911,34 @@

§Exampleslet x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_start_matches(x), "foo1bar12");
-
1.45.0 · source

pub fn strip_prefix<P>(&self, prefix: P) -> Option<&str>
where - P: Pattern,

Returns a string slice with the prefix removed.

+
1.45.0 · source

pub fn strip_prefix<P>(&self, prefix: P) -> Option<&str>
where + P: Pattern,

Returns a string slice with the prefix removed.

If the string starts with the pattern prefix, returns the substring after the prefix, wrapped in Some. Unlike trim_start_matches, this method removes the prefix exactly once.

If the string does not start with prefix, returns None.

-

The pattern can be a &str, char, a slice of chars, or a +

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

§Examples
assert_eq!("foo:bar".strip_prefix("foo:"), Some("bar"));
 assert_eq!("foo:bar".strip_prefix("bar"), None);
 assert_eq!("foofoo".strip_prefix("foo"), Some("foo"));
-
1.45.0 · source

pub fn strip_suffix<P>(&self, suffix: P) -> Option<&str>
where - P: Pattern, - <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Returns a string slice with the suffix removed.

+
1.45.0 · source

pub fn strip_suffix<P>(&self, suffix: P) -> Option<&str>
where + P: Pattern, + <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Returns a string slice with the suffix removed.

If the string ends with the pattern suffix, returns the substring before the suffix, wrapped in Some. Unlike trim_end_matches, this method removes the suffix exactly once.

If the string does not end with suffix, returns None.

-

The pattern can be a &str, char, a slice of chars, or a +

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

§Examples
assert_eq!("bar:foo".strip_suffix(":foo"), Some("bar"));
 assert_eq!("bar:foo".strip_suffix("bar"), None);
 assert_eq!("foofoo".strip_suffix("foo"), Some("foo"));
-
1.30.0 · source

pub fn trim_end_matches<P>(&self, pat: P) -> &str
where - P: Pattern, - <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Returns a string slice with all suffixes that match a pattern +

1.30.0 · source

pub fn trim_end_matches<P>(&self, pat: P) -> &str
where + P: Pattern, + <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

Returns a string slice with all suffixes that match a pattern repeatedly removed.

-

The pattern can be a &str, char, a slice of chars, or a +

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

§Text directionality

A string is a sequence of bytes. end in this context means the last @@ -956,10 +956,10 @@

§ExamplesA more complex pattern, using a closure:

assert_eq!("1fooX".trim_end_matches(|c| c == '1' || c == 'X'), "1foo");
-
1.0.0 · source

pub fn trim_left_matches<P>(&self, pat: P) -> &str
where - P: Pattern,

👎Deprecated since 1.33.0: superseded by trim_start_matches

Returns a string slice with all prefixes that match a pattern +

1.0.0 · source

pub fn trim_left_matches<P>(&self, pat: P) -> &str
where + P: Pattern,

👎Deprecated since 1.33.0: superseded by trim_start_matches

Returns a string slice with all prefixes that match a pattern repeatedly removed.

-

The pattern can be a &str, char, a slice of chars, or a +

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

§Text directionality

A string is a sequence of bytes. ‘Left’ in this context means the first @@ -972,11 +972,11 @@

§Exampleslet x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_left_matches(x), "foo1bar12");
-
1.0.0 · source

pub fn trim_right_matches<P>(&self, pat: P) -> &str
where - P: Pattern, - <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

👎Deprecated since 1.33.0: superseded by trim_end_matches

Returns a string slice with all suffixes that match a pattern +

1.0.0 · source

pub fn trim_right_matches<P>(&self, pat: P) -> &str
where + P: Pattern, + <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>,

👎Deprecated since 1.33.0: superseded by trim_end_matches

Returns a string slice with all suffixes that match a pattern repeatedly removed.

-

The pattern can be a &str, char, a slice of chars, or a +

The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

§Text directionality

A string is a sequence of bytes. ‘Right’ in this context means the last @@ -994,16 +994,16 @@

§ExamplesA more complex pattern, using a closure:

assert_eq!("1fooX".trim_right_matches(|c| c == '1' || c == 'X'), "1foo");
-
1.0.0 · source

pub fn parse<F>(&self) -> Result<F, <F as FromStr>::Err>
where - F: FromStr,

Parses this string slice into another type.

+
1.0.0 · source

pub fn parse<F>(&self) -> Result<F, <F as FromStr>::Err>
where + F: FromStr,

Parses this string slice into another type.

Because parse is so general, it can cause problems with type inference. As such, parse is one of the few times you’ll see the syntax affectionately known as the ‘turbofish’: ::<>. This helps the inference algorithm understand specifically which type you’re trying to parse into.

-

parse can parse into any type that implements the FromStr trait.

+

parse can parse into any type that implements the FromStr trait.

§Errors
-

Will return Err if it’s not possible to parse this string slice into +

Will return Err if it’s not possible to parse this string slice into the desired type.

§Examples

Basic usage

@@ -1021,45 +1021,45 @@
§Examples
let nope = "j".parse::<u32>();
 
 assert!(nope.is_err());
-
1.23.0 · source

pub fn is_ascii(&self) -> bool

Checks if all characters in this string are within the ASCII range.

+
1.23.0 · source

pub fn is_ascii(&self) -> bool

Checks if all characters in this string are within the ASCII range.

§Examples
let ascii = "hello!\n";
 let non_ascii = "Grüße, Jürgen ❤";
 
 assert!(ascii.is_ascii());
 assert!(!non_ascii.is_ascii());
-
source

pub fn as_ascii(&self) -> Option<&[AsciiChar]>

🔬This is a nightly-only experimental API. (ascii_char)

If this string slice is_ascii, returns it as a slice -of ASCII characters, otherwise returns None.

-
1.23.0 · source

pub fn eq_ignore_ascii_case(&self, other: &str) -> bool

Checks that two strings are an ASCII case-insensitive match.

+
source

pub fn as_ascii(&self) -> Option<&[AsciiChar]>

🔬This is a nightly-only experimental API. (ascii_char)

If this string slice is_ascii, returns it as a slice +of ASCII characters, otherwise returns None.

+
1.23.0 · source

pub fn eq_ignore_ascii_case(&self, other: &str) -> bool

Checks that two strings are an ASCII case-insensitive match.

Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), but without allocating and copying temporaries.

§Examples
assert!("Ferris".eq_ignore_ascii_case("FERRIS"));
 assert!("Ferrös".eq_ignore_ascii_case("FERRöS"));
 assert!(!"Ferrös".eq_ignore_ascii_case("FERRÖS"));
-
1.80.0 · source

pub fn trim_ascii_start(&self) -> &str

Returns a string slice with leading ASCII whitespace removed.

+
1.80.0 · source

pub fn trim_ascii_start(&self) -> &str

Returns a string slice with leading ASCII whitespace removed.

‘Whitespace’ refers to the definition used by -u8::is_ascii_whitespace.

+u8::is_ascii_whitespace.

§Examples
assert_eq!(" \t \u{3000}hello world\n".trim_ascii_start(), "\u{3000}hello world\n");
 assert_eq!("  ".trim_ascii_start(), "");
 assert_eq!("".trim_ascii_start(), "");
-
1.80.0 · source

pub fn trim_ascii_end(&self) -> &str

Returns a string slice with trailing ASCII whitespace removed.

+
1.80.0 · source

pub fn trim_ascii_end(&self) -> &str

Returns a string slice with trailing ASCII whitespace removed.

‘Whitespace’ refers to the definition used by -u8::is_ascii_whitespace.

+u8::is_ascii_whitespace.

§Examples
assert_eq!("\r hello world\u{3000}\n ".trim_ascii_end(), "\r hello world\u{3000}");
 assert_eq!("  ".trim_ascii_end(), "");
 assert_eq!("".trim_ascii_end(), "");
-
1.80.0 · source

pub fn trim_ascii(&self) -> &str

Returns a string slice with leading and trailing ASCII whitespace +

1.80.0 · source

pub fn trim_ascii(&self) -> &str

Returns a string slice with leading and trailing ASCII whitespace removed.

‘Whitespace’ refers to the definition used by -u8::is_ascii_whitespace.

+u8::is_ascii_whitespace.

§Examples
assert_eq!("\r hello world\n ".trim_ascii(), "hello world");
 assert_eq!("  ".trim_ascii(), "");
 assert_eq!("".trim_ascii(), "");
-
1.34.0 · source

pub fn escape_debug(&self) -> EscapeDebug<'_>

Returns an iterator that escapes each char in self with char::escape_debug.

+
1.34.0 · source

pub fn escape_debug(&self) -> EscapeDebug<'_>

Returns an iterator that escapes each char in self with char::escape_debug.

Note: only extended grapheme codepoints that begin the string will be escaped.

§Examples
@@ -1078,7 +1078,7 @@
§ExamplesUsing to_string:

assert_eq!("❤\n!".escape_debug().to_string(), "❤\\n!");
-
1.34.0 · source

pub fn escape_default(&self) -> EscapeDefault<'_>

Returns an iterator that escapes each char in self with char::escape_default.

+
1.34.0 · source

pub fn escape_default(&self) -> EscapeDefault<'_>

Returns an iterator that escapes each char in self with char::escape_default.

§Examples

As an iterator:

@@ -1095,7 +1095,7 @@
§ExamplesUsing to_string:

assert_eq!("❤\n!".escape_default().to_string(), "\\u{2764}\\n!");
-
1.34.0 · source

pub fn escape_unicode(&self) -> EscapeUnicode<'_>

Returns an iterator that escapes each char in self with char::escape_unicode.

+
1.34.0 · source

pub fn escape_unicode(&self) -> EscapeUnicode<'_>

Returns an iterator that escapes each char in self with char::escape_unicode.

§Examples

As an iterator:

@@ -1112,12 +1112,12 @@
§ExamplesUsing to_string:

assert_eq!("❤\n!".escape_unicode().to_string(), "\\u{2764}\\u{a}\\u{21}");
-
source

pub fn substr_range(&self, substr: &str) -> Option<Range<usize>>

🔬This is a nightly-only experimental API. (substr_range)

Returns the range that a substring points to.

+
source

pub fn substr_range(&self, substr: &str) -> Option<Range<usize>>

🔬This is a nightly-only experimental API. (substr_range)

Returns the range that a substring points to.

Returns None if substr does not point within self.

-

Unlike str::find, this does not search through the string. +

Unlike str::find, this does not search through the string. Instead, it uses pointer arithmetic to find where in the string substr is derived from.

-

This is useful for extending str::split and similar methods.

+

This is useful for extending str::split and similar methods.

Note that this method may return false positives (typically either Some(0..0) or Some(self.len()..self.len())) if substr is a zero-length str that points at the beginning or end of another, @@ -1132,9 +1132,13 @@

§Examplesassert_eq!(iter.next(), Some(3..4)); assert_eq!(iter.next(), Some(6..7)); assert_eq!(iter.next(), Some(9..10));
-
1.0.0 · source

pub fn replace<P>(&self, from: P, to: &str) -> String
where - P: Pattern,

Replaces all matches of a pattern with another string.

-

replace creates a new String, and copies the data from this string slice into it. +

source

pub fn as_str(&self) -> &str

🔬This is a nightly-only experimental API. (str_as_str)

Returns the same string as a string slice &str.

+

This method is redundant when used directly on &str, but +it helps dereferencing other string-like types to string slices, +for example references to Box<str> or Arc<str>.

+
1.0.0 · source

pub fn replace<P>(&self, from: P, to: &str) -> String
where + P: Pattern,

Replaces all matches of a pattern with another string.

+

replace creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice.

§Examples
@@ -1144,13 +1148,13 @@
§Examplesassert_eq!("this is new", s.replace("old", "new")); assert_eq!("than an old", s.replace("is", "an"));
-

When the pattern doesn’t match, it returns this string slice as String:

+

When the pattern doesn’t match, it returns this string slice as String:

let s = "this is old";
 assert_eq!(s, s.replace("cookie monster", "little lamb"));
-
1.16.0 · source

pub fn replacen<P>(&self, pat: P, to: &str, count: usize) -> String
where - P: Pattern,

Replaces first N matches of a pattern with another string.

-

replacen creates a new String, and copies the data from this string slice into it. +

1.16.0 · source

pub fn replacen<P>(&self, pat: P, to: &str, count: usize) -> String
where + P: Pattern,

Replaces first N matches of a pattern with another string.

+

replacen creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice at most count times.

§Examples
@@ -1160,15 +1164,15 @@
§Examplesassert_eq!("new new 123 foo", s.replacen("foo", "new", 2)); assert_eq!("faa fao 123 foo", s.replacen('o', "a", 3)); assert_eq!("foo foo new23 foo", s.replacen(char::is_numeric, "new", 1));
-

When the pattern doesn’t match, it returns this string slice as String:

+

When the pattern doesn’t match, it returns this string slice as String:

let s = "this is old";
 assert_eq!(s, s.replacen("cookie monster", "little lamb", 10));
-
1.2.0 · source

pub fn to_lowercase(&self) -> String

Returns the lowercase equivalent of this string slice, as a new String.

+
1.2.0 · source

pub fn to_lowercase(&self) -> String

Returns the lowercase equivalent of this string slice, as a new String.

‘Lowercase’ is defined according to the terms of the Unicode Derived Core Property Lowercase.

Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

§Examples

Basic usage:

@@ -1191,11 +1195,11 @@
§Examples
let new_year = "农历新年";
 
 assert_eq!(new_year, new_year.to_lowercase());
-
1.2.0 · source

pub fn to_uppercase(&self) -> String

Returns the uppercase equivalent of this string slice, as a new String.

+
1.2.0 · source

pub fn to_uppercase(&self) -> String

Returns the uppercase equivalent of this string slice, as a new String.

‘Uppercase’ is defined according to the terms of the Unicode Derived Core Property Uppercase.

Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

§Examples

Basic usage:

@@ -1213,7 +1217,7 @@
§Examples
let s = "tschüß";
 
 assert_eq!("TSCHÜSS", s.to_uppercase());
-
1.16.0 · source

pub fn repeat(&self, n: usize) -> String

Creates a new String by repeating a string n times.

+
1.16.0 · source

pub fn repeat(&self, n: usize) -> String

Creates a new String by repeating a string n times.

§Panics

This function will panic if the capacity would overflow.

§Examples
@@ -1224,50 +1228,50 @@
§Examples
// this will panic at runtime
 let huge = "0123456789abcdef".repeat(usize::MAX);
-
1.23.0 · source

pub fn to_ascii_uppercase(&self) -> String

Returns a copy of this string where each character is mapped to its +

1.23.0 · source

pub fn to_ascii_uppercase(&self) -> String

Returns a copy of this string where each character is mapped to its ASCII upper case equivalent.

ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

-

To uppercase the value in-place, use make_ascii_uppercase.

+

To uppercase the value in-place, use make_ascii_uppercase.

To uppercase ASCII characters in addition to non-ASCII characters, use to_uppercase.

§Examples
let s = "Grüße, Jürgen ❤";
 
 assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
-
1.23.0 · source

pub fn to_ascii_lowercase(&self) -> String

Returns a copy of this string where each character is mapped to its +

1.23.0 · source

pub fn to_ascii_lowercase(&self) -> String

Returns a copy of this string where each character is mapped to its ASCII lower case equivalent.

ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

-

To lowercase the value in-place, use make_ascii_lowercase.

+

To lowercase the value in-place, use make_ascii_lowercase.

To lowercase ASCII characters in addition to non-ASCII characters, use to_lowercase.

§Examples
let s = "Grüße, Jürgen ❤";
 
 assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
-

Trait Implementations§

source§

impl Borrow<str> for InternedStr

source§

fn borrow(&self) -> &str

Immutably borrows from an owned value. Read more
source§

impl Deref for InternedStr

source§

type Target = str

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Hash for InternedStr

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where - H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for InternedStr

source§

fn eq(&self, other: &InternedStr) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Eq for InternedStr

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

Trait Implementations§

source§

impl Borrow<str> for InternedStr

source§

fn borrow(&self) -> &str

Immutably borrows from an owned value. Read more
source§

impl Deref for InternedStr

source§

type Target = str

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Hash for InternedStr

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for InternedStr

source§

fn eq(&self, other: &InternedStr) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Eq for InternedStr

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_span/symbol/fn.create_session_if_not_set_then.html b/leo_span/symbol/fn.create_session_if_not_set_then.html index 8b4b19a27e..65e80d3109 100644 --- a/leo_span/symbol/fn.create_session_if_not_set_then.html +++ b/leo_span/symbol/fn.create_session_if_not_set_then.html @@ -1,4 +1,4 @@ -create_session_if_not_set_then in leo_span::symbol - Rust

Function leo_span::symbol::create_session_if_not_set_then

source ·
pub fn create_session_if_not_set_then<R>(
-    f: impl FnOnce(&SessionGlobals) -> R,
+create_session_if_not_set_then in leo_span::symbol - Rust
leo_span::symbol

Function create_session_if_not_set_then

source
pub fn create_session_if_not_set_then<R>(
+    f: impl FnOnce(&SessionGlobals) -> R,
 ) -> R
Expand description

Creates the session globals and then runs the closure f.

\ No newline at end of file diff --git a/leo_span/symbol/fn.with_session_globals.html b/leo_span/symbol/fn.with_session_globals.html index 3b9ddfd3e4..ab0de5bd11 100644 --- a/leo_span/symbol/fn.with_session_globals.html +++ b/leo_span/symbol/fn.with_session_globals.html @@ -1,2 +1,2 @@ -with_session_globals in leo_span::symbol - Rust

Function leo_span::symbol::with_session_globals

source ·
pub fn with_session_globals<R>(f: impl FnOnce(&SessionGlobals) -> R) -> R
Expand description

Gives access to read or modify the session globals in f.

+with_session_globals in leo_span::symbol - Rust
leo_span::symbol

Function with_session_globals

source
pub fn with_session_globals<R>(f: impl FnOnce(&SessionGlobals) -> R) -> R
Expand description

Gives access to read or modify the session globals in f.

\ No newline at end of file diff --git a/leo_span/symbol/index.html b/leo_span/symbol/index.html index bff10a8dbe..c7f09b8142 100644 --- a/leo_span/symbol/index.html +++ b/leo_span/symbol/index.html @@ -1,4 +1,4 @@ -leo_span::symbol - Rust

Module leo_span::symbol

source ·

Modules§

Macros§

  • consts 🔒
    A helper for symbols defined below. +leo_span::symbol - Rust
    leo_span

    Module symbol

    source

    Modules§

    Macros§

    • consts 🔒
      A helper for symbols defined below. The macro’s job is to bind conveniently usable const items to the symbol names provided. For example, with symbol { a, b } you’d have sym::a and sym::b.
    • strings 🔒
      A helper for symbols defined below. The macro’s job is to merge all the hard-coded strings into a single array of strings. @@ -6,4 +6,4 @@ Broadly speaking, any hard-coded string in the compiler should be defined here.

    Structs§

    • The inner interner. This construction is used to get interior mutability in Interner.
    • Interner 🔒
      A symbol-to-string interner.
    • All the globals for a compiler sessions.
    • An interned string.

    Enums§

    • An interned string, either prefilled “at compile time” (Static), -or created at runtime (Owned).

    Constants§

    Statics§

    Functions§

    \ No newline at end of file +or created at runtime (Owned).

Constants§

Statics§

Functions§

\ No newline at end of file diff --git a/leo_span/symbol/macro.consts.html b/leo_span/symbol/macro.consts.html index b0c8fd9538..80decfb01b 100644 --- a/leo_span/symbol/macro.consts.html +++ b/leo_span/symbol/macro.consts.html @@ -1,4 +1,4 @@ -consts in leo_span::symbol - Rust

Macro leo_span::symbol::consts

source ·
macro_rules! consts {
+consts in leo_span::symbol - Rust
leo_span::symbol

Macro consts

source
macro_rules! consts {
     ($val: expr, $sym:ident $(,)?) => { ... };
     ($val: expr, $sym:ident: $_s:literal $(,)?) => { ... };
     ($val: expr, $sym:ident: $_s:literal, $($rest:tt)*) => { ... };
diff --git a/leo_span/symbol/macro.strings.html b/leo_span/symbol/macro.strings.html
index 6864d67220..8237a6420b 100644
--- a/leo_span/symbol/macro.strings.html
+++ b/leo_span/symbol/macro.strings.html
@@ -1,4 +1,4 @@
-strings in leo_span::symbol - Rust

Macro leo_span::symbol::strings

source ·
macro_rules! strings {
+strings in leo_span::symbol - Rust
leo_span::symbol

Macro strings

source
macro_rules! strings {
     ([$($acc:expr),*] []) => { ... };
     ([$($acc:expr),*] [$_sym:ident: $string:literal, $($rest:tt)*]) => { ... };
     ([$($acc:expr),*] [$sym:ident, $($rest:tt)*]) => { ... };
diff --git a/leo_span/symbol/macro.symbols.html b/leo_span/symbol/macro.symbols.html
index 20662aded3..039a87b0f3 100644
--- a/leo_span/symbol/macro.symbols.html
+++ b/leo_span/symbol/macro.symbols.html
@@ -1,4 +1,4 @@
-symbols in leo_span::symbol - Rust

Macro leo_span::symbol::symbols

source ·
macro_rules! symbols {
+symbols in leo_span::symbol - Rust
leo_span::symbol

Macro symbols

source
macro_rules! symbols {
     ($($symbols:tt)*) => { ... };
 }
Expand description

Creates predefined symbols used throughout the Leo compiler and language. Broadly speaking, any hard-coded string in the compiler should be defined here.

diff --git a/leo_span/symbol/static.SESSION_GLOBALS.html b/leo_span/symbol/static.SESSION_GLOBALS.html index 81b9fae13a..1bb59045fe 100644 --- a/leo_span/symbol/static.SESSION_GLOBALS.html +++ b/leo_span/symbol/static.SESSION_GLOBALS.html @@ -1 +1 @@ -SESSION_GLOBALS in leo_span::symbol - Rust

Static leo_span::symbol::SESSION_GLOBALS

source ·
pub static SESSION_GLOBALS: ScopedKey<SessionGlobals>
\ No newline at end of file +SESSION_GLOBALS in leo_span::symbol - Rust
leo_span::symbol

Static SESSION_GLOBALS

source
pub static SESSION_GLOBALS: ScopedKey<SessionGlobals>
\ No newline at end of file diff --git a/leo_span/symbol/struct.InnerInterner.html b/leo_span/symbol/struct.InnerInterner.html index 0e67ffe25e..56f5fb3e99 100644 --- a/leo_span/symbol/struct.InnerInterner.html +++ b/leo_span/symbol/struct.InnerInterner.html @@ -1,23 +1,23 @@ -InnerInterner in leo_span::symbol - Rust

Struct leo_span::symbol::InnerInterner

source ·
struct InnerInterner {
+InnerInterner in leo_span::symbol - Rust
leo_span::symbol

Struct InnerInterner

source
struct InnerInterner {
     set: IndexSet<InternedStr, FxBuildHasher>,
 }
Expand description

The inner interner. This construction is used to get interior mutability in Interner.

Fields§

§set: IndexSet<InternedStr, FxBuildHasher>

Registration of strings and symbol index allocation is done in this set.

-

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 - 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.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

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 + 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.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_span/symbol/struct.Interner.html b/leo_span/symbol/struct.Interner.html index 2f25ce40ec..c93e0f637b 100644 --- a/leo_span/symbol/struct.Interner.html +++ b/leo_span/symbol/struct.Interner.html @@ -1,25 +1,25 @@ -Interner in leo_span::symbol - Rust

Struct leo_span::symbol::Interner

source ·
struct Interner {
-    inner: RefCell<InnerInterner>,
+Interner in leo_span::symbol - Rust
leo_span::symbol

Struct Interner

source
struct Interner {
+    inner: RefCell<InnerInterner>,
 }
Expand description

A symbol-to-string interner.

-

Fields§

§inner: RefCell<InnerInterner>

Implementations§

source§

impl Interner

source

fn prefilled() -> Self

Returns an interner prefilled with commonly used strings in Leo.

-
source

fn prefill(init: &[&'static str]) -> Self

Returns an interner prefilled with init.

-
source

fn intern(&self, string: &str) -> Symbol

Interns string, returning a Symbol corresponding to it.

-
source

fn get<R>(&self, symbol: Symbol, with: impl FnOnce(&str) -> R) -> R

Returns the corresponding string for the given symbol.

-

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 - 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.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

Fields§

§inner: RefCell<InnerInterner>

Implementations§

source§

impl Interner

source

fn prefilled() -> Self

Returns an interner prefilled with commonly used strings in Leo.

+
source

fn prefill(init: &[&'static str]) -> Self

Returns an interner prefilled with init.

+
source

fn intern(&self, string: &str) -> Symbol

Interns string, returning a Symbol corresponding to it.

+
source

fn get<R>(&self, symbol: Symbol, with: impl FnOnce(&str) -> R) -> R

Returns the corresponding string for the given symbol.

+

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 + 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.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_span/symbol/struct.SessionGlobals.html b/leo_span/symbol/struct.SessionGlobals.html index 5fe3597cee..3bc7922d1e 100644 --- a/leo_span/symbol/struct.SessionGlobals.html +++ b/leo_span/symbol/struct.SessionGlobals.html @@ -1,24 +1,24 @@ -SessionGlobals in leo_span::symbol - Rust

Struct leo_span::symbol::SessionGlobals

source ·
pub struct SessionGlobals {
+SessionGlobals in leo_span::symbol - Rust
leo_span::symbol

Struct SessionGlobals

source
pub struct SessionGlobals {
     symbol_interner: Interner,
     pub source_map: SourceMap,
 }
Expand description

All the globals for a compiler sessions.

Fields§

§symbol_interner: Interner

The interner for Symbols used in the compiler.

§source_map: SourceMap

The source map used in the compiler.

-

Trait Implementations§

source§

impl Default for SessionGlobals

source§

fn default() -> Self

Returns the “default value” for a type. 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 - 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.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

Trait Implementations§

source§

impl Default for SessionGlobals

source§

fn default() -> Self

Returns the “default value” for a type. 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 + 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.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_span/symbol/struct.Symbol.html b/leo_span/symbol/struct.Symbol.html index 04fbc69a4e..62e9cd8bc8 100644 --- a/leo_span/symbol/struct.Symbol.html +++ b/leo_span/symbol/struct.Symbol.html @@ -1,51 +1,51 @@ -Symbol in leo_span::symbol - Rust

Struct leo_span::symbol::Symbol

source ·
pub struct Symbol(NonZeroU32);
Expand description

An interned string.

+Symbol in leo_span::symbol - Rust
leo_span::symbol

Struct Symbol

source
pub struct Symbol(NonZeroU32);
Expand description

An interned string.

Represented as an index internally, with all operations based on that. A Symbol reserves the value 0, so that Option<Symbol> only takes up 4 bytes.

-

Tuple Fields§

§0: NonZeroU32

Implementations§

source§

impl Symbol

source

pub const fn new(index: u32) -> Self

Returns the corresponding Symbol for the given index.

-
source

pub fn intern(string: &str) -> Self

Maps a string to its interned representation.

-
source

pub fn as_str<R>(self, s: &SessionGlobals, with: impl FnOnce(&str) -> R) -> R

Convert to effectively a &'static str given the SessionGlobals.

-
source

pub const fn as_u32(self) -> u32

Converts this symbol to the raw index.

+

Tuple Fields§

§0: NonZeroU32

Implementations§

source§

impl Symbol

source

pub const fn new(index: u32) -> Self

Returns the corresponding Symbol for the given index.

+
source

pub fn intern(string: &str) -> Self

Maps a string to its interned representation.

+
source

pub fn as_str<R>(self, s: &SessionGlobals, with: impl FnOnce(&str) -> R) -> R

Convert to effectively a &'static str given the SessionGlobals.

+
source

pub const fn as_u32(self) -> u32

Converts this symbol to the raw index.

source

fn serde_to_symbol<'de, D: Deserializer<'de>>( de: D, -) -> Result<NonZeroU32, D::Error>

source

fn serde_from_symbol<S: Serializer>( - index: &NonZeroU32, +) -> Result<NonZeroU32, D::Error>

source

fn serde_from_symbol<S: Serializer>( + index: &NonZeroU32, ser: S, -) -> Result<S::Ok, S::Error>

Trait Implementations§

source§

impl Clone for Symbol

source§

fn clone(&self) -> Symbol

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 Symbol

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Symbol

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 Display for Symbol

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for Symbol

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where - H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for Symbol

source§

fn cmp(&self, other: &Symbol) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where - Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where - Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Symbol

source§

fn eq(&self, other: &Symbol) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl PartialOrd for Symbol

source§

fn partial_cmp(&self, other: &Symbol) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the -<= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > -operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
source§

impl Serialize for Symbol

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 Copy for Symbol

source§

impl Eq for Symbol

source§

impl StructuralPartialEq for Symbol

Auto Trait Implementations§

§

impl Freeze for Symbol

§

impl RefUnwindSafe for Symbol

§

impl Send for Symbol

§

impl Sync for Symbol

§

impl Unpin for Symbol

§

impl UnwindSafe for Symbol

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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Comparable<K> for Q
where - Q: Ord + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+) -> Result<S::Ok, S::Error>

Trait Implementations§

source§

impl Clone for Symbol

source§

fn clone(&self) -> Symbol

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 Symbol

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Symbol

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 Display for Symbol

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for Symbol

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where + H: Hasher, + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for Symbol

source§

fn cmp(&self, other: &Symbol) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where + Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where + Self: Sized,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Symbol

source§

fn eq(&self, other: &Symbol) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl PartialOrd for Symbol

source§

fn partial_cmp(&self, other: &Symbol) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > +operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
source§

impl Serialize for Symbol

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 Copy for Symbol

source§

impl Eq for Symbol

source§

impl StructuralPartialEq for Symbol

Auto Trait Implementations§

§

impl Freeze for Symbol

§

impl RefUnwindSafe for Symbol

§

impl Send for Symbol

§

impl Sync for Symbol

§

impl Unpin for Symbol

§

impl UnwindSafe for Symbol

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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Comparable<K> for Q
where + Q: Ord + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.As.html b/leo_span/symbol/sym/constant.As.html index 054d80f630..a5a45fcf50 100644 --- a/leo_span/symbol/sym/constant.As.html +++ b/leo_span/symbol/sym/constant.As.html @@ -1 +1 @@ -As in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::As

source ·
pub const As: Symbol;
\ No newline at end of file +As in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant As

source
pub const As: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Await.html b/leo_span/symbol/sym/constant.Await.html index a4044e7d5a..b15d00a049 100644 --- a/leo_span/symbol/sym/constant.Await.html +++ b/leo_span/symbol/sym/constant.Await.html @@ -1 +1 @@ -Await in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Await

source ·
pub const Await: Symbol;
\ No newline at end of file +Await in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Await

source
pub const Await: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.BHP1024.html b/leo_span/symbol/sym/constant.BHP1024.html index cc8ff2136c..e62e884d50 100644 --- a/leo_span/symbol/sym/constant.BHP1024.html +++ b/leo_span/symbol/sym/constant.BHP1024.html @@ -1 +1 @@ -BHP1024 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::BHP1024

source ·
pub const BHP1024: Symbol;
\ No newline at end of file +BHP1024 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant BHP1024

source
pub const BHP1024: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.BHP256.html b/leo_span/symbol/sym/constant.BHP256.html index d7f97c3db6..5144ba32a0 100644 --- a/leo_span/symbol/sym/constant.BHP256.html +++ b/leo_span/symbol/sym/constant.BHP256.html @@ -1 +1 @@ -BHP256 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::BHP256

source ·
pub const BHP256: Symbol;
\ No newline at end of file +BHP256 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant BHP256

source
pub const BHP256: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.BHP512.html b/leo_span/symbol/sym/constant.BHP512.html index bc72c36c0d..35fa0f4345 100644 --- a/leo_span/symbol/sym/constant.BHP512.html +++ b/leo_span/symbol/sym/constant.BHP512.html @@ -1 +1 @@ -BHP512 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::BHP512

source ·
pub const BHP512: Symbol;
\ No newline at end of file +BHP512 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant BHP512

source
pub const BHP512: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.BHP768.html b/leo_span/symbol/sym/constant.BHP768.html index 37217f56a1..8382e3810e 100644 --- a/leo_span/symbol/sym/constant.BHP768.html +++ b/leo_span/symbol/sym/constant.BHP768.html @@ -1 +1 @@ -BHP768 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::BHP768

source ·
pub const BHP768: Symbol;
\ No newline at end of file +BHP768 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant BHP768

source
pub const BHP768: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.ChaCha.html b/leo_span/symbol/sym/constant.ChaCha.html index 8a507f2703..0c9946517e 100644 --- a/leo_span/symbol/sym/constant.ChaCha.html +++ b/leo_span/symbol/sym/constant.ChaCha.html @@ -1 +1 @@ -ChaCha in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::ChaCha

source ·
pub const ChaCha: Symbol;
\ No newline at end of file +ChaCha in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant ChaCha

source
pub const ChaCha: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Const.html b/leo_span/symbol/sym/constant.Const.html index 3781458907..251eba8fbe 100644 --- a/leo_span/symbol/sym/constant.Const.html +++ b/leo_span/symbol/sym/constant.Const.html @@ -1 +1 @@ -Const in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Const

source ·
pub const Const: Symbol;
\ No newline at end of file +Const in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Const

source
pub const Const: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Else.html b/leo_span/symbol/sym/constant.Else.html index ac78d50f4a..a5a032a8ce 100644 --- a/leo_span/symbol/sym/constant.Else.html +++ b/leo_span/symbol/sym/constant.Else.html @@ -1 +1 @@ -Else in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Else

source ·
pub const Else: Symbol;
\ No newline at end of file +Else in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Else

source
pub const Else: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.False.html b/leo_span/symbol/sym/constant.False.html index 29be039e7f..99113a7293 100644 --- a/leo_span/symbol/sym/constant.False.html +++ b/leo_span/symbol/sym/constant.False.html @@ -1 +1 @@ -False in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::False

source ·
pub const False: Symbol;
\ No newline at end of file +False in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant False

source
pub const False: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Fn.html b/leo_span/symbol/sym/constant.Fn.html index cd54396657..72797c15b0 100644 --- a/leo_span/symbol/sym/constant.Fn.html +++ b/leo_span/symbol/sym/constant.Fn.html @@ -1 +1 @@ -Fn in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Fn

source ·
pub const Fn: Symbol;
\ No newline at end of file +Fn in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Fn

source
pub const Fn: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.For.html b/leo_span/symbol/sym/constant.For.html index db5b287db8..06a7ffcaa2 100644 --- a/leo_span/symbol/sym/constant.For.html +++ b/leo_span/symbol/sym/constant.For.html @@ -1 +1 @@ -For in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::For

source ·
pub const For: Symbol;
\ No newline at end of file +For in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant For

source
pub const For: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Future.html b/leo_span/symbol/sym/constant.Future.html index 669806f3fd..b9178158a4 100644 --- a/leo_span/symbol/sym/constant.Future.html +++ b/leo_span/symbol/sym/constant.Future.html @@ -1 +1 @@ -Future in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Future

source ·
pub const Future: Symbol;
\ No newline at end of file +Future in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Future

source
pub const Future: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.GEN.html b/leo_span/symbol/sym/constant.GEN.html index 98d053c946..33128f9949 100644 --- a/leo_span/symbol/sym/constant.GEN.html +++ b/leo_span/symbol/sym/constant.GEN.html @@ -1 +1 @@ -GEN in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::GEN

source ·
pub const GEN: Symbol;
\ No newline at end of file +GEN in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant GEN

source
pub const GEN: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.If.html b/leo_span/symbol/sym/constant.If.html index 51ed06edec..9fbbc5a060 100644 --- a/leo_span/symbol/sym/constant.If.html +++ b/leo_span/symbol/sym/constant.If.html @@ -1 +1 @@ -If in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::If

source ·
pub const If: Symbol;
\ No newline at end of file +If in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant If

source
pub const If: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.In.html b/leo_span/symbol/sym/constant.In.html index 36fcb5fdb9..fcbddd3a83 100644 --- a/leo_span/symbol/sym/constant.In.html +++ b/leo_span/symbol/sym/constant.In.html @@ -1 +1 @@ -In in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::In

source ·
pub const In: Symbol;
\ No newline at end of file +In in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant In

source
pub const In: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Keccak256.html b/leo_span/symbol/sym/constant.Keccak256.html index 5725fc5c9a..ab7ae00ffe 100644 --- a/leo_span/symbol/sym/constant.Keccak256.html +++ b/leo_span/symbol/sym/constant.Keccak256.html @@ -1 +1 @@ -Keccak256 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Keccak256

source ·
pub const Keccak256: Symbol;
\ No newline at end of file +Keccak256 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Keccak256

source
pub const Keccak256: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Keccak384.html b/leo_span/symbol/sym/constant.Keccak384.html index a045aa054f..d9af5b6107 100644 --- a/leo_span/symbol/sym/constant.Keccak384.html +++ b/leo_span/symbol/sym/constant.Keccak384.html @@ -1 +1 @@ -Keccak384 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Keccak384

source ·
pub const Keccak384: Symbol;
\ No newline at end of file +Keccak384 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Keccak384

source
pub const Keccak384: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Keccak512.html b/leo_span/symbol/sym/constant.Keccak512.html index 49c829373f..43595cf950 100644 --- a/leo_span/symbol/sym/constant.Keccak512.html +++ b/leo_span/symbol/sym/constant.Keccak512.html @@ -1 +1 @@ -Keccak512 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Keccak512

source ·
pub const Keccak512: Symbol;
\ No newline at end of file +Keccak512 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Keccak512

source
pub const Keccak512: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Let.html b/leo_span/symbol/sym/constant.Let.html index 2fa361e335..2c4191909b 100644 --- a/leo_span/symbol/sym/constant.Let.html +++ b/leo_span/symbol/sym/constant.Let.html @@ -1 +1 @@ -Let in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Let

source ·
pub const Let: Symbol;
\ No newline at end of file +Let in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Let

source
pub const Let: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Mapping.html b/leo_span/symbol/sym/constant.Mapping.html index 77e439d796..3507d6fa1b 100644 --- a/leo_span/symbol/sym/constant.Mapping.html +++ b/leo_span/symbol/sym/constant.Mapping.html @@ -1 +1 @@ -Mapping in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Mapping

source ·
pub const Mapping: Symbol;
\ No newline at end of file +Mapping in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Mapping

source
pub const Mapping: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Mod.html b/leo_span/symbol/sym/constant.Mod.html index 62268d1070..3fd5a77e11 100644 --- a/leo_span/symbol/sym/constant.Mod.html +++ b/leo_span/symbol/sym/constant.Mod.html @@ -1 +1 @@ -Mod in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Mod

source ·
pub const Mod: Symbol;
\ No newline at end of file +Mod in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Mod

source
pub const Mod: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Mut.html b/leo_span/symbol/sym/constant.Mut.html index 3116c9b7c1..13210a6330 100644 --- a/leo_span/symbol/sym/constant.Mut.html +++ b/leo_span/symbol/sym/constant.Mut.html @@ -1 +1 @@ -Mut in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Mut

source ·
pub const Mut: Symbol;
\ No newline at end of file +Mut in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Mut

source
pub const Mut: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Pedersen128.html b/leo_span/symbol/sym/constant.Pedersen128.html index a34446b97c..683a3a63df 100644 --- a/leo_span/symbol/sym/constant.Pedersen128.html +++ b/leo_span/symbol/sym/constant.Pedersen128.html @@ -1 +1 @@ -Pedersen128 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Pedersen128

source ·
pub const Pedersen128: Symbol;
\ No newline at end of file +Pedersen128 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Pedersen128

source
pub const Pedersen128: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Pedersen64.html b/leo_span/symbol/sym/constant.Pedersen64.html index 5cf34d46fe..00a78377c9 100644 --- a/leo_span/symbol/sym/constant.Pedersen64.html +++ b/leo_span/symbol/sym/constant.Pedersen64.html @@ -1 +1 @@ -Pedersen64 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Pedersen64

source ·
pub const Pedersen64: Symbol;
\ No newline at end of file +Pedersen64 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Pedersen64

source
pub const Pedersen64: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Poseidon2.html b/leo_span/symbol/sym/constant.Poseidon2.html index 53da82082c..062ad3efcb 100644 --- a/leo_span/symbol/sym/constant.Poseidon2.html +++ b/leo_span/symbol/sym/constant.Poseidon2.html @@ -1 +1 @@ -Poseidon2 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Poseidon2

source ·
pub const Poseidon2: Symbol;
\ No newline at end of file +Poseidon2 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Poseidon2

source
pub const Poseidon2: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Poseidon4.html b/leo_span/symbol/sym/constant.Poseidon4.html index b23bdbc240..d5a4bb154f 100644 --- a/leo_span/symbol/sym/constant.Poseidon4.html +++ b/leo_span/symbol/sym/constant.Poseidon4.html @@ -1 +1 @@ -Poseidon4 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Poseidon4

source ·
pub const Poseidon4: Symbol;
\ No newline at end of file +Poseidon4 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Poseidon4

source
pub const Poseidon4: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Poseidon8.html b/leo_span/symbol/sym/constant.Poseidon8.html index 5c54efad02..19290be703 100644 --- a/leo_span/symbol/sym/constant.Poseidon8.html +++ b/leo_span/symbol/sym/constant.Poseidon8.html @@ -1 +1 @@ -Poseidon8 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Poseidon8

source ·
pub const Poseidon8: Symbol;
\ No newline at end of file +Poseidon8 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Poseidon8

source
pub const Poseidon8: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Return.html b/leo_span/symbol/sym/constant.Return.html index 316e3dcea3..d86c33ed53 100644 --- a/leo_span/symbol/sym/constant.Return.html +++ b/leo_span/symbol/sym/constant.Return.html @@ -1 +1 @@ -Return in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Return

source ·
pub const Return: Symbol;
\ No newline at end of file +Return in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Return

source
pub const Return: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.SHA3_256.html b/leo_span/symbol/sym/constant.SHA3_256.html index 0a3c481d9e..21067c6192 100644 --- a/leo_span/symbol/sym/constant.SHA3_256.html +++ b/leo_span/symbol/sym/constant.SHA3_256.html @@ -1 +1 @@ -SHA3_256 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::SHA3_256

source ·
pub const SHA3_256: Symbol;
\ No newline at end of file +SHA3_256 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant SHA3_256

source
pub const SHA3_256: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.SHA3_384.html b/leo_span/symbol/sym/constant.SHA3_384.html index 70ab2c5d1e..321b8ebb47 100644 --- a/leo_span/symbol/sym/constant.SHA3_384.html +++ b/leo_span/symbol/sym/constant.SHA3_384.html @@ -1 +1 @@ -SHA3_384 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::SHA3_384

source ·
pub const SHA3_384: Symbol;
\ No newline at end of file +SHA3_384 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant SHA3_384

source
pub const SHA3_384: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.SHA3_512.html b/leo_span/symbol/sym/constant.SHA3_512.html index 6f7d5937af..5fc30de60c 100644 --- a/leo_span/symbol/sym/constant.SHA3_512.html +++ b/leo_span/symbol/sym/constant.SHA3_512.html @@ -1 +1 @@ -SHA3_512 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::SHA3_512

source ·
pub const SHA3_512: Symbol;
\ No newline at end of file +SHA3_512 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant SHA3_512

source
pub const SHA3_512: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.SelfLower.html b/leo_span/symbol/sym/constant.SelfLower.html index c0d4cdb1c4..767e749d55 100644 --- a/leo_span/symbol/sym/constant.SelfLower.html +++ b/leo_span/symbol/sym/constant.SelfLower.html @@ -1 +1 @@ -SelfLower in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::SelfLower

source ·
pub const SelfLower: Symbol;
\ No newline at end of file +SelfLower in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant SelfLower

source
pub const SelfLower: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.SelfUpper.html b/leo_span/symbol/sym/constant.SelfUpper.html index 128829c68e..6896a62532 100644 --- a/leo_span/symbol/sym/constant.SelfUpper.html +++ b/leo_span/symbol/sym/constant.SelfUpper.html @@ -1 +1 @@ -SelfUpper in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::SelfUpper

source ·
pub const SelfUpper: Symbol;
\ No newline at end of file +SelfUpper in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant SelfUpper

source
pub const SelfUpper: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Star.html b/leo_span/symbol/sym/constant.Star.html index be57262ca6..d66c00b922 100644 --- a/leo_span/symbol/sym/constant.Star.html +++ b/leo_span/symbol/sym/constant.Star.html @@ -1 +1 @@ -Star in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Star

source ·
pub const Star: Symbol;
\ No newline at end of file +Star in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Star

source
pub const Star: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Struct.html b/leo_span/symbol/sym/constant.Struct.html index 0428b620d3..11eec91354 100644 --- a/leo_span/symbol/sym/constant.Struct.html +++ b/leo_span/symbol/sym/constant.Struct.html @@ -1 +1 @@ -Struct in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Struct

source ·
pub const Struct: Symbol;
\ No newline at end of file +Struct in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Struct

source
pub const Struct: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.True.html b/leo_span/symbol/sym/constant.True.html index 27285c0ef2..89d339fe4d 100644 --- a/leo_span/symbol/sym/constant.True.html +++ b/leo_span/symbol/sym/constant.True.html @@ -1 +1 @@ -True in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::True

source ·
pub const True: Symbol;
\ No newline at end of file +True in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant True

source
pub const True: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.Type.html b/leo_span/symbol/sym/constant.Type.html index 7f1e395b91..30372c5606 100644 --- a/leo_span/symbol/sym/constant.Type.html +++ b/leo_span/symbol/sym/constant.Type.html @@ -1 +1 @@ -Type in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::Type

source ·
pub const Type: Symbol;
\ No newline at end of file +Type in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant Type

source
pub const Type: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant._nonce.html b/leo_span/symbol/sym/constant._nonce.html index 416ed0dfd9..d04308da8d 100644 --- a/leo_span/symbol/sym/constant._nonce.html +++ b/leo_span/symbol/sym/constant._nonce.html @@ -1 +1 @@ -_nonce in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::_nonce

source ·
pub const _nonce: Symbol;
\ No newline at end of file +_nonce in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant _nonce

source
pub const _nonce: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.abs.html b/leo_span/symbol/sym/constant.abs.html index e61baf1a2a..15f5e9193f 100644 --- a/leo_span/symbol/sym/constant.abs.html +++ b/leo_span/symbol/sym/constant.abs.html @@ -1 +1 @@ -abs in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::abs

source ·
pub const abs: Symbol;
\ No newline at end of file +abs in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant abs

source
pub const abs: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.abs_wrapped.html b/leo_span/symbol/sym/constant.abs_wrapped.html index ebcd72f2ea..5f55ed79d1 100644 --- a/leo_span/symbol/sym/constant.abs_wrapped.html +++ b/leo_span/symbol/sym/constant.abs_wrapped.html @@ -1 +1 @@ -abs_wrapped in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::abs_wrapped

source ·
pub const abs_wrapped: Symbol;
\ No newline at end of file +abs_wrapped in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant abs_wrapped

source
pub const abs_wrapped: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.add.html b/leo_span/symbol/sym/constant.add.html index e283432d86..f61626fabc 100644 --- a/leo_span/symbol/sym/constant.add.html +++ b/leo_span/symbol/sym/constant.add.html @@ -1 +1 @@ -add in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::add

source ·
pub const add: Symbol;
\ No newline at end of file +add in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant add

source
pub const add: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.add_wrapped.html b/leo_span/symbol/sym/constant.add_wrapped.html index cf144ee5c0..58535e511a 100644 --- a/leo_span/symbol/sym/constant.add_wrapped.html +++ b/leo_span/symbol/sym/constant.add_wrapped.html @@ -1 +1 @@ -add_wrapped in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::add_wrapped

source ·
pub const add_wrapped: Symbol;
\ No newline at end of file +add_wrapped in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant add_wrapped

source
pub const add_wrapped: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.address.html b/leo_span/symbol/sym/constant.address.html index 07b98fdb6b..e15bd025c2 100644 --- a/leo_span/symbol/sym/constant.address.html +++ b/leo_span/symbol/sym/constant.address.html @@ -1 +1 @@ -address in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::address

source ·
pub const address: Symbol;
\ No newline at end of file +address in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant address

source
pub const address: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.aleo.html b/leo_span/symbol/sym/constant.aleo.html index 6dd250a476..8fea6eac63 100644 --- a/leo_span/symbol/sym/constant.aleo.html +++ b/leo_span/symbol/sym/constant.aleo.html @@ -1 +1 @@ -aleo in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::aleo

source ·
pub const aleo: Symbol;
\ No newline at end of file +aleo in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant aleo

source
pub const aleo: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.and.html b/leo_span/symbol/sym/constant.and.html index 9280b67d49..8fe4f63ab1 100644 --- a/leo_span/symbol/sym/constant.and.html +++ b/leo_span/symbol/sym/constant.and.html @@ -1 +1 @@ -and in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::and

source ·
pub const and: Symbol;
\ No newline at end of file +and in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant and

source
pub const and: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.assert.html b/leo_span/symbol/sym/constant.assert.html index 75a7361477..0be493d594 100644 --- a/leo_span/symbol/sym/constant.assert.html +++ b/leo_span/symbol/sym/constant.assert.html @@ -1 +1 @@ -assert in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::assert

source ·
pub const assert: Symbol;
\ No newline at end of file +assert in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant assert

source
pub const assert: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.assert_eq.html b/leo_span/symbol/sym/constant.assert_eq.html index 1ea27c06d5..eba4a27064 100644 --- a/leo_span/symbol/sym/constant.assert_eq.html +++ b/leo_span/symbol/sym/constant.assert_eq.html @@ -1 +1 @@ -assert_eq in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::assert_eq

source ·
pub const assert_eq: Symbol;
\ No newline at end of file +assert_eq in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant assert_eq

source
pub const assert_eq: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.assert_neq.html b/leo_span/symbol/sym/constant.assert_neq.html index 3d790dc54d..300cb54d1d 100644 --- a/leo_span/symbol/sym/constant.assert_neq.html +++ b/leo_span/symbol/sym/constant.assert_neq.html @@ -1 +1 @@ -assert_neq in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::assert_neq

source ·
pub const assert_neq: Symbol;
\ No newline at end of file +assert_neq in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant assert_neq

source
pub const assert_neq: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.block.html b/leo_span/symbol/sym/constant.block.html index 7763ec3ff1..bd55288826 100644 --- a/leo_span/symbol/sym/constant.block.html +++ b/leo_span/symbol/sym/constant.block.html @@ -1 +1 @@ -block in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::block

source ·
pub const block: Symbol;
\ No newline at end of file +block in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant block

source
pub const block: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.bool.html b/leo_span/symbol/sym/constant.bool.html index f5495ef51c..e23d35b13b 100644 --- a/leo_span/symbol/sym/constant.bool.html +++ b/leo_span/symbol/sym/constant.bool.html @@ -1 +1 @@ -bool in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::bool

source ·
pub const bool: Symbol;
\ No newline at end of file +bool in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant bool

source
pub const bool: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.caller.html b/leo_span/symbol/sym/constant.caller.html index efec9230ee..1ef205d643 100644 --- a/leo_span/symbol/sym/constant.caller.html +++ b/leo_span/symbol/sym/constant.caller.html @@ -1 +1 @@ -caller in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::caller

source ·
pub const caller: Symbol;
\ No newline at end of file +caller in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant caller

source
pub const caller: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.commit_to_address.html b/leo_span/symbol/sym/constant.commit_to_address.html index cf4f74bdff..ecef211a07 100644 --- a/leo_span/symbol/sym/constant.commit_to_address.html +++ b/leo_span/symbol/sym/constant.commit_to_address.html @@ -1 +1 @@ -commit_to_address in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::commit_to_address

source ·
pub const commit_to_address: Symbol;
\ No newline at end of file +commit_to_address in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant commit_to_address

source
pub const commit_to_address: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.commit_to_field.html b/leo_span/symbol/sym/constant.commit_to_field.html index e159a69ff6..22ad44ba0f 100644 --- a/leo_span/symbol/sym/constant.commit_to_field.html +++ b/leo_span/symbol/sym/constant.commit_to_field.html @@ -1 +1 @@ -commit_to_field in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::commit_to_field

source ·
pub const commit_to_field: Symbol;
\ No newline at end of file +commit_to_field in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant commit_to_field

source
pub const commit_to_field: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.commit_to_group.html b/leo_span/symbol/sym/constant.commit_to_group.html index 44d9c525dc..a4137b1613 100644 --- a/leo_span/symbol/sym/constant.commit_to_group.html +++ b/leo_span/symbol/sym/constant.commit_to_group.html @@ -1 +1 @@ -commit_to_group in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::commit_to_group

source ·
pub const commit_to_group: Symbol;
\ No newline at end of file +commit_to_group in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant commit_to_group

source
pub const commit_to_group: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.console.html b/leo_span/symbol/sym/constant.console.html index 6dbf3375f2..73ebd88e61 100644 --- a/leo_span/symbol/sym/constant.console.html +++ b/leo_span/symbol/sym/constant.console.html @@ -1 +1 @@ -console in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::console

source ·
pub const console: Symbol;
\ No newline at end of file +console in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant console

source
pub const console: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.constant.html b/leo_span/symbol/sym/constant.constant.html index 709c6f8d5a..ffb53a7e09 100644 --- a/leo_span/symbol/sym/constant.constant.html +++ b/leo_span/symbol/sym/constant.constant.html @@ -1 +1 @@ -constant in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::constant

source ·
pub const constant: Symbol;
\ No newline at end of file +constant in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant constant

source
pub const constant: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.contains.html b/leo_span/symbol/sym/constant.contains.html index fb5f3c911b..1bbc81a13d 100644 --- a/leo_span/symbol/sym/constant.contains.html +++ b/leo_span/symbol/sym/constant.contains.html @@ -1 +1 @@ -contains in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::contains

source ·
pub const contains: Symbol;
\ No newline at end of file +contains in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant contains

source
pub const contains: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.decrement.html b/leo_span/symbol/sym/constant.decrement.html index 036f518cc4..0f1eccbbbf 100644 --- a/leo_span/symbol/sym/constant.decrement.html +++ b/leo_span/symbol/sym/constant.decrement.html @@ -1 +1 @@ -decrement in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::decrement

source ·
pub const decrement: Symbol;
\ No newline at end of file +decrement in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant decrement

source
pub const decrement: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.div.html b/leo_span/symbol/sym/constant.div.html index b268751d11..6144953811 100644 --- a/leo_span/symbol/sym/constant.div.html +++ b/leo_span/symbol/sym/constant.div.html @@ -1 +1 @@ -div in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::div

source ·
pub const div: Symbol;
\ No newline at end of file +div in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant div

source
pub const div: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.div_wrapped.html b/leo_span/symbol/sym/constant.div_wrapped.html index 4c6904990b..c7d2643d01 100644 --- a/leo_span/symbol/sym/constant.div_wrapped.html +++ b/leo_span/symbol/sym/constant.div_wrapped.html @@ -1 +1 @@ -div_wrapped in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::div_wrapped

source ·
pub const div_wrapped: Symbol;
\ No newline at end of file +div_wrapped in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant div_wrapped

source
pub const div_wrapped: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.double.html b/leo_span/symbol/sym/constant.double.html index 08f7cef256..5209ef1bf1 100644 --- a/leo_span/symbol/sym/constant.double.html +++ b/leo_span/symbol/sym/constant.double.html @@ -1 +1 @@ -double in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::double

source ·
pub const double: Symbol;
\ No newline at end of file +double in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant double

source
pub const double: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.eq.html b/leo_span/symbol/sym/constant.eq.html index 1904794f8b..78c46b77d6 100644 --- a/leo_span/symbol/sym/constant.eq.html +++ b/leo_span/symbol/sym/constant.eq.html @@ -1 +1 @@ -eq in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::eq

source ·
pub const eq: Symbol;
\ No newline at end of file +eq in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant eq

source
pub const eq: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.field.html b/leo_span/symbol/sym/constant.field.html index fc5ec7afe9..4f6af9c3fe 100644 --- a/leo_span/symbol/sym/constant.field.html +++ b/leo_span/symbol/sym/constant.field.html @@ -1 +1 @@ -field in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::field

source ·
pub const field: Symbol;
\ No newline at end of file +field in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant field

source
pub const field: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.function.html b/leo_span/symbol/sym/constant.function.html index f2e86679f1..4c91d44b66 100644 --- a/leo_span/symbol/sym/constant.function.html +++ b/leo_span/symbol/sym/constant.function.html @@ -1 +1 @@ -function in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::function

source ·
pub const function: Symbol;
\ No newline at end of file +function in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant function

source
pub const function: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.get.html b/leo_span/symbol/sym/constant.get.html index 2393b14eb9..c48c1f2741 100644 --- a/leo_span/symbol/sym/constant.get.html +++ b/leo_span/symbol/sym/constant.get.html @@ -1 +1 @@ -get in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::get

source ·
pub const get: Symbol;
\ No newline at end of file +get in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant get

source
pub const get: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.get_or_use.html b/leo_span/symbol/sym/constant.get_or_use.html index faea2ac327..42fd51cec5 100644 --- a/leo_span/symbol/sym/constant.get_or_use.html +++ b/leo_span/symbol/sym/constant.get_or_use.html @@ -1 +1 @@ -get_or_use in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::get_or_use

source ·
pub const get_or_use: Symbol;
\ No newline at end of file +get_or_use in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant get_or_use

source
pub const get_or_use: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.group.html b/leo_span/symbol/sym/constant.group.html index c85933899e..ff666d3923 100644 --- a/leo_span/symbol/sym/constant.group.html +++ b/leo_span/symbol/sym/constant.group.html @@ -1 +1 @@ -group in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::group

source ·
pub const group: Symbol;
\ No newline at end of file +group in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant group

source
pub const group: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.gt.html b/leo_span/symbol/sym/constant.gt.html index 9ce12cf6c8..ff9a32fe01 100644 --- a/leo_span/symbol/sym/constant.gt.html +++ b/leo_span/symbol/sym/constant.gt.html @@ -1 +1 @@ -gt in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::gt

source ·
pub const gt: Symbol;
\ No newline at end of file +gt in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant gt

source
pub const gt: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.gte.html b/leo_span/symbol/sym/constant.gte.html index b9ca557074..dcaf5fc310 100644 --- a/leo_span/symbol/sym/constant.gte.html +++ b/leo_span/symbol/sym/constant.gte.html @@ -1 +1 @@ -gte in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::gte

source ·
pub const gte: Symbol;
\ No newline at end of file +gte in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant gte

source
pub const gte: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.hash_to_address.html b/leo_span/symbol/sym/constant.hash_to_address.html index 23eafbabdd..0520dba368 100644 --- a/leo_span/symbol/sym/constant.hash_to_address.html +++ b/leo_span/symbol/sym/constant.hash_to_address.html @@ -1 +1 @@ -hash_to_address in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::hash_to_address

source ·
pub const hash_to_address: Symbol;
\ No newline at end of file +hash_to_address in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant hash_to_address

source
pub const hash_to_address: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.hash_to_field.html b/leo_span/symbol/sym/constant.hash_to_field.html index 80745fd47d..6cec29e22b 100644 --- a/leo_span/symbol/sym/constant.hash_to_field.html +++ b/leo_span/symbol/sym/constant.hash_to_field.html @@ -1 +1 @@ -hash_to_field in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::hash_to_field

source ·
pub const hash_to_field: Symbol;
\ No newline at end of file +hash_to_field in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant hash_to_field

source
pub const hash_to_field: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.hash_to_group.html b/leo_span/symbol/sym/constant.hash_to_group.html index d75d8466e2..0c71b2591f 100644 --- a/leo_span/symbol/sym/constant.hash_to_group.html +++ b/leo_span/symbol/sym/constant.hash_to_group.html @@ -1 +1 @@ -hash_to_group in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::hash_to_group

source ·
pub const hash_to_group: Symbol;
\ No newline at end of file +hash_to_group in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant hash_to_group

source
pub const hash_to_group: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.hash_to_i128.html b/leo_span/symbol/sym/constant.hash_to_i128.html index 78e00fa2f3..a825b6c52b 100644 --- a/leo_span/symbol/sym/constant.hash_to_i128.html +++ b/leo_span/symbol/sym/constant.hash_to_i128.html @@ -1 +1 @@ -hash_to_i128 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::hash_to_i128

source ·
pub const hash_to_i128: Symbol;
\ No newline at end of file +hash_to_i128 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant hash_to_i128

source
pub const hash_to_i128: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.hash_to_i16.html b/leo_span/symbol/sym/constant.hash_to_i16.html index 368a776252..1ae76a003a 100644 --- a/leo_span/symbol/sym/constant.hash_to_i16.html +++ b/leo_span/symbol/sym/constant.hash_to_i16.html @@ -1 +1 @@ -hash_to_i16 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::hash_to_i16

source ·
pub const hash_to_i16: Symbol;
\ No newline at end of file +hash_to_i16 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant hash_to_i16

source
pub const hash_to_i16: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.hash_to_i32.html b/leo_span/symbol/sym/constant.hash_to_i32.html index 935ef4e85d..53893253d8 100644 --- a/leo_span/symbol/sym/constant.hash_to_i32.html +++ b/leo_span/symbol/sym/constant.hash_to_i32.html @@ -1 +1 @@ -hash_to_i32 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::hash_to_i32

source ·
pub const hash_to_i32: Symbol;
\ No newline at end of file +hash_to_i32 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant hash_to_i32

source
pub const hash_to_i32: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.hash_to_i64.html b/leo_span/symbol/sym/constant.hash_to_i64.html index d4da1699d7..da12b9d3d6 100644 --- a/leo_span/symbol/sym/constant.hash_to_i64.html +++ b/leo_span/symbol/sym/constant.hash_to_i64.html @@ -1 +1 @@ -hash_to_i64 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::hash_to_i64

source ·
pub const hash_to_i64: Symbol;
\ No newline at end of file +hash_to_i64 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant hash_to_i64

source
pub const hash_to_i64: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.hash_to_i8.html b/leo_span/symbol/sym/constant.hash_to_i8.html index c8ea2da466..90f6beb371 100644 --- a/leo_span/symbol/sym/constant.hash_to_i8.html +++ b/leo_span/symbol/sym/constant.hash_to_i8.html @@ -1 +1 @@ -hash_to_i8 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::hash_to_i8

source ·
pub const hash_to_i8: Symbol;
\ No newline at end of file +hash_to_i8 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant hash_to_i8

source
pub const hash_to_i8: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.hash_to_scalar.html b/leo_span/symbol/sym/constant.hash_to_scalar.html index bf63fb3b91..6626e90bae 100644 --- a/leo_span/symbol/sym/constant.hash_to_scalar.html +++ b/leo_span/symbol/sym/constant.hash_to_scalar.html @@ -1 +1 @@ -hash_to_scalar in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::hash_to_scalar

source ·
pub const hash_to_scalar: Symbol;
\ No newline at end of file +hash_to_scalar in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant hash_to_scalar

source
pub const hash_to_scalar: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.hash_to_u128.html b/leo_span/symbol/sym/constant.hash_to_u128.html index 74616dcac9..ff321613df 100644 --- a/leo_span/symbol/sym/constant.hash_to_u128.html +++ b/leo_span/symbol/sym/constant.hash_to_u128.html @@ -1 +1 @@ -hash_to_u128 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::hash_to_u128

source ·
pub const hash_to_u128: Symbol;
\ No newline at end of file +hash_to_u128 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant hash_to_u128

source
pub const hash_to_u128: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.hash_to_u16.html b/leo_span/symbol/sym/constant.hash_to_u16.html index 2bedbc9def..b3ab966953 100644 --- a/leo_span/symbol/sym/constant.hash_to_u16.html +++ b/leo_span/symbol/sym/constant.hash_to_u16.html @@ -1 +1 @@ -hash_to_u16 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::hash_to_u16

source ·
pub const hash_to_u16: Symbol;
\ No newline at end of file +hash_to_u16 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant hash_to_u16

source
pub const hash_to_u16: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.hash_to_u32.html b/leo_span/symbol/sym/constant.hash_to_u32.html index a837be10b8..0cd124df7d 100644 --- a/leo_span/symbol/sym/constant.hash_to_u32.html +++ b/leo_span/symbol/sym/constant.hash_to_u32.html @@ -1 +1 @@ -hash_to_u32 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::hash_to_u32

source ·
pub const hash_to_u32: Symbol;
\ No newline at end of file +hash_to_u32 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant hash_to_u32

source
pub const hash_to_u32: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.hash_to_u64.html b/leo_span/symbol/sym/constant.hash_to_u64.html index a0207816d2..65f906d2b1 100644 --- a/leo_span/symbol/sym/constant.hash_to_u64.html +++ b/leo_span/symbol/sym/constant.hash_to_u64.html @@ -1 +1 @@ -hash_to_u64 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::hash_to_u64

source ·
pub const hash_to_u64: Symbol;
\ No newline at end of file +hash_to_u64 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant hash_to_u64

source
pub const hash_to_u64: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.hash_to_u8.html b/leo_span/symbol/sym/constant.hash_to_u8.html index d4c6a857f5..1ebb202620 100644 --- a/leo_span/symbol/sym/constant.hash_to_u8.html +++ b/leo_span/symbol/sym/constant.hash_to_u8.html @@ -1 +1 @@ -hash_to_u8 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::hash_to_u8

source ·
pub const hash_to_u8: Symbol;
\ No newline at end of file +hash_to_u8 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant hash_to_u8

source
pub const hash_to_u8: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.height.html b/leo_span/symbol/sym/constant.height.html index e5f125024d..ee63fe34ae 100644 --- a/leo_span/symbol/sym/constant.height.html +++ b/leo_span/symbol/sym/constant.height.html @@ -1 +1 @@ -height in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::height

source ·
pub const height: Symbol;
\ No newline at end of file +height in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant height

source
pub const height: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.i128.html b/leo_span/symbol/sym/constant.i128.html index 6781bf147f..cfed30a6dc 100644 --- a/leo_span/symbol/sym/constant.i128.html +++ b/leo_span/symbol/sym/constant.i128.html @@ -1 +1 @@ -i128 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::i128

source ·
pub const i128: Symbol;
\ No newline at end of file +i128 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant i128

source
pub const i128: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.i16.html b/leo_span/symbol/sym/constant.i16.html index ce349fdc69..e119d45450 100644 --- a/leo_span/symbol/sym/constant.i16.html +++ b/leo_span/symbol/sym/constant.i16.html @@ -1 +1 @@ -i16 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::i16

source ·
pub const i16: Symbol;
\ No newline at end of file +i16 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant i16

source
pub const i16: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.i32.html b/leo_span/symbol/sym/constant.i32.html index e46f39eea6..57c77698d0 100644 --- a/leo_span/symbol/sym/constant.i32.html +++ b/leo_span/symbol/sym/constant.i32.html @@ -1 +1 @@ -i32 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::i32

source ·
pub const i32: Symbol;
\ No newline at end of file +i32 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant i32

source
pub const i32: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.i64.html b/leo_span/symbol/sym/constant.i64.html index 3eca6d5032..6fa2ccc819 100644 --- a/leo_span/symbol/sym/constant.i64.html +++ b/leo_span/symbol/sym/constant.i64.html @@ -1 +1 @@ -i64 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::i64

source ·
pub const i64: Symbol;
\ No newline at end of file +i64 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant i64

source
pub const i64: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.i8.html b/leo_span/symbol/sym/constant.i8.html index 37a5783e28..b6de2a2b2c 100644 --- a/leo_span/symbol/sym/constant.i8.html +++ b/leo_span/symbol/sym/constant.i8.html @@ -1 +1 @@ -i8 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::i8

source ·
pub const i8: Symbol;
\ No newline at end of file +i8 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant i8

source
pub const i8: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.id.html b/leo_span/symbol/sym/constant.id.html index 5a0c024c23..27f8aa3f49 100644 --- a/leo_span/symbol/sym/constant.id.html +++ b/leo_span/symbol/sym/constant.id.html @@ -1 +1 @@ -id in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::id

source ·
pub const id: Symbol;
\ No newline at end of file +id in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant id

source
pub const id: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.import.html b/leo_span/symbol/sym/constant.import.html index 88c2da43cd..2149266350 100644 --- a/leo_span/symbol/sym/constant.import.html +++ b/leo_span/symbol/sym/constant.import.html @@ -1 +1 @@ -import in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::import

source ·
pub const import: Symbol;
\ No newline at end of file +import in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant import

source
pub const import: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.increment.html b/leo_span/symbol/sym/constant.increment.html index 8f03d87703..96190f2eec 100644 --- a/leo_span/symbol/sym/constant.increment.html +++ b/leo_span/symbol/sym/constant.increment.html @@ -1 +1 @@ -increment in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::increment

source ·
pub const increment: Symbol;
\ No newline at end of file +increment in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant increment

source
pub const increment: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.inline.html b/leo_span/symbol/sym/constant.inline.html index 9a0171d34f..21f5adffae 100644 --- a/leo_span/symbol/sym/constant.inline.html +++ b/leo_span/symbol/sym/constant.inline.html @@ -1 +1 @@ -inline in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::inline

source ·
pub const inline: Symbol;
\ No newline at end of file +inline in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant inline

source
pub const inline: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.input.html b/leo_span/symbol/sym/constant.input.html index 3dfef71dd6..ae6eed1f92 100644 --- a/leo_span/symbol/sym/constant.input.html +++ b/leo_span/symbol/sym/constant.input.html @@ -1 +1 @@ -input in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::input

source ·
pub const input: Symbol;
\ No newline at end of file +input in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant input

source
pub const input: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.inv.html b/leo_span/symbol/sym/constant.inv.html index 9b995e6ae1..eef3379c67 100644 --- a/leo_span/symbol/sym/constant.inv.html +++ b/leo_span/symbol/sym/constant.inv.html @@ -1 +1 @@ -inv in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::inv

source ·
pub const inv: Symbol;
\ No newline at end of file +inv in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant inv

source
pub const inv: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.leo.html b/leo_span/symbol/sym/constant.leo.html index a18f44af72..faae3b15ee 100644 --- a/leo_span/symbol/sym/constant.leo.html +++ b/leo_span/symbol/sym/constant.leo.html @@ -1 +1 @@ -leo in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::leo

source ·
pub const leo: Symbol;
\ No newline at end of file +leo in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant leo

source
pub const leo: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.lt.html b/leo_span/symbol/sym/constant.lt.html index 8893f548e0..4a7c151cd1 100644 --- a/leo_span/symbol/sym/constant.lt.html +++ b/leo_span/symbol/sym/constant.lt.html @@ -1 +1 @@ -lt in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::lt

source ·
pub const lt: Symbol;
\ No newline at end of file +lt in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant lt

source
pub const lt: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.lte.html b/leo_span/symbol/sym/constant.lte.html index 96d6ae7157..d4326f0a12 100644 --- a/leo_span/symbol/sym/constant.lte.html +++ b/leo_span/symbol/sym/constant.lte.html @@ -1 +1 @@ -lte in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::lte

source ·
pub const lte: Symbol;
\ No newline at end of file +lte in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant lte

source
pub const lte: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.main.html b/leo_span/symbol/sym/constant.main.html index fd50909dc6..3ab951d9ea 100644 --- a/leo_span/symbol/sym/constant.main.html +++ b/leo_span/symbol/sym/constant.main.html @@ -1 +1 @@ -main in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::main

source ·
pub const main: Symbol;
\ No newline at end of file +main in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant main

source
pub const main: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.mapping.html b/leo_span/symbol/sym/constant.mapping.html index 0583e44b0f..9add12783c 100644 --- a/leo_span/symbol/sym/constant.mapping.html +++ b/leo_span/symbol/sym/constant.mapping.html @@ -1 +1 @@ -mapping in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::mapping

source ·
pub const mapping: Symbol;
\ No newline at end of file +mapping in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant mapping

source
pub const mapping: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.mul.html b/leo_span/symbol/sym/constant.mul.html index d963405b14..9c45cb5dc3 100644 --- a/leo_span/symbol/sym/constant.mul.html +++ b/leo_span/symbol/sym/constant.mul.html @@ -1 +1 @@ -mul in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::mul

source ·
pub const mul: Symbol;
\ No newline at end of file +mul in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant mul

source
pub const mul: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.mul_wrapped.html b/leo_span/symbol/sym/constant.mul_wrapped.html index 1d4c04cb63..64fbe8ed9d 100644 --- a/leo_span/symbol/sym/constant.mul_wrapped.html +++ b/leo_span/symbol/sym/constant.mul_wrapped.html @@ -1 +1 @@ -mul_wrapped in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::mul_wrapped

source ·
pub const mul_wrapped: Symbol;
\ No newline at end of file +mul_wrapped in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant mul_wrapped

source
pub const mul_wrapped: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.nand.html b/leo_span/symbol/sym/constant.nand.html index 3055bdcc18..a81a2409ca 100644 --- a/leo_span/symbol/sym/constant.nand.html +++ b/leo_span/symbol/sym/constant.nand.html @@ -1 +1 @@ -nand in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::nand

source ·
pub const nand: Symbol;
\ No newline at end of file +nand in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant nand

source
pub const nand: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.neg.html b/leo_span/symbol/sym/constant.neg.html index 54abd4ca78..9eaff8471a 100644 --- a/leo_span/symbol/sym/constant.neg.html +++ b/leo_span/symbol/sym/constant.neg.html @@ -1 +1 @@ -neg in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::neg

source ·
pub const neg: Symbol;
\ No newline at end of file +neg in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant neg

source
pub const neg: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.neq.html b/leo_span/symbol/sym/constant.neq.html index 7e126730c5..9743e7517d 100644 --- a/leo_span/symbol/sym/constant.neq.html +++ b/leo_span/symbol/sym/constant.neq.html @@ -1 +1 @@ -neq in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::neq

source ·
pub const neq: Symbol;
\ No newline at end of file +neq in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant neq

source
pub const neq: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.network.html b/leo_span/symbol/sym/constant.network.html index f36acd75f3..fe8623797d 100644 --- a/leo_span/symbol/sym/constant.network.html +++ b/leo_span/symbol/sym/constant.network.html @@ -1 +1 @@ -network in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::network

source ·
pub const network: Symbol;
\ No newline at end of file +network in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant network

source
pub const network: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.nor.html b/leo_span/symbol/sym/constant.nor.html index 1d96cee075..446809b039 100644 --- a/leo_span/symbol/sym/constant.nor.html +++ b/leo_span/symbol/sym/constant.nor.html @@ -1 +1 @@ -nor in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::nor

source ·
pub const nor: Symbol;
\ No newline at end of file +nor in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant nor

source
pub const nor: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.not.html b/leo_span/symbol/sym/constant.not.html index 7b4676ce2e..5db60d8f32 100644 --- a/leo_span/symbol/sym/constant.not.html +++ b/leo_span/symbol/sym/constant.not.html @@ -1 +1 @@ -not in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::not

source ·
pub const not: Symbol;
\ No newline at end of file +not in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant not

source
pub const not: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.or.html b/leo_span/symbol/sym/constant.or.html index 9178ab4d37..c418374431 100644 --- a/leo_span/symbol/sym/constant.or.html +++ b/leo_span/symbol/sym/constant.or.html @@ -1 +1 @@ -or in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::or

source ·
pub const or: Symbol;
\ No newline at end of file +or in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant or

source
pub const or: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.owner.html b/leo_span/symbol/sym/constant.owner.html index e3a90498d8..dc7613c9bc 100644 --- a/leo_span/symbol/sym/constant.owner.html +++ b/leo_span/symbol/sym/constant.owner.html @@ -1 +1 @@ -owner in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::owner

source ·
pub const owner: Symbol;
\ No newline at end of file +owner in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant owner

source
pub const owner: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.pow.html b/leo_span/symbol/sym/constant.pow.html index 5b64ea9f47..55c693d4ad 100644 --- a/leo_span/symbol/sym/constant.pow.html +++ b/leo_span/symbol/sym/constant.pow.html @@ -1 +1 @@ -pow in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::pow

source ·
pub const pow: Symbol;
\ No newline at end of file +pow in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant pow

source
pub const pow: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.pow_wrapped.html b/leo_span/symbol/sym/constant.pow_wrapped.html index 6b22e69fa9..8aaa332f3d 100644 --- a/leo_span/symbol/sym/constant.pow_wrapped.html +++ b/leo_span/symbol/sym/constant.pow_wrapped.html @@ -1 +1 @@ -pow_wrapped in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::pow_wrapped

source ·
pub const pow_wrapped: Symbol;
\ No newline at end of file +pow_wrapped in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant pow_wrapped

source
pub const pow_wrapped: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.private.html b/leo_span/symbol/sym/constant.private.html index 7d4d26071d..f051465f5c 100644 --- a/leo_span/symbol/sym/constant.private.html +++ b/leo_span/symbol/sym/constant.private.html @@ -1 +1 @@ -private in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::private

source ·
pub const private: Symbol;
\ No newline at end of file +private in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant private

source
pub const private: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.program.html b/leo_span/symbol/sym/constant.program.html index 439954b48d..66872033e5 100644 --- a/leo_span/symbol/sym/constant.program.html +++ b/leo_span/symbol/sym/constant.program.html @@ -1 +1 @@ -program in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::program

source ·
pub const program: Symbol;
\ No newline at end of file +program in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant program

source
pub const program: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.public.html b/leo_span/symbol/sym/constant.public.html index 31ec7d4d77..47bee5be04 100644 --- a/leo_span/symbol/sym/constant.public.html +++ b/leo_span/symbol/sym/constant.public.html @@ -1 +1 @@ -public in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::public

source ·
pub const public: Symbol;
\ No newline at end of file +public in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant public

source
pub const public: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.rand_address.html b/leo_span/symbol/sym/constant.rand_address.html index e07052c178..d74200af23 100644 --- a/leo_span/symbol/sym/constant.rand_address.html +++ b/leo_span/symbol/sym/constant.rand_address.html @@ -1 +1 @@ -rand_address in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::rand_address

source ·
pub const rand_address: Symbol;
\ No newline at end of file +rand_address in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant rand_address

source
pub const rand_address: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.rand_bool.html b/leo_span/symbol/sym/constant.rand_bool.html index 6204c59f6a..de503bccf3 100644 --- a/leo_span/symbol/sym/constant.rand_bool.html +++ b/leo_span/symbol/sym/constant.rand_bool.html @@ -1 +1 @@ -rand_bool in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::rand_bool

source ·
pub const rand_bool: Symbol;
\ No newline at end of file +rand_bool in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant rand_bool

source
pub const rand_bool: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.rand_field.html b/leo_span/symbol/sym/constant.rand_field.html index edeb4b9cd0..52e819ad2d 100644 --- a/leo_span/symbol/sym/constant.rand_field.html +++ b/leo_span/symbol/sym/constant.rand_field.html @@ -1 +1 @@ -rand_field in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::rand_field

source ·
pub const rand_field: Symbol;
\ No newline at end of file +rand_field in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant rand_field

source
pub const rand_field: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.rand_group.html b/leo_span/symbol/sym/constant.rand_group.html index eb0ba009a6..3b9c561e94 100644 --- a/leo_span/symbol/sym/constant.rand_group.html +++ b/leo_span/symbol/sym/constant.rand_group.html @@ -1 +1 @@ -rand_group in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::rand_group

source ·
pub const rand_group: Symbol;
\ No newline at end of file +rand_group in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant rand_group

source
pub const rand_group: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.rand_i128.html b/leo_span/symbol/sym/constant.rand_i128.html index 09cf10f4ee..a9296b6a9d 100644 --- a/leo_span/symbol/sym/constant.rand_i128.html +++ b/leo_span/symbol/sym/constant.rand_i128.html @@ -1 +1 @@ -rand_i128 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::rand_i128

source ·
pub const rand_i128: Symbol;
\ No newline at end of file +rand_i128 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant rand_i128

source
pub const rand_i128: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.rand_i16.html b/leo_span/symbol/sym/constant.rand_i16.html index 706eca8a88..a63aa0392b 100644 --- a/leo_span/symbol/sym/constant.rand_i16.html +++ b/leo_span/symbol/sym/constant.rand_i16.html @@ -1 +1 @@ -rand_i16 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::rand_i16

source ·
pub const rand_i16: Symbol;
\ No newline at end of file +rand_i16 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant rand_i16

source
pub const rand_i16: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.rand_i32.html b/leo_span/symbol/sym/constant.rand_i32.html index c4dc239e9f..5c801d4aca 100644 --- a/leo_span/symbol/sym/constant.rand_i32.html +++ b/leo_span/symbol/sym/constant.rand_i32.html @@ -1 +1 @@ -rand_i32 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::rand_i32

source ·
pub const rand_i32: Symbol;
\ No newline at end of file +rand_i32 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant rand_i32

source
pub const rand_i32: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.rand_i64.html b/leo_span/symbol/sym/constant.rand_i64.html index 2518bc0147..e5a7392426 100644 --- a/leo_span/symbol/sym/constant.rand_i64.html +++ b/leo_span/symbol/sym/constant.rand_i64.html @@ -1 +1 @@ -rand_i64 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::rand_i64

source ·
pub const rand_i64: Symbol;
\ No newline at end of file +rand_i64 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant rand_i64

source
pub const rand_i64: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.rand_i8.html b/leo_span/symbol/sym/constant.rand_i8.html index ff1c0b8594..8a4d7a0a09 100644 --- a/leo_span/symbol/sym/constant.rand_i8.html +++ b/leo_span/symbol/sym/constant.rand_i8.html @@ -1 +1 @@ -rand_i8 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::rand_i8

source ·
pub const rand_i8: Symbol;
\ No newline at end of file +rand_i8 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant rand_i8

source
pub const rand_i8: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.rand_scalar.html b/leo_span/symbol/sym/constant.rand_scalar.html index 05f1aa8ef9..f6fab7de24 100644 --- a/leo_span/symbol/sym/constant.rand_scalar.html +++ b/leo_span/symbol/sym/constant.rand_scalar.html @@ -1 +1 @@ -rand_scalar in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::rand_scalar

source ·
pub const rand_scalar: Symbol;
\ No newline at end of file +rand_scalar in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant rand_scalar

source
pub const rand_scalar: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.rand_u128.html b/leo_span/symbol/sym/constant.rand_u128.html index 04bada0644..b951735718 100644 --- a/leo_span/symbol/sym/constant.rand_u128.html +++ b/leo_span/symbol/sym/constant.rand_u128.html @@ -1 +1 @@ -rand_u128 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::rand_u128

source ·
pub const rand_u128: Symbol;
\ No newline at end of file +rand_u128 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant rand_u128

source
pub const rand_u128: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.rand_u16.html b/leo_span/symbol/sym/constant.rand_u16.html index 159d0a0869..8c8c1e2cdb 100644 --- a/leo_span/symbol/sym/constant.rand_u16.html +++ b/leo_span/symbol/sym/constant.rand_u16.html @@ -1 +1 @@ -rand_u16 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::rand_u16

source ·
pub const rand_u16: Symbol;
\ No newline at end of file +rand_u16 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant rand_u16

source
pub const rand_u16: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.rand_u32.html b/leo_span/symbol/sym/constant.rand_u32.html index ba1502dbe4..d8b5c8887c 100644 --- a/leo_span/symbol/sym/constant.rand_u32.html +++ b/leo_span/symbol/sym/constant.rand_u32.html @@ -1 +1 @@ -rand_u32 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::rand_u32

source ·
pub const rand_u32: Symbol;
\ No newline at end of file +rand_u32 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant rand_u32

source
pub const rand_u32: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.rand_u64.html b/leo_span/symbol/sym/constant.rand_u64.html index dddf16db29..ee7bb6d055 100644 --- a/leo_span/symbol/sym/constant.rand_u64.html +++ b/leo_span/symbol/sym/constant.rand_u64.html @@ -1 +1 @@ -rand_u64 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::rand_u64

source ·
pub const rand_u64: Symbol;
\ No newline at end of file +rand_u64 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant rand_u64

source
pub const rand_u64: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.rand_u8.html b/leo_span/symbol/sym/constant.rand_u8.html index 1599d2c3f5..bd7ceb9f62 100644 --- a/leo_span/symbol/sym/constant.rand_u8.html +++ b/leo_span/symbol/sym/constant.rand_u8.html @@ -1 +1 @@ -rand_u8 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::rand_u8

source ·
pub const rand_u8: Symbol;
\ No newline at end of file +rand_u8 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant rand_u8

source
pub const rand_u8: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.record.html b/leo_span/symbol/sym/constant.record.html index 9a4c56bed5..b1defa186f 100644 --- a/leo_span/symbol/sym/constant.record.html +++ b/leo_span/symbol/sym/constant.record.html @@ -1 +1 @@ -record in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::record

source ·
pub const record: Symbol;
\ No newline at end of file +record in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant record

source
pub const record: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.rem.html b/leo_span/symbol/sym/constant.rem.html index 11ad7f9e31..4c35c71371 100644 --- a/leo_span/symbol/sym/constant.rem.html +++ b/leo_span/symbol/sym/constant.rem.html @@ -1 +1 @@ -rem in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::rem

source ·
pub const rem: Symbol;
\ No newline at end of file +rem in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant rem

source
pub const rem: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.rem_wrapped.html b/leo_span/symbol/sym/constant.rem_wrapped.html index 7e55ba8bde..f2a093b240 100644 --- a/leo_span/symbol/sym/constant.rem_wrapped.html +++ b/leo_span/symbol/sym/constant.rem_wrapped.html @@ -1 +1 @@ -rem_wrapped in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::rem_wrapped

source ·
pub const rem_wrapped: Symbol;
\ No newline at end of file +rem_wrapped in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant rem_wrapped

source
pub const rem_wrapped: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.remove.html b/leo_span/symbol/sym/constant.remove.html index f1e7f2a2f0..7681806b8b 100644 --- a/leo_span/symbol/sym/constant.remove.html +++ b/leo_span/symbol/sym/constant.remove.html @@ -1 +1 @@ -remove in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::remove

source ·
pub const remove: Symbol;
\ No newline at end of file +remove in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant remove

source
pub const remove: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.scalar.html b/leo_span/symbol/sym/constant.scalar.html index c7e96a5a77..ed01dc72fc 100644 --- a/leo_span/symbol/sym/constant.scalar.html +++ b/leo_span/symbol/sym/constant.scalar.html @@ -1 +1 @@ -scalar in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::scalar

source ·
pub const scalar: Symbol;
\ No newline at end of file +scalar in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant scalar

source
pub const scalar: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.set.html b/leo_span/symbol/sym/constant.set.html index 0e0c28006e..bf2a8d3dee 100644 --- a/leo_span/symbol/sym/constant.set.html +++ b/leo_span/symbol/sym/constant.set.html @@ -1 +1 @@ -set in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::set

source ·
pub const set: Symbol;
\ No newline at end of file +set in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant set

source
pub const set: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.shl.html b/leo_span/symbol/sym/constant.shl.html index fce943c0b3..b285450b08 100644 --- a/leo_span/symbol/sym/constant.shl.html +++ b/leo_span/symbol/sym/constant.shl.html @@ -1 +1 @@ -shl in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::shl

source ·
pub const shl: Symbol;
\ No newline at end of file +shl in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant shl

source
pub const shl: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.shl_wrapped.html b/leo_span/symbol/sym/constant.shl_wrapped.html index 9a7fae2381..61f3a8ec72 100644 --- a/leo_span/symbol/sym/constant.shl_wrapped.html +++ b/leo_span/symbol/sym/constant.shl_wrapped.html @@ -1 +1 @@ -shl_wrapped in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::shl_wrapped

source ·
pub const shl_wrapped: Symbol;
\ No newline at end of file +shl_wrapped in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant shl_wrapped

source
pub const shl_wrapped: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.shr.html b/leo_span/symbol/sym/constant.shr.html index 74690ec193..1465f181ab 100644 --- a/leo_span/symbol/sym/constant.shr.html +++ b/leo_span/symbol/sym/constant.shr.html @@ -1 +1 @@ -shr in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::shr

source ·
pub const shr: Symbol;
\ No newline at end of file +shr in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant shr

source
pub const shr: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.shr_wrapped.html b/leo_span/symbol/sym/constant.shr_wrapped.html index 221131cdf1..478c1504c6 100644 --- a/leo_span/symbol/sym/constant.shr_wrapped.html +++ b/leo_span/symbol/sym/constant.shr_wrapped.html @@ -1 +1 @@ -shr_wrapped in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::shr_wrapped

source ·
pub const shr_wrapped: Symbol;
\ No newline at end of file +shr_wrapped in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant shr_wrapped

source
pub const shr_wrapped: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.signature.html b/leo_span/symbol/sym/constant.signature.html index fb0f1e52f5..6a23187049 100644 --- a/leo_span/symbol/sym/constant.signature.html +++ b/leo_span/symbol/sym/constant.signature.html @@ -1 +1 @@ -signature in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::signature

source ·
pub const signature: Symbol;
\ No newline at end of file +signature in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant signature

source
pub const signature: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.signer.html b/leo_span/symbol/sym/constant.signer.html index 748477d1a4..6066e41082 100644 --- a/leo_span/symbol/sym/constant.signer.html +++ b/leo_span/symbol/sym/constant.signer.html @@ -1 +1 @@ -signer in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::signer

source ·
pub const signer: Symbol;
\ No newline at end of file +signer in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant signer

source
pub const signer: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.square.html b/leo_span/symbol/sym/constant.square.html index ff3a086ec7..c501cfc4cc 100644 --- a/leo_span/symbol/sym/constant.square.html +++ b/leo_span/symbol/sym/constant.square.html @@ -1 +1 @@ -square in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::square

source ·
pub const square: Symbol;
\ No newline at end of file +square in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant square

source
pub const square: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.square_root.html b/leo_span/symbol/sym/constant.square_root.html index cf23cd8abe..6d36b4203c 100644 --- a/leo_span/symbol/sym/constant.square_root.html +++ b/leo_span/symbol/sym/constant.square_root.html @@ -1 +1 @@ -square_root in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::square_root

source ·
pub const square_root: Symbol;
\ No newline at end of file +square_root in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant square_root

source
pub const square_root: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.string.html b/leo_span/symbol/sym/constant.string.html index 5c51d3f0a1..796789164f 100644 --- a/leo_span/symbol/sym/constant.string.html +++ b/leo_span/symbol/sym/constant.string.html @@ -1 +1 @@ -string in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::string

source ·
pub const string: Symbol;
\ No newline at end of file +string in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant string

source
pub const string: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.stub.html b/leo_span/symbol/sym/constant.stub.html index c4f2cf23e6..f56d010485 100644 --- a/leo_span/symbol/sym/constant.stub.html +++ b/leo_span/symbol/sym/constant.stub.html @@ -1 +1 @@ -stub in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::stub

source ·
pub const stub: Symbol;
\ No newline at end of file +stub in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant stub

source
pub const stub: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.sub.html b/leo_span/symbol/sym/constant.sub.html index df477972c6..af52cdf541 100644 --- a/leo_span/symbol/sym/constant.sub.html +++ b/leo_span/symbol/sym/constant.sub.html @@ -1 +1 @@ -sub in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::sub

source ·
pub const sub: Symbol;
\ No newline at end of file +sub in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant sub

source
pub const sub: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.sub_wrapped.html b/leo_span/symbol/sym/constant.sub_wrapped.html index 1505e56d92..5d37d6a66e 100644 --- a/leo_span/symbol/sym/constant.sub_wrapped.html +++ b/leo_span/symbol/sym/constant.sub_wrapped.html @@ -1 +1 @@ -sub_wrapped in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::sub_wrapped

source ·
pub const sub_wrapped: Symbol;
\ No newline at end of file +sub_wrapped in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant sub_wrapped

source
pub const sub_wrapped: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.to_x_coordinate.html b/leo_span/symbol/sym/constant.to_x_coordinate.html index f662bc17f1..dfdddd4822 100644 --- a/leo_span/symbol/sym/constant.to_x_coordinate.html +++ b/leo_span/symbol/sym/constant.to_x_coordinate.html @@ -1 +1 @@ -to_x_coordinate in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::to_x_coordinate

source ·
pub const to_x_coordinate: Symbol;
\ No newline at end of file +to_x_coordinate in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant to_x_coordinate

source
pub const to_x_coordinate: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.to_y_coordinate.html b/leo_span/symbol/sym/constant.to_y_coordinate.html index 8e40551067..0b65f3ba7c 100644 --- a/leo_span/symbol/sym/constant.to_y_coordinate.html +++ b/leo_span/symbol/sym/constant.to_y_coordinate.html @@ -1 +1 @@ -to_y_coordinate in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::to_y_coordinate

source ·
pub const to_y_coordinate: Symbol;
\ No newline at end of file +to_y_coordinate in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant to_y_coordinate

source
pub const to_y_coordinate: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.transition.html b/leo_span/symbol/sym/constant.transition.html index 196b1d2be0..61a1991b6a 100644 --- a/leo_span/symbol/sym/constant.transition.html +++ b/leo_span/symbol/sym/constant.transition.html @@ -1 +1 @@ -transition in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::transition

source ·
pub const transition: Symbol;
\ No newline at end of file +transition in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant transition

source
pub const transition: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.u128.html b/leo_span/symbol/sym/constant.u128.html index 1b941aa986..0c38fcadb8 100644 --- a/leo_span/symbol/sym/constant.u128.html +++ b/leo_span/symbol/sym/constant.u128.html @@ -1 +1 @@ -u128 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::u128

source ·
pub const u128: Symbol;
\ No newline at end of file +u128 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant u128

source
pub const u128: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.u16.html b/leo_span/symbol/sym/constant.u16.html index 55e460be24..603cd611db 100644 --- a/leo_span/symbol/sym/constant.u16.html +++ b/leo_span/symbol/sym/constant.u16.html @@ -1 +1 @@ -u16 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::u16

source ·
pub const u16: Symbol;
\ No newline at end of file +u16 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant u16

source
pub const u16: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.u32.html b/leo_span/symbol/sym/constant.u32.html index 5dc6ad56e6..466b4ca2d7 100644 --- a/leo_span/symbol/sym/constant.u32.html +++ b/leo_span/symbol/sym/constant.u32.html @@ -1 +1 @@ -u32 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::u32

source ·
pub const u32: Symbol;
\ No newline at end of file +u32 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant u32

source
pub const u32: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.u64.html b/leo_span/symbol/sym/constant.u64.html index ca5f54e995..631eb86128 100644 --- a/leo_span/symbol/sym/constant.u64.html +++ b/leo_span/symbol/sym/constant.u64.html @@ -1 +1 @@ -u64 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::u64

source ·
pub const u64: Symbol;
\ No newline at end of file +u64 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant u64

source
pub const u64: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.u8.html b/leo_span/symbol/sym/constant.u8.html index 43204bff1f..796d4a0409 100644 --- a/leo_span/symbol/sym/constant.u8.html +++ b/leo_span/symbol/sym/constant.u8.html @@ -1 +1 @@ -u8 in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::u8

source ·
pub const u8: Symbol;
\ No newline at end of file +u8 in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant u8

source
pub const u8: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.verify.html b/leo_span/symbol/sym/constant.verify.html index 3d6128569b..f67d242223 100644 --- a/leo_span/symbol/sym/constant.verify.html +++ b/leo_span/symbol/sym/constant.verify.html @@ -1 +1 @@ -verify in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::verify

source ·
pub const verify: Symbol;
\ No newline at end of file +verify in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant verify

source
pub const verify: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/constant.xor.html b/leo_span/symbol/sym/constant.xor.html index 75f703d921..bc4e2861e8 100644 --- a/leo_span/symbol/sym/constant.xor.html +++ b/leo_span/symbol/sym/constant.xor.html @@ -1 +1 @@ -xor in leo_span::symbol::sym - Rust

Constant leo_span::symbol::sym::xor

source ·
pub const xor: Symbol;
\ No newline at end of file +xor in leo_span::symbol::sym - Rust
leo_span::symbol::sym

Constant xor

source
pub const xor: Symbol;
\ No newline at end of file diff --git a/leo_span/symbol/sym/index.html b/leo_span/symbol/sym/index.html index ade226586d..1d3a9893e8 100644 --- a/leo_span/symbol/sym/index.html +++ b/leo_span/symbol/sym/index.html @@ -1 +1 @@ -leo_span::symbol::sym - Rust
\ No newline at end of file +leo_span::symbol::sym - Rust
\ No newline at end of file diff --git a/leo_test_framework/all.html b/leo_test_framework/all.html index 9a00271c3e..7e9233917b 100644 --- a/leo_test_framework/all.html +++ b/leo_test_framework/all.html @@ -1 +1 @@ -List of all items in this crate
\ No newline at end of file +List of all items in this crate
\ No newline at end of file diff --git a/leo_test_framework/error/enum.TestError.html b/leo_test_framework/error/enum.TestError.html index c1aae5cd21..6b033ba825 100644 --- a/leo_test_framework/error/enum.TestError.html +++ b/leo_test_framework/error/enum.TestError.html @@ -1,48 +1,48 @@ -TestError in leo_test_framework::error - Rust

Enum leo_test_framework::error::TestError

source ·
pub enum TestError {
+TestError in leo_test_framework::error - Rust
leo_test_framework::error

Enum TestError

source
pub enum TestError {
     Panicked {
-        test: String,
-        index: usize,
-        error: String,
+        test: String,
+        index: usize,
+        error: String,
     },
     UnexpectedOutput {
-        test: String,
-        index: usize,
+        test: String,
+        index: usize,
         expected: Value,
         output: Value,
     },
     PassedAndShouldntHave {
-        test: String,
-        index: usize,
+        test: String,
+        index: usize,
     },
     FailedAndShouldntHave {
-        test: String,
-        index: usize,
-        error: String,
+        test: String,
+        index: usize,
+        error: String,
     },
     UnexpectedError {
-        test: String,
-        index: usize,
-        expected: String,
-        output: String,
+        test: String,
+        index: usize,
+        expected: String,
+        output: String,
     },
     MismatchedTestExpectationLength,
     MissingTestConfig,
-}

Variants§

§

Panicked

Fields

§test: String
§index: usize
§error: String
§

UnexpectedOutput

Fields

§test: String
§index: usize
§expected: Value
§output: Value
§

PassedAndShouldntHave

Fields

§test: String
§index: usize
§

FailedAndShouldntHave

Fields

§test: String
§index: usize
§error: String
§

UnexpectedError

Fields

§test: String
§index: usize
§expected: String
§output: String
§

MismatchedTestExpectationLength

§

MissingTestConfig

Trait Implementations§

source§

impl Debug for TestError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for TestError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. 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 - 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.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+}

Variants§

§

Panicked

Fields

§test: String
§index: usize
§error: String
§

UnexpectedOutput

Fields

§test: String
§index: usize
§expected: Value
§output: Value
§

PassedAndShouldntHave

Fields

§test: String
§index: usize
§

FailedAndShouldntHave

Fields

§test: String
§index: usize
§error: String
§

UnexpectedError

Fields

§test: String
§index: usize
§expected: String
§output: String
§

MismatchedTestExpectationLength

§

MissingTestConfig

Trait Implementations§

source§

impl Debug for TestError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for TestError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. 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 + 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.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_test_framework/error/fn.emit_errors.html b/leo_test_framework/error/fn.emit_errors.html index 19e9ec2bd3..bef74aac92 100644 --- a/leo_test_framework/error/fn.emit_errors.html +++ b/leo_test_framework/error/fn.emit_errors.html @@ -1,7 +1,7 @@ -emit_errors in leo_test_framework::error - Rust

Function leo_test_framework::error::emit_errors

source ·
pub fn emit_errors(
-    test: &str,
-    output: &Result<Result<Value, String>, String>,
+emit_errors in leo_test_framework::error - Rust
leo_test_framework::error

Function emit_errors

source
pub fn emit_errors(
+    test: &str,
+    output: &Result<Result<Value, String>, String>,
     mode: &TestExpectationMode,
-    expected_output: Option<Value>,
-    test_index: usize,
-) -> Option<TestError>
\ No newline at end of file + expected_output: Option<Value>, + test_index: usize, +) -> Option<TestError>
\ No newline at end of file diff --git a/leo_test_framework/error/fn.toml_to_string.html b/leo_test_framework/error/fn.toml_to_string.html index c20904ea25..cea1e4acff 100644 --- a/leo_test_framework/error/fn.toml_to_string.html +++ b/leo_test_framework/error/fn.toml_to_string.html @@ -1,4 +1,4 @@ -toml_to_string in leo_test_framework::error - Rust

Function leo_test_framework::error::toml_to_string

source ·
fn toml_to_string(x: &Value) -> String
Expand description

Make a user-readable string representing this Value.

+toml_to_string in leo_test_framework::error - Rust
leo_test_framework::error

Function toml_to_string

source
fn toml_to_string(x: &Value) -> String
Expand description

Make a user-readable string representing this Value.

TOML only supports tables as the top level type, so we handle arrays on our own.

\ No newline at end of file diff --git a/leo_test_framework/error/index.html b/leo_test_framework/error/index.html index 85a6ec2686..632ab0fbe3 100644 --- a/leo_test_framework/error/index.html +++ b/leo_test_framework/error/index.html @@ -1 +1 @@ -leo_test_framework::error - Rust

Module leo_test_framework::error

source ·

Structs§

Enums§

Functions§

\ No newline at end of file +leo_test_framework::error - Rust
leo_test_framework

Module error

source

Structs§

Enums§

Functions§

\ No newline at end of file diff --git a/leo_test_framework/error/struct.TestFailure.html b/leo_test_framework/error/struct.TestFailure.html index f97ef7cf70..0236710c09 100644 --- a/leo_test_framework/error/struct.TestFailure.html +++ b/leo_test_framework/error/struct.TestFailure.html @@ -1,21 +1,21 @@ -TestFailure in leo_test_framework::error - Rust

Struct leo_test_framework::error::TestFailure

source ·
pub struct TestFailure {
-    pub path: String,
-    pub errors: Vec<TestError>,
-}

Fields§

§path: String§errors: Vec<TestError>

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 - 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.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+TestFailure in leo_test_framework::error - Rust
leo_test_framework::error

Struct TestFailure

source
pub struct TestFailure {
+    pub path: String,
+    pub errors: Vec<TestError>,
+}

Fields§

§path: String§errors: Vec<TestError>

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 + 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.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_test_framework/fetch/fn.find_tests.html b/leo_test_framework/fetch/fn.find_tests.html index 5bf0535f7d..ffa59d71f7 100644 --- a/leo_test_framework/fetch/fn.find_tests.html +++ b/leo_test_framework/fetch/fn.find_tests.html @@ -1 +1 @@ -find_tests in leo_test_framework::fetch - Rust

Function leo_test_framework::fetch::find_tests

source ·
pub fn find_tests(path: &Path) -> impl Iterator<Item = (PathBuf, String)>
\ No newline at end of file +find_tests in leo_test_framework::fetch - Rust
leo_test_framework::fetch

Function find_tests

source
pub fn find_tests(path: &Path) -> impl Iterator<Item = (PathBuf, String)>
\ No newline at end of file diff --git a/leo_test_framework/fetch/fn.split_tests_one_line.html b/leo_test_framework/fetch/fn.split_tests_one_line.html index f11c811a31..8d3d99ab96 100644 --- a/leo_test_framework/fetch/fn.split_tests_one_line.html +++ b/leo_test_framework/fetch/fn.split_tests_one_line.html @@ -1 +1 @@ -split_tests_one_line in leo_test_framework::fetch - Rust

Function leo_test_framework::fetch::split_tests_one_line

source ·
pub fn split_tests_one_line(source: &str) -> Vec<&str>
\ No newline at end of file +split_tests_one_line in leo_test_framework::fetch - Rust
leo_test_framework::fetch

Function split_tests_one_line

source
pub fn split_tests_one_line(source: &str) -> Vec<&str>
\ No newline at end of file diff --git a/leo_test_framework/fetch/fn.split_tests_two_line.html b/leo_test_framework/fetch/fn.split_tests_two_line.html index 6e97adce13..c72dbb6cad 100644 --- a/leo_test_framework/fetch/fn.split_tests_two_line.html +++ b/leo_test_framework/fetch/fn.split_tests_two_line.html @@ -1 +1 @@ -split_tests_two_line in leo_test_framework::fetch - Rust

Function leo_test_framework::fetch::split_tests_two_line

source ·
pub fn split_tests_two_line(source: &str) -> Vec<String>
\ No newline at end of file +split_tests_two_line in leo_test_framework::fetch - Rust
leo_test_framework::fetch

Function split_tests_two_line

source
pub fn split_tests_two_line(source: &str) -> Vec<String>
\ No newline at end of file diff --git a/leo_test_framework/fetch/index.html b/leo_test_framework/fetch/index.html index fb6be93d24..2d4f3028fe 100644 --- a/leo_test_framework/fetch/index.html +++ b/leo_test_framework/fetch/index.html @@ -1 +1 @@ -leo_test_framework::fetch - Rust
\ No newline at end of file +leo_test_framework::fetch - Rust
\ No newline at end of file diff --git a/leo_test_framework/index.html b/leo_test_framework/index.html index d5eb05ac84..1f4b9f658f 100644 --- a/leo_test_framework/index.html +++ b/leo_test_framework/index.html @@ -1,4 +1,4 @@ -leo_test_framework - Rust

Crate leo_test_framework

source ·
Expand description

The test framework to run integration tests with Leo code text.

+leo_test_framework - Rust

Crate leo_test_framework

source
Expand description

The test framework to run integration tests with Leo code text.

This module contains the run_tests() method which runs all integration tests in the root [tests/] directory.

To regenerate the tests after a syntax change or failing test, delete the [tests/expectations/] diff --git a/leo_test_framework/output/index.html b/leo_test_framework/output/index.html index ad56e98b47..5918087523 100644 --- a/leo_test_framework/output/index.html +++ b/leo_test_framework/output/index.html @@ -1 +1 @@ -leo_test_framework::output - Rust

Module leo_test_framework::output

source ·

Structs§

\ No newline at end of file +leo_test_framework::output - Rust
leo_test_framework

Module output

source

Structs§

\ No newline at end of file diff --git a/leo_test_framework/output/struct.TestExpectation.html b/leo_test_framework/output/struct.TestExpectation.html index 74c8247f60..7343ec05f5 100644 --- a/leo_test_framework/output/struct.TestExpectation.html +++ b/leo_test_framework/output/struct.TestExpectation.html @@ -1,27 +1,27 @@ -TestExpectation in leo_test_framework::output - Rust

Struct leo_test_framework::output::TestExpectation

source ·
pub struct TestExpectation {
-    pub namespace: String,
+TestExpectation in leo_test_framework::output - Rust
leo_test_framework::output

Struct TestExpectation

source
pub struct TestExpectation {
+    pub namespace: String,
     pub expectation: TestExpectationMode,
-    pub outputs: Vec<Value>,
-}

Fields§

§namespace: String§expectation: TestExpectationMode§outputs: Vec<Value>

Trait Implementations§

source§

impl Clone for TestExpectation

source§

fn clone(&self) -> TestExpectation

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<'de> Deserialize<'de> for TestExpectation

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 TestExpectation

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 - 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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+ pub outputs: Vec<Value>, +}

Fields§

§namespace: String§expectation: TestExpectationMode§outputs: Vec<Value>

Trait Implementations§

source§

impl Clone for TestExpectation

source§

fn clone(&self) -> TestExpectation

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<'de> Deserialize<'de> for TestExpectation

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 TestExpectation

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 + 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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_test_framework/runner/constant.PROGRAM_DELIMITER.html b/leo_test_framework/runner/constant.PROGRAM_DELIMITER.html index dfe8580990..1e81bdc937 100644 --- a/leo_test_framework/runner/constant.PROGRAM_DELIMITER.html +++ b/leo_test_framework/runner/constant.PROGRAM_DELIMITER.html @@ -1 +1 @@ -PROGRAM_DELIMITER in leo_test_framework::runner - Rust

Constant leo_test_framework::runner::PROGRAM_DELIMITER

source ·
pub const PROGRAM_DELIMITER: &str = "// --- Next Program --- //";
\ No newline at end of file +PROGRAM_DELIMITER in leo_test_framework::runner - Rust
leo_test_framework::runner

Constant PROGRAM_DELIMITER

source
pub const PROGRAM_DELIMITER: &str = "// --- Next Program --- //";
\ No newline at end of file diff --git a/leo_test_framework/runner/enum.ParseType.html b/leo_test_framework/runner/enum.ParseType.html index 9abb22d14a..e7aacc634d 100644 --- a/leo_test_framework/runner/enum.ParseType.html +++ b/leo_test_framework/runner/enum.ParseType.html @@ -1,29 +1,29 @@ -ParseType in leo_test_framework::runner - Rust

Enum leo_test_framework::runner::ParseType

source ·
pub enum ParseType {
+ParseType in leo_test_framework::runner - Rust
leo_test_framework::runner

Enum ParseType

source
pub enum ParseType {
     Line,
     ContinuousLines,
     Whole,
-}

Variants§

§

Line

§

ContinuousLines

§

Whole

Trait Implementations§

source§

impl Clone for ParseType

source§

fn clone(&self) -> ParseType

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 ParseType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for ParseType

source§

fn eq(&self, other: &ParseType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Copy for ParseType

source§

impl Eq for ParseType

source§

impl StructuralPartialEq for ParseType

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+}

Variants§

§

Line

§

ContinuousLines

§

Whole

Trait Implementations§

source§

impl Clone for ParseType

source§

fn clone(&self) -> ParseType

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 ParseType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for ParseType

source§

fn eq(&self, other: &ParseType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Copy for ParseType

source§

impl Eq for ParseType

source§

impl StructuralPartialEq for ParseType

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_test_framework/runner/fn.get_benches.html b/leo_test_framework/runner/fn.get_benches.html index 0330bde886..36b9b33560 100644 --- a/leo_test_framework/runner/fn.get_benches.html +++ b/leo_test_framework/runner/fn.get_benches.html @@ -1,2 +1,2 @@ -get_benches in leo_test_framework::runner - Rust

Function leo_test_framework::runner::get_benches

source ·
pub fn get_benches() -> Vec<(String, String)>
Expand description

returns (name, content) for all benchmark samples

+get_benches in leo_test_framework::runner - Rust
leo_test_framework::runner

Function get_benches

source
pub fn get_benches() -> Vec<(String, String)>
Expand description

returns (name, content) for all benchmark samples

\ No newline at end of file diff --git a/leo_test_framework/runner/fn.is_env_var_set.html b/leo_test_framework/runner/fn.is_env_var_set.html index 9b88be3f15..9ebcfeab92 100644 --- a/leo_test_framework/runner/fn.is_env_var_set.html +++ b/leo_test_framework/runner/fn.is_env_var_set.html @@ -1 +1 @@ -is_env_var_set in leo_test_framework::runner - Rust

Function leo_test_framework::runner::is_env_var_set

source ·
fn is_env_var_set(var: &str) -> bool
\ No newline at end of file +is_env_var_set in leo_test_framework::runner - Rust
leo_test_framework::runner

Function is_env_var_set

source
fn is_env_var_set(var: &str) -> bool
\ No newline at end of file diff --git a/leo_test_framework/runner/fn.run_tests.html b/leo_test_framework/runner/fn.run_tests.html index 06e9cb7d99..49a3dd0e95 100644 --- a/leo_test_framework/runner/fn.run_tests.html +++ b/leo_test_framework/runner/fn.run_tests.html @@ -1 +1 @@ -run_tests in leo_test_framework::runner - Rust

Function leo_test_framework::runner::run_tests

source ·
pub fn run_tests<T: Runner>(runner: &T, expectation_category: &str)
\ No newline at end of file +run_tests in leo_test_framework::runner - Rust
leo_test_framework::runner

Function run_tests

source
pub fn run_tests<T: Runner>(runner: &T, expectation_category: &str)
\ No newline at end of file diff --git a/leo_test_framework/runner/fn.set_hook.html b/leo_test_framework/runner/fn.set_hook.html index dd5652ea28..71dbbd4582 100644 --- a/leo_test_framework/runner/fn.set_hook.html +++ b/leo_test_framework/runner/fn.set_hook.html @@ -1 +1 @@ -set_hook in leo_test_framework::runner - Rust

Function leo_test_framework::runner::set_hook

source ·
fn set_hook() -> Arc<Mutex<Option<String>>>
\ No newline at end of file +set_hook in leo_test_framework::runner - Rust
leo_test_framework::runner

Function set_hook

source
fn set_hook() -> Arc<Mutex<Option<String>>>
\ No newline at end of file diff --git a/leo_test_framework/runner/fn.take_hook.html b/leo_test_framework/runner/fn.take_hook.html index 64c89f48ae..266869fbda 100644 --- a/leo_test_framework/runner/fn.take_hook.html +++ b/leo_test_framework/runner/fn.take_hook.html @@ -1,4 +1,4 @@ -take_hook in leo_test_framework::runner - Rust

Function leo_test_framework::runner::take_hook

source ·
fn take_hook(
-    output: Result<Result<Value, String>, Box<dyn Any + Send>>,
-    panic_buf: Arc<Mutex<Option<String>>>,
-) -> Result<Result<Value, String>, String>
\ No newline at end of file +take_hook in leo_test_framework::runner - Rust
leo_test_framework::runner

Function take_hook

source
fn take_hook(
+    output: Result<Result<Value, String>, Box<dyn Any + Send>>,
+    panic_buf: Arc<Mutex<Option<String>>>,
+) -> Result<Result<Value, String>, String>
\ No newline at end of file diff --git a/leo_test_framework/runner/index.html b/leo_test_framework/runner/index.html index 5675944c45..63d5689066 100644 --- a/leo_test_framework/runner/index.html +++ b/leo_test_framework/runner/index.html @@ -1 +1 @@ -leo_test_framework::runner - Rust

Module leo_test_framework::runner

source ·

Structs§

Enums§

Constants§

Traits§

Functions§

\ No newline at end of file +leo_test_framework::runner - Rust
leo_test_framework

Module runner

source

Structs§

Enums§

Constants§

Traits§

Functions§

\ No newline at end of file diff --git a/leo_test_framework/runner/struct.Test.html b/leo_test_framework/runner/struct.Test.html index c46df2f66f..7306e380ff 100644 --- a/leo_test_framework/runner/struct.Test.html +++ b/leo_test_framework/runner/struct.Test.html @@ -1,23 +1,23 @@ -Test in leo_test_framework::runner - Rust

Struct leo_test_framework::runner::Test

source ·
pub struct Test {
-    pub name: String,
-    pub content: String,
-    pub path: PathBuf,
+Test in leo_test_framework::runner - Rust
leo_test_framework::runner

Struct Test

source
pub struct Test {
+    pub name: String,
+    pub content: String,
+    pub path: PathBuf,
     pub config: TestConfig,
-}

Fields§

§name: String§content: String§path: PathBuf§config: TestConfig

Auto Trait Implementations§

§

impl Freeze for Test

§

impl RefUnwindSafe for Test

§

impl Send for Test

§

impl Sync for Test

§

impl Unpin for Test

§

impl UnwindSafe for Test

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.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+}

Fields§

§name: String§content: String§path: PathBuf§config: TestConfig

Auto Trait Implementations§

§

impl Freeze for Test

§

impl RefUnwindSafe for Test

§

impl Send for Test

§

impl Sync for Test

§

impl Unpin for Test

§

impl UnwindSafe for Test

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.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_test_framework/runner/struct.TestCases.html b/leo_test_framework/runner/struct.TestCases.html index 28525873f6..834d9fec86 100644 --- a/leo_test_framework/runner/struct.TestCases.html +++ b/leo_test_framework/runner/struct.TestCases.html @@ -1,34 +1,34 @@ -TestCases in leo_test_framework::runner - Rust

Struct leo_test_framework::runner::TestCases

source ·
pub struct TestCases {
-    tests: Vec<(PathBuf, String)>,
-    path_prefix: PathBuf,
-    expectation_category: String,
-    fail_categories: Vec<TestFailure>,
-}

Fields§

§tests: Vec<(PathBuf, String)>§path_prefix: PathBuf§expectation_category: String§fail_categories: Vec<TestFailure>

Implementations§

source§

impl TestCases

source

fn new( - expectation_category: &str, - additional_check: impl Fn(&TestConfig) -> bool, -) -> (Self, Vec<TestConfig>)

source

fn load_tests( +TestCases in leo_test_framework::runner - Rust
leo_test_framework::runner

Struct TestCases

source
pub struct TestCases {
+    tests: Vec<(PathBuf, String)>,
+    path_prefix: PathBuf,
+    expectation_category: String,
+    fail_categories: Vec<TestFailure>,
+}

Fields§

§tests: Vec<(PathBuf, String)>§path_prefix: PathBuf§expectation_category: String§fail_categories: Vec<TestFailure>

Implementations§

source§

impl TestCases

source

fn new( + expectation_category: &str, + additional_check: impl Fn(&TestConfig) -> bool, +) -> (Self, Vec<TestConfig>)

source

fn load_tests( &mut self, - additional_check: impl Fn(&TestConfig) -> bool, -) -> Vec<TestConfig>

source

pub(crate) fn process_tests<P, O>( + additional_check: impl Fn(&TestConfig) -> bool, +) -> Vec<TestConfig>

source

pub(crate) fn process_tests<P, O>( &mut self, - configs: Vec<TestConfig>, + configs: Vec<TestConfig>, process: P, -) -> Vec<O>
where - P: FnMut(&mut Self, (&Path, &str, &str, TestConfig)) -> O,

source

fn load_expectations(&self, path: &Path) -> (PathBuf, Option<TestExpectation>)

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 - 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.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+) -> Vec<O>
where + P: FnMut(&mut Self, (&Path, &str, &str, TestConfig)) -> O,

source

fn load_expectations(&self, path: &Path) -> (PathBuf, Option<TestExpectation>)

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 + 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.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file diff --git a/leo_test_framework/runner/trait.Namespace.html b/leo_test_framework/runner/trait.Namespace.html index 354fb09666..02ffbc96ac 100644 --- a/leo_test_framework/runner/trait.Namespace.html +++ b/leo_test_framework/runner/trait.Namespace.html @@ -1,5 +1,5 @@ -Namespace in leo_test_framework::runner - Rust

Trait leo_test_framework::runner::Namespace

source ·
pub trait Namespace: UnwindSafe + RefUnwindSafe {
+Namespace in leo_test_framework::runner - Rust
leo_test_framework::runner

Trait Namespace

source
pub trait Namespace: UnwindSafe + RefUnwindSafe {
     // Required methods
     fn parse_type(&self) -> ParseType;
-    fn run_test(&self, test: Test) -> Result<Value, String>;
-}

Required Methods§

source

fn parse_type(&self) -> ParseType

source

fn run_test(&self, test: Test) -> Result<Value, String>

Implementors§

\ No newline at end of file + fn run_test(&self, test: Test) -> Result<Value, String>; +}

Required Methods§

source

fn parse_type(&self) -> ParseType

source

fn run_test(&self, test: Test) -> Result<Value, String>

Implementors§

\ No newline at end of file diff --git a/leo_test_framework/runner/trait.Runner.html b/leo_test_framework/runner/trait.Runner.html index 18bc115c95..0b29929745 100644 --- a/leo_test_framework/runner/trait.Runner.html +++ b/leo_test_framework/runner/trait.Runner.html @@ -1,4 +1,4 @@ -Runner in leo_test_framework::runner - Rust

Trait leo_test_framework::runner::Runner

source ·
pub trait Runner {
+Runner in leo_test_framework::runner - Rust
leo_test_framework::runner

Trait Runner

source
pub trait Runner {
     // Required method
-    fn resolve_namespace(&self, name: &str) -> Option<Box<dyn Namespace>>;
-}

Required Methods§

source

fn resolve_namespace(&self, name: &str) -> Option<Box<dyn Namespace>>

Implementors§

\ No newline at end of file + fn resolve_namespace(&self, name: &str) -> Option<Box<dyn Namespace>>; +}

Required Methods§

source

fn resolve_namespace(&self, name: &str) -> Option<Box<dyn Namespace>>

Implementors§

\ No newline at end of file diff --git a/leo_test_framework/test/enum.TestExpectationMode.html b/leo_test_framework/test/enum.TestExpectationMode.html index 7ec28b8ee2..f959f32d7d 100644 --- a/leo_test_framework/test/enum.TestExpectationMode.html +++ b/leo_test_framework/test/enum.TestExpectationMode.html @@ -1,35 +1,35 @@ -TestExpectationMode in leo_test_framework::test - Rust

Enum leo_test_framework::test::TestExpectationMode

source ·
pub enum TestExpectationMode {
+TestExpectationMode in leo_test_framework::test - Rust
leo_test_framework::test

Enum TestExpectationMode

source
pub enum TestExpectationMode {
     Pass,
     Fail,
     Skip,
 }

Variants§

§

Pass

The test should pass.

§

Fail

The test should fail.

§

Skip

The test should be skipped.

-

Trait Implementations§

source§

impl Clone for TestExpectationMode

source§

fn clone(&self) -> TestExpectationMode

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 TestExpectationMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for TestExpectationMode

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 TestExpectationMode

source§

fn eq(&self, other: &TestExpectationMode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
source§

impl Serialize for TestExpectationMode

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 Eq for TestExpectationMode

source§

impl StructuralPartialEq for TestExpectationMode

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 - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+

Trait Implementations§

source§

impl Clone for TestExpectationMode

source§

fn clone(&self) -> TestExpectationMode

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 TestExpectationMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for TestExpectationMode

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 TestExpectationMode

source§

fn eq(&self, other: &TestExpectationMode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
source§

impl Serialize for TestExpectationMode

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 Eq for TestExpectationMode

source§

impl StructuralPartialEq for TestExpectationMode

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 + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where +otherwise. Read more

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/leo_test_framework/test/fn.extract_test_config.html b/leo_test_framework/test/fn.extract_test_config.html index 07fe5e232d..15aa094d47 100644 --- a/leo_test_framework/test/fn.extract_test_config.html +++ b/leo_test_framework/test/fn.extract_test_config.html @@ -1 +1 @@ -extract_test_config in leo_test_framework::test - Rust

Function leo_test_framework::test::extract_test_config

source ·
pub fn extract_test_config(source: &str) -> Option<TestConfig>
\ No newline at end of file +extract_test_config in leo_test_framework::test - Rust
leo_test_framework::test

Function extract_test_config

source
pub fn extract_test_config(source: &str) -> Option<TestConfig>
\ No newline at end of file diff --git a/leo_test_framework/test/index.html b/leo_test_framework/test/index.html index beca507c41..17a516a31f 100644 --- a/leo_test_framework/test/index.html +++ b/leo_test_framework/test/index.html @@ -1 +1 @@ -leo_test_framework::test - Rust
\ No newline at end of file +leo_test_framework::test - Rust
\ No newline at end of file diff --git a/leo_test_framework/test/struct.TestConfig.html b/leo_test_framework/test/struct.TestConfig.html index 39b10b52b2..258c99745a 100644 --- a/leo_test_framework/test/struct.TestConfig.html +++ b/leo_test_framework/test/struct.TestConfig.html @@ -1,27 +1,27 @@ -TestConfig in leo_test_framework::test - Rust

Struct leo_test_framework::test::TestConfig

source ·
pub struct TestConfig {
-    pub namespace: String,
+TestConfig in leo_test_framework::test - Rust
leo_test_framework::test

Struct TestConfig

source
pub struct TestConfig {
+    pub namespace: String,
     pub expectation: TestExpectationMode,
-    pub extra: BTreeMap<String, Value>,
-}

Fields§

§namespace: String§expectation: TestExpectationMode§extra: BTreeMap<String, Value>

Trait Implementations§

source§

impl Clone for TestConfig

source§

fn clone(&self) -> TestConfig

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 TestConfig

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for TestConfig

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 TestConfig

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 - 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> CloneToUninit for T
where - T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+ pub extra: BTreeMap<String, Value>, +}

Fields§

§namespace: String§expectation: TestExpectationMode§extra: BTreeMap<String, Value>

Trait Implementations§

source§

impl Clone for TestConfig

source§

fn clone(&self) -> TestConfig

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 TestConfig

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for TestConfig

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 TestConfig

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 + 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> CloneToUninit for T
where + T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +From<T> for U chooses to do.

+
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where - T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where + T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/settings.html b/settings.html index 26f2ed8084..31b71796c1 100644 --- a/settings.html +++ b/settings.html @@ -1 +1 @@ -Settings

Rustdoc settings

Back
\ No newline at end of file +Settings

Rustdoc settings

Back
\ No newline at end of file diff --git a/src/errcov/errcov.rs.html b/src/errcov/errcov.rs.html index 3e89ef8b60..72e5b30195 100644 --- a/src/errcov/errcov.rs.html +++ b/src/errcov/errcov.rs.html @@ -1,4 +1,5 @@ -errcov.rs - source
1
+errcov.rs - source

errcov/
errcov.rs

+1
 2
 3
 4
@@ -238,8 +239,7 @@
 238
 239
 240
-241
-
// // Copyright (C) 2019-2024 Aleo Systems Inc.
+241
// // Copyright (C) 2019-2024 Aleo Systems Inc.
 // // This file is part of the Leo library.
 
 // // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo/main.rs.html b/src/leo/main.rs.html
index 62c416dcc1..a1fb73c2e5 100644
--- a/src/leo/main.rs.html
+++ b/src/leo/main.rs.html
@@ -1,4 +1,5 @@
-main.rs - source
1
+main.rs - source

leo/
main.rs

+1
 2
 3
 4
@@ -46,8 +47,7 @@
 46
 47
 48
-49
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+49
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_abnf/main.rs.html b/src/leo_abnf/main.rs.html
index 03afa23169..5cc51a049f 100644
--- a/src/leo_abnf/main.rs.html
+++ b/src/leo_abnf/main.rs.html
@@ -1,4 +1,5 @@
-main.rs - source
1
+main.rs - source

leo_abnf/
main.rs

+1
 2
 3
 4
@@ -218,8 +219,7 @@
 218
 219
 220
-221
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+221
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/access/array_access.rs.html b/src/leo_ast/access/array_access.rs.html
index a18fa4d3ba..8a9a4bac69 100644
--- a/src/leo_ast/access/array_access.rs.html
+++ b/src/leo_ast/access/array_access.rs.html
@@ -1,4 +1,5 @@
-array_access.rs - source
1
+array_access.rs - source

leo_ast/access/
array_access.rs

+1
 2
 3
 4
@@ -39,8 +40,7 @@
 39
 40
 41
-42
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+42
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/access/associated_constant_access.rs.html b/src/leo_ast/access/associated_constant_access.rs.html
index 7ae4f10d68..25754c0e45 100644
--- a/src/leo_ast/access/associated_constant_access.rs.html
+++ b/src/leo_ast/access/associated_constant_access.rs.html
@@ -1,4 +1,5 @@
-associated_constant_access.rs - source
1
+associated_constant_access.rs - source

leo_ast/access/
associated_constant_access.rs

+1
 2
 3
 4
@@ -39,8 +40,7 @@
 39
 40
 41
-42
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+42
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/access/associated_function_access.rs.html b/src/leo_ast/access/associated_function_access.rs.html
index 2f0920f4b3..2f226846ec 100644
--- a/src/leo_ast/access/associated_function_access.rs.html
+++ b/src/leo_ast/access/associated_function_access.rs.html
@@ -1,4 +1,5 @@
-associated_function_access.rs - source
1
+associated_function_access.rs - source

leo_ast/access/
associated_function_access.rs

+1
 2
 3
 4
@@ -41,8 +42,7 @@
 41
 42
 43
-44
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+44
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/access/member_access.rs.html b/src/leo_ast/access/member_access.rs.html
index 9e50284b61..ab1d06dcb2 100644
--- a/src/leo_ast/access/member_access.rs.html
+++ b/src/leo_ast/access/member_access.rs.html
@@ -1,4 +1,5 @@
-member_access.rs - source
1
+member_access.rs - source

leo_ast/access/
member_access.rs

+1
 2
 3
 4
@@ -39,8 +40,7 @@
 39
 40
 41
-42
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+42
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/access/mod.rs.html b/src/leo_ast/access/mod.rs.html
index 54da86eb63..0727c1aa2e 100644
--- a/src/leo_ast/access/mod.rs.html
+++ b/src/leo_ast/access/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_ast/access/
mod.rs

+1
 2
 3
 4
@@ -27,8 +28,7 @@
 27
 28
 29
-30
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+30
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/access/tuple_access.rs.html b/src/leo_ast/access/tuple_access.rs.html
index 6d9d61b39a..2c01671268 100644
--- a/src/leo_ast/access/tuple_access.rs.html
+++ b/src/leo_ast/access/tuple_access.rs.html
@@ -1,4 +1,5 @@
-tuple_access.rs - source
1
+tuple_access.rs - source

leo_ast/access/
tuple_access.rs

+1
 2
 3
 4
@@ -39,8 +40,7 @@
 39
 40
 41
-42
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+42
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/common/identifier.rs.html b/src/leo_ast/common/identifier.rs.html
index 7b869599ba..e0210205e6 100644
--- a/src/leo_ast/common/identifier.rs.html
+++ b/src/leo_ast/common/identifier.rs.html
@@ -1,4 +1,5 @@
-identifier.rs - source
1
+identifier.rs - source

leo_ast/common/
identifier.rs

+1
 2
 3
 4
@@ -158,8 +159,7 @@
 158
 159
 160
-161
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+161
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/common/imported_modules.rs.html b/src/leo_ast/common/imported_modules.rs.html
index 1e3e325f21..e1f53b8d42 100644
--- a/src/leo_ast/common/imported_modules.rs.html
+++ b/src/leo_ast/common/imported_modules.rs.html
@@ -1,4 +1,5 @@
-imported_modules.rs - source
1
+imported_modules.rs - source

leo_ast/common/
imported_modules.rs

+1
 2
 3
 4
@@ -44,8 +45,7 @@
 44
 45
 46
-47
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+47
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/common/location.rs.html b/src/leo_ast/common/location.rs.html
index 16f7b1f6fa..eee9e96853 100644
--- a/src/leo_ast/common/location.rs.html
+++ b/src/leo_ast/common/location.rs.html
@@ -1,4 +1,5 @@
-location.rs - source
1
+location.rs - source

leo_ast/common/
location.rs

+1
 2
 3
 4
@@ -62,8 +63,7 @@
 62
 63
 64
-65
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+65
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/common/mod.rs.html b/src/leo_ast/common/mod.rs.html
index 3dd85342ef..9d0ff01a62 100644
--- a/src/leo_ast/common/mod.rs.html
+++ b/src/leo_ast/common/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_ast/common/
mod.rs

+1
 2
 3
 4
@@ -32,8 +33,7 @@
 32
 33
 34
-35
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+35
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/common/node.rs.html b/src/leo_ast/common/node.rs.html
index e45ad003c7..388ad9073f 100644
--- a/src/leo_ast/common/node.rs.html
+++ b/src/leo_ast/common/node.rs.html
@@ -1,4 +1,5 @@
-node.rs - source
1
+node.rs - source

leo_ast/common/
node.rs

+1
 2
 3
 4
@@ -59,8 +60,7 @@
 59
 60
 61
-62
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+62
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/common/node_builder.rs.html b/src/leo_ast/common/node_builder.rs.html
index 23942a519c..af278cdf0d 100644
--- a/src/leo_ast/common/node_builder.rs.html
+++ b/src/leo_ast/common/node_builder.rs.html
@@ -1,4 +1,5 @@
-node_builder.rs - source
1
+node_builder.rs - source

leo_ast/common/
node_builder.rs

+1
 2
 3
 4
@@ -64,8 +65,7 @@
 64
 65
 66
-67
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+67
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/common/positive_number.rs.html b/src/leo_ast/common/positive_number.rs.html
index c71738f527..ad53359632 100644
--- a/src/leo_ast/common/positive_number.rs.html
+++ b/src/leo_ast/common/positive_number.rs.html
@@ -1,4 +1,5 @@
-positive_number.rs - source
1
+positive_number.rs - source

leo_ast/common/
positive_number.rs

+1
 2
 3
 4
@@ -61,8 +62,7 @@
 61
 62
 63
-64
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+64
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/common/static_string.rs.html b/src/leo_ast/common/static_string.rs.html
index f78d3835c2..0053d0c719 100644
--- a/src/leo_ast/common/static_string.rs.html
+++ b/src/leo_ast/common/static_string.rs.html
@@ -1,4 +1,5 @@
-static_string.rs - source
1
+static_string.rs - source

leo_ast/common/
static_string.rs

+1
 2
 3
 4
@@ -30,8 +31,7 @@
 30
 31
 32
-33
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+33
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/expressions/access.rs.html b/src/leo_ast/expressions/access.rs.html
index 95b03d7c82..bef7ef0d32 100644
--- a/src/leo_ast/expressions/access.rs.html
+++ b/src/leo_ast/expressions/access.rs.html
@@ -1,4 +1,5 @@
-access.rs - source
1
+access.rs - source

leo_ast/expressions/
access.rs

+1
 2
 3
 4
@@ -90,8 +91,7 @@
 90
 91
 92
-93
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+93
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/expressions/array.rs.html b/src/leo_ast/expressions/array.rs.html
index a9c42bbb1a..13cda5db77 100644
--- a/src/leo_ast/expressions/array.rs.html
+++ b/src/leo_ast/expressions/array.rs.html
@@ -1,4 +1,5 @@
-array.rs - source
1
+array.rs - source

leo_ast/expressions/
array.rs

+1
 2
 3
 4
@@ -33,8 +34,7 @@
 33
 34
 35
-36
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+36
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/expressions/binary.rs.html b/src/leo_ast/expressions/binary.rs.html
index d15b73b552..1f02666952 100644
--- a/src/leo_ast/expressions/binary.rs.html
+++ b/src/leo_ast/expressions/binary.rs.html
@@ -1,4 +1,5 @@
-binary.rs - source
1
+binary.rs - source

leo_ast/expressions/
binary.rs

+1
 2
 3
 4
@@ -181,8 +182,7 @@
 181
 182
 183
-184
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+184
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/expressions/call.rs.html b/src/leo_ast/expressions/call.rs.html
index 813fc15909..b1ae1a2c23 100644
--- a/src/leo_ast/expressions/call.rs.html
+++ b/src/leo_ast/expressions/call.rs.html
@@ -1,4 +1,5 @@
-call.rs - source
1
+call.rs - source

leo_ast/expressions/
call.rs

+1
 2
 3
 4
@@ -47,8 +48,7 @@
 47
 48
 49
-50
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+50
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/expressions/cast.rs.html b/src/leo_ast/expressions/cast.rs.html
index 62b2a148d4..8cb966f7a9 100644
--- a/src/leo_ast/expressions/cast.rs.html
+++ b/src/leo_ast/expressions/cast.rs.html
@@ -1,4 +1,5 @@
-cast.rs - source
1
+cast.rs - source

leo_ast/expressions/
cast.rs

+1
 2
 3
 4
@@ -37,8 +38,7 @@
 37
 38
 39
-40
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+40
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/expressions/err.rs.html b/src/leo_ast/expressions/err.rs.html
index 69c594562a..dcebd554f9 100644
--- a/src/leo_ast/expressions/err.rs.html
+++ b/src/leo_ast/expressions/err.rs.html
@@ -1,4 +1,5 @@
-err.rs - source
1
+err.rs - source

leo_ast/expressions/
err.rs

+1
 2
 3
 4
@@ -31,8 +32,7 @@
 31
 32
 33
-34
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+34
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/expressions/literal.rs.html b/src/leo_ast/expressions/literal.rs.html
index e0b3375413..9c89373ba4 100644
--- a/src/leo_ast/expressions/literal.rs.html
+++ b/src/leo_ast/expressions/literal.rs.html
@@ -1,4 +1,5 @@
-literal.rs - source
1
+literal.rs - source

leo_ast/expressions/
literal.rs

+1
 2
 3
 4
@@ -196,8 +197,7 @@
 196
 197
 198
-199
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+199
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/expressions/locator.rs.html b/src/leo_ast/expressions/locator.rs.html
index d40768cda2..d7dc194a29 100644
--- a/src/leo_ast/expressions/locator.rs.html
+++ b/src/leo_ast/expressions/locator.rs.html
@@ -1,4 +1,5 @@
-locator.rs - source
1
+locator.rs - source

leo_ast/expressions/
locator.rs

+1
 2
 3
 4
@@ -56,8 +57,7 @@
 56
 57
 58
-59
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+59
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/expressions/mod.rs.html b/src/leo_ast/expressions/mod.rs.html
index cc342b7055..7f459030ef 100644
--- a/src/leo_ast/expressions/mod.rs.html
+++ b/src/leo_ast/expressions/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_ast/expressions/
mod.rs

+1
 2
 3
 4
@@ -195,8 +196,7 @@
 195
 196
 197
-198
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+198
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/expressions/struct_init.rs.html b/src/leo_ast/expressions/struct_init.rs.html
index 3ae99769f5..6e221d9116 100644
--- a/src/leo_ast/expressions/struct_init.rs.html
+++ b/src/leo_ast/expressions/struct_init.rs.html
@@ -1,4 +1,5 @@
-struct_init.rs - source
1
+struct_init.rs - source

leo_ast/expressions/
struct_init.rs

+1
 2
 3
 4
@@ -94,8 +95,7 @@
 94
 95
 96
-97
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+97
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/expressions/ternary.rs.html b/src/leo_ast/expressions/ternary.rs.html
index 4bb3bcdfbd..7576f46890 100644
--- a/src/leo_ast/expressions/ternary.rs.html
+++ b/src/leo_ast/expressions/ternary.rs.html
@@ -1,4 +1,5 @@
-ternary.rs - source
1
+ternary.rs - source

leo_ast/expressions/
ternary.rs

+1
 2
 3
 4
@@ -37,8 +38,7 @@
 37
 38
 39
-40
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+40
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/expressions/tuple.rs.html b/src/leo_ast/expressions/tuple.rs.html
index 9021797c1d..6d9bb66481 100644
--- a/src/leo_ast/expressions/tuple.rs.html
+++ b/src/leo_ast/expressions/tuple.rs.html
@@ -1,4 +1,5 @@
-tuple.rs - source
1
+tuple.rs - source

leo_ast/expressions/
tuple.rs

+1
 2
 3
 4
@@ -36,8 +37,7 @@
 36
 37
 38
-39
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+39
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/expressions/unary.rs.html b/src/leo_ast/expressions/unary.rs.html
index 7c6d0a767b..d1b2093d5c 100644
--- a/src/leo_ast/expressions/unary.rs.html
+++ b/src/leo_ast/expressions/unary.rs.html
@@ -1,4 +1,5 @@
-unary.rs - source
1
+unary.rs - source

leo_ast/expressions/
unary.rs

+1
 2
 3
 4
@@ -96,8 +97,7 @@
 96
 97
 98
-99
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+99
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/expressions/unit.rs.html b/src/leo_ast/expressions/unit.rs.html
index 1e0597fe25..d154f4b85a 100644
--- a/src/leo_ast/expressions/unit.rs.html
+++ b/src/leo_ast/expressions/unit.rs.html
@@ -1,4 +1,5 @@
-unit.rs - source
1
+unit.rs - source

leo_ast/expressions/
unit.rs

+1
 2
 3
 4
@@ -31,8 +32,7 @@
 31
 32
 33
-34
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+34
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/functions/annotation.rs.html b/src/leo_ast/functions/annotation.rs.html
index d04bde54cc..b8ccc3bee0 100644
--- a/src/leo_ast/functions/annotation.rs.html
+++ b/src/leo_ast/functions/annotation.rs.html
@@ -1,4 +1,5 @@
-annotation.rs - source
1
+annotation.rs - source

leo_ast/functions/
annotation.rs

+1
 2
 3
 4
@@ -39,8 +40,7 @@
 39
 40
 41
-42
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+42
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/functions/core_function.rs.html b/src/leo_ast/functions/core_function.rs.html
index dfdc9964f8..a77d40bf67 100644
--- a/src/leo_ast/functions/core_function.rs.html
+++ b/src/leo_ast/functions/core_function.rs.html
@@ -1,4 +1,5 @@
-core_function.rs - source
1
+core_function.rs - source

leo_ast/functions/
core_function.rs

+1
 2
 3
 4
@@ -1104,8 +1105,7 @@
 1104
 1105
 1106
-1107
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+1107
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/functions/input.rs.html b/src/leo_ast/functions/input.rs.html
index 76ebf9e64d..2a09748a87 100644
--- a/src/leo_ast/functions/input.rs.html
+++ b/src/leo_ast/functions/input.rs.html
@@ -1,4 +1,5 @@
-input.rs - source
1
+input.rs - source

leo_ast/functions/
input.rs

+1
 2
 3
 4
@@ -59,8 +60,7 @@
 59
 60
 61
-62
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+62
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/functions/mod.rs.html b/src/leo_ast/functions/mod.rs.html
index b8b9a4bc24..ddf86ed678 100644
--- a/src/leo_ast/functions/mod.rs.html
+++ b/src/leo_ast/functions/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_ast/functions/
mod.rs

+1
 2
 3
 4
@@ -147,8 +148,7 @@
 147
 148
 149
-150
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+150
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/functions/mode.rs.html b/src/leo_ast/functions/mode.rs.html
index 8dabf622b6..3970cfee21 100644
--- a/src/leo_ast/functions/mode.rs.html
+++ b/src/leo_ast/functions/mode.rs.html
@@ -1,4 +1,5 @@
-mode.rs - source
1
+mode.rs - source

leo_ast/functions/
mode.rs

+1
 2
 3
 4
@@ -37,8 +38,7 @@
 37
 38
 39
-40
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+40
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/functions/output.rs.html b/src/leo_ast/functions/output.rs.html
index 863d41f8a9..78db5e2c58 100644
--- a/src/leo_ast/functions/output.rs.html
+++ b/src/leo_ast/functions/output.rs.html
@@ -1,4 +1,5 @@
-output.rs - source
1
+output.rs - source

leo_ast/functions/
output.rs

+1
 2
 3
 4
@@ -49,8 +50,7 @@
 49
 50
 51
-52
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+52
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/functions/variant.rs.html b/src/leo_ast/functions/variant.rs.html
index 2ba6cd0517..df7c82f075 100644
--- a/src/leo_ast/functions/variant.rs.html
+++ b/src/leo_ast/functions/variant.rs.html
@@ -1,4 +1,5 @@
-variant.rs - source
1
+variant.rs - source

leo_ast/functions/
variant.rs

+1
 2
 3
 4
@@ -51,8 +52,7 @@
 51
 52
 53
-54
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+54
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/groups/group_coordinate.rs.html b/src/leo_ast/groups/group_coordinate.rs.html
index 5e1fbbe5d3..ca9cf8a5d3 100644
--- a/src/leo_ast/groups/group_coordinate.rs.html
+++ b/src/leo_ast/groups/group_coordinate.rs.html
@@ -1,4 +1,5 @@
-group_coordinate.rs - source
1
+group_coordinate.rs - source

leo_ast/groups/
group_coordinate.rs

+1
 2
 3
 4
@@ -41,8 +42,7 @@
 41
 42
 43
-44
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+44
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/groups/group_literal.rs.html b/src/leo_ast/groups/group_literal.rs.html
index 1b5aa6add0..24273b489a 100644
--- a/src/leo_ast/groups/group_literal.rs.html
+++ b/src/leo_ast/groups/group_literal.rs.html
@@ -1,4 +1,5 @@
-group_literal.rs - source
1
+group_literal.rs - source

leo_ast/groups/
group_literal.rs

+1
 2
 3
 4
@@ -80,8 +81,7 @@
 80
 81
 82
-83
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+83
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/groups/mod.rs.html b/src/leo_ast/groups/mod.rs.html
index 42cede83aa..476300a107 100644
--- a/src/leo_ast/groups/mod.rs.html
+++ b/src/leo_ast/groups/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_ast/groups/
mod.rs

+1
 2
 3
 4
@@ -18,8 +19,7 @@
 18
 19
 20
-21
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+21
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/lib.rs.html b/src/leo_ast/lib.rs.html
index fc56119721..7a43a63dfd 100644
--- a/src/leo_ast/lib.rs.html
+++ b/src/leo_ast/lib.rs.html
@@ -1,4 +1,5 @@
-lib.rs - source
1
+lib.rs - source

leo_ast/
lib.rs

+1
 2
 3
 4
@@ -192,8 +193,7 @@
 192
 193
 194
-195
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+195
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/mapping/mod.rs.html b/src/leo_ast/mapping/mod.rs.html
index 67b7e9d619..bf816eef00 100644
--- a/src/leo_ast/mapping/mod.rs.html
+++ b/src/leo_ast/mapping/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_ast/mapping/
mod.rs

+1
 2
 3
 4
@@ -54,8 +55,7 @@
 54
 55
 56
-57
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+57
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/passes/consumer.rs.html b/src/leo_ast/passes/consumer.rs.html
index b48cb6bb2b..9c2e199e59 100644
--- a/src/leo_ast/passes/consumer.rs.html
+++ b/src/leo_ast/passes/consumer.rs.html
@@ -1,4 +1,5 @@
-consumer.rs - source
1
+consumer.rs - source

leo_ast/passes/
consumer.rs

+1
 2
 3
 4
@@ -152,8 +153,7 @@
 152
 153
 154
-155
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+155
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/passes/mod.rs.html b/src/leo_ast/passes/mod.rs.html
index 917bc96769..d11a5509df 100644
--- a/src/leo_ast/passes/mod.rs.html
+++ b/src/leo_ast/passes/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_ast/passes/
mod.rs

+1
 2
 3
 4
@@ -26,8 +27,7 @@
 26
 27
 28
-29
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+29
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/passes/reconstructor.rs.html b/src/leo_ast/passes/reconstructor.rs.html
index a882b251dd..fdf01e7d68 100644
--- a/src/leo_ast/passes/reconstructor.rs.html
+++ b/src/leo_ast/passes/reconstructor.rs.html
@@ -1,4 +1,5 @@
-reconstructor.rs - source
1
+reconstructor.rs - source

leo_ast/passes/
reconstructor.rs

+1
 2
 3
 4
@@ -487,8 +488,7 @@
 487
 488
 489
-490
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+490
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/passes/visitor.rs.html b/src/leo_ast/passes/visitor.rs.html
index e9bfda54ed..c779628f75 100644
--- a/src/leo_ast/passes/visitor.rs.html
+++ b/src/leo_ast/passes/visitor.rs.html
@@ -1,4 +1,5 @@
-visitor.rs - source
1
+visitor.rs - source

leo_ast/passes/
visitor.rs

+1
 2
 3
 4
@@ -275,8 +276,7 @@
 275
 276
 277
-278
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+278
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/program/mod.rs.html b/src/leo_ast/program/mod.rs.html
index c2f66a9d36..72af4c77fd 100644
--- a/src/leo_ast/program/mod.rs.html
+++ b/src/leo_ast/program/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_ast/program/
mod.rs

+1
 2
 3
 4
@@ -62,8 +63,7 @@
 62
 63
 64
-65
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+65
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/program/program_id.rs.html b/src/leo_ast/program/program_id.rs.html
index 3bb8a6fe03..ca70dffd9d 100644
--- a/src/leo_ast/program/program_id.rs.html
+++ b/src/leo_ast/program/program_id.rs.html
@@ -1,4 +1,5 @@
-program_id.rs - source
1
+program_id.rs - source

leo_ast/program/
program_id.rs

+1
 2
 3
 4
@@ -108,8 +109,7 @@
 108
 109
 110
-111
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+111
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/program/program_scope.rs.html b/src/leo_ast/program/program_scope.rs.html
index dc2c664166..76c2ffeb7a 100644
--- a/src/leo_ast/program/program_scope.rs.html
+++ b/src/leo_ast/program/program_scope.rs.html
@@ -1,4 +1,5 @@
-program_scope.rs - source
1
+program_scope.rs - source

leo_ast/program/
program_scope.rs

+1
 2
 3
 4
@@ -70,8 +71,7 @@
 70
 71
 72
-73
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+73
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/statement/assert.rs.html b/src/leo_ast/statement/assert.rs.html
index f99d9d9303..b75f45f04a 100644
--- a/src/leo_ast/statement/assert.rs.html
+++ b/src/leo_ast/statement/assert.rs.html
@@ -1,4 +1,5 @@
-assert.rs - source
1
+assert.rs - source

leo_ast/statement/
assert.rs

+1
 2
 3
 4
@@ -53,8 +54,7 @@
 53
 54
 55
-56
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+56
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/statement/assign.rs.html b/src/leo_ast/statement/assign.rs.html
index 9323cb83ec..ea392e0624 100644
--- a/src/leo_ast/statement/assign.rs.html
+++ b/src/leo_ast/statement/assign.rs.html
@@ -1,4 +1,5 @@
-assign.rs - source
1
+assign.rs - source

leo_ast/statement/
assign.rs

+1
 2
 3
 4
@@ -41,8 +42,7 @@
 41
 42
 43
-44
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+44
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/statement/block.rs.html b/src/leo_ast/statement/block.rs.html
index dd625e00dd..f02d5e8ee8 100644
--- a/src/leo_ast/statement/block.rs.html
+++ b/src/leo_ast/statement/block.rs.html
@@ -1,4 +1,5 @@
-block.rs - source
1
+block.rs - source

leo_ast/statement/
block.rs

+1
 2
 3
 4
@@ -43,8 +44,7 @@
 43
 44
 45
-46
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+46
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/statement/conditional.rs.html b/src/leo_ast/statement/conditional.rs.html
index cd38d392fc..51b2d5d32c 100644
--- a/src/leo_ast/statement/conditional.rs.html
+++ b/src/leo_ast/statement/conditional.rs.html
@@ -1,4 +1,5 @@
-conditional.rs - source
1
+conditional.rs - source

leo_ast/statement/
conditional.rs

+1
 2
 3
 4
@@ -45,8 +46,7 @@
 45
 46
 47
-48
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+48
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/statement/console/console_function.rs.html b/src/leo_ast/statement/console/console_function.rs.html
index e4e1219861..8420b23fe9 100644
--- a/src/leo_ast/statement/console/console_function.rs.html
+++ b/src/leo_ast/statement/console/console_function.rs.html
@@ -1,4 +1,5 @@
-console_function.rs - source
1
+console_function.rs - source

leo_ast/statement/console/
console_function.rs

+1
 2
 3
 4
@@ -38,8 +39,7 @@
 38
 39
 40
-41
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+41
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/statement/console/console_statement.rs.html b/src/leo_ast/statement/console/console_statement.rs.html
index 6a5862b168..f608373efa 100644
--- a/src/leo_ast/statement/console/console_statement.rs.html
+++ b/src/leo_ast/statement/console/console_statement.rs.html
@@ -1,4 +1,5 @@
-console_statement.rs - source
1
+console_statement.rs - source

leo_ast/statement/console/
console_statement.rs

+1
 2
 3
 4
@@ -43,8 +44,7 @@
 43
 44
 45
-46
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+46
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/statement/console/mod.rs.html b/src/leo_ast/statement/console/mod.rs.html
index 2b92c5b095..c8d5558278 100644
--- a/src/leo_ast/statement/console/mod.rs.html
+++ b/src/leo_ast/statement/console/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_ast/statement/console/
mod.rs

+1
 2
 3
 4
@@ -18,8 +19,7 @@
 18
 19
 20
-21
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+21
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/statement/const_.rs.html b/src/leo_ast/statement/const_.rs.html
index a5bed93690..7101b66d6d 100644
--- a/src/leo_ast/statement/const_.rs.html
+++ b/src/leo_ast/statement/const_.rs.html
@@ -1,4 +1,5 @@
-const_.rs - source
1
+const_.rs - source

leo_ast/statement/
const_.rs

+1
 2
 3
 4
@@ -43,8 +44,7 @@
 43
 44
 45
-46
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+46
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/statement/definition/declaration_type.rs.html b/src/leo_ast/statement/definition/declaration_type.rs.html
index a485d0e11b..9e768d9e4f 100644
--- a/src/leo_ast/statement/definition/declaration_type.rs.html
+++ b/src/leo_ast/statement/definition/declaration_type.rs.html
@@ -1,4 +1,5 @@
-declaration_type.rs - source
1
+declaration_type.rs - source

leo_ast/statement/definition/
declaration_type.rs

+1
 2
 3
 4
@@ -33,8 +34,7 @@
 33
 34
 35
-36
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+36
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/statement/definition/mod.rs.html b/src/leo_ast/statement/definition/mod.rs.html
index a60d83aae0..57d425e4a8 100644
--- a/src/leo_ast/statement/definition/mod.rs.html
+++ b/src/leo_ast/statement/definition/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_ast/statement/definition/
mod.rs

+1
 2
 3
 4
@@ -49,8 +50,7 @@
 49
 50
 51
-52
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+52
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/statement/expression.rs.html b/src/leo_ast/statement/expression.rs.html
index b65f9b80c9..1af999a7ca 100644
--- a/src/leo_ast/statement/expression.rs.html
+++ b/src/leo_ast/statement/expression.rs.html
@@ -1,4 +1,5 @@
-expression.rs - source
1
+expression.rs - source

leo_ast/statement/
expression.rs

+1
 2
 3
 4
@@ -37,8 +38,7 @@
 37
 38
 39
-40
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+40
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/statement/iteration.rs.html b/src/leo_ast/statement/iteration.rs.html
index 14365eb1ce..4a582b1884 100644
--- a/src/leo_ast/statement/iteration.rs.html
+++ b/src/leo_ast/statement/iteration.rs.html
@@ -1,4 +1,5 @@
-iteration.rs - source
1
+iteration.rs - source

leo_ast/statement/
iteration.rs

+1
 2
 3
 4
@@ -56,8 +57,7 @@
 56
 57
 58
-59
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+59
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/statement/mod.rs.html b/src/leo_ast/statement/mod.rs.html
index 9c7412d725..e882abfebf 100644
--- a/src/leo_ast/statement/mod.rs.html
+++ b/src/leo_ast/statement/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_ast/statement/
mod.rs

+1
 2
 3
 4
@@ -164,8 +165,7 @@
 164
 165
 166
-167
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+167
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/statement/return_.rs.html b/src/leo_ast/statement/return_.rs.html
index c535f3ddb9..1e923cf08c 100644
--- a/src/leo_ast/statement/return_.rs.html
+++ b/src/leo_ast/statement/return_.rs.html
@@ -1,4 +1,5 @@
-return_.rs - source
1
+return_.rs - source

leo_ast/statement/
return_.rs

+1
 2
 3
 4
@@ -37,8 +38,7 @@
 37
 38
 39
-40
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+40
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/struct/member.rs.html b/src/leo_ast/struct/member.rs.html
index f8d20ec2f4..4cdae5b8c5 100644
--- a/src/leo_ast/struct/member.rs.html
+++ b/src/leo_ast/struct/member.rs.html
@@ -1,4 +1,5 @@
-member.rs - source
1
+member.rs - source

leo_ast/struct/
member.rs

+1
 2
 3
 4
@@ -52,8 +53,7 @@
 52
 53
 54
-55
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+55
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/struct/mod.rs.html b/src/leo_ast/struct/mod.rs.html
index ce94a5fcc7..ce7e3a70b8 100644
--- a/src/leo_ast/struct/mod.rs.html
+++ b/src/leo_ast/struct/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_ast/struct/
mod.rs

+1
 2
 3
 4
@@ -143,8 +144,7 @@
 143
 144
 145
-146
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+146
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/stub/function_stub.rs.html b/src/leo_ast/stub/function_stub.rs.html
index a71669b0b0..ecde668c2a 100644
--- a/src/leo_ast/stub/function_stub.rs.html
+++ b/src/leo_ast/stub/function_stub.rs.html
@@ -1,4 +1,5 @@
-function_stub.rs - source
1
+function_stub.rs - source

leo_ast/stub/
function_stub.rs

+1
 2
 3
 4
@@ -379,8 +380,7 @@
 379
 380
 381
-382
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+382
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/stub/mod.rs.html b/src/leo_ast/stub/mod.rs.html
index 318c688b0a..d914f8ccf2 100644
--- a/src/leo_ast/stub/mod.rs.html
+++ b/src/leo_ast/stub/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_ast/stub/
mod.rs

+1
 2
 3
 4
@@ -79,8 +80,7 @@
 79
 80
 81
-82
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+82
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/types/array.rs.html b/src/leo_ast/types/array.rs.html
index 42d89d0f78..d26a1ee9aa 100644
--- a/src/leo_ast/types/array.rs.html
+++ b/src/leo_ast/types/array.rs.html
@@ -1,4 +1,5 @@
-array.rs - source
1
+array.rs - source

leo_ast/types/
array.rs

+1
 2
 3
 4
@@ -65,8 +66,7 @@
 65
 66
 67
-68
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+68
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/types/core_constant.rs.html b/src/leo_ast/types/core_constant.rs.html
index 2a834db423..2b3cc78064 100644
--- a/src/leo_ast/types/core_constant.rs.html
+++ b/src/leo_ast/types/core_constant.rs.html
@@ -1,4 +1,5 @@
-core_constant.rs - source
1
+core_constant.rs - source

leo_ast/types/
core_constant.rs

+1
 2
 3
 4
@@ -38,8 +39,7 @@
 38
 39
 40
-41
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+41
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/types/future.rs.html b/src/leo_ast/types/future.rs.html
index 5ce46edb61..aef4d81fc6 100644
--- a/src/leo_ast/types/future.rs.html
+++ b/src/leo_ast/types/future.rs.html
@@ -1,4 +1,5 @@
-future.rs - source
1
+future.rs - source

leo_ast/types/
future.rs

+1
 2
 3
 4
@@ -57,8 +58,7 @@
 57
 58
 59
-60
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+60
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/types/integer_type.rs.html b/src/leo_ast/types/integer_type.rs.html
index ba66c11dba..3d337de81d 100644
--- a/src/leo_ast/types/integer_type.rs.html
+++ b/src/leo_ast/types/integer_type.rs.html
@@ -1,4 +1,5 @@
-integer_type.rs - source
1
+integer_type.rs - source

leo_ast/types/
integer_type.rs

+1
 2
 3
 4
@@ -75,8 +76,7 @@
 75
 76
 77
-78
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+78
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/types/mapping.rs.html b/src/leo_ast/types/mapping.rs.html
index 1c3bf1bc79..743f92e223 100644
--- a/src/leo_ast/types/mapping.rs.html
+++ b/src/leo_ast/types/mapping.rs.html
@@ -1,4 +1,5 @@
-mapping.rs - source
1
+mapping.rs - source

leo_ast/types/
mapping.rs

+1
 2
 3
 4
@@ -32,8 +33,7 @@
 32
 33
 34
-35
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+35
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/types/mod.rs.html b/src/leo_ast/types/mod.rs.html
index 1724c8d13b..b4a6d008c7 100644
--- a/src/leo_ast/types/mod.rs.html
+++ b/src/leo_ast/types/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_ast/types/
mod.rs

+1
 2
 3
 4
@@ -36,8 +37,7 @@
 36
 37
 38
-39
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+39
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/types/struct_type.rs.html b/src/leo_ast/types/struct_type.rs.html
index ebcd82ae69..384e10b67f 100644
--- a/src/leo_ast/types/struct_type.rs.html
+++ b/src/leo_ast/types/struct_type.rs.html
@@ -1,4 +1,5 @@
-struct_type.rs - source
1
+struct_type.rs - source

leo_ast/types/
struct_type.rs

+1
 2
 3
 4
@@ -33,8 +34,7 @@
 33
 34
 35
-36
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+36
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/types/tuple.rs.html b/src/leo_ast/types/tuple.rs.html
index 290f7fc027..351fd29f24 100644
--- a/src/leo_ast/types/tuple.rs.html
+++ b/src/leo_ast/types/tuple.rs.html
@@ -1,4 +1,5 @@
-tuple.rs - source
1
+tuple.rs - source

leo_ast/types/
tuple.rs

+1
 2
 3
 4
@@ -46,8 +47,7 @@
 46
 47
 48
-49
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+49
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/types/type_.rs.html b/src/leo_ast/types/type_.rs.html
index 20a470e46d..4868c98ea8 100644
--- a/src/leo_ast/types/type_.rs.html
+++ b/src/leo_ast/types/type_.rs.html
@@ -1,4 +1,5 @@
-type_.rs - source
1
+type_.rs - source

leo_ast/types/
type_.rs

+1
 2
 3
 4
@@ -200,8 +201,7 @@
 200
 201
 202
-203
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+203
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_ast/value/mod.rs.html b/src/leo_ast/value/mod.rs.html
index 14201cc3ed..1310935248 100644
--- a/src/leo_ast/value/mod.rs.html
+++ b/src/leo_ast/value/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_ast/value/
mod.rs

+1
 2
 3
 4
@@ -915,8 +916,7 @@
 915
 916
 917
-918
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+918
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_compiler/compiler.rs.html b/src/leo_compiler/compiler.rs.html
index 170700277a..3a9faf3cec 100644
--- a/src/leo_compiler/compiler.rs.html
+++ b/src/leo_compiler/compiler.rs.html
@@ -1,4 +1,5 @@
-compiler.rs - source
1
+compiler.rs - source

leo_compiler/
compiler.rs

+1
 2
 3
 4
@@ -392,8 +393,7 @@
 392
 393
 394
-395
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+395
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_compiler/lib.rs.html b/src/leo_compiler/lib.rs.html
index d3dba8df89..e42ba7effa 100644
--- a/src/leo_compiler/lib.rs.html
+++ b/src/leo_compiler/lib.rs.html
@@ -1,4 +1,5 @@
-lib.rs - source
1
+lib.rs - source

leo_compiler/
lib.rs

+1
 2
 3
 4
@@ -23,8 +24,7 @@
 23
 24
 25
-26
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+26
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_compiler/options.rs.html b/src/leo_compiler/options.rs.html
index 28ff8cfdc4..7d570f2d34 100644
--- a/src/leo_compiler/options.rs.html
+++ b/src/leo_compiler/options.rs.html
@@ -1,4 +1,5 @@
-options.rs - source
1
+options.rs - source

leo_compiler/
options.rs

+1
 2
 3
 4
@@ -60,8 +61,7 @@
 60
 61
 62
-63
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+63
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_disassembler/lib.rs.html b/src/leo_disassembler/lib.rs.html
index 3b317f18fa..99428c4d13 100644
--- a/src/leo_disassembler/lib.rs.html
+++ b/src/leo_disassembler/lib.rs.html
@@ -1,4 +1,5 @@
-lib.rs - source
1
+lib.rs - source

leo_disassembler/
lib.rs

+1
 2
 3
 4
@@ -128,8 +129,7 @@
 128
 129
 130
-131
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+131
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/common/backtraced.rs.html b/src/leo_errors/common/backtraced.rs.html
index 85ba2b3467..14c2051448 100644
--- a/src/leo_errors/common/backtraced.rs.html
+++ b/src/leo_errors/common/backtraced.rs.html
@@ -1,4 +1,5 @@
-backtraced.rs - source
1
+backtraced.rs - source

leo_errors/common/
backtraced.rs

+1
 2
 3
 4
@@ -152,8 +153,7 @@
 152
 153
 154
-155
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+155
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/common/formatted.rs.html b/src/leo_errors/common/formatted.rs.html
index e33c445bed..dbd6f41342 100644
--- a/src/leo_errors/common/formatted.rs.html
+++ b/src/leo_errors/common/formatted.rs.html
@@ -1,4 +1,5 @@
-formatted.rs - source
1
+formatted.rs - source

leo_errors/common/
formatted.rs

+1
 2
 3
 4
@@ -189,8 +190,7 @@
 189
 190
 191
-192
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+192
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/common/macros.rs.html b/src/leo_errors/common/macros.rs.html
index 1e566e5f36..f3fee83766 100644
--- a/src/leo_errors/common/macros.rs.html
+++ b/src/leo_errors/common/macros.rs.html
@@ -1,4 +1,5 @@
-macros.rs - source
1
+macros.rs - source

leo_errors/common/
macros.rs

+1
 2
 3
 4
@@ -137,8 +138,7 @@
 137
 138
 139
-140
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+140
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/common/mod.rs.html b/src/leo_errors/common/mod.rs.html
index bd4220abf1..b925697324 100644
--- a/src/leo_errors/common/mod.rs.html
+++ b/src/leo_errors/common/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_errors/common/
mod.rs

+1
 2
 3
 4
@@ -36,8 +37,7 @@
 36
 37
 38
-39
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+39
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/common/traits.rs.html b/src/leo_errors/common/traits.rs.html
index bcd92e185a..721e6d6b5b 100644
--- a/src/leo_errors/common/traits.rs.html
+++ b/src/leo_errors/common/traits.rs.html
@@ -1,4 +1,5 @@
-traits.rs - source
1
+traits.rs - source

leo_errors/common/
traits.rs

+1
 2
 3
 4
@@ -41,8 +42,7 @@
 41
 42
 43
-44
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+44
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/emitter/mod.rs.html b/src/leo_errors/emitter/mod.rs.html
index e5f292fcae..8290f4c8b7 100644
--- a/src/leo_errors/emitter/mod.rs.html
+++ b/src/leo_errors/emitter/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_errors/emitter/
mod.rs

+1
 2
 3
 4
@@ -296,8 +297,7 @@
 296
 297
 298
-299
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+299
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/ast/ast_errors.rs.html b/src/leo_errors/errors/ast/ast_errors.rs.html
index 4e6781cd03..33378f8ef4 100644
--- a/src/leo_errors/errors/ast/ast_errors.rs.html
+++ b/src/leo_errors/errors/ast/ast_errors.rs.html
@@ -1,4 +1,5 @@
-ast_errors.rs - source
1
+ast_errors.rs - source

leo_errors/errors/ast/
ast_errors.rs

+1
 2
 3
 4
@@ -159,8 +160,7 @@
 159
 160
 161
-162
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+162
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/ast/mod.rs.html b/src/leo_errors/errors/ast/mod.rs.html
index ced5fe8d5d..571215ac3a 100644
--- a/src/leo_errors/errors/ast/mod.rs.html
+++ b/src/leo_errors/errors/ast/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_errors/errors/ast/
mod.rs

+1
 2
 3
 4
@@ -16,8 +17,7 @@
 16
 17
 18
-19
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+19
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/cli/cli_errors.rs.html b/src/leo_errors/errors/cli/cli_errors.rs.html
index aa90cf172c..2fe0bd81ef 100644
--- a/src/leo_errors/errors/cli/cli_errors.rs.html
+++ b/src/leo_errors/errors/cli/cli_errors.rs.html
@@ -1,4 +1,5 @@
-cli_errors.rs - source
1
+cli_errors.rs - source

leo_errors/errors/cli/
cli_errors.rs

+1
 2
 3
 4
@@ -320,8 +321,7 @@
 320
 321
 322
-323
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+323
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/cli/mod.rs.html b/src/leo_errors/errors/cli/mod.rs.html
index 8c4f421164..f8767cc2f9 100644
--- a/src/leo_errors/errors/cli/mod.rs.html
+++ b/src/leo_errors/errors/cli/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_errors/errors/cli/
mod.rs

+1
 2
 3
 4
@@ -16,8 +17,7 @@
 16
 17
 18
-19
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+19
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/compiler/compiler_errors.rs.html b/src/leo_errors/errors/compiler/compiler_errors.rs.html
index a15502c67b..ef9358f44c 100644
--- a/src/leo_errors/errors/compiler/compiler_errors.rs.html
+++ b/src/leo_errors/errors/compiler/compiler_errors.rs.html
@@ -1,4 +1,5 @@
-compiler_errors.rs - source
1
+compiler_errors.rs - source

leo_errors/errors/compiler/
compiler_errors.rs

+1
 2
 3
 4
@@ -77,8 +78,7 @@
 77
 78
 79
-80
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+80
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/compiler/mod.rs.html b/src/leo_errors/errors/compiler/mod.rs.html
index 41120c7205..7a6305ac2e 100644
--- a/src/leo_errors/errors/compiler/mod.rs.html
+++ b/src/leo_errors/errors/compiler/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_errors/errors/compiler/
mod.rs

+1
 2
 3
 4
@@ -16,8 +17,7 @@
 16
 17
 18
-19
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+19
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/flattener/flattener_errors.rs.html b/src/leo_errors/errors/flattener/flattener_errors.rs.html
index 0df08537c8..6c4a585d60 100644
--- a/src/leo_errors/errors/flattener/flattener_errors.rs.html
+++ b/src/leo_errors/errors/flattener/flattener_errors.rs.html
@@ -1,4 +1,5 @@
-flattener_errors.rs - source
1
+flattener_errors.rs - source

leo_errors/errors/flattener/
flattener_errors.rs

+1
 2
 3
 4
@@ -63,8 +64,7 @@
 63
 64
 65
-66
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+66
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/flattener/mod.rs.html b/src/leo_errors/errors/flattener/mod.rs.html
index b24af13011..49a72cbfd2 100644
--- a/src/leo_errors/errors/flattener/mod.rs.html
+++ b/src/leo_errors/errors/flattener/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_errors/errors/flattener/
mod.rs

+1
 2
 3
 4
@@ -16,8 +17,7 @@
 16
 17
 18
-19
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+19
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/loop_unroller/loop_unroller_errors.rs.html b/src/leo_errors/errors/loop_unroller/loop_unroller_errors.rs.html
index c37a644822..0a166e9196 100644
--- a/src/leo_errors/errors/loop_unroller/loop_unroller_errors.rs.html
+++ b/src/leo_errors/errors/loop_unroller/loop_unroller_errors.rs.html
@@ -1,4 +1,5 @@
-loop_unroller_errors.rs - source
1
+loop_unroller_errors.rs - source

leo_errors/errors/loop_unroller/
loop_unroller_errors.rs

+1
 2
 3
 4
@@ -36,8 +37,7 @@
 36
 37
 38
-39
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+39
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/loop_unroller/mod.rs.html b/src/leo_errors/errors/loop_unroller/mod.rs.html
index a0d32efe7b..544fcd7a4f 100644
--- a/src/leo_errors/errors/loop_unroller/mod.rs.html
+++ b/src/leo_errors/errors/loop_unroller/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_errors/errors/loop_unroller/
mod.rs

+1
 2
 3
 4
@@ -16,8 +17,7 @@
 16
 17
 18
-19
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+19
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/mod.rs.html b/src/leo_errors/errors/mod.rs.html
index 97209e1654..a030728a66 100644
--- a/src/leo_errors/errors/mod.rs.html
+++ b/src/leo_errors/errors/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_errors/errors/
mod.rs

+1
 2
 3
 4
@@ -171,8 +172,7 @@
 171
 172
 173
-174
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+174
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/package/mod.rs.html b/src/leo_errors/errors/package/mod.rs.html
index b864595c5d..e4d86ccd28 100644
--- a/src/leo_errors/errors/package/mod.rs.html
+++ b/src/leo_errors/errors/package/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_errors/errors/package/
mod.rs

+1
 2
 3
 4
@@ -16,8 +17,7 @@
 16
 17
 18
-19
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+19
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/package/package_errors.rs.html b/src/leo_errors/errors/package/package_errors.rs.html
index 3128a48e94..ea7d47c24c 100644
--- a/src/leo_errors/errors/package/package_errors.rs.html
+++ b/src/leo_errors/errors/package/package_errors.rs.html
@@ -1,4 +1,5 @@
-package_errors.rs - source
1
+package_errors.rs - source

leo_errors/errors/package/
package_errors.rs

+1
 2
 3
 4
@@ -432,8 +433,7 @@
 432
 433
 434
-435
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+435
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/parser/mod.rs.html b/src/leo_errors/errors/parser/mod.rs.html
index fc62d12654..8dd015c1e3 100644
--- a/src/leo_errors/errors/parser/mod.rs.html
+++ b/src/leo_errors/errors/parser/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_errors/errors/parser/
mod.rs

+1
 2
 3
 4
@@ -20,8 +21,7 @@
 20
 21
 22
-23
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+23
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/parser/parser_errors.rs.html b/src/leo_errors/errors/parser/parser_errors.rs.html
index 337862b546..b009e29562 100644
--- a/src/leo_errors/errors/parser/parser_errors.rs.html
+++ b/src/leo_errors/errors/parser/parser_errors.rs.html
@@ -1,4 +1,5 @@
-parser_errors.rs - source
1
+parser_errors.rs - source

leo_errors/errors/parser/
parser_errors.rs

+1
 2
 3
 4
@@ -372,8 +373,7 @@
 372
 373
 374
-375
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+375
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/parser/parser_warnings.rs.html b/src/leo_errors/errors/parser/parser_warnings.rs.html
index 7ace28d9d2..b301bd7f3f 100644
--- a/src/leo_errors/errors/parser/parser_warnings.rs.html
+++ b/src/leo_errors/errors/parser/parser_warnings.rs.html
@@ -1,4 +1,5 @@
-parser_warnings.rs - source
1
+parser_warnings.rs - source

leo_errors/errors/parser/
parser_warnings.rs

+1
 2
 3
 4
@@ -42,8 +43,7 @@
 42
 43
 44
-45
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+45
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/static_analyzer/mod.rs.html b/src/leo_errors/errors/static_analyzer/mod.rs.html
index ce248813c7..fdc089bc0b 100644
--- a/src/leo_errors/errors/static_analyzer/mod.rs.html
+++ b/src/leo_errors/errors/static_analyzer/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_errors/errors/static_analyzer/
mod.rs

+1
 2
 3
 4
@@ -19,8 +20,7 @@
 19
 20
 21
-22
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+22
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/static_analyzer/static_analyzer_error.rs.html b/src/leo_errors/errors/static_analyzer/static_analyzer_error.rs.html
index 38b86fe88d..4c3ad4994d 100644
--- a/src/leo_errors/errors/static_analyzer/static_analyzer_error.rs.html
+++ b/src/leo_errors/errors/static_analyzer/static_analyzer_error.rs.html
@@ -1,4 +1,5 @@
-static_analyzer_error.rs - source
1
+static_analyzer_error.rs - source

leo_errors/errors/static_analyzer/
static_analyzer_error.rs

+1
 2
 3
 4
@@ -59,8 +60,7 @@
 59
 60
 61
-62
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+62
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/static_analyzer/static_analyzer_warning.rs.html b/src/leo_errors/errors/static_analyzer/static_analyzer_warning.rs.html
index caf22fee33..d5a8044b88 100644
--- a/src/leo_errors/errors/static_analyzer/static_analyzer_warning.rs.html
+++ b/src/leo_errors/errors/static_analyzer/static_analyzer_warning.rs.html
@@ -1,4 +1,5 @@
-static_analyzer_warning.rs - source
1
+static_analyzer_warning.rs - source

leo_errors/errors/static_analyzer/
static_analyzer_warning.rs

+1
 2
 3
 4
@@ -51,8 +52,7 @@
 51
 52
 53
-54
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+54
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/type_checker/mod.rs.html b/src/leo_errors/errors/type_checker/mod.rs.html
index 8fda867a6f..6e9ea90edd 100644
--- a/src/leo_errors/errors/type_checker/mod.rs.html
+++ b/src/leo_errors/errors/type_checker/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_errors/errors/type_checker/
mod.rs

+1
 2
 3
 4
@@ -19,8 +20,7 @@
 19
 20
 21
-22
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+22
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/type_checker/type_checker_error.rs.html b/src/leo_errors/errors/type_checker/type_checker_error.rs.html
index f5a8e2d670..a1bbe0b6a4 100644
--- a/src/leo_errors/errors/type_checker/type_checker_error.rs.html
+++ b/src/leo_errors/errors/type_checker/type_checker_error.rs.html
@@ -1,4 +1,5 @@
-type_checker_error.rs - source
1
+type_checker_error.rs - source

leo_errors/errors/type_checker/
type_checker_error.rs

+1
 2
 3
 4
@@ -912,8 +913,7 @@
 912
 913
 914
-915
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+915
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/type_checker/type_checker_warning.rs.html b/src/leo_errors/errors/type_checker/type_checker_warning.rs.html
index 8e6690a96a..08c6c0a40e 100644
--- a/src/leo_errors/errors/type_checker/type_checker_warning.rs.html
+++ b/src/leo_errors/errors/type_checker/type_checker_warning.rs.html
@@ -1,4 +1,5 @@
-type_checker_warning.rs - source
1
+type_checker_warning.rs - source

leo_errors/errors/type_checker/
type_checker_warning.rs

+1
 2
 3
 4
@@ -52,8 +53,7 @@
 52
 53
 54
-55
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+55
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/utils/mod.rs.html b/src/leo_errors/errors/utils/mod.rs.html
index 06311e661f..ebeb282945 100644
--- a/src/leo_errors/errors/utils/mod.rs.html
+++ b/src/leo_errors/errors/utils/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_errors/errors/utils/
mod.rs

+1
 2
 3
 4
@@ -16,8 +17,7 @@
 16
 17
 18
-19
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+19
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/errors/utils/util_errors.rs.html b/src/leo_errors/errors/utils/util_errors.rs.html
index 6fa290f8e0..8ab2883230 100644
--- a/src/leo_errors/errors/utils/util_errors.rs.html
+++ b/src/leo_errors/errors/utils/util_errors.rs.html
@@ -1,4 +1,5 @@
-util_errors.rs - source
1
+util_errors.rs - source

leo_errors/errors/utils/
util_errors.rs

+1
 2
 3
 4
@@ -207,8 +208,7 @@
 207
 208
 209
-210
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+210
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_errors/lib.rs.html b/src/leo_errors/lib.rs.html
index 07ad41b6aa..87fbb3bfc6 100644
--- a/src/leo_errors/lib.rs.html
+++ b/src/leo_errors/lib.rs.html
@@ -1,4 +1,5 @@
-lib.rs - source
1
+lib.rs - source

leo_errors/
lib.rs

+1
 2
 3
 4
@@ -31,8 +32,7 @@
 31
 32
 33
-34
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+34
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/cli.rs.html b/src/leo_lang/cli/cli.rs.html
index 555353be30..9b4adcb272 100644
--- a/src/leo_lang/cli/cli.rs.html
+++ b/src/leo_lang/cli/cli.rs.html
@@ -1,4 +1,5 @@
-cli.rs - source
1
+cli.rs - source

leo_lang/cli/
cli.rs

+1
 2
 3
 4
@@ -921,8 +922,7 @@
 921
 922
 923
-924
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+924
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/account.rs.html b/src/leo_lang/cli/commands/account.rs.html
index 1968654757..aa54dfdf91 100644
--- a/src/leo_lang/cli/commands/account.rs.html
+++ b/src/leo_lang/cli/commands/account.rs.html
@@ -1,4 +1,5 @@
-account.rs - source
1
+account.rs - source

leo_lang/cli/commands/
account.rs

+1
 2
 3
 4
@@ -486,8 +487,7 @@
 486
 487
 488
-489
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+489
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/add.rs.html b/src/leo_lang/cli/commands/add.rs.html
index cacdbd3e13..500c289ea1 100644
--- a/src/leo_lang/cli/commands/add.rs.html
+++ b/src/leo_lang/cli/commands/add.rs.html
@@ -1,4 +1,5 @@
-add.rs - source
1
+add.rs - source

leo_lang/cli/commands/
add.rs

+1
 2
 3
 4
@@ -127,8 +128,7 @@
 127
 128
 129
-130
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+130
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/build.rs.html b/src/leo_lang/cli/commands/build.rs.html
index 108cffe78b..89f8542491 100644
--- a/src/leo_lang/cli/commands/build.rs.html
+++ b/src/leo_lang/cli/commands/build.rs.html
@@ -1,4 +1,5 @@
-build.rs - source
1
+build.rs - source

leo_lang/cli/commands/
build.rs

+1
 2
 3
 4
@@ -224,8 +225,7 @@
 224
 225
 226
-227
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+227
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/clean.rs.html b/src/leo_lang/cli/commands/clean.rs.html
index 9ee970b213..b9215deac1 100644
--- a/src/leo_lang/cli/commands/clean.rs.html
+++ b/src/leo_lang/cli/commands/clean.rs.html
@@ -1,4 +1,5 @@
-clean.rs - source
1
+clean.rs - source

leo_lang/cli/commands/
clean.rs

+1
 2
 3
 4
@@ -45,8 +46,7 @@
 45
 46
 47
-48
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+48
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/deploy.rs.html b/src/leo_lang/cli/commands/deploy.rs.html
index 9044443e48..9f14d85a8e 100644
--- a/src/leo_lang/cli/commands/deploy.rs.html
+++ b/src/leo_lang/cli/commands/deploy.rs.html
@@ -1,4 +1,5 @@
-deploy.rs - source
1
+deploy.rs - source

leo_lang/cli/commands/
deploy.rs

+1
 2
 3
 4
@@ -267,8 +268,7 @@
 267
 268
 269
-270
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+270
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/example.rs.html b/src/leo_lang/cli/commands/example.rs.html
index 39427367b5..b2fc6e39de 100644
--- a/src/leo_lang/cli/commands/example.rs.html
+++ b/src/leo_lang/cli/commands/example.rs.html
@@ -1,4 +1,5 @@
-example.rs - source
1
+example.rs - source

leo_lang/cli/commands/
example.rs

+1
 2
 3
 4
@@ -145,8 +146,7 @@
 145
 146
 147
-148
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+148
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/execute.rs.html b/src/leo_lang/cli/commands/execute.rs.html
index dfccc6d9a3..a2282dc08c 100644
--- a/src/leo_lang/cli/commands/execute.rs.html
+++ b/src/leo_lang/cli/commands/execute.rs.html
@@ -1,4 +1,5 @@
-execute.rs - source
1
+execute.rs - source

leo_lang/cli/commands/
execute.rs

+1
 2
 3
 4
@@ -415,7 +416,7 @@
 415
 416
 417
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+418
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
@@ -458,7 +459,7 @@
         ProgramID,
         VM,
         Value,
-        execution_cost,
+        execution_cost_v1,
         query::Query as SnarkVMQuery,
         store::{
             ConsensusStore,
@@ -630,7 +631,8 @@
         // Check the transaction cost.
         let (mut total_cost, (storage_cost, finalize_cost)) = if let ExecuteTransaction(_, execution, _) = &transaction
         {
-            execution_cost(&vm.process().read(), execution)?
+            // TODO: Update to V2 after block migration.
+            execution_cost_v1(&vm.process().read(), execution)?
         } else {
             panic!("All transactions should be of type Execute.")
         };
diff --git a/src/leo_lang/cli/commands/mod.rs.html b/src/leo_lang/cli/commands/mod.rs.html
index bbdbfa459c..e9b6b7ce22 100644
--- a/src/leo_lang/cli/commands/mod.rs.html
+++ b/src/leo_lang/cli/commands/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_lang/cli/commands/
mod.rs

+1
 2
 3
 4
@@ -349,8 +350,7 @@
 349
 350
 351
-352
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+352
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/new.rs.html b/src/leo_lang/cli/commands/new.rs.html
index 33d9586938..635f913f43 100644
--- a/src/leo_lang/cli/commands/new.rs.html
+++ b/src/leo_lang/cli/commands/new.rs.html
@@ -1,4 +1,5 @@
-new.rs - source
1
+new.rs - source

leo_lang/cli/commands/
new.rs

+1
 2
 3
 4
@@ -67,8 +68,7 @@
 67
 68
 69
-70
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+70
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/query/block.rs.html b/src/leo_lang/cli/commands/query/block.rs.html
index 0212d93f4d..9e3c994679 100644
--- a/src/leo_lang/cli/commands/query/block.rs.html
+++ b/src/leo_lang/cli/commands/query/block.rs.html
@@ -1,4 +1,5 @@
-block.rs - source
1
+block.rs - source

leo_lang/cli/commands/query/
block.rs

+1
 2
 3
 4
@@ -93,8 +94,7 @@
 93
 94
 95
-96
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+96
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/query/committee.rs.html b/src/leo_lang/cli/commands/query/committee.rs.html
index ece97bed80..c913173108 100644
--- a/src/leo_lang/cli/commands/query/committee.rs.html
+++ b/src/leo_lang/cli/commands/query/committee.rs.html
@@ -1,4 +1,5 @@
-committee.rs - source
1
+committee.rs - source

leo_lang/cli/commands/query/
committee.rs

+1
 2
 3
 4
@@ -37,8 +38,7 @@
 37
 38
 39
-40
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+40
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/query/mempool.rs.html b/src/leo_lang/cli/commands/query/mempool.rs.html
index 6b3001aefb..a967487bbf 100644
--- a/src/leo_lang/cli/commands/query/mempool.rs.html
+++ b/src/leo_lang/cli/commands/query/mempool.rs.html
@@ -1,4 +1,5 @@
-mempool.rs - source
1
+mempool.rs - source

leo_lang/cli/commands/query/
mempool.rs

+1
 2
 3
 4
@@ -64,8 +65,7 @@
 64
 65
 66
-67
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+67
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/query/mod.rs.html b/src/leo_lang/cli/commands/query/mod.rs.html
index a2dbfa0bca..519b60f4fc 100644
--- a/src/leo_lang/cli/commands/query/mod.rs.html
+++ b/src/leo_lang/cli/commands/query/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_lang/cli/commands/query/
mod.rs

+1
 2
 3
 4
@@ -169,8 +170,7 @@
 169
 170
 171
-172
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+172
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/query/peers.rs.html b/src/leo_lang/cli/commands/query/peers.rs.html
index 104408248b..b7e0a733ac 100644
--- a/src/leo_lang/cli/commands/query/peers.rs.html
+++ b/src/leo_lang/cli/commands/query/peers.rs.html
@@ -1,4 +1,5 @@
-peers.rs - source
1
+peers.rs - source

leo_lang/cli/commands/query/
peers.rs

+1
 2
 3
 4
@@ -58,8 +59,7 @@
 58
 59
 60
-61
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+61
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/query/program.rs.html b/src/leo_lang/cli/commands/query/program.rs.html
index 4fa6399ca5..bf72ca3f62 100644
--- a/src/leo_lang/cli/commands/query/program.rs.html
+++ b/src/leo_lang/cli/commands/query/program.rs.html
@@ -1,4 +1,5 @@
-program.rs - source
1
+program.rs - source

leo_lang/cli/commands/query/
program.rs

+1
 2
 3
 4
@@ -63,8 +64,7 @@
 63
 64
 65
-66
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+66
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/query/state_root.rs.html b/src/leo_lang/cli/commands/query/state_root.rs.html
index 1122493f43..92ee4c1ad4 100644
--- a/src/leo_lang/cli/commands/query/state_root.rs.html
+++ b/src/leo_lang/cli/commands/query/state_root.rs.html
@@ -1,4 +1,5 @@
-state_root.rs - source
1
+state_root.rs - source

leo_lang/cli/commands/query/
state_root.rs

+1
 2
 3
 4
@@ -37,8 +38,7 @@
 37
 38
 39
-40
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+40
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/query/transaction.rs.html b/src/leo_lang/cli/commands/query/transaction.rs.html
index 51e0d67c17..615dba0f50 100644
--- a/src/leo_lang/cli/commands/query/transaction.rs.html
+++ b/src/leo_lang/cli/commands/query/transaction.rs.html
@@ -1,4 +1,5 @@
-transaction.rs - source
1
+transaction.rs - source

leo_lang/cli/commands/query/
transaction.rs

+1
 2
 3
 4
@@ -65,8 +66,7 @@
 65
 66
 67
-68
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+68
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/query/utils.rs.html b/src/leo_lang/cli/commands/query/utils.rs.html
index 6d849719c8..00de9ffa6b 100644
--- a/src/leo_lang/cli/commands/query/utils.rs.html
+++ b/src/leo_lang/cli/commands/query/utils.rs.html
@@ -1,4 +1,5 @@
-utils.rs - source
1
+utils.rs - source

leo_lang/cli/commands/query/
utils.rs

+1
 2
 3
 4
@@ -88,8 +89,7 @@
 88
 89
 90
-91
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+91
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/remove.rs.html b/src/leo_lang/cli/commands/remove.rs.html
index a92db57cd6..47bcdd0c2d 100644
--- a/src/leo_lang/cli/commands/remove.rs.html
+++ b/src/leo_lang/cli/commands/remove.rs.html
@@ -1,4 +1,5 @@
-remove.rs - source
1
+remove.rs - source

leo_lang/cli/commands/
remove.rs

+1
 2
 3
 4
@@ -108,8 +109,7 @@
 108
 109
 110
-111
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+111
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/run.rs.html b/src/leo_lang/cli/commands/run.rs.html
index 2304602424..6432694c50 100644
--- a/src/leo_lang/cli/commands/run.rs.html
+++ b/src/leo_lang/cli/commands/run.rs.html
@@ -1,4 +1,5 @@
-run.rs - source
1
+run.rs - source

leo_lang/cli/commands/
run.rs

+1
 2
 3
 4
@@ -114,8 +115,7 @@
 114
 115
 116
-117
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+117
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/commands/update.rs.html b/src/leo_lang/cli/commands/update.rs.html
index 7de69647ed..3fe089a419 100644
--- a/src/leo_lang/cli/commands/update.rs.html
+++ b/src/leo_lang/cli/commands/update.rs.html
@@ -1,4 +1,5 @@
-update.rs - source
1
+update.rs - source

leo_lang/cli/commands/
update.rs

+1
 2
 3
 4
@@ -67,8 +68,7 @@
 67
 68
 69
-70
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+70
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/helpers/context.rs.html b/src/leo_lang/cli/helpers/context.rs.html
index 0f25dac63a..d1cbe75002 100644
--- a/src/leo_lang/cli/helpers/context.rs.html
+++ b/src/leo_lang/cli/helpers/context.rs.html
@@ -1,4 +1,5 @@
-context.rs - source
1
+context.rs - source

leo_lang/cli/helpers/
context.rs

+1
 2
 3
 4
@@ -191,8 +192,7 @@
 191
 192
 193
-194
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+194
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/helpers/logger.rs.html b/src/leo_lang/cli/helpers/logger.rs.html
index 912ccba235..86a49d7802 100644
--- a/src/leo_lang/cli/helpers/logger.rs.html
+++ b/src/leo_lang/cli/helpers/logger.rs.html
@@ -1,4 +1,5 @@
-logger.rs - source
1
+logger.rs - source

leo_lang/cli/helpers/
logger.rs

+1
 2
 3
 4
@@ -201,8 +202,7 @@
 201
 202
 203
-204
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+204
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/helpers/mod.rs.html b/src/leo_lang/cli/helpers/mod.rs.html
index 1f5d64ad9b..e0f485c052 100644
--- a/src/leo_lang/cli/helpers/mod.rs.html
+++ b/src/leo_lang/cli/helpers/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_lang/cli/helpers/
mod.rs

+1
 2
 3
 4
@@ -16,8 +17,7 @@
 16
 17
 18
-19
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+19
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/helpers/updater.rs.html b/src/leo_lang/cli/helpers/updater.rs.html
index 37a24cd403..ffd8730292 100644
--- a/src/leo_lang/cli/helpers/updater.rs.html
+++ b/src/leo_lang/cli/helpers/updater.rs.html
@@ -1,4 +1,5 @@
-updater.rs - source
1
+updater.rs - source

leo_lang/cli/helpers/
updater.rs

+1
 2
 3
 4
@@ -230,8 +231,7 @@
 230
 231
 232
-233
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+233
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/cli/mod.rs.html b/src/leo_lang/cli/mod.rs.html
index 94a49857ea..16c2e59810 100644
--- a/src/leo_lang/cli/mod.rs.html
+++ b/src/leo_lang/cli/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_lang/cli/
mod.rs

+1
 2
 3
 4
@@ -26,8 +27,7 @@
 26
 27
 28
-29
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+29
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_lang/lib.rs.html b/src/leo_lang/lib.rs.html
index ad037bdc0d..2d4d1253b4 100644
--- a/src/leo_lang/lib.rs.html
+++ b/src/leo_lang/lib.rs.html
@@ -1,4 +1,5 @@
-lib.rs - source
1
+lib.rs - source

leo_lang/
lib.rs

+1
 2
 3
 4
@@ -18,8 +19,7 @@
 18
 19
 20
-21
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+21
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_package/build/directory.rs.html b/src/leo_package/build/directory.rs.html
index 5753a0a494..45642f3cc5 100644
--- a/src/leo_package/build/directory.rs.html
+++ b/src/leo_package/build/directory.rs.html
@@ -1,4 +1,5 @@
-directory.rs - source
1
+directory.rs - source

leo_package/build/
directory.rs

+1
 2
 3
 4
@@ -65,8 +66,7 @@
 65
 66
 67
-68
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+68
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_package/build/mod.rs.html b/src/leo_package/build/mod.rs.html
index b1097497e1..1c8b1b2dce 100644
--- a/src/leo_package/build/mod.rs.html
+++ b/src/leo_package/build/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_package/build/
mod.rs

+1
 2
 3
 4
@@ -15,8 +16,7 @@
 15
 16
 17
-18
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+18
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_package/imports/directory.rs.html b/src/leo_package/imports/directory.rs.html
index 66e8493d9a..e2daf4150d 100644
--- a/src/leo_package/imports/directory.rs.html
+++ b/src/leo_package/imports/directory.rs.html
@@ -1,4 +1,5 @@
-directory.rs - source
1
+directory.rs - source

leo_package/imports/
directory.rs

+1
 2
 3
 4
@@ -85,8 +86,7 @@
 85
 86
 87
-88
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+88
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_package/imports/mod.rs.html b/src/leo_package/imports/mod.rs.html
index 1265e6cff0..3de5c963d3 100644
--- a/src/leo_package/imports/mod.rs.html
+++ b/src/leo_package/imports/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_package/imports/
mod.rs

+1
 2
 3
 4
@@ -15,8 +16,7 @@
 15
 16
 17
-18
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+18
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_package/inputs/directory.rs.html b/src/leo_package/inputs/directory.rs.html
index 32fa7ecd86..3e0dc656bf 100644
--- a/src/leo_package/inputs/directory.rs.html
+++ b/src/leo_package/inputs/directory.rs.html
@@ -1,4 +1,5 @@
-directory.rs - source
1
+directory.rs - source

leo_package/inputs/
directory.rs

+1
 2
 3
 4
@@ -74,8 +75,7 @@
 74
 75
 76
-77
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+77
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_package/inputs/mod.rs.html b/src/leo_package/inputs/mod.rs.html
index 7edef40827..46b31cedb3 100644
--- a/src/leo_package/inputs/mod.rs.html
+++ b/src/leo_package/inputs/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_package/inputs/
mod.rs

+1
 2
 3
 4
@@ -15,8 +16,7 @@
 15
 16
 17
-18
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+18
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_package/lib.rs.html b/src/leo_package/lib.rs.html
index ed8b74956b..40aa5e443f 100644
--- a/src/leo_package/lib.rs.html
+++ b/src/leo_package/lib.rs.html
@@ -1,4 +1,5 @@
-lib.rs - source
1
+lib.rs - source

leo_package/
lib.rs

+1
 2
 3
 4
@@ -55,8 +56,7 @@
 55
 56
 57
-58
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+58
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_package/outputs/ast_snapshot.rs.html b/src/leo_package/outputs/ast_snapshot.rs.html
index 1c897419ad..d5ea45a3b6 100644
--- a/src/leo_package/outputs/ast_snapshot.rs.html
+++ b/src/leo_package/outputs/ast_snapshot.rs.html
@@ -1,4 +1,5 @@
-ast_snapshot.rs - source
1
+ast_snapshot.rs - source

leo_package/outputs/
ast_snapshot.rs

+1
 2
 3
 4
@@ -94,8 +95,7 @@
 94
 95
 96
-97
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+97
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_package/outputs/checksum.rs.html b/src/leo_package/outputs/checksum.rs.html
index a29719a426..fdaa8bae51 100644
--- a/src/leo_package/outputs/checksum.rs.html
+++ b/src/leo_package/outputs/checksum.rs.html
@@ -1,4 +1,5 @@
-checksum.rs - source
1
+checksum.rs - source

leo_package/outputs/
checksum.rs

+1
 2
 3
 4
@@ -87,8 +88,7 @@
 87
 88
 89
-90
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+90
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_package/outputs/circuit.rs.html b/src/leo_package/outputs/circuit.rs.html
index b9b762d6ed..2720c485ea 100644
--- a/src/leo_package/outputs/circuit.rs.html
+++ b/src/leo_package/outputs/circuit.rs.html
@@ -1,4 +1,5 @@
-circuit.rs - source
1
+circuit.rs - source

leo_package/outputs/
circuit.rs

+1
 2
 3
 4
@@ -87,8 +88,7 @@
 87
 88
 89
-90
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+90
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_package/outputs/directory.rs.html b/src/leo_package/outputs/directory.rs.html
index 8d678340f7..b986bc1749 100644
--- a/src/leo_package/outputs/directory.rs.html
+++ b/src/leo_package/outputs/directory.rs.html
@@ -1,4 +1,5 @@
-directory.rs - source
1
+directory.rs - source

leo_package/outputs/
directory.rs

+1
 2
 3
 4
@@ -51,8 +52,7 @@
 51
 52
 53
-54
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+54
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_package/outputs/mod.rs.html b/src/leo_package/outputs/mod.rs.html
index 347961e322..b9ef848afe 100644
--- a/src/leo_package/outputs/mod.rs.html
+++ b/src/leo_package/outputs/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_package/outputs/
mod.rs

+1
 2
 3
 4
@@ -26,8 +27,7 @@
 26
 27
 28
-29
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+29
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_package/package.rs.html b/src/leo_package/package.rs.html
index a72da89ed8..f878b257a6 100644
--- a/src/leo_package/package.rs.html
+++ b/src/leo_package/package.rs.html
@@ -1,4 +1,5 @@
-package.rs - source
1
+package.rs - source

leo_package/
package.rs

+1
 2
 3
 4
@@ -205,8 +206,7 @@
 205
 206
 207
-208
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+208
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_package/root/env.rs.html b/src/leo_package/root/env.rs.html
index 93b8fb3f81..affd8a10e1 100644
--- a/src/leo_package/root/env.rs.html
+++ b/src/leo_package/root/env.rs.html
@@ -1,4 +1,5 @@
-env.rs - source
1
+env.rs - source

leo_package/root/
env.rs

+1
 2
 3
 4
@@ -78,8 +79,7 @@
 78
 79
 80
-81
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+81
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_package/root/gitignore.rs.html b/src/leo_package/root/gitignore.rs.html
index 5e99a5b40b..46f3b2ea7c 100644
--- a/src/leo_package/root/gitignore.rs.html
+++ b/src/leo_package/root/gitignore.rs.html
@@ -1,4 +1,5 @@
-gitignore.rs - source
1
+gitignore.rs - source

leo_package/root/
gitignore.rs

+1
 2
 3
 4
@@ -53,8 +54,7 @@
 53
 54
 55
-56
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+56
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_package/root/mod.rs.html b/src/leo_package/root/mod.rs.html
index 360f2e2b2a..89596dedf3 100644
--- a/src/leo_package/root/mod.rs.html
+++ b/src/leo_package/root/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_package/root/
mod.rs

+1
 2
 3
 4
@@ -17,8 +18,7 @@
 17
 18
 19
-20
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+20
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_package/source/directory.rs.html b/src/leo_package/source/directory.rs.html
index 7154df5dbe..7c5f4b6b6a 100644
--- a/src/leo_package/source/directory.rs.html
+++ b/src/leo_package/source/directory.rs.html
@@ -1,4 +1,5 @@
-directory.rs - source
1
+directory.rs - source

leo_package/source/
directory.rs

+1
 2
 3
 4
@@ -64,8 +65,7 @@
 64
 65
 66
-67
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+67
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_package/source/main.rs.html b/src/leo_package/source/main.rs.html
index b804ecfedc..55df237bc8 100644
--- a/src/leo_package/source/main.rs.html
+++ b/src/leo_package/source/main.rs.html
@@ -1,4 +1,5 @@
-main.rs - source
1
+main.rs - source

leo_package/source/
main.rs

+1
 2
 3
 4
@@ -76,8 +77,7 @@
 76
 77
 78
-79
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+79
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_package/source/mod.rs.html b/src/leo_package/source/mod.rs.html
index ccc4c43b57..daa0c8abba 100644
--- a/src/leo_package/source/mod.rs.html
+++ b/src/leo_package/source/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_package/source/
mod.rs

+1
 2
 3
 4
@@ -18,8 +19,7 @@
 18
 19
 20
-21
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+21
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_parser/lib.rs.html b/src/leo_parser/lib.rs.html
index c15af618dd..1adb55a4a5 100644
--- a/src/leo_parser/lib.rs.html
+++ b/src/leo_parser/lib.rs.html
@@ -1,4 +1,5 @@
-lib.rs - source
1
+lib.rs - source

leo_parser/
lib.rs

+1
 2
 3
 4
@@ -47,8 +48,7 @@
 47
 48
 49
-50
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+50
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_parser/parser/context.rs.html b/src/leo_parser/parser/context.rs.html
index bdd148a5bf..6e1e4fe929 100644
--- a/src/leo_parser/parser/context.rs.html
+++ b/src/leo_parser/parser/context.rs.html
@@ -1,4 +1,5 @@
-context.rs - source
1
+context.rs - source

leo_parser/parser/
context.rs

+1
 2
 3
 4
@@ -273,8 +274,7 @@
 273
 274
 275
-276
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+276
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_parser/parser/expression.rs.html b/src/leo_parser/parser/expression.rs.html
index cc36902e27..2e98bac5f4 100644
--- a/src/leo_parser/parser/expression.rs.html
+++ b/src/leo_parser/parser/expression.rs.html
@@ -1,4 +1,5 @@
-expression.rs - source
1
+expression.rs - source

leo_parser/parser/
expression.rs

+1
 2
 3
 4
@@ -849,8 +850,7 @@
 849
 850
 851
-852
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+852
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_parser/parser/file.rs.html b/src/leo_parser/parser/file.rs.html
index b87c5845ec..82b7116696 100644
--- a/src/leo_parser/parser/file.rs.html
+++ b/src/leo_parser/parser/file.rs.html
@@ -1,4 +1,5 @@
-file.rs - source
1
+file.rs - source

leo_parser/parser/
file.rs

+1
 2
 3
 4
@@ -386,8 +387,7 @@
 386
 387
 388
-389
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+389
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_parser/parser/mod.rs.html b/src/leo_parser/parser/mod.rs.html
index afe5babb48..7740eac7ed 100644
--- a/src/leo_parser/parser/mod.rs.html
+++ b/src/leo_parser/parser/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_parser/parser/
mod.rs

+1
 2
 3
 4
@@ -48,8 +49,7 @@
 48
 49
 50
-51
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+51
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_parser/parser/statement.rs.html b/src/leo_parser/parser/statement.rs.html
index 88b15cc18c..db7db96c17 100644
--- a/src/leo_parser/parser/statement.rs.html
+++ b/src/leo_parser/parser/statement.rs.html
@@ -1,4 +1,5 @@
-statement.rs - source
1
+statement.rs - source

leo_parser/parser/
statement.rs

+1
 2
 3
 4
@@ -341,8 +342,7 @@
 341
 342
 343
-344
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+344
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_parser/parser/type_.rs.html b/src/leo_parser/parser/type_.rs.html
index 98799ca46f..4ce1d529dc 100644
--- a/src/leo_parser/parser/type_.rs.html
+++ b/src/leo_parser/parser/type_.rs.html
@@ -1,4 +1,5 @@
-type_.rs - source
1
+type_.rs - source

leo_parser/parser/
type_.rs

+1
 2
 3
 4
@@ -156,8 +157,7 @@
 156
 157
 158
-159
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+159
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_parser/tokenizer/lexer.rs.html b/src/leo_parser/tokenizer/lexer.rs.html
index f2fc90dee2..53ffc9ef95 100644
--- a/src/leo_parser/tokenizer/lexer.rs.html
+++ b/src/leo_parser/tokenizer/lexer.rs.html
@@ -1,4 +1,5 @@
-lexer.rs - source
1
+lexer.rs - source

leo_parser/tokenizer/
lexer.rs

+1
 2
 3
 4
@@ -485,8 +486,7 @@
 485
 486
 487
-488
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+488
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_parser/tokenizer/mod.rs.html b/src/leo_parser/tokenizer/mod.rs.html
index 2e77519caa..e13aa21edb 100644
--- a/src/leo_parser/tokenizer/mod.rs.html
+++ b/src/leo_parser/tokenizer/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_parser/tokenizer/
mod.rs

+1
 2
 3
 4
@@ -203,8 +204,7 @@
 203
 204
 205
-206
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+206
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_parser/tokenizer/token.rs.html b/src/leo_parser/tokenizer/token.rs.html
index 81642b6447..23f4e6a403 100644
--- a/src/leo_parser/tokenizer/token.rs.html
+++ b/src/leo_parser/tokenizer/token.rs.html
@@ -1,4 +1,5 @@
-token.rs - source
1
+token.rs - source

leo_parser/tokenizer/
token.rs

+1
 2
 3
 4
@@ -432,8 +433,7 @@
 432
 433
 434
-435
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+435
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/code_generation/generator.rs.html b/src/leo_passes/code_generation/generator.rs.html
index 3705632851..27ccdd2f40 100644
--- a/src/leo_passes/code_generation/generator.rs.html
+++ b/src/leo_passes/code_generation/generator.rs.html
@@ -1,4 +1,5 @@
-generator.rs - source
1
+generator.rs - source

leo_passes/code_generation/
generator.rs

+1
 2
 3
 4
@@ -84,8 +85,7 @@
 84
 85
 86
-87
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+87
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/code_generation/mod.rs.html b/src/leo_passes/code_generation/mod.rs.html
index 818ef5e124..3bf60e5365 100644
--- a/src/leo_passes/code_generation/mod.rs.html
+++ b/src/leo_passes/code_generation/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_passes/code_generation/
mod.rs

+1
 2
 3
 4
@@ -40,8 +41,7 @@
 40
 41
 42
-43
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+43
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/code_generation/visit_expressions.rs.html b/src/leo_passes/code_generation/visit_expressions.rs.html
index 71025d50d7..354ff3681c 100644
--- a/src/leo_passes/code_generation/visit_expressions.rs.html
+++ b/src/leo_passes/code_generation/visit_expressions.rs.html
@@ -1,4 +1,5 @@
-visit_expressions.rs - source
1
+visit_expressions.rs - source

leo_passes/code_generation/
visit_expressions.rs

+1
 2
 3
 4
@@ -616,8 +617,7 @@
 616
 617
 618
-619
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+619
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/code_generation/visit_program.rs.html b/src/leo_passes/code_generation/visit_program.rs.html
index 4c1db09370..9634dfd063 100644
--- a/src/leo_passes/code_generation/visit_program.rs.html
+++ b/src/leo_passes/code_generation/visit_program.rs.html
@@ -1,4 +1,5 @@
-visit_program.rs - source
1
+visit_program.rs - source

leo_passes/code_generation/
visit_program.rs

+1
 2
 3
 4
@@ -268,8 +269,7 @@
 268
 269
 270
-271
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+271
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/code_generation/visit_statements.rs.html b/src/leo_passes/code_generation/visit_statements.rs.html
index d7f5325423..1a7eb0ac63 100644
--- a/src/leo_passes/code_generation/visit_statements.rs.html
+++ b/src/leo_passes/code_generation/visit_statements.rs.html
@@ -1,4 +1,5 @@
-visit_statements.rs - source
1
+visit_statements.rs - source

leo_passes/code_generation/
visit_statements.rs

+1
 2
 3
 4
@@ -243,8 +244,7 @@
 243
 244
 245
-246
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+246
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/code_generation/visit_type.rs.html b/src/leo_passes/code_generation/visit_type.rs.html
index 5038766000..2dc93963f5 100644
--- a/src/leo_passes/code_generation/visit_type.rs.html
+++ b/src/leo_passes/code_generation/visit_type.rs.html
@@ -1,4 +1,5 @@
-visit_type.rs - source
1
+visit_type.rs - source

leo_passes/code_generation/
visit_type.rs

+1
 2
 3
 4
@@ -72,8 +73,7 @@
 72
 73
 74
-75
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+75
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/common/assigner/mod.rs.html b/src/leo_passes/common/assigner/mod.rs.html
index 9770c41d0f..267bc284e9 100644
--- a/src/leo_passes/common/assigner/mod.rs.html
+++ b/src/leo_passes/common/assigner/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_passes/common/assigner/
mod.rs

+1
 2
 3
 4
@@ -65,8 +66,7 @@
 65
 66
 67
-68
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+68
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/common/constant_propagation_table/mod.rs.html b/src/leo_passes/common/constant_propagation_table/mod.rs.html
index 471afa6c40..7ae40a7b4c 100644
--- a/src/leo_passes/common/constant_propagation_table/mod.rs.html
+++ b/src/leo_passes/common/constant_propagation_table/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_passes/common/constant_propagation_table/
mod.rs

+1
 2
 3
 4
@@ -87,8 +88,7 @@
 87
 88
 89
-90
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+90
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/common/graph/mod.rs.html b/src/leo_passes/common/graph/mod.rs.html
index a35429f704..b752c898a8 100644
--- a/src/leo_passes/common/graph/mod.rs.html
+++ b/src/leo_passes/common/graph/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_passes/common/graph/
mod.rs

+1
 2
 3
 4
@@ -254,8 +255,7 @@
 254
 255
 256
-257
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+257
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/common/mod.rs.html b/src/leo_passes/common/mod.rs.html
index c5f243e4f1..6910dbafcc 100644
--- a/src/leo_passes/common/mod.rs.html
+++ b/src/leo_passes/common/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_passes/common/
mod.rs

+1
 2
 3
 4
@@ -36,8 +37,7 @@
 36
 37
 38
-39
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+39
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/common/rename_table/mod.rs.html b/src/leo_passes/common/rename_table/mod.rs.html
index eaec3b3e6b..3726db27cb 100644
--- a/src/leo_passes/common/rename_table/mod.rs.html
+++ b/src/leo_passes/common/rename_table/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_passes/common/rename_table/
mod.rs

+1
 2
 3
 4
@@ -71,8 +72,7 @@
 71
 72
 73
-74
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+74
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/common/replacer/mod.rs.html b/src/leo_passes/common/replacer/mod.rs.html
index e6452403ad..432b512307 100644
--- a/src/leo_passes/common/replacer/mod.rs.html
+++ b/src/leo_passes/common/replacer/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_passes/common/replacer/
mod.rs

+1
 2
 3
 4
@@ -48,8 +49,7 @@
 48
 49
 50
-51
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+51
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/common/symbol_table/function_symbol.rs.html b/src/leo_passes/common/symbol_table/function_symbol.rs.html
index fabb47ca57..10aa05ee3c 100644
--- a/src/leo_passes/common/symbol_table/function_symbol.rs.html
+++ b/src/leo_passes/common/symbol_table/function_symbol.rs.html
@@ -1,4 +1,5 @@
-function_symbol.rs - source
1
+function_symbol.rs - source

leo_passes/common/symbol_table/
function_symbol.rs

+1
 2
 3
 4
@@ -52,8 +53,7 @@
 52
 53
 54
-55
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+55
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/common/symbol_table/mod.rs.html b/src/leo_passes/common/symbol_table/mod.rs.html
index 31fe0a30fd..566e6a9dd6 100644
--- a/src/leo_passes/common/symbol_table/mod.rs.html
+++ b/src/leo_passes/common/symbol_table/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_passes/common/symbol_table/
mod.rs

+1
 2
 3
 4
@@ -346,8 +347,7 @@
 346
 347
 348
-349
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+349
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/common/symbol_table/variable_symbol.rs.html b/src/leo_passes/common/symbol_table/variable_symbol.rs.html
index 314d06c881..48a10dc65e 100644
--- a/src/leo_passes/common/symbol_table/variable_symbol.rs.html
+++ b/src/leo_passes/common/symbol_table/variable_symbol.rs.html
@@ -1,4 +1,5 @@
-variable_symbol.rs - source
1
+variable_symbol.rs - source

leo_passes/common/symbol_table/
variable_symbol.rs

+1
 2
 3
 4
@@ -57,8 +58,7 @@
 57
 58
 59
-60
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+60
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/common/tree_node/mod.rs.html b/src/leo_passes/common/tree_node/mod.rs.html
index a1497bf1d8..7d4ca28517 100644
--- a/src/leo_passes/common/tree_node/mod.rs.html
+++ b/src/leo_passes/common/tree_node/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_passes/common/tree_node/
mod.rs

+1
 2
 3
 4
@@ -66,8 +67,7 @@
 66
 67
 68
-69
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+69
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/common/type_table/mod.rs.html b/src/leo_passes/common/type_table/mod.rs.html
index a07dc420c7..33e1b22424 100644
--- a/src/leo_passes/common/type_table/mod.rs.html
+++ b/src/leo_passes/common/type_table/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_passes/common/type_table/
mod.rs

+1
 2
 3
 4
@@ -37,8 +38,7 @@
 37
 38
 39
-40
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+40
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/dead_code_elimination/dead_code_eliminator.rs.html b/src/leo_passes/dead_code_elimination/dead_code_eliminator.rs.html
index 68091f8948..142eb953a1 100644
--- a/src/leo_passes/dead_code_elimination/dead_code_eliminator.rs.html
+++ b/src/leo_passes/dead_code_elimination/dead_code_eliminator.rs.html
@@ -1,4 +1,5 @@
-dead_code_eliminator.rs - source
1
+dead_code_eliminator.rs - source

leo_passes/dead_code_elimination/
dead_code_eliminator.rs

+1
 2
 3
 4
@@ -35,8 +36,7 @@
 35
 36
 37
-38
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+38
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/dead_code_elimination/eliminate_expression.rs.html b/src/leo_passes/dead_code_elimination/eliminate_expression.rs.html
index 60afc11ce0..57beaccabb 100644
--- a/src/leo_passes/dead_code_elimination/eliminate_expression.rs.html
+++ b/src/leo_passes/dead_code_elimination/eliminate_expression.rs.html
@@ -1,4 +1,5 @@
-eliminate_expression.rs - source
1
+eliminate_expression.rs - source

leo_passes/dead_code_elimination/
eliminate_expression.rs

+1
 2
 3
 4
@@ -92,8 +93,7 @@
 92
 93
 94
-95
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+95
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/dead_code_elimination/eliminate_program.rs.html b/src/leo_passes/dead_code_elimination/eliminate_program.rs.html
index 7ef085620a..5e0092fc41 100644
--- a/src/leo_passes/dead_code_elimination/eliminate_program.rs.html
+++ b/src/leo_passes/dead_code_elimination/eliminate_program.rs.html
@@ -1,4 +1,5 @@
-eliminate_program.rs - source
1
+eliminate_program.rs - source

leo_passes/dead_code_elimination/
eliminate_program.rs

+1
 2
 3
 4
@@ -40,8 +41,7 @@
 40
 41
 42
-43
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+43
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/dead_code_elimination/eliminate_statement.rs.html b/src/leo_passes/dead_code_elimination/eliminate_statement.rs.html
index 86630ef9a1..f3f31e87dd 100644
--- a/src/leo_passes/dead_code_elimination/eliminate_statement.rs.html
+++ b/src/leo_passes/dead_code_elimination/eliminate_statement.rs.html
@@ -1,4 +1,5 @@
-eliminate_statement.rs - source
1
+eliminate_statement.rs - source

leo_passes/dead_code_elimination/
eliminate_statement.rs

+1
 2
 3
 4
@@ -213,8 +214,7 @@
 213
 214
 215
-216
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+216
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/dead_code_elimination/mod.rs.html b/src/leo_passes/dead_code_elimination/mod.rs.html
index 95cd52777e..ac51cb2a63 100644
--- a/src/leo_passes/dead_code_elimination/mod.rs.html
+++ b/src/leo_passes/dead_code_elimination/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_passes/dead_code_elimination/
mod.rs

+1
 2
 3
 4
@@ -73,8 +74,7 @@
 73
 74
 75
-76
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+76
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/destructuring/destructure_expression.rs.html b/src/leo_passes/destructuring/destructure_expression.rs.html
index 35e9e7b02a..1aaa58f946 100644
--- a/src/leo_passes/destructuring/destructure_expression.rs.html
+++ b/src/leo_passes/destructuring/destructure_expression.rs.html
@@ -1,4 +1,5 @@
-destructure_expression.rs - source
1
+destructure_expression.rs - source

leo_passes/destructuring/
destructure_expression.rs

+1
 2
 3
 4
@@ -63,8 +64,7 @@
 63
 64
 65
-66
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+66
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/destructuring/destructure_program.rs.html b/src/leo_passes/destructuring/destructure_program.rs.html
index be5b66ca61..b3a20984ab 100644
--- a/src/leo_passes/destructuring/destructure_program.rs.html
+++ b/src/leo_passes/destructuring/destructure_program.rs.html
@@ -1,4 +1,5 @@
-destructure_program.rs - source
1
+destructure_program.rs - source

leo_passes/destructuring/
destructure_program.rs

+1
 2
 3
 4
@@ -40,8 +41,7 @@
 40
 41
 42
-43
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+43
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/destructuring/destructure_statement.rs.html b/src/leo_passes/destructuring/destructure_statement.rs.html
index fbdee326a2..fa721a74a4 100644
--- a/src/leo_passes/destructuring/destructure_statement.rs.html
+++ b/src/leo_passes/destructuring/destructure_statement.rs.html
@@ -1,4 +1,5 @@
-destructure_statement.rs - source
1
+destructure_statement.rs - source

leo_passes/destructuring/
destructure_statement.rs

+1
 2
 3
 4
@@ -266,8 +267,7 @@
 266
 267
 268
-269
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+269
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/destructuring/destructurer.rs.html b/src/leo_passes/destructuring/destructurer.rs.html
index e14801fef0..01166de30c 100644
--- a/src/leo_passes/destructuring/destructurer.rs.html
+++ b/src/leo_passes/destructuring/destructurer.rs.html
@@ -1,4 +1,5 @@
-destructurer.rs - source
1
+destructurer.rs - source

leo_passes/destructuring/
destructurer.rs

+1
 2
 3
 4
@@ -50,8 +51,7 @@
 50
 51
 52
-53
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+53
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/destructuring/mod.rs.html b/src/leo_passes/destructuring/mod.rs.html
index 99a7740325..7bddbb6357 100644
--- a/src/leo_passes/destructuring/mod.rs.html
+++ b/src/leo_passes/destructuring/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_passes/destructuring/
mod.rs

+1
 2
 3
 4
@@ -41,8 +42,7 @@
 41
 42
 43
-44
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+44
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/flattening/flatten_expression.rs.html b/src/leo_passes/flattening/flatten_expression.rs.html
index 0e206effea..d9e6ae00b1 100644
--- a/src/leo_passes/flattening/flatten_expression.rs.html
+++ b/src/leo_passes/flattening/flatten_expression.rs.html
@@ -1,4 +1,5 @@
-flatten_expression.rs - source
1
+flatten_expression.rs - source

leo_passes/flattening/
flatten_expression.rs

+1
 2
 3
 4
@@ -127,8 +128,7 @@
 127
 128
 129
-130
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+130
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/flattening/flatten_program.rs.html b/src/leo_passes/flattening/flatten_program.rs.html
index 2e76e1a910..f652e6fc64 100644
--- a/src/leo_passes/flattening/flatten_program.rs.html
+++ b/src/leo_passes/flattening/flatten_program.rs.html
@@ -1,4 +1,5 @@
-flatten_program.rs - source
1
+flatten_program.rs - source

leo_passes/flattening/
flatten_program.rs

+1
 2
 3
 4
@@ -81,8 +82,7 @@
 81
 82
 83
-84
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+84
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/flattening/flatten_statement.rs.html b/src/leo_passes/flattening/flatten_statement.rs.html
index 0eb4abaff9..92c1c7f8bd 100644
--- a/src/leo_passes/flattening/flatten_statement.rs.html
+++ b/src/leo_passes/flattening/flatten_statement.rs.html
@@ -1,4 +1,5 @@
-flatten_statement.rs - source
1
+flatten_statement.rs - source

leo_passes/flattening/
flatten_statement.rs

+1
 2
 3
 4
@@ -361,8 +362,7 @@
 361
 362
 363
-364
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+364
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/flattening/flattener.rs.html b/src/leo_passes/flattening/flattener.rs.html
index 208187c011..5732afc049 100644
--- a/src/leo_passes/flattening/flattener.rs.html
+++ b/src/leo_passes/flattening/flattener.rs.html
@@ -1,4 +1,5 @@
-flattener.rs - source
1
+flattener.rs - source

leo_passes/flattening/
flattener.rs

+1
 2
 3
 4
@@ -714,8 +715,7 @@
 714
 715
 716
-717
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+717
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/flattening/mod.rs.html b/src/leo_passes/flattening/mod.rs.html
index 178c277356..7eb6fe8244 100644
--- a/src/leo_passes/flattening/mod.rs.html
+++ b/src/leo_passes/flattening/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_passes/flattening/
mod.rs

+1
 2
 3
 4
@@ -75,8 +76,7 @@
 75
 76
 77
-78
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+78
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/function_inlining/assignment_renamer.rs.html b/src/leo_passes/function_inlining/assignment_renamer.rs.html
index 9819797f97..bc78c73b36 100644
--- a/src/leo_passes/function_inlining/assignment_renamer.rs.html
+++ b/src/leo_passes/function_inlining/assignment_renamer.rs.html
@@ -1,4 +1,5 @@
-assignment_renamer.rs - source
1
+assignment_renamer.rs - source

leo_passes/function_inlining/
assignment_renamer.rs

+1
 2
 3
 4
@@ -150,8 +151,7 @@
 150
 151
 152
-153
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+153
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/function_inlining/function_inliner.rs.html b/src/leo_passes/function_inlining/function_inliner.rs.html
index 2bff3abb2b..00cefbc43f 100644
--- a/src/leo_passes/function_inlining/function_inliner.rs.html
+++ b/src/leo_passes/function_inlining/function_inliner.rs.html
@@ -1,4 +1,5 @@
-function_inliner.rs - source
1
+function_inliner.rs - source

leo_passes/function_inlining/
function_inliner.rs

+1
 2
 3
 4
@@ -54,8 +55,7 @@
 54
 55
 56
-57
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+57
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/function_inlining/inline_expression.rs.html b/src/leo_passes/function_inlining/inline_expression.rs.html
index ed23c76bf6..d4687dca1c 100644
--- a/src/leo_passes/function_inlining/inline_expression.rs.html
+++ b/src/leo_passes/function_inlining/inline_expression.rs.html
@@ -1,4 +1,5 @@
-inline_expression.rs - source
1
+inline_expression.rs - source

leo_passes/function_inlining/
inline_expression.rs

+1
 2
 3
 4
@@ -107,8 +108,7 @@
 107
 108
 109
-110
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+110
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/function_inlining/inline_program.rs.html b/src/leo_passes/function_inlining/inline_program.rs.html
index c635ee5f7a..cfbfa9dc12 100644
--- a/src/leo_passes/function_inlining/inline_program.rs.html
+++ b/src/leo_passes/function_inlining/inline_program.rs.html
@@ -1,4 +1,5 @@
-inline_program.rs - source
1
+inline_program.rs - source

leo_passes/function_inlining/
inline_program.rs

+1
 2
 3
 4
@@ -82,8 +83,7 @@
 82
 83
 84
-85
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+85
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/function_inlining/inline_statement.rs.html b/src/leo_passes/function_inlining/inline_statement.rs.html
index d5db40ba81..aeda6da1ba 100644
--- a/src/leo_passes/function_inlining/inline_statement.rs.html
+++ b/src/leo_passes/function_inlining/inline_statement.rs.html
@@ -1,4 +1,5 @@
-inline_statement.rs - source
1
+inline_statement.rs - source

leo_passes/function_inlining/
inline_statement.rs

+1
 2
 3
 4
@@ -116,8 +117,7 @@
 116
 117
 118
-119
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+119
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/function_inlining/mod.rs.html b/src/leo_passes/function_inlining/mod.rs.html
index ca05cbda6f..9fa1c20ea8 100644
--- a/src/leo_passes/function_inlining/mod.rs.html
+++ b/src/leo_passes/function_inlining/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_passes/function_inlining/
mod.rs

+1
 2
 3
 4
@@ -79,8 +80,7 @@
 79
 80
 81
-82
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+82
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/lib.rs.html b/src/leo_passes/lib.rs.html
index adaea77e40..47ba613f4c 100644
--- a/src/leo_passes/lib.rs.html
+++ b/src/leo_passes/lib.rs.html
@@ -1,4 +1,5 @@
-lib.rs - source
1
+lib.rs - source

leo_passes/
lib.rs

+1
 2
 3
 4
@@ -51,8 +52,7 @@
 51
 52
 53
-54
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+54
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/loop_unrolling/mod.rs.html b/src/leo_passes/loop_unrolling/mod.rs.html
index db3f18c16b..0ecbb17e44 100644
--- a/src/leo_passes/loop_unrolling/mod.rs.html
+++ b/src/leo_passes/loop_unrolling/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_passes/loop_unrolling/
mod.rs

+1
 2
 3
 4
@@ -42,8 +43,7 @@
 42
 43
 44
-45
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+45
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/loop_unrolling/range_iterator.rs.html b/src/leo_passes/loop_unrolling/range_iterator.rs.html
index 2e9692089a..e46d3c966d 100644
--- a/src/leo_passes/loop_unrolling/range_iterator.rs.html
+++ b/src/leo_passes/loop_unrolling/range_iterator.rs.html
@@ -1,4 +1,5 @@
-range_iterator.rs - source
1
+range_iterator.rs - source

leo_passes/loop_unrolling/
range_iterator.rs

+1
 2
 3
 4
@@ -69,8 +70,7 @@
 69
 70
 71
-72
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+72
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/loop_unrolling/unroll_expression.rs.html b/src/leo_passes/loop_unrolling/unroll_expression.rs.html
index 5f0064bc8a..10a0c0dadb 100644
--- a/src/leo_passes/loop_unrolling/unroll_expression.rs.html
+++ b/src/leo_passes/loop_unrolling/unroll_expression.rs.html
@@ -1,4 +1,5 @@
-unroll_expression.rs - source
1
+unroll_expression.rs - source

leo_passes/loop_unrolling/
unroll_expression.rs

+1
 2
 3
 4
@@ -48,8 +49,7 @@
 48
 49
 50
-51
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+51
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/loop_unrolling/unroll_program.rs.html b/src/leo_passes/loop_unrolling/unroll_program.rs.html
index 3ca65c8a07..04fdbc0a56 100644
--- a/src/leo_passes/loop_unrolling/unroll_program.rs.html
+++ b/src/leo_passes/loop_unrolling/unroll_program.rs.html
@@ -1,4 +1,5 @@
-unroll_program.rs - source
1
+unroll_program.rs - source

leo_passes/loop_unrolling/
unroll_program.rs

+1
 2
 3
 4
@@ -108,8 +109,7 @@
 108
 109
 110
-111
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+111
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/loop_unrolling/unroll_statement.rs.html b/src/leo_passes/loop_unrolling/unroll_statement.rs.html
index 0d832f98bf..b7bc946eaf 100644
--- a/src/leo_passes/loop_unrolling/unroll_statement.rs.html
+++ b/src/leo_passes/loop_unrolling/unroll_statement.rs.html
@@ -1,4 +1,5 @@
-unroll_statement.rs - source
1
+unroll_statement.rs - source

leo_passes/loop_unrolling/
unroll_statement.rs

+1
 2
 3
 4
@@ -194,8 +195,7 @@
 194
 195
 196
-197
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+197
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/loop_unrolling/unroller.rs.html b/src/leo_passes/loop_unrolling/unroller.rs.html
index 10e2d4946d..0f868ff7d9 100644
--- a/src/leo_passes/loop_unrolling/unroller.rs.html
+++ b/src/leo_passes/loop_unrolling/unroller.rs.html
@@ -1,4 +1,5 @@
-unroller.rs - source
1
+unroller.rs - source

leo_passes/loop_unrolling/
unroller.rs

+1
 2
 3
 4
@@ -264,8 +265,7 @@
 264
 265
 266
-267
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+267
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/pass.rs.html b/src/leo_passes/pass.rs.html
index cba8eaca60..8a9b464f48 100644
--- a/src/leo_passes/pass.rs.html
+++ b/src/leo_passes/pass.rs.html
@@ -1,4 +1,5 @@
-pass.rs - source
1
+pass.rs - source

leo_passes/
pass.rs

+1
 2
 3
 4
@@ -21,8 +22,7 @@
 21
 22
 23
-24
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+24
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/static_analysis/analyze_expression.rs.html b/src/leo_passes/static_analysis/analyze_expression.rs.html
index 11a2eb859e..2a1113b146 100644
--- a/src/leo_passes/static_analysis/analyze_expression.rs.html
+++ b/src/leo_passes/static_analysis/analyze_expression.rs.html
@@ -1,4 +1,5 @@
-analyze_expression.rs - source
1
+analyze_expression.rs - source

leo_passes/static_analysis/
analyze_expression.rs

+1
 2
 3
 4
@@ -64,8 +65,7 @@
 64
 65
 66
-67
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+67
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/static_analysis/analyze_program.rs.html b/src/leo_passes/static_analysis/analyze_program.rs.html
index 5579c73ce7..1521afb9ff 100644
--- a/src/leo_passes/static_analysis/analyze_program.rs.html
+++ b/src/leo_passes/static_analysis/analyze_program.rs.html
@@ -1,4 +1,5 @@
-analyze_program.rs - source
1
+analyze_program.rs - source

leo_passes/static_analysis/
analyze_program.rs

+1
 2
 3
 4
@@ -108,8 +109,7 @@
 108
 109
 110
-111
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+111
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/static_analysis/analyze_statement.rs.html b/src/leo_passes/static_analysis/analyze_statement.rs.html
index 176cab06c4..d6be8efa68 100644
--- a/src/leo_passes/static_analysis/analyze_statement.rs.html
+++ b/src/leo_passes/static_analysis/analyze_statement.rs.html
@@ -1,4 +1,5 @@
-analyze_statement.rs - source
1
+analyze_statement.rs - source

leo_passes/static_analysis/
analyze_statement.rs

+1
 2
 3
 4
@@ -51,8 +52,7 @@
 51
 52
 53
-54
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+54
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/static_analysis/analyzer.rs.html b/src/leo_passes/static_analysis/analyzer.rs.html
index af07f05517..ef1b2fd266 100644
--- a/src/leo_passes/static_analysis/analyzer.rs.html
+++ b/src/leo_passes/static_analysis/analyzer.rs.html
@@ -1,4 +1,5 @@
-analyzer.rs - source
1
+analyzer.rs - source

leo_passes/static_analysis/
analyzer.rs

+1
 2
 3
 4
@@ -140,8 +141,7 @@
 140
 141
 142
-143
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+143
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/static_analysis/await_checker.rs.html b/src/leo_passes/static_analysis/await_checker.rs.html
index 33342f6e40..9aff018e04 100644
--- a/src/leo_passes/static_analysis/await_checker.rs.html
+++ b/src/leo_passes/static_analysis/await_checker.rs.html
@@ -1,4 +1,5 @@
-await_checker.rs - source
1
+await_checker.rs - source

leo_passes/static_analysis/
await_checker.rs

+1
 2
 3
 4
@@ -107,8 +108,7 @@
 107
 108
 109
-110
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+110
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/static_analysis/mod.rs.html b/src/leo_passes/static_analysis/mod.rs.html
index d5b9e847c9..7ff114d134 100644
--- a/src/leo_passes/static_analysis/mod.rs.html
+++ b/src/leo_passes/static_analysis/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_passes/static_analysis/
mod.rs

+1
 2
 3
 4
@@ -41,8 +42,7 @@
 41
 42
 43
-44
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+44
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/static_single_assignment/mod.rs.html b/src/leo_passes/static_single_assignment/mod.rs.html
index 7e2f3583eb..4aa1c732e0 100644
--- a/src/leo_passes/static_single_assignment/mod.rs.html
+++ b/src/leo_passes/static_single_assignment/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_passes/static_single_assignment/
mod.rs

+1
 2
 3
 4
@@ -74,8 +75,7 @@
 74
 75
 76
-77
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+77
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/static_single_assignment/rename_expression.rs.html b/src/leo_passes/static_single_assignment/rename_expression.rs.html
index 572083af81..e3a5e7a1db 100644
--- a/src/leo_passes/static_single_assignment/rename_expression.rs.html
+++ b/src/leo_passes/static_single_assignment/rename_expression.rs.html
@@ -1,4 +1,5 @@
-rename_expression.rs - source
1
+rename_expression.rs - source

leo_passes/static_single_assignment/
rename_expression.rs

+1
 2
 3
 4
@@ -397,8 +398,7 @@
 397
 398
 399
-400
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+400
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/static_single_assignment/rename_program.rs.html b/src/leo_passes/static_single_assignment/rename_program.rs.html
index 4ea706287b..6ce6a3b60d 100644
--- a/src/leo_passes/static_single_assignment/rename_program.rs.html
+++ b/src/leo_passes/static_single_assignment/rename_program.rs.html
@@ -1,4 +1,5 @@
-rename_program.rs - source
1
+rename_program.rs - source

leo_passes/static_single_assignment/
rename_program.rs

+1
 2
 3
 4
@@ -127,8 +128,7 @@
 127
 128
 129
-130
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+130
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/static_single_assignment/rename_statement.rs.html b/src/leo_passes/static_single_assignment/rename_statement.rs.html
index 7a8c8f223a..7ae56b44b1 100644
--- a/src/leo_passes/static_single_assignment/rename_statement.rs.html
+++ b/src/leo_passes/static_single_assignment/rename_statement.rs.html
@@ -1,4 +1,5 @@
-rename_statement.rs - source
1
+rename_statement.rs - source

leo_passes/static_single_assignment/
rename_statement.rs

+1
 2
 3
 4
@@ -392,8 +393,7 @@
 392
 393
 394
-395
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+395
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/static_single_assignment/static_single_assigner.rs.html b/src/leo_passes/static_single_assignment/static_single_assigner.rs.html
index 0e6990a2eb..b761186975 100644
--- a/src/leo_passes/static_single_assignment/static_single_assigner.rs.html
+++ b/src/leo_passes/static_single_assignment/static_single_assigner.rs.html
@@ -1,4 +1,5 @@
-static_single_assigner.rs - source
1
+static_single_assigner.rs - source

leo_passes/static_single_assignment/
static_single_assigner.rs

+1
 2
 3
 4
@@ -95,8 +96,7 @@
 95
 96
 97
-98
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+98
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/symbol_table_creation/creator.rs.html b/src/leo_passes/symbol_table_creation/creator.rs.html
index 71058b935e..aa2bfe074a 100644
--- a/src/leo_passes/symbol_table_creation/creator.rs.html
+++ b/src/leo_passes/symbol_table_creation/creator.rs.html
@@ -1,4 +1,5 @@
-creator.rs - source
1
+creator.rs - source

leo_passes/symbol_table_creation/
creator.rs

+1
 2
 3
 4
@@ -151,8 +152,7 @@
 151
 152
 153
-154
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+154
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/symbol_table_creation/mod.rs.html b/src/leo_passes/symbol_table_creation/mod.rs.html
index ba98b2728b..de66689b74 100644
--- a/src/leo_passes/symbol_table_creation/mod.rs.html
+++ b/src/leo_passes/symbol_table_creation/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_passes/symbol_table_creation/
mod.rs

+1
 2
 3
 4
@@ -34,8 +35,7 @@
 34
 35
 36
-37
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+37
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/type_checking/check_expressions.rs.html b/src/leo_passes/type_checking/check_expressions.rs.html
index 26308c6c6a..f227dc43ff 100644
--- a/src/leo_passes/type_checking/check_expressions.rs.html
+++ b/src/leo_passes/type_checking/check_expressions.rs.html
@@ -1,4 +1,5 @@
-check_expressions.rs - source
1
+check_expressions.rs - source

leo_passes/type_checking/
check_expressions.rs

+1
 2
 3
 4
@@ -1056,8 +1057,7 @@
 1056
 1057
 1058
-1059
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+1059
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/type_checking/check_program.rs.html b/src/leo_passes/type_checking/check_program.rs.html
index f942443544..8a604e52c1 100644
--- a/src/leo_passes/type_checking/check_program.rs.html
+++ b/src/leo_passes/type_checking/check_program.rs.html
@@ -1,4 +1,5 @@
-check_program.rs - source
1
+check_program.rs - source

leo_passes/type_checking/
check_program.rs

+1
 2
 3
 4
@@ -352,8 +353,7 @@
 352
 353
 354
-355
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+355
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/type_checking/check_statements.rs.html b/src/leo_passes/type_checking/check_statements.rs.html
index 42320c886e..7e842adb13 100644
--- a/src/leo_passes/type_checking/check_statements.rs.html
+++ b/src/leo_passes/type_checking/check_statements.rs.html
@@ -1,4 +1,5 @@
-check_statements.rs - source
1
+check_statements.rs - source

leo_passes/type_checking/
check_statements.rs

+1
 2
 3
 4
@@ -434,8 +435,7 @@
 434
 435
 436
-437
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+437
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/type_checking/checker.rs.html b/src/leo_passes/type_checking/checker.rs.html
index e7baacbb9c..2d9b608b95 100644
--- a/src/leo_passes/type_checking/checker.rs.html
+++ b/src/leo_passes/type_checking/checker.rs.html
@@ -1,4 +1,5 @@
-checker.rs - source
1
+checker.rs - source

leo_passes/type_checking/
checker.rs

+1
 2
 3
 4
@@ -1351,8 +1352,7 @@
 1351
 1352
 1353
-1354
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+1354
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/type_checking/mod.rs.html b/src/leo_passes/type_checking/mod.rs.html
index 25d941d334..c150174781 100644
--- a/src/leo_passes/type_checking/mod.rs.html
+++ b/src/leo_passes/type_checking/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_passes/type_checking/
mod.rs

+1
 2
 3
 4
@@ -47,8 +48,7 @@
 47
 48
 49
-50
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+50
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_passes/type_checking/scope_state.rs.html b/src/leo_passes/type_checking/scope_state.rs.html
index ae9f048fe5..d899eba51e 100644
--- a/src/leo_passes/type_checking/scope_state.rs.html
+++ b/src/leo_passes/type_checking/scope_state.rs.html
@@ -1,4 +1,5 @@
-scope_state.rs - source
1
+scope_state.rs - source

leo_passes/type_checking/
scope_state.rs

+1
 2
 3
 4
@@ -72,8 +73,7 @@
 72
 73
 74
-75
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+75
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_retriever/lib.rs.html b/src/leo_retriever/lib.rs.html
index 9219ec7c77..23d447a4dc 100644
--- a/src/leo_retriever/lib.rs.html
+++ b/src/leo_retriever/lib.rs.html
@@ -1,4 +1,5 @@
-lib.rs - source
1
+lib.rs - source

leo_retriever/
lib.rs

+1
 2
 3
 4
@@ -124,8 +125,7 @@
 124
 125
 126
-127
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+127
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_retriever/program_context/dependency.rs.html b/src/leo_retriever/program_context/dependency.rs.html
index 1fd5694f4e..be3c162076 100644
--- a/src/leo_retriever/program_context/dependency.rs.html
+++ b/src/leo_retriever/program_context/dependency.rs.html
@@ -1,4 +1,5 @@
-dependency.rs - source
1
+dependency.rs - source

leo_retriever/program_context/
dependency.rs

+1
 2
 3
 4
@@ -55,8 +56,7 @@
 55
 56
 57
-58
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+58
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_retriever/program_context/location.rs.html b/src/leo_retriever/program_context/location.rs.html
index 0185c97d0c..b15d121af4 100644
--- a/src/leo_retriever/program_context/location.rs.html
+++ b/src/leo_retriever/program_context/location.rs.html
@@ -1,4 +1,5 @@
-location.rs - source
1
+location.rs - source

leo_retriever/program_context/
location.rs

+1
 2
 3
 4
@@ -25,8 +26,7 @@
 25
 26
 27
-28
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+28
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_retriever/program_context/lock_file_entry.rs.html b/src/leo_retriever/program_context/lock_file_entry.rs.html
index f1b642b360..233b34f58d 100644
--- a/src/leo_retriever/program_context/lock_file_entry.rs.html
+++ b/src/leo_retriever/program_context/lock_file_entry.rs.html
@@ -1,4 +1,5 @@
-lock_file_entry.rs - source
1
+lock_file_entry.rs - source

leo_retriever/program_context/
lock_file_entry.rs

+1
 2
 3
 4
@@ -49,8 +50,7 @@
 49
 50
 51
-52
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+52
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_retriever/program_context/manifest.rs.html b/src/leo_retriever/program_context/manifest.rs.html
index 6105e284c6..5776b3a891 100644
--- a/src/leo_retriever/program_context/manifest.rs.html
+++ b/src/leo_retriever/program_context/manifest.rs.html
@@ -1,4 +1,5 @@
-manifest.rs - source
1
+manifest.rs - source

leo_retriever/program_context/
manifest.rs

+1
 2
 3
 4
@@ -92,8 +93,7 @@
 92
 93
 94
-95
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+95
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_retriever/program_context/mod.rs.html b/src/leo_retriever/program_context/mod.rs.html
index 3b68856f9b..74f731b9b9 100644
--- a/src/leo_retriever/program_context/mod.rs.html
+++ b/src/leo_retriever/program_context/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_retriever/program_context/
mod.rs

+1
 2
 3
 4
@@ -187,8 +188,7 @@
 187
 188
 189
-190
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+190
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_retriever/program_context/network_name.rs.html b/src/leo_retriever/program_context/network_name.rs.html
index 7a366d7867..01cce67317 100644
--- a/src/leo_retriever/program_context/network_name.rs.html
+++ b/src/leo_retriever/program_context/network_name.rs.html
@@ -1,4 +1,5 @@
-network_name.rs - source
1
+network_name.rs - source

leo_retriever/program_context/
network_name.rs

+1
 2
 3
 4
@@ -76,8 +77,7 @@
 76
 77
 78
-79
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+79
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_retriever/retriever/mod.rs.html b/src/leo_retriever/retriever/mod.rs.html
index 1185089a82..362add0217 100644
--- a/src/leo_retriever/retriever/mod.rs.html
+++ b/src/leo_retriever/retriever/mod.rs.html
@@ -1,4 +1,5 @@
-mod.rs - source
1
+mod.rs - source

leo_retriever/retriever/
mod.rs

+1
 2
 3
 4
@@ -539,8 +540,7 @@
 539
 540
 541
-542
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+542
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_span/lib.rs.html b/src/leo_span/lib.rs.html
index 7ce9a18036..8e0be75920 100644
--- a/src/leo_span/lib.rs.html
+++ b/src/leo_span/lib.rs.html
@@ -1,4 +1,5 @@
-lib.rs - source
1
+lib.rs - source

leo_span/
lib.rs

+1
 2
 3
 4
@@ -25,8 +26,7 @@
 25
 26
 27
-28
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+28
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_span/source_map.rs.html b/src/leo_span/source_map.rs.html
index 148eeb809e..d18a55d5bf 100644
--- a/src/leo_span/source_map.rs.html
+++ b/src/leo_span/source_map.rs.html
@@ -1,4 +1,5 @@
-source_map.rs - source
1
+source_map.rs - source

leo_span/
source_map.rs

+1
 2
 3
 4
@@ -444,8 +445,7 @@
 444
 445
 446
-447
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+447
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_span/span.rs.html b/src/leo_span/span.rs.html
index 2749355b6a..d1c8c573c1 100644
--- a/src/leo_span/span.rs.html
+++ b/src/leo_span/span.rs.html
@@ -1,4 +1,5 @@
-span.rs - source
1
+span.rs - source

leo_span/
span.rs

+1
 2
 3
 4
@@ -158,8 +159,7 @@
 158
 159
 160
-161
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+161
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_span/span_json.rs.html b/src/leo_span/span_json.rs.html
index e733232a5f..453eacf56c 100644
--- a/src/leo_span/span_json.rs.html
+++ b/src/leo_span/span_json.rs.html
@@ -1,4 +1,5 @@
-span_json.rs - source
1
+span_json.rs - source

leo_span/
span_json.rs

+1
 2
 3
 4
@@ -57,8 +58,7 @@
 57
 58
 59
-60
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+60
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_span/symbol.rs.html b/src/leo_span/symbol.rs.html
index 6777d04c6e..1bb8122ba5 100644
--- a/src/leo_span/symbol.rs.html
+++ b/src/leo_span/symbol.rs.html
@@ -1,4 +1,5 @@
-symbol.rs - source
1
+symbol.rs - source

leo_span/
symbol.rs

+1
 2
 3
 4
@@ -452,8 +453,7 @@
 452
 453
 454
-455
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+455
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_test_framework/error.rs.html b/src/leo_test_framework/error.rs.html
index cb0a23a59d..76e0f8e339 100644
--- a/src/leo_test_framework/error.rs.html
+++ b/src/leo_test_framework/error.rs.html
@@ -1,4 +1,5 @@
-error.rs - source
1
+error.rs - source

leo_test_framework/
error.rs

+1
 2
 3
 4
@@ -134,8 +135,7 @@
 134
 135
 136
-137
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+137
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_test_framework/fetch.rs.html b/src/leo_test_framework/fetch.rs.html
index cc4001abf2..da1762e100 100644
--- a/src/leo_test_framework/fetch.rs.html
+++ b/src/leo_test_framework/fetch.rs.html
@@ -1,4 +1,5 @@
-fetch.rs - source
1
+fetch.rs - source

leo_test_framework/
fetch.rs

+1
 2
 3
 4
@@ -63,8 +64,7 @@
 63
 64
 65
-66
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+66
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_test_framework/lib.rs.html b/src/leo_test_framework/lib.rs.html
index 4f382b1364..aa3b752b75 100644
--- a/src/leo_test_framework/lib.rs.html
+++ b/src/leo_test_framework/lib.rs.html
@@ -1,4 +1,5 @@
-lib.rs - source
1
+lib.rs - source

leo_test_framework/
lib.rs

+1
 2
 3
 4
@@ -36,8 +37,7 @@
 36
 37
 38
-39
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+39
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_test_framework/output.rs.html b/src/leo_test_framework/output.rs.html
index 83b815a36e..c987b49d4d 100644
--- a/src/leo_test_framework/output.rs.html
+++ b/src/leo_test_framework/output.rs.html
@@ -1,4 +1,5 @@
-output.rs - source
1
+output.rs - source

leo_test_framework/
output.rs

+1
 2
 3
 4
@@ -22,8 +23,7 @@
 22
 23
 24
-25
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+25
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_test_framework/runner.rs.html b/src/leo_test_framework/runner.rs.html
index 3098a5fe8b..87fe8c2231 100644
--- a/src/leo_test_framework/runner.rs.html
+++ b/src/leo_test_framework/runner.rs.html
@@ -1,4 +1,5 @@
-runner.rs - source
1
+runner.rs - source

leo_test_framework/
runner.rs

+1
 2
 3
 4
@@ -301,8 +302,7 @@
 301
 302
 303
-304
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+304
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/src/leo_test_framework/test.rs.html b/src/leo_test_framework/test.rs.html
index 5c6b07ee8d..c9d6015bae 100644
--- a/src/leo_test_framework/test.rs.html
+++ b/src/leo_test_framework/test.rs.html
@@ -1,4 +1,5 @@
-test.rs - source
1
+test.rs - source

leo_test_framework/
test.rs

+1
 2
 3
 4
@@ -39,8 +40,7 @@
 39
 40
 41
-42
-
// Copyright (C) 2019-2024 Aleo Systems Inc.
+42
// Copyright (C) 2019-2024 Aleo Systems Inc.
 // This file is part of the Leo library.
 
 // The Leo library is free software: you can redistribute it and/or modify
diff --git a/static.files/main-921df33f47b8780c.js b/static.files/main-921df33f47b8780c.js
deleted file mode 100644
index c315554888..0000000000
--- a/static.files/main-921df33f47b8780c.js
+++ /dev/null
@@ -1,11 +0,0 @@
-"use strict";window.RUSTDOC_TOOLTIP_HOVER_MS=300;window.RUSTDOC_TOOLTIP_HOVER_EXIT_MS=450;function resourcePath(basename,extension){return getVar("root-path")+basename+getVar("resource-suffix")+extension}function hideMain(){addClass(document.getElementById(MAIN_ID),"hidden")}function showMain(){removeClass(document.getElementById(MAIN_ID),"hidden")}function blurHandler(event,parentElem,hideCallback){if(!parentElem.contains(document.activeElement)&&!parentElem.contains(event.relatedTarget)){hideCallback()}}window.rootPath=getVar("root-path");window.currentCrate=getVar("current-crate");function setMobileTopbar(){const mobileTopbar=document.querySelector(".mobile-topbar");const locationTitle=document.querySelector(".sidebar h2.location");if(mobileTopbar){const mobileTitle=document.createElement("h2");mobileTitle.className="location";if(hasClass(document.querySelector(".rustdoc"),"crate")){mobileTitle.innerHTML=`Crate ${window.currentCrate}`}else if(locationTitle){mobileTitle.innerHTML=locationTitle.innerHTML}mobileTopbar.appendChild(mobileTitle)}}function getVirtualKey(ev){if("key"in ev&&typeof ev.key!=="undefined"){return ev.key}const c=ev.charCode||ev.keyCode;if(c===27){return"Escape"}return String.fromCharCode(c)}const MAIN_ID="main-content";const SETTINGS_BUTTON_ID="settings-menu";const ALTERNATIVE_DISPLAY_ID="alternative-display";const NOT_DISPLAYED_ID="not-displayed";const HELP_BUTTON_ID="help-button";function getSettingsButton(){return document.getElementById(SETTINGS_BUTTON_ID)}function getHelpButton(){return document.getElementById(HELP_BUTTON_ID)}function getNakedUrl(){return window.location.href.split("?")[0].split("#")[0]}function insertAfter(newNode,referenceNode){referenceNode.parentNode.insertBefore(newNode,referenceNode.nextSibling)}function getOrCreateSection(id,classes){let el=document.getElementById(id);if(!el){el=document.createElement("section");el.id=id;el.className=classes;insertAfter(el,document.getElementById(MAIN_ID))}return el}function getAlternativeDisplayElem(){return getOrCreateSection(ALTERNATIVE_DISPLAY_ID,"content hidden")}function getNotDisplayedElem(){return getOrCreateSection(NOT_DISPLAYED_ID,"hidden")}function switchDisplayedElement(elemToDisplay){const el=getAlternativeDisplayElem();if(el.children.length>0){getNotDisplayedElem().appendChild(el.firstElementChild)}if(elemToDisplay===null){addClass(el,"hidden");showMain();return}el.appendChild(elemToDisplay);hideMain();removeClass(el,"hidden")}function browserSupportsHistoryApi(){return window.history&&typeof window.history.pushState==="function"}function preLoadCss(cssUrl){const link=document.createElement("link");link.href=cssUrl;link.rel="preload";link.as="style";document.getElementsByTagName("head")[0].appendChild(link)}(function(){const isHelpPage=window.location.pathname.endsWith("/help.html");function loadScript(url,errorCallback){const script=document.createElement("script");script.src=url;if(errorCallback!==undefined){script.onerror=errorCallback}document.head.append(script)}getSettingsButton().onclick=event=>{if(event.ctrlKey||event.altKey||event.metaKey){return}window.hideAllModals(false);addClass(getSettingsButton(),"rotate");event.preventDefault();loadScript(getVar("static-root-path")+getVar("settings-js"));setTimeout(()=>{const themes=getVar("themes").split(",");for(const theme of themes){if(theme!==""){preLoadCss(getVar("root-path")+theme+".css")}}},0)};window.searchState={loadingText:"Loading search results...",input:document.getElementsByClassName("search-input")[0],outputElement:()=>{let el=document.getElementById("search");if(!el){el=document.createElement("section");el.id="search";getNotDisplayedElem().appendChild(el)}return el},title:document.title,titleBeforeSearch:document.title,timeout:null,currentTab:0,focusedByTab:[null,null,null],clearInputTimeout:()=>{if(searchState.timeout!==null){clearTimeout(searchState.timeout);searchState.timeout=null}},isDisplayed:()=>searchState.outputElement().parentElement.id===ALTERNATIVE_DISPLAY_ID,focus:()=>{searchState.input.focus()},defocus:()=>{searchState.input.blur()},showResults:search=>{if(search===null||typeof search==="undefined"){search=searchState.outputElement()}switchDisplayedElement(search);searchState.mouseMovedAfterSearch=false;document.title=searchState.title},removeQueryParameters:()=>{document.title=searchState.titleBeforeSearch;if(browserSupportsHistoryApi()){history.replaceState(null,"",getNakedUrl()+window.location.hash)}},hideResults:()=>{switchDisplayedElement(null);searchState.removeQueryParameters()},getQueryStringParams:()=>{const params={};window.location.search.substring(1).split("&").map(s=>{const pair=s.split("=").map(x=>x.replace(/\+/g," "));params[decodeURIComponent(pair[0])]=typeof pair[1]==="undefined"?null:decodeURIComponent(pair[1])});return params},setup:()=>{const search_input=searchState.input;if(!searchState.input){return}let searchLoaded=false;function sendSearchForm(){document.getElementsByClassName("search-form")[0].submit()}function loadSearch(){if(!searchLoaded){searchLoaded=true;loadScript(getVar("static-root-path")+getVar("search-js"),sendSearchForm);loadScript(resourcePath("search-index",".js"),sendSearchForm)}}search_input.addEventListener("focus",()=>{search_input.origPlaceholder=search_input.placeholder;search_input.placeholder="Type your search here.";loadSearch()});if(search_input.value!==""){loadSearch()}const params=searchState.getQueryStringParams();if(params.search!==undefined){searchState.setLoadingSearch();loadSearch()}},setLoadingSearch:()=>{const search=searchState.outputElement();search.innerHTML="

"+searchState.loadingText+"

";searchState.showResults(search)},descShards:new Map(),loadDesc:async function({descShard,descIndex}){if(descShard.promise===null){descShard.promise=new Promise((resolve,reject)=>{descShard.resolve=resolve;const ds=descShard;const fname=`${ds.crate}-desc-${ds.shard}-`;const url=resourcePath(`search.desc/${descShard.crate}/${fname}`,".js",);loadScript(url,reject)})}const list=await descShard.promise;return list[descIndex]},loadedDescShard:function(crate,shard,data){this.descShards.get(crate)[shard].resolve(data.split("\n"))},};const toggleAllDocsId="toggle-all-docs";let savedHash="";function handleHashes(ev){if(ev!==null&&searchState.isDisplayed()&&ev.newURL){switchDisplayedElement(null);const hash=ev.newURL.slice(ev.newURL.indexOf("#")+1);if(browserSupportsHistoryApi()){history.replaceState(null,"",getNakedUrl()+window.location.search+"#"+hash)}const elem=document.getElementById(hash);if(elem){elem.scrollIntoView()}}const pageId=window.location.hash.replace(/^#/,"");if(savedHash!==pageId){savedHash=pageId;if(pageId!==""){expandSection(pageId)}}if(savedHash.startsWith("impl-")){const splitAt=savedHash.indexOf("/");if(splitAt!==-1){const implId=savedHash.slice(0,splitAt);const assocId=savedHash.slice(splitAt+1);const implElems=document.querySelectorAll(`details > summary > section[id^="${implId}"]`,);onEachLazy(implElems,implElem=>{const numbered=/^(.+?)-([0-9]+)$/.exec(implElem.id);if(implElem.id!==implId&&(!numbered||numbered[1]!==implId)){return false}return onEachLazy(implElem.parentElement.parentElement.querySelectorAll(`[id^="${assocId}"]`),item=>{const numbered=/^(.+?)-([0-9]+)$/.exec(item.id);if(item.id===assocId||(numbered&&numbered[1]===assocId)){openParentDetails(item);item.scrollIntoView();setTimeout(()=>{window.location.replace("#"+item.id)},0);return true}},)})}}}function onHashChange(ev){hideSidebar();handleHashes(ev)}function openParentDetails(elem){while(elem){if(elem.tagName==="DETAILS"){elem.open=true}elem=elem.parentNode}}function expandSection(id){openParentDetails(document.getElementById(id))}function handleEscape(ev){searchState.clearInputTimeout();searchState.hideResults();ev.preventDefault();searchState.defocus();window.hideAllModals(true)}function handleShortcut(ev){const disableShortcuts=getSettingValue("disable-shortcuts")==="true";if(ev.ctrlKey||ev.altKey||ev.metaKey||disableShortcuts){return}if(document.activeElement.tagName==="INPUT"&&document.activeElement.type!=="checkbox"&&document.activeElement.type!=="radio"){switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break}}else{switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break;case"s":case"S":case"/":ev.preventDefault();searchState.focus();break;case"+":ev.preventDefault();expandAllDocs();break;case"-":ev.preventDefault();collapseAllDocs();break;case"?":showHelp();break;default:break}}}document.addEventListener("keypress",handleShortcut);document.addEventListener("keydown",handleShortcut);function addSidebarItems(){if(!window.SIDEBAR_ITEMS){return}const sidebar=document.getElementsByClassName("sidebar-elems")[0];function block(shortty,id,longty){const filtered=window.SIDEBAR_ITEMS[shortty];if(!filtered){return}const modpath=hasClass(document.querySelector(".rustdoc"),"mod")?"../":"";const h3=document.createElement("h3");h3.innerHTML=`${longty}`;const ul=document.createElement("ul");ul.className="block "+shortty;for(const name of filtered){let path;if(shortty==="mod"){path=`${modpath}${name}/index.html`}else{path=`${modpath}${shortty}.${name}.html`}let current_page=document.location.href.toString();if(current_page.endsWith("/")){current_page+="index.html"}const link=document.createElement("a");link.href=path;link.textContent=name;const li=document.createElement("li");if(link.href===current_page){li.classList.add("current")}li.appendChild(link);ul.appendChild(li)}sidebar.appendChild(h3);sidebar.appendChild(ul)}if(sidebar){block("primitive","primitives","Primitive Types");block("mod","modules","Modules");block("macro","macros","Macros");block("struct","structs","Structs");block("enum","enums","Enums");block("constant","constants","Constants");block("static","static","Statics");block("trait","traits","Traits");block("fn","functions","Functions");block("type","types","Type Aliases");block("union","unions","Unions");block("foreigntype","foreign-types","Foreign Types");block("keyword","keywords","Keywords");block("attr","attributes","Attribute Macros");block("derive","derives","Derive Macros");block("traitalias","trait-aliases","Trait Aliases")}}window.register_implementors=imp=>{const implementors=document.getElementById("implementors-list");const synthetic_implementors=document.getElementById("synthetic-implementors-list");const inlined_types=new Set();const TEXT_IDX=0;const SYNTHETIC_IDX=1;const TYPES_IDX=2;if(synthetic_implementors){onEachLazy(synthetic_implementors.getElementsByClassName("impl"),el=>{const aliases=el.getAttribute("data-aliases");if(!aliases){return}aliases.split(",").forEach(alias=>{inlined_types.add(alias)})})}let currentNbImpls=implementors.getElementsByClassName("impl").length;const traitName=document.querySelector(".main-heading h1 > .trait").textContent;const baseIdName="impl-"+traitName+"-";const libs=Object.getOwnPropertyNames(imp);const script=document.querySelector("script[data-ignore-extern-crates]");const ignoreExternCrates=new Set((script?script.getAttribute("data-ignore-extern-crates"):"").split(","),);for(const lib of libs){if(lib===window.currentCrate||ignoreExternCrates.has(lib)){continue}const structs=imp[lib];struct_loop:for(const struct of structs){const list=struct[SYNTHETIC_IDX]?synthetic_implementors:implementors;if(struct[SYNTHETIC_IDX]){for(const struct_type of struct[TYPES_IDX]){if(inlined_types.has(struct_type)){continue struct_loop}inlined_types.add(struct_type)}}const code=document.createElement("h3");code.innerHTML=struct[TEXT_IDX];addClass(code,"code-header");onEachLazy(code.getElementsByTagName("a"),elem=>{const href=elem.getAttribute("href");if(href&&!href.startsWith("#")&&!/^(?:[a-z+]+:)?\/\//.test(href)){elem.setAttribute("href",window.rootPath+href)}});const currentId=baseIdName+currentNbImpls;const anchor=document.createElement("a");anchor.href="#"+currentId;addClass(anchor,"anchor");const display=document.createElement("div");display.id=currentId;addClass(display,"impl");display.appendChild(anchor);display.appendChild(code);list.appendChild(display);currentNbImpls+=1}}};if(window.pending_implementors){window.register_implementors(window.pending_implementors)}window.register_type_impls=imp=>{if(!imp||!imp[window.currentCrate]){return}window.pending_type_impls=null;const idMap=new Map();let implementations=document.getElementById("implementations-list");let trait_implementations=document.getElementById("trait-implementations-list");let trait_implementations_header=document.getElementById("trait-implementations");const script=document.querySelector("script[data-self-path]");const selfPath=script?script.getAttribute("data-self-path"):null;const mainContent=document.querySelector("#main-content");const sidebarSection=document.querySelector(".sidebar section");let methods=document.querySelector(".sidebar .block.method");let associatedTypes=document.querySelector(".sidebar .block.associatedtype");let associatedConstants=document.querySelector(".sidebar .block.associatedconstant");let sidebarTraitList=document.querySelector(".sidebar .block.trait-implementation");for(const impList of imp[window.currentCrate]){const types=impList.slice(2);const text=impList[0];const isTrait=impList[1]!==0;const traitName=impList[1];if(types.indexOf(selfPath)===-1){continue}let outputList=isTrait?trait_implementations:implementations;if(outputList===null){const outputListName=isTrait?"Trait Implementations":"Implementations";const outputListId=isTrait?"trait-implementations-list":"implementations-list";const outputListHeaderId=isTrait?"trait-implementations":"implementations";const outputListHeader=document.createElement("h2");outputListHeader.id=outputListHeaderId;outputListHeader.innerText=outputListName;outputList=document.createElement("div");outputList.id=outputListId;if(isTrait){const link=document.createElement("a");link.href=`#${outputListHeaderId}`;link.innerText="Trait Implementations";const h=document.createElement("h3");h.appendChild(link);trait_implementations=outputList;trait_implementations_header=outputListHeader;sidebarSection.appendChild(h);sidebarTraitList=document.createElement("ul");sidebarTraitList.className="block trait-implementation";sidebarSection.appendChild(sidebarTraitList);mainContent.appendChild(outputListHeader);mainContent.appendChild(outputList)}else{implementations=outputList;if(trait_implementations){mainContent.insertBefore(outputListHeader,trait_implementations_header);mainContent.insertBefore(outputList,trait_implementations_header)}else{const mainContent=document.querySelector("#main-content");mainContent.appendChild(outputListHeader);mainContent.appendChild(outputList)}}}const template=document.createElement("template");template.innerHTML=text;onEachLazy(template.content.querySelectorAll("a"),elem=>{const href=elem.getAttribute("href");if(href&&!href.startsWith("#")&&!/^(?:[a-z+]+:)?\/\//.test(href)){elem.setAttribute("href",window.rootPath+href)}});onEachLazy(template.content.querySelectorAll("[id]"),el=>{let i=0;if(idMap.has(el.id)){i=idMap.get(el.id)}else if(document.getElementById(el.id)){i=1;while(document.getElementById(`${el.id}-${2 * i}`)){i=2*i}while(document.getElementById(`${el.id}-${i}`)){i+=1}}if(i!==0){const oldHref=`#${el.id}`;const newHref=`#${el.id}-${i}`;el.id=`${el.id}-${i}`;onEachLazy(template.content.querySelectorAll("a[href]"),link=>{if(link.getAttribute("href")===oldHref){link.href=newHref}})}idMap.set(el.id,i+1)});const templateAssocItems=template.content.querySelectorAll("section.tymethod, "+"section.method, section.associatedtype, section.associatedconstant");if(isTrait){const li=document.createElement("li");const a=document.createElement("a");a.href=`#${template.content.querySelector(".impl").id}`;a.textContent=traitName;li.appendChild(a);sidebarTraitList.append(li)}else{onEachLazy(templateAssocItems,item=>{let block=hasClass(item,"associatedtype")?associatedTypes:(hasClass(item,"associatedconstant")?associatedConstants:(methods));if(!block){const blockTitle=hasClass(item,"associatedtype")?"Associated Types":(hasClass(item,"associatedconstant")?"Associated Constants":("Methods"));const blockClass=hasClass(item,"associatedtype")?"associatedtype":(hasClass(item,"associatedconstant")?"associatedconstant":("method"));const blockHeader=document.createElement("h3");const blockLink=document.createElement("a");blockLink.href="#implementations";blockLink.innerText=blockTitle;blockHeader.appendChild(blockLink);block=document.createElement("ul");block.className=`block ${blockClass}`;const insertionReference=methods||sidebarTraitList;if(insertionReference){const insertionReferenceH=insertionReference.previousElementSibling;sidebarSection.insertBefore(blockHeader,insertionReferenceH);sidebarSection.insertBefore(block,insertionReferenceH)}else{sidebarSection.appendChild(blockHeader);sidebarSection.appendChild(block)}if(hasClass(item,"associatedtype")){associatedTypes=block}else if(hasClass(item,"associatedconstant")){associatedConstants=block}else{methods=block}}const li=document.createElement("li");const a=document.createElement("a");a.innerText=item.id.split("-")[0].split(".")[1];a.href=`#${item.id}`;li.appendChild(a);block.appendChild(li)})}outputList.appendChild(template.content)}for(const list of[methods,associatedTypes,associatedConstants,sidebarTraitList]){if(!list){continue}const newChildren=Array.prototype.slice.call(list.children);newChildren.sort((a,b)=>{const aI=a.innerText;const bI=b.innerText;return aIbI?1:0});list.replaceChildren(...newChildren)}};if(window.pending_type_impls){window.register_type_impls(window.pending_type_impls)}function addSidebarCrates(){if(!window.ALL_CRATES){return}const sidebarElems=document.getElementsByClassName("sidebar-elems")[0];if(!sidebarElems){return}const h3=document.createElement("h3");h3.innerHTML="Crates";const ul=document.createElement("ul");ul.className="block crate";for(const crate of window.ALL_CRATES){const link=document.createElement("a");link.href=window.rootPath+crate+"/index.html";link.textContent=crate;const li=document.createElement("li");if(window.rootPath!=="./"&&crate===window.currentCrate){li.className="current"}li.appendChild(link);ul.appendChild(li)}sidebarElems.appendChild(h3);sidebarElems.appendChild(ul)}function expandAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);removeClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hasClass(e,"type-contents-toggle")&&!hasClass(e,"more-examples-toggle")){e.open=true}});innerToggle.title="collapse all docs";innerToggle.children[0].innerText="\u2212"}function collapseAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);addClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(e.parentNode.id!=="implementations-list"||(!hasClass(e,"implementors-toggle")&&!hasClass(e,"type-contents-toggle"))){e.open=false}});innerToggle.title="expand all docs";innerToggle.children[0].innerText="+"}function toggleAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);if(!innerToggle){return}if(hasClass(innerToggle,"will-expand")){expandAllDocs()}else{collapseAllDocs()}}(function(){const toggles=document.getElementById(toggleAllDocsId);if(toggles){toggles.onclick=toggleAllDocs}const hideMethodDocs=getSettingValue("auto-hide-method-docs")==="true";const hideImplementations=getSettingValue("auto-hide-trait-implementations")==="true";const hideLargeItemContents=getSettingValue("auto-hide-large-items")!=="false";function setImplementorsTogglesOpen(id,open){const list=document.getElementById(id);if(list!==null){onEachLazy(list.getElementsByClassName("implementors-toggle"),e=>{e.open=open})}}if(hideImplementations){setImplementorsTogglesOpen("trait-implementations-list",false);setImplementorsTogglesOpen("blanket-implementations-list",false)}onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hideLargeItemContents&&hasClass(e,"type-contents-toggle")){e.open=true}if(hideMethodDocs&&hasClass(e,"method-toggle")){e.open=false}})}());window.rustdoc_add_line_numbers_to_examples=()=>{onEachLazy(document.getElementsByClassName("rust-example-rendered"),x=>{const parent=x.parentNode;const line_numbers=parent.querySelectorAll(".example-line-numbers");if(line_numbers.length>0){return}const count=x.textContent.split("\n").length;const elems=[];for(let i=0;i{onEachLazy(document.getElementsByClassName("rust-example-rendered"),x=>{const parent=x.parentNode;const line_numbers=parent.querySelectorAll(".example-line-numbers");for(const node of line_numbers){parent.removeChild(node)}})};if(getSettingValue("line-numbers")==="true"){window.rustdoc_add_line_numbers_to_examples()}function showSidebar(){window.hideAllModals(false);const sidebar=document.getElementsByClassName("sidebar")[0];addClass(sidebar,"shown")}function hideSidebar(){const sidebar=document.getElementsByClassName("sidebar")[0];removeClass(sidebar,"shown")}window.addEventListener("resize",()=>{if(window.CURRENT_TOOLTIP_ELEMENT){const base=window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE;const force_visible=base.TOOLTIP_FORCE_VISIBLE;hideTooltip(false);if(force_visible){showTooltip(base);base.TOOLTIP_FORCE_VISIBLE=true}}});const mainElem=document.getElementById(MAIN_ID);if(mainElem){mainElem.addEventListener("click",hideSidebar)}onEachLazy(document.querySelectorAll("a[href^='#']"),el=>{el.addEventListener("click",()=>{expandSection(el.hash.slice(1));hideSidebar()})});onEachLazy(document.querySelectorAll(".toggle > summary:not(.hideme)"),el=>{el.addEventListener("click",e=>{if(e.target.tagName!=="SUMMARY"&&e.target.tagName!=="A"){e.preventDefault()}})});function showTooltip(e){const notable_ty=e.getAttribute("data-notable-ty");if(!window.NOTABLE_TRAITS&¬able_ty){const data=document.getElementById("notable-traits-data");if(data){window.NOTABLE_TRAITS=JSON.parse(data.innerText)}else{throw new Error("showTooltip() called with notable without any notable traits!")}}if(window.CURRENT_TOOLTIP_ELEMENT&&window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE===e){clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);return}window.hideAllModals(false);const wrapper=document.createElement("div");if(notable_ty){wrapper.innerHTML="
"+window.NOTABLE_TRAITS[notable_ty]+"
"}else{if(e.getAttribute("title")!==null){e.setAttribute("data-title",e.getAttribute("title"));e.removeAttribute("title")}if(e.getAttribute("data-title")!==null){const titleContent=document.createElement("div");titleContent.className="content";titleContent.appendChild(document.createTextNode(e.getAttribute("data-title")));wrapper.appendChild(titleContent)}}wrapper.className="tooltip popover";const focusCatcher=document.createElement("div");focusCatcher.setAttribute("tabindex","0");focusCatcher.onfocus=hideTooltip;wrapper.appendChild(focusCatcher);const pos=e.getBoundingClientRect();wrapper.style.top=(pos.top+window.scrollY+pos.height)+"px";wrapper.style.left=0;wrapper.style.right="auto";wrapper.style.visibility="hidden";document.body.appendChild(wrapper);const wrapperPos=wrapper.getBoundingClientRect();const finalPos=pos.left+window.scrollX-wrapperPos.width+24;if(finalPos>0){wrapper.style.left=finalPos+"px"}else{wrapper.style.setProperty("--popover-arrow-offset",(wrapperPos.right-pos.right+4)+"px",)}wrapper.style.visibility="";window.CURRENT_TOOLTIP_ELEMENT=wrapper;window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE=e;clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);wrapper.onpointerenter=ev=>{if(ev.pointerType!=="mouse"){return}clearTooltipHoverTimeout(e)};wrapper.onpointerleave=ev=>{if(ev.pointerType!=="mouse"){return}if(!e.TOOLTIP_FORCE_VISIBLE&&!e.contains(ev.relatedTarget)){setTooltipHoverTimeout(e,false);addClass(wrapper,"fade-out")}}}function setTooltipHoverTimeout(element,show){clearTooltipHoverTimeout(element);if(!show&&!window.CURRENT_TOOLTIP_ELEMENT){return}if(show&&window.CURRENT_TOOLTIP_ELEMENT){return}if(window.CURRENT_TOOLTIP_ELEMENT&&window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE!==element){return}element.TOOLTIP_HOVER_TIMEOUT=setTimeout(()=>{if(show){showTooltip(element)}else if(!element.TOOLTIP_FORCE_VISIBLE){hideTooltip(false)}},show?window.RUSTDOC_TOOLTIP_HOVER_MS:window.RUSTDOC_TOOLTIP_HOVER_EXIT_MS)}function clearTooltipHoverTimeout(element){if(element.TOOLTIP_HOVER_TIMEOUT!==undefined){removeClass(window.CURRENT_TOOLTIP_ELEMENT,"fade-out");clearTimeout(element.TOOLTIP_HOVER_TIMEOUT);delete element.TOOLTIP_HOVER_TIMEOUT}}function tooltipBlurHandler(event){if(window.CURRENT_TOOLTIP_ELEMENT&&!window.CURRENT_TOOLTIP_ELEMENT.contains(document.activeElement)&&!window.CURRENT_TOOLTIP_ELEMENT.contains(event.relatedTarget)&&!window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.contains(document.activeElement)&&!window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.contains(event.relatedTarget)){setTimeout(()=>hideTooltip(false),0)}}function hideTooltip(focus){if(window.CURRENT_TOOLTIP_ELEMENT){if(window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.TOOLTIP_FORCE_VISIBLE){if(focus){window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.focus()}window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.TOOLTIP_FORCE_VISIBLE=false}document.body.removeChild(window.CURRENT_TOOLTIP_ELEMENT);clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);window.CURRENT_TOOLTIP_ELEMENT=null}}onEachLazy(document.getElementsByClassName("tooltip"),e=>{e.onclick=()=>{e.TOOLTIP_FORCE_VISIBLE=e.TOOLTIP_FORCE_VISIBLE?false:true;if(window.CURRENT_TOOLTIP_ELEMENT&&!e.TOOLTIP_FORCE_VISIBLE){hideTooltip(true)}else{showTooltip(e);window.CURRENT_TOOLTIP_ELEMENT.setAttribute("tabindex","0");window.CURRENT_TOOLTIP_ELEMENT.focus();window.CURRENT_TOOLTIP_ELEMENT.onblur=tooltipBlurHandler}return false};e.onpointerenter=ev=>{if(ev.pointerType!=="mouse"){return}setTooltipHoverTimeout(e,true)};e.onpointermove=ev=>{if(ev.pointerType!=="mouse"){return}setTooltipHoverTimeout(e,true)};e.onpointerleave=ev=>{if(ev.pointerType!=="mouse"){return}if(!e.TOOLTIP_FORCE_VISIBLE&&window.CURRENT_TOOLTIP_ELEMENT&&!window.CURRENT_TOOLTIP_ELEMENT.contains(ev.relatedTarget)){setTooltipHoverTimeout(e,false);addClass(window.CURRENT_TOOLTIP_ELEMENT,"fade-out")}}});const sidebar_menu_toggle=document.getElementsByClassName("sidebar-menu-toggle")[0];if(sidebar_menu_toggle){sidebar_menu_toggle.addEventListener("click",()=>{const sidebar=document.getElementsByClassName("sidebar")[0];if(!hasClass(sidebar,"shown")){showSidebar()}else{hideSidebar()}})}function helpBlurHandler(event){blurHandler(event,getHelpButton(),window.hidePopoverMenus)}function buildHelpMenu(){const book_info=document.createElement("span");const channel=getVar("channel");book_info.className="top";book_info.innerHTML=`You can find more information in \ -the rustdoc book.`;const shortcuts=[["?","Show this help dialog"],["S / /","Focus the search field"],["↑","Move up in search results"],["↓","Move down in search results"],["← / →","Switch result tab (when results focused)"],["⏎","Go to active search result"],["+","Expand all sections"],["-","Collapse all sections"],].map(x=>"
"+x[0].split(" ").map((y,index)=>((index&1)===0?""+y+"":" "+y+" ")).join("")+"
"+x[1]+"
").join("");const div_shortcuts=document.createElement("div");addClass(div_shortcuts,"shortcuts");div_shortcuts.innerHTML="

Keyboard Shortcuts

"+shortcuts+"
";const infos=[`For a full list of all search features, take a look here.`,"Prefix searches with a type followed by a colon (e.g., fn:) to \ - restrict the search to a given item kind.","Accepted kinds are: fn, mod, struct, \ - enum, trait, type, macro, \ - and const.","Search functions by type signature (e.g., vec -> usize or \ - -> vec or String, enum:Cow -> bool)","You can look for items with an exact name by putting double quotes around \ - your request: \"string\"","Look for functions that accept or return \ - slices and \ - arrays by writing \ - square brackets (e.g., -> [u8] or [] -> Option)","Look for items inside another one by searching for a path: vec::Vec",].map(x=>"

"+x+"

").join("");const div_infos=document.createElement("div");addClass(div_infos,"infos");div_infos.innerHTML="

Search Tricks

"+infos;const rustdoc_version=document.createElement("span");rustdoc_version.className="bottom";const rustdoc_version_code=document.createElement("code");rustdoc_version_code.innerText="rustdoc "+getVar("rustdoc-version");rustdoc_version.appendChild(rustdoc_version_code);const container=document.createElement("div");if(!isHelpPage){container.className="popover"}container.id="help";container.style.display="none";const side_by_side=document.createElement("div");side_by_side.className="side-by-side";side_by_side.appendChild(div_shortcuts);side_by_side.appendChild(div_infos);container.appendChild(book_info);container.appendChild(side_by_side);container.appendChild(rustdoc_version);if(isHelpPage){const help_section=document.createElement("section");help_section.appendChild(container);document.getElementById("main-content").appendChild(help_section);container.style.display="block"}else{const help_button=getHelpButton();help_button.appendChild(container);container.onblur=helpBlurHandler;help_button.onblur=helpBlurHandler;help_button.children[0].onblur=helpBlurHandler}return container}window.hideAllModals=switchFocus=>{hideSidebar();window.hidePopoverMenus();hideTooltip(switchFocus)};window.hidePopoverMenus=()=>{onEachLazy(document.querySelectorAll(".search-form .popover"),elem=>{elem.style.display="none"})};function getHelpMenu(buildNeeded){let menu=getHelpButton().querySelector(".popover");if(!menu&&buildNeeded){menu=buildHelpMenu()}return menu}function showHelp(){getHelpButton().querySelector("a").focus();const menu=getHelpMenu(true);if(menu.style.display==="none"){window.hideAllModals();menu.style.display=""}}if(isHelpPage){showHelp();document.querySelector(`#${HELP_BUTTON_ID} > a`).addEventListener("click",event=>{const target=event.target;if(target.tagName!=="A"||target.parentElement.id!==HELP_BUTTON_ID||event.ctrlKey||event.altKey||event.metaKey){return}event.preventDefault()})}else{document.querySelector(`#${HELP_BUTTON_ID} > a`).addEventListener("click",event=>{const target=event.target;if(target.tagName!=="A"||target.parentElement.id!==HELP_BUTTON_ID||event.ctrlKey||event.altKey||event.metaKey){return}event.preventDefault();const menu=getHelpMenu(true);const shouldShowHelp=menu.style.display==="none";if(shouldShowHelp){showHelp()}else{window.hidePopoverMenus()}})}setMobileTopbar();addSidebarItems();addSidebarCrates();onHashChange(null);window.addEventListener("hashchange",onHashChange);searchState.setup()}());(function(){const SIDEBAR_MIN=100;const SIDEBAR_MAX=500;const RUSTDOC_MOBILE_BREAKPOINT=700;const BODY_MIN=400;const SIDEBAR_VANISH_THRESHOLD=SIDEBAR_MIN/2;const sidebarButton=document.getElementById("sidebar-button");if(sidebarButton){sidebarButton.addEventListener("click",e=>{removeClass(document.documentElement,"hide-sidebar");updateLocalStorage("hide-sidebar","false");if(document.querySelector(".rustdoc.src")){window.rustdocToggleSrcSidebar()}e.preventDefault()})}let currentPointerId=null;let desiredSidebarSize=null;let pendingSidebarResizingFrame=false;const resizer=document.querySelector(".sidebar-resizer");const sidebar=document.querySelector(".sidebar");if(!resizer||!sidebar){return}const isSrcPage=hasClass(document.body,"src");function hideSidebar(){if(isSrcPage){window.rustdocCloseSourceSidebar();updateLocalStorage("src-sidebar-width",null);document.documentElement.style.removeProperty("--src-sidebar-width");sidebar.style.removeProperty("--src-sidebar-width");resizer.style.removeProperty("--src-sidebar-width")}else{addClass(document.documentElement,"hide-sidebar");updateLocalStorage("hide-sidebar","true");updateLocalStorage("desktop-sidebar-width",null);document.documentElement.style.removeProperty("--desktop-sidebar-width");sidebar.style.removeProperty("--desktop-sidebar-width");resizer.style.removeProperty("--desktop-sidebar-width")}}function showSidebar(){if(isSrcPage){window.rustdocShowSourceSidebar()}else{removeClass(document.documentElement,"hide-sidebar");updateLocalStorage("hide-sidebar","false")}}function changeSidebarSize(size){if(isSrcPage){updateLocalStorage("src-sidebar-width",size);sidebar.style.setProperty("--src-sidebar-width",size+"px");resizer.style.setProperty("--src-sidebar-width",size+"px")}else{updateLocalStorage("desktop-sidebar-width",size);sidebar.style.setProperty("--desktop-sidebar-width",size+"px");resizer.style.setProperty("--desktop-sidebar-width",size+"px")}}function isSidebarHidden(){return isSrcPage?!hasClass(document.documentElement,"src-sidebar-expanded"):hasClass(document.documentElement,"hide-sidebar")}function resize(e){if(currentPointerId===null||currentPointerId!==e.pointerId){return}e.preventDefault();const pos=e.clientX-3;if(pos=SIDEBAR_MIN){if(isSidebarHidden()){showSidebar()}const constrainedPos=Math.min(pos,window.innerWidth-BODY_MIN,SIDEBAR_MAX);changeSidebarSize(constrainedPos);desiredSidebarSize=constrainedPos;if(pendingSidebarResizingFrame!==false){clearTimeout(pendingSidebarResizingFrame)}pendingSidebarResizingFrame=setTimeout(()=>{if(currentPointerId===null||pendingSidebarResizingFrame===false){return}pendingSidebarResizingFrame=false;document.documentElement.style.setProperty("--resizing-sidebar-width",desiredSidebarSize+"px",)},100)}}window.addEventListener("resize",()=>{if(window.innerWidth=(window.innerWidth-BODY_MIN)){changeSidebarSize(window.innerWidth-BODY_MIN)}else if(desiredSidebarSize!==null&&desiredSidebarSize>SIDEBAR_MIN){changeSidebarSize(desiredSidebarSize)}});function stopResize(e){if(currentPointerId===null){return}if(e){e.preventDefault()}desiredSidebarSize=sidebar.getBoundingClientRect().width;removeClass(resizer,"active");window.removeEventListener("pointermove",resize,false);window.removeEventListener("pointerup",stopResize,false);removeClass(document.documentElement,"sidebar-resizing");document.documentElement.style.removeProperty("--resizing-sidebar-width");if(resizer.releasePointerCapture){resizer.releasePointerCapture(currentPointerId);currentPointerId=null}}function initResize(e){if(currentPointerId!==null||e.altKey||e.ctrlKey||e.metaKey||e.button!==0){return}if(resizer.setPointerCapture){resizer.setPointerCapture(e.pointerId);if(!resizer.hasPointerCapture(e.pointerId)){resizer.releasePointerCapture(e.pointerId);return}currentPointerId=e.pointerId}window.hideAllModals(false);e.preventDefault();window.addEventListener("pointermove",resize,false);window.addEventListener("pointercancel",stopResize,false);window.addEventListener("pointerup",stopResize,false);addClass(resizer,"active");addClass(document.documentElement,"sidebar-resizing");const pos=e.clientX-sidebar.offsetLeft-3;document.documentElement.style.setProperty("--resizing-sidebar-width",pos+"px");desiredSidebarSize=null}resizer.addEventListener("pointerdown",initResize,false)}());(function(){function copyContentToClipboard(content){const el=document.createElement("textarea");el.value=content;el.setAttribute("readonly","");el.style.position="absolute";el.style.left="-9999px";document.body.appendChild(el);el.select();document.execCommand("copy");document.body.removeChild(el)}function copyButtonAnimation(button){button.classList.add("clicked");if(button.reset_button_timeout!==undefined){window.clearTimeout(button.reset_button_timeout)}button.reset_button_timeout=window.setTimeout(()=>{button.reset_button_timeout=undefined;button.classList.remove("clicked")},1000)}const but=document.getElementById("copy-path");if(!but){return}but.onclick=()=>{const parent=but.parentElement;const path=[];onEach(parent.childNodes,child=>{if(child.tagName==="A"){path.push(child.textContent)}});copyContentToClipboard(path.join("::"));copyButtonAnimation(but)};function copyCode(codeElem){if(!codeElem){return}copyContentToClipboard(codeElem.textContent)}function getExampleWrap(event){let elem=event.target;while(!hasClass(elem,"example-wrap")){if(elem===document.body||elem.tagName==="A"||elem.tagName==="BUTTON"||hasClass(elem,"docblock")){return null}elem=elem.parentElement}return elem}function addCopyButton(event){const elem=getExampleWrap(event);if(elem===null){return}elem.removeEventListener("mouseover",addCopyButton);const parent=document.createElement("div");parent.className="button-holder";const runButton=elem.querySelector(".test-arrow");if(runButton!==null){parent.appendChild(runButton)}elem.appendChild(parent);const copyButton=document.createElement("button");copyButton.className="copy-button";copyButton.title="Copy code to clipboard";copyButton.addEventListener("click",()=>{copyCode(elem.querySelector("pre > code"));copyButtonAnimation(copyButton)});parent.appendChild(copyButton)}function showHideCodeExampleButtons(event){const elem=getExampleWrap(event);if(elem===null){return}let buttons=elem.querySelector(".button-holder");if(buttons===null){addCopyButton(event);buttons=elem.querySelector(".button-holder");if(buttons===null){return}}buttons.classList.toggle("keep-visible")}onEachLazy(document.querySelectorAll(".docblock .example-wrap"),elem=>{elem.addEventListener("mouseover",addCopyButton);elem.addEventListener("click",showHideCodeExampleButtons)})}()) \ No newline at end of file diff --git a/static.files/main-f070b9041d14864c.js b/static.files/main-f070b9041d14864c.js new file mode 100644 index 0000000000..3d672cb6e3 --- /dev/null +++ b/static.files/main-f070b9041d14864c.js @@ -0,0 +1,11 @@ +"use strict";window.RUSTDOC_TOOLTIP_HOVER_MS=300;window.RUSTDOC_TOOLTIP_HOVER_EXIT_MS=450;function resourcePath(basename,extension){return getVar("root-path")+basename+getVar("resource-suffix")+extension}function hideMain(){addClass(document.getElementById(MAIN_ID),"hidden");const toggle=document.getElementById("toggle-all-docs");if(toggle){toggle.setAttribute("disabled","disabled")}}function showMain(){const main=document.getElementById(MAIN_ID);removeClass(main,"hidden");const mainHeading=main.querySelector(".main-heading");if(mainHeading&&searchState.rustdocToolbar){if(searchState.rustdocToolbar.parentElement){searchState.rustdocToolbar.parentElement.removeChild(searchState.rustdocToolbar)}mainHeading.appendChild(searchState.rustdocToolbar)}const toggle=document.getElementById("toggle-all-docs");if(toggle){toggle.removeAttribute("disabled")}}window.rootPath=getVar("root-path");window.currentCrate=getVar("current-crate");function setMobileTopbar(){const mobileTopbar=document.querySelector(".mobile-topbar");const locationTitle=document.querySelector(".sidebar h2.location");if(mobileTopbar){const mobileTitle=document.createElement("h2");mobileTitle.className="location";if(hasClass(document.querySelector(".rustdoc"),"crate")){mobileTitle.innerHTML=`Crate ${window.currentCrate}`}else if(locationTitle){mobileTitle.innerHTML=locationTitle.innerHTML}mobileTopbar.appendChild(mobileTitle)}}function getVirtualKey(ev){if("key"in ev&&typeof ev.key!=="undefined"){return ev.key}const c=ev.charCode||ev.keyCode;if(c===27){return"Escape"}return String.fromCharCode(c)}const MAIN_ID="main-content";const SETTINGS_BUTTON_ID="settings-menu";const ALTERNATIVE_DISPLAY_ID="alternative-display";const NOT_DISPLAYED_ID="not-displayed";const HELP_BUTTON_ID="help-button";function getSettingsButton(){return document.getElementById(SETTINGS_BUTTON_ID)}function getHelpButton(){return document.getElementById(HELP_BUTTON_ID)}function getNakedUrl(){return window.location.href.split("?")[0].split("#")[0]}function insertAfter(newNode,referenceNode){referenceNode.parentNode.insertBefore(newNode,referenceNode.nextSibling)}function getOrCreateSection(id,classes){let el=document.getElementById(id);if(!el){el=document.createElement("section");el.id=id;el.className=classes;insertAfter(el,document.getElementById(MAIN_ID))}return el}function getAlternativeDisplayElem(){return getOrCreateSection(ALTERNATIVE_DISPLAY_ID,"content hidden")}function getNotDisplayedElem(){return getOrCreateSection(NOT_DISPLAYED_ID,"hidden")}function switchDisplayedElement(elemToDisplay){const el=getAlternativeDisplayElem();if(el.children.length>0){getNotDisplayedElem().appendChild(el.firstElementChild)}if(elemToDisplay===null){addClass(el,"hidden");showMain();return}el.appendChild(elemToDisplay);hideMain();removeClass(el,"hidden");const mainHeading=elemToDisplay.querySelector(".main-heading");if(mainHeading&&searchState.rustdocToolbar){if(searchState.rustdocToolbar.parentElement){searchState.rustdocToolbar.parentElement.removeChild(searchState.rustdocToolbar)}mainHeading.appendChild(searchState.rustdocToolbar)}}function browserSupportsHistoryApi(){return window.history&&typeof window.history.pushState==="function"}function preLoadCss(cssUrl){const link=document.createElement("link");link.href=cssUrl;link.rel="preload";link.as="style";document.getElementsByTagName("head")[0].appendChild(link)}(function(){const isHelpPage=window.location.pathname.endsWith("/help.html");function loadScript(url,errorCallback){const script=document.createElement("script");script.src=url;if(errorCallback!==undefined){script.onerror=errorCallback}document.head.append(script)}if(getSettingsButton()){getSettingsButton().onclick=event=>{if(event.ctrlKey||event.altKey||event.metaKey){return}window.hideAllModals(false);addClass(getSettingsButton(),"rotate");event.preventDefault();loadScript(getVar("static-root-path")+getVar("settings-js"));setTimeout(()=>{const themes=getVar("themes").split(",");for(const theme of themes){if(theme!==""){preLoadCss(getVar("root-path")+theme+".css")}}},0)}}window.searchState={rustdocToolbar:document.querySelector("rustdoc-toolbar"),loadingText:"Loading search results...",input:document.getElementsByClassName("search-input")[0],outputElement:()=>{let el=document.getElementById("search");if(!el){el=document.createElement("section");el.id="search";getNotDisplayedElem().appendChild(el)}return el},title:document.title,titleBeforeSearch:document.title,timeout:null,currentTab:0,focusedByTab:[null,null,null],clearInputTimeout:()=>{if(searchState.timeout!==null){clearTimeout(searchState.timeout);searchState.timeout=null}},isDisplayed:()=>searchState.outputElement().parentElement.id===ALTERNATIVE_DISPLAY_ID,focus:()=>{searchState.input.focus()},defocus:()=>{searchState.input.blur()},showResults:search=>{if(search===null||typeof search==="undefined"){search=searchState.outputElement()}switchDisplayedElement(search);searchState.mouseMovedAfterSearch=false;document.title=searchState.title},removeQueryParameters:()=>{document.title=searchState.titleBeforeSearch;if(browserSupportsHistoryApi()){history.replaceState(null,"",getNakedUrl()+window.location.hash)}},hideResults:()=>{switchDisplayedElement(null);searchState.removeQueryParameters()},getQueryStringParams:()=>{const params={};window.location.search.substring(1).split("&").map(s=>{const pair=s.split("=").map(x=>x.replace(/\+/g," "));params[decodeURIComponent(pair[0])]=typeof pair[1]==="undefined"?null:decodeURIComponent(pair[1])});return params},setup:()=>{const search_input=searchState.input;if(!searchState.input){return}let searchLoaded=false;function sendSearchForm(){document.getElementsByClassName("search-form")[0].submit()}function loadSearch(){if(!searchLoaded){searchLoaded=true;loadScript(getVar("static-root-path")+getVar("search-js"),sendSearchForm);loadScript(resourcePath("search-index",".js"),sendSearchForm)}}search_input.addEventListener("focus",()=>{search_input.origPlaceholder=search_input.placeholder;search_input.placeholder="Type your search here.";loadSearch()});if(search_input.value!==""){loadSearch()}const params=searchState.getQueryStringParams();if(params.search!==undefined){searchState.setLoadingSearch();loadSearch()}},setLoadingSearch:()=>{const search=searchState.outputElement();search.innerHTML="

"+searchState.loadingText+"

";searchState.showResults(search)},descShards:new Map(),loadDesc:async function({descShard,descIndex}){if(descShard.promise===null){descShard.promise=new Promise((resolve,reject)=>{descShard.resolve=resolve;const ds=descShard;const fname=`${ds.crate}-desc-${ds.shard}-`;const url=resourcePath(`search.desc/${descShard.crate}/${fname}`,".js",);loadScript(url,reject)})}const list=await descShard.promise;return list[descIndex]},loadedDescShard:function(crate,shard,data){this.descShards.get(crate)[shard].resolve(data.split("\n"))},};const toggleAllDocsId="toggle-all-docs";let savedHash="";function handleHashes(ev){if(ev!==null&&searchState.isDisplayed()&&ev.newURL){switchDisplayedElement(null);const hash=ev.newURL.slice(ev.newURL.indexOf("#")+1);if(browserSupportsHistoryApi()){history.replaceState(null,"",getNakedUrl()+window.location.search+"#"+hash)}const elem=document.getElementById(hash);if(elem){elem.scrollIntoView()}}const pageId=window.location.hash.replace(/^#/,"");if(savedHash!==pageId){savedHash=pageId;if(pageId!==""){expandSection(pageId)}}if(savedHash.startsWith("impl-")){const splitAt=savedHash.indexOf("/");if(splitAt!==-1){const implId=savedHash.slice(0,splitAt);const assocId=savedHash.slice(splitAt+1);const implElems=document.querySelectorAll(`details > summary > section[id^="${implId}"]`,);onEachLazy(implElems,implElem=>{const numbered=/^(.+?)-([0-9]+)$/.exec(implElem.id);if(implElem.id!==implId&&(!numbered||numbered[1]!==implId)){return false}return onEachLazy(implElem.parentElement.parentElement.querySelectorAll(`[id^="${assocId}"]`),item=>{const numbered=/^(.+?)-([0-9]+)$/.exec(item.id);if(item.id===assocId||(numbered&&numbered[1]===assocId)){openParentDetails(item);item.scrollIntoView();setTimeout(()=>{window.location.replace("#"+item.id)},0);return true}},)})}}}function onHashChange(ev){hideSidebar();handleHashes(ev)}function openParentDetails(elem){while(elem){if(elem.tagName==="DETAILS"){elem.open=true}elem=elem.parentNode}}function expandSection(id){openParentDetails(document.getElementById(id))}function handleEscape(ev){searchState.clearInputTimeout();searchState.hideResults();ev.preventDefault();searchState.defocus();window.hideAllModals(true)}function handleShortcut(ev){const disableShortcuts=getSettingValue("disable-shortcuts")==="true";if(ev.ctrlKey||ev.altKey||ev.metaKey||disableShortcuts){return}if(document.activeElement.tagName==="INPUT"&&document.activeElement.type!=="checkbox"&&document.activeElement.type!=="radio"){switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break}}else{switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break;case"s":case"S":case"/":ev.preventDefault();searchState.focus();break;case"+":ev.preventDefault();expandAllDocs();break;case"-":ev.preventDefault();collapseAllDocs();break;case"?":showHelp();break;default:break}}}document.addEventListener("keypress",handleShortcut);document.addEventListener("keydown",handleShortcut);function addSidebarItems(){if(!window.SIDEBAR_ITEMS){return}const sidebar=document.getElementById("rustdoc-modnav");function block(shortty,id,longty){const filtered=window.SIDEBAR_ITEMS[shortty];if(!filtered){return}const modpath=hasClass(document.querySelector(".rustdoc"),"mod")?"../":"";const h3=document.createElement("h3");h3.innerHTML=`${longty}`;const ul=document.createElement("ul");ul.className="block "+shortty;for(const name of filtered){let path;if(shortty==="mod"){path=`${modpath}${name}/index.html`}else{path=`${modpath}${shortty}.${name}.html`}let current_page=document.location.href.toString();if(current_page.endsWith("/")){current_page+="index.html"}const link=document.createElement("a");link.href=path;link.textContent=name;const li=document.createElement("li");if(link.href===current_page){li.classList.add("current")}li.appendChild(link);ul.appendChild(li)}sidebar.appendChild(h3);sidebar.appendChild(ul)}if(sidebar){block("primitive","primitives","Primitive Types");block("mod","modules","Modules");block("macro","macros","Macros");block("struct","structs","Structs");block("enum","enums","Enums");block("constant","constants","Constants");block("static","static","Statics");block("trait","traits","Traits");block("fn","functions","Functions");block("type","types","Type Aliases");block("union","unions","Unions");block("foreigntype","foreign-types","Foreign Types");block("keyword","keywords","Keywords");block("attr","attributes","Attribute Macros");block("derive","derives","Derive Macros");block("traitalias","trait-aliases","Trait Aliases")}}window.register_implementors=imp=>{const implementors=document.getElementById("implementors-list");const synthetic_implementors=document.getElementById("synthetic-implementors-list");const inlined_types=new Set();const TEXT_IDX=0;const SYNTHETIC_IDX=1;const TYPES_IDX=2;if(synthetic_implementors){onEachLazy(synthetic_implementors.getElementsByClassName("impl"),el=>{const aliases=el.getAttribute("data-aliases");if(!aliases){return}aliases.split(",").forEach(alias=>{inlined_types.add(alias)})})}let currentNbImpls=implementors.getElementsByClassName("impl").length;const traitName=document.querySelector(".main-heading h1 > .trait").textContent;const baseIdName="impl-"+traitName+"-";const libs=Object.getOwnPropertyNames(imp);const script=document.querySelector("script[data-ignore-extern-crates]");const ignoreExternCrates=new Set((script?script.getAttribute("data-ignore-extern-crates"):"").split(","),);for(const lib of libs){if(lib===window.currentCrate||ignoreExternCrates.has(lib)){continue}const structs=imp[lib];struct_loop:for(const struct of structs){const list=struct[SYNTHETIC_IDX]?synthetic_implementors:implementors;if(struct[SYNTHETIC_IDX]){for(const struct_type of struct[TYPES_IDX]){if(inlined_types.has(struct_type)){continue struct_loop}inlined_types.add(struct_type)}}const code=document.createElement("h3");code.innerHTML=struct[TEXT_IDX];addClass(code,"code-header");onEachLazy(code.getElementsByTagName("a"),elem=>{const href=elem.getAttribute("href");if(href&&!href.startsWith("#")&&!/^(?:[a-z+]+:)?\/\//.test(href)){elem.setAttribute("href",window.rootPath+href)}});const currentId=baseIdName+currentNbImpls;const anchor=document.createElement("a");anchor.href="#"+currentId;addClass(anchor,"anchor");const display=document.createElement("div");display.id=currentId;addClass(display,"impl");display.appendChild(anchor);display.appendChild(code);list.appendChild(display);currentNbImpls+=1}}};if(window.pending_implementors){window.register_implementors(window.pending_implementors)}window.register_type_impls=imp=>{if(!imp||!imp[window.currentCrate]){return}window.pending_type_impls=null;const idMap=new Map();let implementations=document.getElementById("implementations-list");let trait_implementations=document.getElementById("trait-implementations-list");let trait_implementations_header=document.getElementById("trait-implementations");const script=document.querySelector("script[data-self-path]");const selfPath=script?script.getAttribute("data-self-path"):null;const mainContent=document.querySelector("#main-content");const sidebarSection=document.querySelector(".sidebar section");let methods=document.querySelector(".sidebar .block.method");let associatedTypes=document.querySelector(".sidebar .block.associatedtype");let associatedConstants=document.querySelector(".sidebar .block.associatedconstant");let sidebarTraitList=document.querySelector(".sidebar .block.trait-implementation");for(const impList of imp[window.currentCrate]){const types=impList.slice(2);const text=impList[0];const isTrait=impList[1]!==0;const traitName=impList[1];if(types.indexOf(selfPath)===-1){continue}let outputList=isTrait?trait_implementations:implementations;if(outputList===null){const outputListName=isTrait?"Trait Implementations":"Implementations";const outputListId=isTrait?"trait-implementations-list":"implementations-list";const outputListHeaderId=isTrait?"trait-implementations":"implementations";const outputListHeader=document.createElement("h2");outputListHeader.id=outputListHeaderId;outputListHeader.innerText=outputListName;outputList=document.createElement("div");outputList.id=outputListId;if(isTrait){const link=document.createElement("a");link.href=`#${outputListHeaderId}`;link.innerText="Trait Implementations";const h=document.createElement("h3");h.appendChild(link);trait_implementations=outputList;trait_implementations_header=outputListHeader;sidebarSection.appendChild(h);sidebarTraitList=document.createElement("ul");sidebarTraitList.className="block trait-implementation";sidebarSection.appendChild(sidebarTraitList);mainContent.appendChild(outputListHeader);mainContent.appendChild(outputList)}else{implementations=outputList;if(trait_implementations){mainContent.insertBefore(outputListHeader,trait_implementations_header);mainContent.insertBefore(outputList,trait_implementations_header)}else{const mainContent=document.querySelector("#main-content");mainContent.appendChild(outputListHeader);mainContent.appendChild(outputList)}}}const template=document.createElement("template");template.innerHTML=text;onEachLazy(template.content.querySelectorAll("a"),elem=>{const href=elem.getAttribute("href");if(href&&!href.startsWith("#")&&!/^(?:[a-z+]+:)?\/\//.test(href)){elem.setAttribute("href",window.rootPath+href)}});onEachLazy(template.content.querySelectorAll("[id]"),el=>{let i=0;if(idMap.has(el.id)){i=idMap.get(el.id)}else if(document.getElementById(el.id)){i=1;while(document.getElementById(`${el.id}-${2 * i}`)){i=2*i}while(document.getElementById(`${el.id}-${i}`)){i+=1}}if(i!==0){const oldHref=`#${el.id}`;const newHref=`#${el.id}-${i}`;el.id=`${el.id}-${i}`;onEachLazy(template.content.querySelectorAll("a[href]"),link=>{if(link.getAttribute("href")===oldHref){link.href=newHref}})}idMap.set(el.id,i+1)});const templateAssocItems=template.content.querySelectorAll("section.tymethod, "+"section.method, section.associatedtype, section.associatedconstant");if(isTrait){const li=document.createElement("li");const a=document.createElement("a");a.href=`#${template.content.querySelector(".impl").id}`;a.textContent=traitName;li.appendChild(a);sidebarTraitList.append(li)}else{onEachLazy(templateAssocItems,item=>{let block=hasClass(item,"associatedtype")?associatedTypes:(hasClass(item,"associatedconstant")?associatedConstants:(methods));if(!block){const blockTitle=hasClass(item,"associatedtype")?"Associated Types":(hasClass(item,"associatedconstant")?"Associated Constants":("Methods"));const blockClass=hasClass(item,"associatedtype")?"associatedtype":(hasClass(item,"associatedconstant")?"associatedconstant":("method"));const blockHeader=document.createElement("h3");const blockLink=document.createElement("a");blockLink.href="#implementations";blockLink.innerText=blockTitle;blockHeader.appendChild(blockLink);block=document.createElement("ul");block.className=`block ${blockClass}`;const insertionReference=methods||sidebarTraitList;if(insertionReference){const insertionReferenceH=insertionReference.previousElementSibling;sidebarSection.insertBefore(blockHeader,insertionReferenceH);sidebarSection.insertBefore(block,insertionReferenceH)}else{sidebarSection.appendChild(blockHeader);sidebarSection.appendChild(block)}if(hasClass(item,"associatedtype")){associatedTypes=block}else if(hasClass(item,"associatedconstant")){associatedConstants=block}else{methods=block}}const li=document.createElement("li");const a=document.createElement("a");a.innerText=item.id.split("-")[0].split(".")[1];a.href=`#${item.id}`;li.appendChild(a);block.appendChild(li)})}outputList.appendChild(template.content)}for(const list of[methods,associatedTypes,associatedConstants,sidebarTraitList]){if(!list){continue}const newChildren=Array.prototype.slice.call(list.children);newChildren.sort((a,b)=>{const aI=a.innerText;const bI=b.innerText;return aIbI?1:0});list.replaceChildren(...newChildren)}};if(window.pending_type_impls){window.register_type_impls(window.pending_type_impls)}function addSidebarCrates(){if(!window.ALL_CRATES){return}const sidebarElems=document.getElementById("rustdoc-modnav");if(!sidebarElems){return}const h3=document.createElement("h3");h3.innerHTML="Crates";const ul=document.createElement("ul");ul.className="block crate";for(const crate of window.ALL_CRATES){const link=document.createElement("a");link.href=window.rootPath+crate+"/index.html";link.textContent=crate;const li=document.createElement("li");if(window.rootPath!=="./"&&crate===window.currentCrate){li.className="current"}li.appendChild(link);ul.appendChild(li)}sidebarElems.appendChild(h3);sidebarElems.appendChild(ul)}function expandAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);removeClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hasClass(e,"type-contents-toggle")&&!hasClass(e,"more-examples-toggle")){e.open=true}});innerToggle.children[0].innerText="Summary"}function collapseAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);addClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(e.parentNode.id!=="implementations-list"||(!hasClass(e,"implementors-toggle")&&!hasClass(e,"type-contents-toggle"))){e.open=false}});innerToggle.children[0].innerText="Show all"}function toggleAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);if(!innerToggle){return}if(hasClass(innerToggle,"will-expand")){expandAllDocs()}else{collapseAllDocs()}}(function(){const toggles=document.getElementById(toggleAllDocsId);if(toggles){toggles.onclick=toggleAllDocs}const hideMethodDocs=getSettingValue("auto-hide-method-docs")==="true";const hideImplementations=getSettingValue("auto-hide-trait-implementations")==="true";const hideLargeItemContents=getSettingValue("auto-hide-large-items")!=="false";function setImplementorsTogglesOpen(id,open){const list=document.getElementById(id);if(list!==null){onEachLazy(list.getElementsByClassName("implementors-toggle"),e=>{e.open=open})}}if(hideImplementations){setImplementorsTogglesOpen("trait-implementations-list",false);setImplementorsTogglesOpen("blanket-implementations-list",false)}onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hideLargeItemContents&&hasClass(e,"type-contents-toggle")){e.open=true}if(hideMethodDocs&&hasClass(e,"method-toggle")){e.open=false}})}());window.rustdoc_add_line_numbers_to_examples=()=>{if(document.querySelector(".rustdoc.src")){return}onEachLazy(document.querySelectorAll(":not(.scraped-example) > .example-wrap > pre:not(.example-line-numbers)",),x=>{const parent=x.parentNode;const line_numbers=parent.querySelectorAll(".example-line-numbers");if(line_numbers.length>0){return}const count=x.textContent.split("\n").length;const elems=[];for(let i=0;i{onEachLazy(document.querySelectorAll(".example-wrap > .example-line-numbers"),x=>{x.parentNode.removeChild(x)})};if(getSettingValue("line-numbers")==="true"){window.rustdoc_add_line_numbers_to_examples()}function showSidebar(){window.hideAllModals(false);const sidebar=document.getElementsByClassName("sidebar")[0];addClass(sidebar,"shown")}function hideSidebar(){const sidebar=document.getElementsByClassName("sidebar")[0];removeClass(sidebar,"shown")}window.addEventListener("resize",()=>{if(window.CURRENT_TOOLTIP_ELEMENT){const base=window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE;const force_visible=base.TOOLTIP_FORCE_VISIBLE;hideTooltip(false);if(force_visible){showTooltip(base);base.TOOLTIP_FORCE_VISIBLE=true}}});const mainElem=document.getElementById(MAIN_ID);if(mainElem){mainElem.addEventListener("click",hideSidebar)}onEachLazy(document.querySelectorAll("a[href^='#']"),el=>{el.addEventListener("click",()=>{expandSection(el.hash.slice(1));hideSidebar()})});onEachLazy(document.querySelectorAll(".toggle > summary:not(.hideme)"),el=>{el.addEventListener("click",e=>{if(e.target.tagName!=="SUMMARY"&&e.target.tagName!=="A"){e.preventDefault()}})});function showTooltip(e){const notable_ty=e.getAttribute("data-notable-ty");if(!window.NOTABLE_TRAITS&¬able_ty){const data=document.getElementById("notable-traits-data");if(data){window.NOTABLE_TRAITS=JSON.parse(data.innerText)}else{throw new Error("showTooltip() called with notable without any notable traits!")}}if(window.CURRENT_TOOLTIP_ELEMENT&&window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE===e){clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);return}window.hideAllModals(false);const wrapper=document.createElement("div");if(notable_ty){wrapper.innerHTML="
"+window.NOTABLE_TRAITS[notable_ty]+"
"}else{if(e.getAttribute("title")!==null){e.setAttribute("data-title",e.getAttribute("title"));e.removeAttribute("title")}if(e.getAttribute("data-title")!==null){const titleContent=document.createElement("div");titleContent.className="content";titleContent.appendChild(document.createTextNode(e.getAttribute("data-title")));wrapper.appendChild(titleContent)}}wrapper.className="tooltip popover";const focusCatcher=document.createElement("div");focusCatcher.setAttribute("tabindex","0");focusCatcher.onfocus=hideTooltip;wrapper.appendChild(focusCatcher);const pos=e.getBoundingClientRect();wrapper.style.top=(pos.top+window.scrollY+pos.height)+"px";wrapper.style.left=0;wrapper.style.right="auto";wrapper.style.visibility="hidden";document.body.appendChild(wrapper);const wrapperPos=wrapper.getBoundingClientRect();const finalPos=pos.left+window.scrollX-wrapperPos.width+24;if(finalPos>0){wrapper.style.left=finalPos+"px"}else{wrapper.style.setProperty("--popover-arrow-offset",(wrapperPos.right-pos.right+4)+"px",)}wrapper.style.visibility="";window.CURRENT_TOOLTIP_ELEMENT=wrapper;window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE=e;clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);wrapper.onpointerenter=ev=>{if(ev.pointerType!=="mouse"){return}clearTooltipHoverTimeout(e)};wrapper.onpointerleave=ev=>{if(ev.pointerType!=="mouse"){return}if(!e.TOOLTIP_FORCE_VISIBLE&&!e.contains(ev.relatedTarget)){setTooltipHoverTimeout(e,false);addClass(wrapper,"fade-out")}}}function setTooltipHoverTimeout(element,show){clearTooltipHoverTimeout(element);if(!show&&!window.CURRENT_TOOLTIP_ELEMENT){return}if(show&&window.CURRENT_TOOLTIP_ELEMENT){return}if(window.CURRENT_TOOLTIP_ELEMENT&&window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE!==element){return}element.TOOLTIP_HOVER_TIMEOUT=setTimeout(()=>{if(show){showTooltip(element)}else if(!element.TOOLTIP_FORCE_VISIBLE){hideTooltip(false)}},show?window.RUSTDOC_TOOLTIP_HOVER_MS:window.RUSTDOC_TOOLTIP_HOVER_EXIT_MS)}function clearTooltipHoverTimeout(element){if(element.TOOLTIP_HOVER_TIMEOUT!==undefined){removeClass(window.CURRENT_TOOLTIP_ELEMENT,"fade-out");clearTimeout(element.TOOLTIP_HOVER_TIMEOUT);delete element.TOOLTIP_HOVER_TIMEOUT}}function tooltipBlurHandler(event){if(window.CURRENT_TOOLTIP_ELEMENT&&!window.CURRENT_TOOLTIP_ELEMENT.contains(document.activeElement)&&!window.CURRENT_TOOLTIP_ELEMENT.contains(event.relatedTarget)&&!window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.contains(document.activeElement)&&!window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.contains(event.relatedTarget)){setTimeout(()=>hideTooltip(false),0)}}function hideTooltip(focus){if(window.CURRENT_TOOLTIP_ELEMENT){if(window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.TOOLTIP_FORCE_VISIBLE){if(focus){window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.focus()}window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.TOOLTIP_FORCE_VISIBLE=false}document.body.removeChild(window.CURRENT_TOOLTIP_ELEMENT);clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);window.CURRENT_TOOLTIP_ELEMENT=null}}onEachLazy(document.getElementsByClassName("tooltip"),e=>{e.onclick=()=>{e.TOOLTIP_FORCE_VISIBLE=e.TOOLTIP_FORCE_VISIBLE?false:true;if(window.CURRENT_TOOLTIP_ELEMENT&&!e.TOOLTIP_FORCE_VISIBLE){hideTooltip(true)}else{showTooltip(e);window.CURRENT_TOOLTIP_ELEMENT.setAttribute("tabindex","0");window.CURRENT_TOOLTIP_ELEMENT.focus();window.CURRENT_TOOLTIP_ELEMENT.onblur=tooltipBlurHandler}return false};e.onpointerenter=ev=>{if(ev.pointerType!=="mouse"){return}setTooltipHoverTimeout(e,true)};e.onpointermove=ev=>{if(ev.pointerType!=="mouse"){return}setTooltipHoverTimeout(e,true)};e.onpointerleave=ev=>{if(ev.pointerType!=="mouse"){return}if(!e.TOOLTIP_FORCE_VISIBLE&&window.CURRENT_TOOLTIP_ELEMENT&&!window.CURRENT_TOOLTIP_ELEMENT.contains(ev.relatedTarget)){setTooltipHoverTimeout(e,false);addClass(window.CURRENT_TOOLTIP_ELEMENT,"fade-out")}}});const sidebar_menu_toggle=document.getElementsByClassName("sidebar-menu-toggle")[0];if(sidebar_menu_toggle){sidebar_menu_toggle.addEventListener("click",()=>{const sidebar=document.getElementsByClassName("sidebar")[0];if(!hasClass(sidebar,"shown")){showSidebar()}else{hideSidebar()}})}function helpBlurHandler(event){if(!getHelpButton().contains(document.activeElement)&&!getHelpButton().contains(event.relatedTarget)&&!getSettingsButton().contains(document.activeElement)&&!getSettingsButton().contains(event.relatedTarget)){window.hidePopoverMenus()}}function buildHelpMenu(){const book_info=document.createElement("span");const channel=getVar("channel");book_info.className="top";book_info.innerHTML=`You can find more information in \ +the rustdoc book.`;const shortcuts=[["?","Show this help dialog"],["S / /","Focus the search field"],["↑","Move up in search results"],["↓","Move down in search results"],["← / →","Switch result tab (when results focused)"],["⏎","Go to active search result"],["+","Expand all sections"],["-","Collapse all sections"],].map(x=>"
"+x[0].split(" ").map((y,index)=>((index&1)===0?""+y+"":" "+y+" ")).join("")+"
"+x[1]+"
").join("");const div_shortcuts=document.createElement("div");addClass(div_shortcuts,"shortcuts");div_shortcuts.innerHTML="

Keyboard Shortcuts

"+shortcuts+"
";const infos=[`For a full list of all search features, take a look here.`,"Prefix searches with a type followed by a colon (e.g., fn:) to \ + restrict the search to a given item kind.","Accepted kinds are: fn, mod, struct, \ + enum, trait, type, macro, \ + and const.","Search functions by type signature (e.g., vec -> usize or \ + -> vec or String, enum:Cow -> bool)","You can look for items with an exact name by putting double quotes around \ + your request: \"string\"","Look for functions that accept or return \ + slices and \ + arrays by writing \ + square brackets (e.g., -> [u8] or [] -> Option)","Look for items inside another one by searching for a path: vec::Vec",].map(x=>"

"+x+"

").join("");const div_infos=document.createElement("div");addClass(div_infos,"infos");div_infos.innerHTML="

Search Tricks

"+infos;const rustdoc_version=document.createElement("span");rustdoc_version.className="bottom";const rustdoc_version_code=document.createElement("code");rustdoc_version_code.innerText="rustdoc "+getVar("rustdoc-version");rustdoc_version.appendChild(rustdoc_version_code);const container=document.createElement("div");if(!isHelpPage){container.className="popover"}container.id="help";container.style.display="none";const side_by_side=document.createElement("div");side_by_side.className="side-by-side";side_by_side.appendChild(div_shortcuts);side_by_side.appendChild(div_infos);container.appendChild(book_info);container.appendChild(side_by_side);container.appendChild(rustdoc_version);if(isHelpPage){const help_section=document.createElement("section");help_section.appendChild(container);document.getElementById("main-content").appendChild(help_section);container.style.display="block"}else{const help_button=getHelpButton();help_button.appendChild(container);container.onblur=helpBlurHandler;help_button.onblur=helpBlurHandler;help_button.children[0].onblur=helpBlurHandler}return container}window.hideAllModals=switchFocus=>{hideSidebar();window.hidePopoverMenus();hideTooltip(switchFocus)};window.hidePopoverMenus=()=>{onEachLazy(document.querySelectorAll("rustdoc-toolbar .popover"),elem=>{elem.style.display="none"});const button=getHelpButton();if(button){removeClass(button,"help-open")}};function getHelpMenu(buildNeeded){let menu=getHelpButton().querySelector(".popover");if(!menu&&buildNeeded){menu=buildHelpMenu()}return menu}function showHelp(){const button=getHelpButton();addClass(button,"help-open");button.querySelector("a").focus();const menu=getHelpMenu(true);if(menu.style.display==="none"){window.hideAllModals();menu.style.display=""}}const helpLink=document.querySelector(`#${HELP_BUTTON_ID} > a`);if(isHelpPage){buildHelpMenu()}else if(helpLink){helpLink.addEventListener("click",event=>{if(!helpLink.contains(helpLink)||event.ctrlKey||event.altKey||event.metaKey){return}event.preventDefault();const menu=getHelpMenu(true);const shouldShowHelp=menu.style.display==="none";if(shouldShowHelp){showHelp()}else{window.hidePopoverMenus()}})}setMobileTopbar();addSidebarItems();addSidebarCrates();onHashChange(null);window.addEventListener("hashchange",onHashChange);searchState.setup()}());(function(){const SIDEBAR_MIN=100;const SIDEBAR_MAX=500;const RUSTDOC_MOBILE_BREAKPOINT=700;const BODY_MIN=400;const SIDEBAR_VANISH_THRESHOLD=SIDEBAR_MIN/2;const sidebarButton=document.getElementById("sidebar-button");if(sidebarButton){sidebarButton.addEventListener("click",e=>{removeClass(document.documentElement,"hide-sidebar");updateLocalStorage("hide-sidebar","false");if(document.querySelector(".rustdoc.src")){window.rustdocToggleSrcSidebar()}e.preventDefault()})}let currentPointerId=null;let desiredSidebarSize=null;let pendingSidebarResizingFrame=false;const resizer=document.querySelector(".sidebar-resizer");const sidebar=document.querySelector(".sidebar");if(!resizer||!sidebar){return}const isSrcPage=hasClass(document.body,"src");function hideSidebar(){if(isSrcPage){window.rustdocCloseSourceSidebar();updateLocalStorage("src-sidebar-width",null);document.documentElement.style.removeProperty("--src-sidebar-width");sidebar.style.removeProperty("--src-sidebar-width");resizer.style.removeProperty("--src-sidebar-width")}else{addClass(document.documentElement,"hide-sidebar");updateLocalStorage("hide-sidebar","true");updateLocalStorage("desktop-sidebar-width",null);document.documentElement.style.removeProperty("--desktop-sidebar-width");sidebar.style.removeProperty("--desktop-sidebar-width");resizer.style.removeProperty("--desktop-sidebar-width")}}function showSidebar(){if(isSrcPage){window.rustdocShowSourceSidebar()}else{removeClass(document.documentElement,"hide-sidebar");updateLocalStorage("hide-sidebar","false")}}function changeSidebarSize(size){if(isSrcPage){updateLocalStorage("src-sidebar-width",size);sidebar.style.setProperty("--src-sidebar-width",size+"px");resizer.style.setProperty("--src-sidebar-width",size+"px")}else{updateLocalStorage("desktop-sidebar-width",size);sidebar.style.setProperty("--desktop-sidebar-width",size+"px");resizer.style.setProperty("--desktop-sidebar-width",size+"px")}}function isSidebarHidden(){return isSrcPage?!hasClass(document.documentElement,"src-sidebar-expanded"):hasClass(document.documentElement,"hide-sidebar")}function resize(e){if(currentPointerId===null||currentPointerId!==e.pointerId){return}e.preventDefault();const pos=e.clientX-3;if(pos=SIDEBAR_MIN){if(isSidebarHidden()){showSidebar()}const constrainedPos=Math.min(pos,window.innerWidth-BODY_MIN,SIDEBAR_MAX);changeSidebarSize(constrainedPos);desiredSidebarSize=constrainedPos;if(pendingSidebarResizingFrame!==false){clearTimeout(pendingSidebarResizingFrame)}pendingSidebarResizingFrame=setTimeout(()=>{if(currentPointerId===null||pendingSidebarResizingFrame===false){return}pendingSidebarResizingFrame=false;document.documentElement.style.setProperty("--resizing-sidebar-width",desiredSidebarSize+"px",)},100)}}window.addEventListener("resize",()=>{if(window.innerWidth=(window.innerWidth-BODY_MIN)){changeSidebarSize(window.innerWidth-BODY_MIN)}else if(desiredSidebarSize!==null&&desiredSidebarSize>SIDEBAR_MIN){changeSidebarSize(desiredSidebarSize)}});function stopResize(e){if(currentPointerId===null){return}if(e){e.preventDefault()}desiredSidebarSize=sidebar.getBoundingClientRect().width;removeClass(resizer,"active");window.removeEventListener("pointermove",resize,false);window.removeEventListener("pointerup",stopResize,false);removeClass(document.documentElement,"sidebar-resizing");document.documentElement.style.removeProperty("--resizing-sidebar-width");if(resizer.releasePointerCapture){resizer.releasePointerCapture(currentPointerId);currentPointerId=null}}function initResize(e){if(currentPointerId!==null||e.altKey||e.ctrlKey||e.metaKey||e.button!==0){return}if(resizer.setPointerCapture){resizer.setPointerCapture(e.pointerId);if(!resizer.hasPointerCapture(e.pointerId)){resizer.releasePointerCapture(e.pointerId);return}currentPointerId=e.pointerId}window.hideAllModals(false);e.preventDefault();window.addEventListener("pointermove",resize,false);window.addEventListener("pointercancel",stopResize,false);window.addEventListener("pointerup",stopResize,false);addClass(resizer,"active");addClass(document.documentElement,"sidebar-resizing");const pos=e.clientX-sidebar.offsetLeft-3;document.documentElement.style.setProperty("--resizing-sidebar-width",pos+"px");desiredSidebarSize=null}resizer.addEventListener("pointerdown",initResize,false)}());(function(){function copyContentToClipboard(content){const el=document.createElement("textarea");el.value=content;el.setAttribute("readonly","");el.style.position="absolute";el.style.left="-9999px";document.body.appendChild(el);el.select();document.execCommand("copy");document.body.removeChild(el)}function copyButtonAnimation(button){button.classList.add("clicked");if(button.reset_button_timeout!==undefined){window.clearTimeout(button.reset_button_timeout)}button.reset_button_timeout=window.setTimeout(()=>{button.reset_button_timeout=undefined;button.classList.remove("clicked")},1000)}const but=document.getElementById("copy-path");if(!but){return}but.onclick=()=>{const title=document.querySelector("title").textContent.replace(" - Rust","");const[item,module]=title.split(" in ");const path=[item];if(module!==undefined){path.unshift(module)}copyContentToClipboard(path.join("::"));copyButtonAnimation(but)};function copyCode(codeElem){if(!codeElem){return}copyContentToClipboard(codeElem.textContent)}function getExampleWrap(event){let elem=event.target;while(!hasClass(elem,"example-wrap")){if(elem===document.body||elem.tagName==="A"||elem.tagName==="BUTTON"||hasClass(elem,"docblock")){return null}elem=elem.parentElement}return elem}function addCopyButton(event){const elem=getExampleWrap(event);if(elem===null){return}elem.removeEventListener("mouseover",addCopyButton);const parent=document.createElement("div");parent.className="button-holder";const runButton=elem.querySelector(".test-arrow");if(runButton!==null){parent.appendChild(runButton)}elem.appendChild(parent);const copyButton=document.createElement("button");copyButton.className="copy-button";copyButton.title="Copy code to clipboard";copyButton.addEventListener("click",()=>{copyCode(elem.querySelector("pre > code"));copyButtonAnimation(copyButton)});parent.appendChild(copyButton);if(!elem.parentElement.classList.contains("scraped-example")){return}const scrapedWrapped=elem.parentElement;window.updateScrapedExample(scrapedWrapped,parent)}function showHideCodeExampleButtons(event){const elem=getExampleWrap(event);if(elem===null){return}let buttons=elem.querySelector(".button-holder");if(buttons===null){addCopyButton(event);buttons=elem.querySelector(".button-holder");if(buttons===null){return}}buttons.classList.toggle("keep-visible")}onEachLazy(document.querySelectorAll(".docblock .example-wrap"),elem=>{elem.addEventListener("mouseover",addCopyButton);elem.addEventListener("click",showHideCodeExampleButtons)})}()) \ No newline at end of file diff --git a/static.files/noscript-0111fcff984fae8f.css b/static.files/noscript-0111fcff984fae8f.css new file mode 100644 index 0000000000..a6c18ecaf6 --- /dev/null +++ b/static.files/noscript-0111fcff984fae8f.css @@ -0,0 +1 @@ + #main-content .attributes{margin-left:0 !important;}#copy-path,#sidebar-button,.sidebar-resizer{display:none !important;}nav.sub{display:none;}.src .sidebar{display:none;}.notable-traits{display:none;}:root,:root:not([data-theme]){--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--settings-input-border-color:#717171;--settings-button-color:#000;--settings-button-border-focus:#717171;--sidebar-background-color:#f5f5f5;--sidebar-background-color-hover:#e0e0e0;--code-block-background-color:#f5f5f5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;--border-color:#e0e0e0;--button-background-color:#fff;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:none;--mobile-sidebar-menu-filter:none;--search-input-focused-border-color:#66afe9;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(35%);--code-example-button-color:#7f7f7f;--code-example-button-hover-color:#595959;--settings-menu-filter:invert(50%);--settings-menu-hover-filter:invert(35%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ad378a;--trait-link-color:#6e4fc9;--assoc-item-link-color:#3873ad;--function-link-color:#ad7c37;--macro-link-color:#068000;--keyword-link-color:#3873ad;--mod-link-color:#3873ad;--link-color:#3873ad;--sidebar-link-color:#356da4;--sidebar-current-link-background-color:#fff;--search-result-link-focus-background-color:#ccc;--search-result-border-color:#aaa3;--search-color:#000;--search-error-code-background-color:#d0cccc;--search-results-alias-color:#000;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#e6e6e6;--search-tab-button-not-selected-background:#e6e6e6;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#fff;--stab-background-color:#fff5d6;--stab-code-color:#000;--code-highlight-kw-color:#8959a8;--code-highlight-kw-2-color:#4271ae;--code-highlight-lifetime-color:#b76514;--code-highlight-prelude-color:#4271ae;--code-highlight-prelude-val-color:#c82829;--code-highlight-number-color:#718c00;--code-highlight-string-color:#718c00;--code-highlight-literal-color:#c82829;--code-highlight-attribute-color:#c82829;--code-highlight-self-color:#c82829;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8e908c;--code-highlight-doc-comment-color:#4d4d4c;--src-line-numbers-span-color:#c67e2d;--src-line-number-highlighted-background-color:#fdffd3;--target-background-color:#fdffd3;--target-border-color:#ad7c37;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:initial;--crate-search-div-filter:invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);--crate-search-div-hover-filter:invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);--crate-search-hover-border:#717171;--src-sidebar-background-selected:#fff;--src-sidebar-background-hover:#e0e0e0;--table-alt-row-background-color:#f5f5f5;--codeblock-link-background:#eee;--scrape-example-toggle-line-background:#ccc;--scrape-example-toggle-line-hover-background:#999;--scrape-example-code-line-highlight:#fcffd6;--scrape-example-code-line-highlight-focus:#f6fdb0;--scrape-example-help-border-color:#555;--scrape-example-help-color:#333;--scrape-example-help-hover-border-color:#000;--scrape-example-help-hover-color:#000;--scrape-example-code-wrapper-background-start:rgba(255,255,255,1);--scrape-example-code-wrapper-background-end:rgba(255,255,255,0);--sidebar-resizer-hover:hsl(207,90%,66%);--sidebar-resizer-active:hsl(207,90%,54%);}@media (prefers-color-scheme:dark){:root,:root:not([data-theme]){--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--settings-input-border-color:#999;--settings-button-color:#000;--settings-button-border-focus:#ffb900;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;--border-color:#e0e0e0;--button-background-color:#f0f0f0;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--mobile-sidebar-menu-filter:invert(100%);--search-input-focused-border-color:#008dfd;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(65%);--code-example-button-color:#7f7f7f;--code-example-button-hover-color:#a5a5a5;--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#2dbfb8;--trait-link-color:#b78cf2;--assoc-item-link-color:#d2991d;--function-link-color:#2bab63;--macro-link-color:#09bd00;--keyword-link-color:#d2991d;--mod-link-color:#d2991d;--link-color:#d2991d;--sidebar-link-color:#fdbf35;--sidebar-current-link-background-color:#444;--search-result-link-focus-background-color:#616161;--search-result-border-color:#aaa3;--search-color:#111;--search-error-code-background-color:#484848;--search-results-alias-color:#fff;--search-results-grey-color:#ccc;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#252525;--search-tab-button-not-selected-background:#252525;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#353535;--settings-menu-filter:invert(50%);--settings-menu-hover-filter:invert(65%);--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ab8ac1;--code-highlight-kw-2-color:#769acb;--code-highlight-lifetime-color:#d97f26;--code-highlight-prelude-color:#769acb;--code-highlight-prelude-val-color:#ee6868;--code-highlight-number-color:#83a300;--code-highlight-string-color:#83a300;--code-highlight-literal-color:#ee6868;--code-highlight-attribute-color:#ee6868;--code-highlight-self-color:#ee6868;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8d8d8b;--code-highlight-doc-comment-color:#8ca375;--src-line-numbers-span-color:#3b91e2;--src-line-number-highlighted-background-color:#0a042f;--target-background-color:#494a3d;--target-border-color:#bb7410;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);--crate-search-div-hover-filter:invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);--crate-search-hover-border:#2196f3;--src-sidebar-background-selected:#333;--src-sidebar-background-hover:#444;--table-alt-row-background-color:#2a2a2a;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(53,53,53,1);--scrape-example-code-wrapper-background-end:rgba(53,53,53,0);--sidebar-resizer-hover:hsl(207,30%,54%);--sidebar-resizer-active:hsl(207,90%,54%);}} \ No newline at end of file diff --git a/static.files/noscript-3b12f09e550e0385.css b/static.files/noscript-3b12f09e550e0385.css deleted file mode 100644 index befe416340..0000000000 --- a/static.files/noscript-3b12f09e550e0385.css +++ /dev/null @@ -1 +0,0 @@ - #main-content .attributes{margin-left:0 !important;}#copy-path,#sidebar-button,.sidebar-resizer{display:none !important;}nav.sub{display:none;}.src .sidebar{display:none;}.notable-traits{display:none;}:root,:root:not([data-theme]){--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--settings-input-border-color:#717171;--settings-button-color:#000;--settings-button-border-focus:#717171;--sidebar-background-color:#f5f5f5;--sidebar-background-color-hover:#e0e0e0;--code-block-background-color:#f5f5f5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;--border-color:#e0e0e0;--button-background-color:#fff;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:none;--mobile-sidebar-menu-filter:none;--search-input-focused-border-color:#66afe9;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(35%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ad378a;--trait-link-color:#6e4fc9;--assoc-item-link-color:#3873ad;--function-link-color:#ad7c37;--macro-link-color:#068000;--keyword-link-color:#3873ad;--mod-link-color:#3873ad;--link-color:#3873ad;--sidebar-link-color:#356da4;--sidebar-current-link-background-color:#fff;--search-result-link-focus-background-color:#ccc;--search-result-border-color:#aaa3;--search-color:#000;--search-error-code-background-color:#d0cccc;--search-results-alias-color:#000;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#e6e6e6;--search-tab-button-not-selected-background:#e6e6e6;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#fff;--settings-menu-filter:none;--stab-background-color:#fff5d6;--stab-code-color:#000;--code-highlight-kw-color:#8959a8;--code-highlight-kw-2-color:#4271ae;--code-highlight-lifetime-color:#b76514;--code-highlight-prelude-color:#4271ae;--code-highlight-prelude-val-color:#c82829;--code-highlight-number-color:#718c00;--code-highlight-string-color:#718c00;--code-highlight-literal-color:#c82829;--code-highlight-attribute-color:#c82829;--code-highlight-self-color:#c82829;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8e908c;--code-highlight-doc-comment-color:#4d4d4c;--src-line-numbers-span-color:#c67e2d;--src-line-number-highlighted-background-color:#fdffd3;--target-background-color:#fdffd3;--target-border-color:#ad7c37;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:initial;--crate-search-div-filter:invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);--crate-search-div-hover-filter:invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);--crate-search-hover-border:#717171;--src-sidebar-background-selected:#fff;--src-sidebar-background-hover:#e0e0e0;--table-alt-row-background-color:#f5f5f5;--codeblock-link-background:#eee;--scrape-example-toggle-line-background:#ccc;--scrape-example-toggle-line-hover-background:#999;--scrape-example-code-line-highlight:#fcffd6;--scrape-example-code-line-highlight-focus:#f6fdb0;--scrape-example-help-border-color:#555;--scrape-example-help-color:#333;--scrape-example-help-hover-border-color:#000;--scrape-example-help-hover-color:#000;--scrape-example-code-wrapper-background-start:rgba(255,255,255,1);--scrape-example-code-wrapper-background-end:rgba(255,255,255,0);--sidebar-resizer-hover:hsl(207,90%,66%);--sidebar-resizer-active:hsl(207,90%,54%);}@media (prefers-color-scheme:dark){:root,:root:not([data-theme]){--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--settings-input-border-color:#999;--settings-button-color:#000;--settings-button-border-focus:#ffb900;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;--border-color:#e0e0e0;--button-background-color:#f0f0f0;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--mobile-sidebar-menu-filter:invert(100%);--search-input-focused-border-color:#008dfd;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(65%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#2dbfb8;--trait-link-color:#b78cf2;--assoc-item-link-color:#d2991d;--function-link-color:#2bab63;--macro-link-color:#09bd00;--keyword-link-color:#d2991d;--mod-link-color:#d2991d;--link-color:#d2991d;--sidebar-link-color:#fdbf35;--sidebar-current-link-background-color:#444;--search-result-link-focus-background-color:#616161;--search-result-border-color:#aaa3;--search-color:#111;--search-error-code-background-color:#484848;--search-results-alias-color:#fff;--search-results-grey-color:#ccc;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#252525;--search-tab-button-not-selected-background:#252525;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#353535;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ab8ac1;--code-highlight-kw-2-color:#769acb;--code-highlight-lifetime-color:#d97f26;--code-highlight-prelude-color:#769acb;--code-highlight-prelude-val-color:#ee6868;--code-highlight-number-color:#83a300;--code-highlight-string-color:#83a300;--code-highlight-literal-color:#ee6868;--code-highlight-attribute-color:#ee6868;--code-highlight-self-color:#ee6868;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8d8d8b;--code-highlight-doc-comment-color:#8ca375;--src-line-numbers-span-color:#3b91e2;--src-line-number-highlighted-background-color:#0a042f;--target-background-color:#494a3d;--target-border-color:#bb7410;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);--crate-search-div-hover-filter:invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);--crate-search-hover-border:#2196f3;--src-sidebar-background-selected:#333;--src-sidebar-background-hover:#444;--table-alt-row-background-color:#2a2a2a;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(53,53,53,1);--scrape-example-code-wrapper-background-end:rgba(53,53,53,0);--sidebar-resizer-hover:hsl(207,30%,54%);--sidebar-resizer-active:hsl(207,90%,54%);}} \ No newline at end of file diff --git a/static.files/rustdoc-492a78a4a87dcc01.css b/static.files/rustdoc-492a78a4a87dcc01.css deleted file mode 100644 index e9199f9555..0000000000 --- a/static.files/rustdoc-492a78a4a87dcc01.css +++ /dev/null @@ -1,47 +0,0 @@ - :root{--nav-sub-mobile-padding:8px;--search-typename-width:6.75rem;--desktop-sidebar-width:200px;--src-sidebar-width:300px;--desktop-sidebar-z-index:100;--sidebar-elems-left-padding:24px;--clipboard-image:url('data:image/svg+xml,\ -\ -\ -');--copy-path-height:34px;--copy-path-width:33px;--checkmark-image:url('data:image/svg+xml,\ -\ -');--button-left-margin:4px;--button-border-radius:2px;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:400;src:local('Fira Sans'),url("FiraSans-Regular-018c141bf0843ffd.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:500;src:local('Fira Sans Medium'),url("FiraSans-Medium-8f9a781e4970d388.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:400;src:local('Source Serif 4'),url("SourceSerif4-Regular-46f98efaafac5295.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:italic;font-weight:400;src:local('Source Serif 4 Italic'),url("SourceSerif4-It-acdfaf1a8af734b1.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:700;src:local('Source Serif 4 Bold'),url("SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:400;src:url("SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:italic;font-weight:400;src:url("SourceCodePro-It-1cc31594bf4f1f79.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:600;src:url("SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'NanumBarunGothic';src:url("NanumBarunGothic-0f09457c7a19b7c6.ttf.woff2") format("woff2");font-display:swap;unicode-range:U+AC00-D7AF,U+1100-11FF,U+3130-318F,U+A960-A97F,U+D7B0-D7FF;}*{box-sizing:border-box;}body{font:1rem/1.5 "Source Serif 4",NanumBarunGothic,serif;margin:0;position:relative;overflow-wrap:break-word;overflow-wrap:anywhere;font-feature-settings:"kern","liga";background-color:var(--main-background-color);color:var(--main-color);}h1{font-size:1.5rem;}h2{font-size:1.375rem;}h3{font-size:1.25rem;}h1,h2,h3,h4,h5,h6{font-weight:500;}h1,h2,h3,h4{margin:25px 0 15px 0;padding-bottom:6px;}.docblock h3,.docblock h4,h5,h6{margin:15px 0 5px 0;}.docblock>h2:first-child,.docblock>h3:first-child,.docblock>h4:first-child,.docblock>h5:first-child,.docblock>h6:first-child{margin-top:0;}.main-heading h1{margin:0;padding:0;flex-grow:1;overflow-wrap:break-word;overflow-wrap:anywhere;}.main-heading{display:flex;flex-wrap:wrap;padding-bottom:6px;margin-bottom:15px;}.content h2,.top-doc .docblock>h3,.top-doc .docblock>h4{border-bottom:1px solid var(--headings-border-bottom-color);}h1,h2{line-height:1.25;padding-top:3px;padding-bottom:9px;}h3.code-header{font-size:1.125rem;}h4.code-header{font-size:1rem;}.code-header{font-weight:600;margin:0;padding:0;white-space:pre-wrap;}#crate-search,h1,h2,h3,h4,h5,h6,.sidebar,.mobile-topbar,.search-input,.search-results .result-name,.item-name>a,.out-of-band,span.since,a.src,#help-button>a,summary.hideme,.scraped-example-list,ul.all-items{font-family:"Fira Sans",Arial,NanumBarunGothic,sans-serif;}#toggle-all-docs,a.anchor,.section-header a,#src-sidebar a,.rust a,.sidebar h2 a,.sidebar h3 a,.mobile-topbar h2 a,h1 a,.search-results a,.stab,.result-name i{color:var(--main-color);}span.enum,a.enum,span.struct,a.struct,span.union,a.union,span.primitive,a.primitive,span.type,a.type,span.foreigntype,a.foreigntype{color:var(--type-link-color);}span.trait,a.trait,span.traitalias,a.traitalias{color:var(--trait-link-color);}span.associatedtype,a.associatedtype,span.constant,a.constant,span.static,a.static{color:var(--assoc-item-link-color);}span.fn,a.fn,span.method,a.method,span.tymethod,a.tymethod{color:var(--function-link-color);}span.attr,a.attr,span.derive,a.derive,span.macro,a.macro{color:var(--macro-link-color);}span.mod,a.mod{color:var(--mod-link-color);}span.keyword,a.keyword{color:var(--keyword-link-color);}a{color:var(--link-color);text-decoration:none;}ol,ul{padding-left:24px;}ul ul,ol ul,ul ol,ol ol{margin-bottom:.625em;}p,.docblock>.warning{margin:0 0 .75em 0;}p:last-child,.docblock>.warning:last-child{margin:0;}button{padding:1px 6px;cursor:pointer;}button#toggle-all-docs{padding:0;background:none;border:none;-webkit-appearance:none;opacity:1;}.rustdoc{display:flex;flex-direction:row;flex-wrap:nowrap;}main{position:relative;flex-grow:1;padding:10px 15px 40px 45px;min-width:0;}.src main{padding:15px;}.width-limiter{max-width:960px;margin-right:auto;}details:not(.toggle) summary{margin-bottom:.6em;}code,pre,.code-header{font-family:"Source Code Pro",monospace;}.docblock code,.docblock-short code{border-radius:3px;padding:0 0.125em;}.docblock pre code,.docblock-short pre code{padding:0;}pre{padding:14px;line-height:1.5;}pre.item-decl{overflow-x:auto;}.item-decl .type-contents-toggle{contain:initial;}.src .content pre{padding:20px;}.rustdoc.src .example-wrap pre.src-line-numbers{padding:20px 0 20px 4px;}img{max-width:100%;}.logo-container{line-height:0;display:block;}.rust-logo{filter:var(--rust-logo-filter);}.sidebar{font-size:0.875rem;flex:0 0 var(--desktop-sidebar-width);width:var(--desktop-sidebar-width);overflow-y:scroll;overscroll-behavior:contain;position:sticky;height:100vh;top:0;left:0;z-index:var(--desktop-sidebar-z-index);}.rustdoc.src .sidebar{flex-basis:50px;width:50px;border-right:1px solid;overflow-x:hidden;overflow-y:hidden;}.hide-sidebar .sidebar,.hide-sidebar .sidebar-resizer{display:none;}.sidebar-resizer{touch-action:none;width:9px;cursor:col-resize;z-index:calc(var(--desktop-sidebar-z-index) + 1);position:fixed;height:100%;left:calc(var(--desktop-sidebar-width) + 1px);}.rustdoc.src .sidebar-resizer{left:49px;}.src-sidebar-expanded .src .sidebar-resizer{left:var(--src-sidebar-width);}.sidebar-resizing{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;}.sidebar-resizing*{cursor:col-resize !important;}.sidebar-resizing .sidebar{position:fixed;}.sidebar-resizing>body{padding-left:var(--resizing-sidebar-width);}.sidebar-resizer:hover,.sidebar-resizer:active,.sidebar-resizer:focus,.sidebar-resizer.active{width:10px;margin:0;left:var(--desktop-sidebar-width);border-left:solid 1px var(--sidebar-resizer-hover);}.src-sidebar-expanded .rustdoc.src .sidebar-resizer:hover,.src-sidebar-expanded .rustdoc.src .sidebar-resizer:active,.src-sidebar-expanded .rustdoc.src .sidebar-resizer:focus,.src-sidebar-expanded .rustdoc.src .sidebar-resizer.active{left:calc(var(--src-sidebar-width) - 1px);}@media (pointer:coarse){.sidebar-resizer{display:none !important;}}.sidebar-resizer.active{padding:0 140px;width:2px;margin-left:-140px;border-left:none;}.sidebar-resizer.active:before{border-left:solid 2px var(--sidebar-resizer-active);display:block;height:100%;content:"";}.sidebar,.mobile-topbar,.sidebar-menu-toggle,#src-sidebar{background-color:var(--sidebar-background-color);}.src .sidebar>*{visibility:hidden;}.src-sidebar-expanded .src .sidebar{overflow-y:auto;flex-basis:var(--src-sidebar-width);width:var(--src-sidebar-width);}.src-sidebar-expanded .src .sidebar>*{visibility:visible;}#all-types{margin-top:1em;}*{scrollbar-width:initial;scrollbar-color:var(--scrollbar-color);}.sidebar{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color);}::-webkit-scrollbar{width:12px;}.sidebar::-webkit-scrollbar{width:8px;}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0;background-color:var(--scrollbar-track-background-color);}.sidebar::-webkit-scrollbar-track{background-color:var(--scrollbar-track-background-color);}::-webkit-scrollbar-thumb,.sidebar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-background-color);}.hidden{display:none !important;}.logo-container>img{height:48px;width:48px;}ul.block,.block li{padding:0;margin:0;list-style:none;}.sidebar-elems a,.sidebar>h2 a{display:block;padding:0.25rem;margin-right:0.25rem;border-left:solid var(--sidebar-elems-left-padding) transparent;margin-left:calc(-0.25rem - var(--sidebar-elems-left-padding));background-clip:border-box;}.sidebar h2{text-wrap:balance;overflow-wrap:anywhere;padding:0;margin:0.7rem 0;}.sidebar h3{text-wrap:balance;overflow-wrap:anywhere;font-size:1.125rem;padding:0;margin:0;}.sidebar-elems,.sidebar>.version,.sidebar>h2{padding-left:var(--sidebar-elems-left-padding);}.sidebar a{color:var(--sidebar-link-color);}.sidebar .current,.sidebar .current a,.sidebar-crate a.logo-container:hover+h2 a,.sidebar a:hover:not(.logo-container){background-color:var(--sidebar-current-link-background-color);}.sidebar-elems .block{margin-bottom:2em;}.sidebar-elems .block li a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}.sidebar-crate{display:flex;align-items:center;justify-content:center;margin:14px 32px 1rem;row-gap:10px;column-gap:32px;flex-wrap:wrap;}.sidebar-crate h2{flex-grow:1;margin:0 -8px;align-self:start;}.sidebar-crate .logo-container{margin:0 calc(-16px - var(--sidebar-elems-left-padding));padding:0 var(--sidebar-elems-left-padding);text-align:center;}.sidebar-crate .logo-container img{margin-top:-16px;border-top:solid 16px transparent;box-sizing:content-box;position:relative;background-clip:border-box;z-index:1;}.sidebar-crate h2 a{display:block;border-left:solid var(--sidebar-elems-left-padding) transparent;background-clip:border-box;margin:0 calc(-24px + 0.25rem) 0 calc(-0.2rem - var(--sidebar-elems-left-padding));padding:calc((16px - 0.57rem ) / 2 ) 0.25rem;padding-left:0.2rem;}.sidebar-crate h2 .version{display:block;font-weight:normal;font-size:1rem;overflow-wrap:break-word;}.sidebar-crate+.version{margin-top:-1rem;margin-bottom:1rem;}.mobile-topbar{display:none;}.rustdoc .example-wrap{display:flex;position:relative;margin-bottom:10px;}.rustdoc .example-wrap>pre{border-radius:6px;}.rustdoc .example-wrap:last-child{margin-bottom:0px;}.rustdoc .example-wrap pre{margin:0;flex-grow:1;}.rustdoc:not(.src) .example-wrap pre{overflow:auto hidden;}.rustdoc .example-wrap pre.example-line-numbers,.rustdoc .example-wrap pre.src-line-numbers{flex-grow:0;min-width:fit-content;overflow:initial;text-align:right;-webkit-user-select:none;user-select:none;padding:14px 8px;color:var(--src-line-numbers-span-color);}.rustdoc .example-wrap pre.src-line-numbers{padding:14px 0;}.src-line-numbers a,.src-line-numbers span{color:var(--src-line-numbers-span-color);padding:0 8px;}.src-line-numbers :target{background-color:transparent;border-right:none;padding:0 8px;}.src-line-numbers .line-highlighted{background-color:var(--src-line-number-highlighted-background-color);}.search-loading{text-align:center;}.docblock-short{overflow-wrap:break-word;overflow-wrap:anywhere;}.docblock :not(pre)>code,.docblock-short code{white-space:pre-wrap;}.top-doc .docblock h2{font-size:1.375rem;}.top-doc .docblock h3{font-size:1.25rem;}.top-doc .docblock h4,.top-doc .docblock h5{font-size:1.125rem;}.top-doc .docblock h6{font-size:1rem;}.docblock h5{font-size:1rem;}.docblock h6{font-size:0.875rem;}.docblock{margin-left:24px;position:relative;}.docblock>:not(.more-examples-toggle):not(.example-wrap){max-width:100%;overflow-x:auto;}.out-of-band{flex-grow:0;font-size:1.125rem;}.docblock code,.docblock-short code,pre,.rustdoc.src .example-wrap{background-color:var(--code-block-background-color);}#main-content{position:relative;}.docblock table{margin:.5em 0;border-collapse:collapse;}.docblock table td,.docblock table th{padding:.5em;border:1px solid var(--border-color);}.docblock table tbody tr:nth-child(2n){background:var(--table-alt-row-background-color);}.docblock .stab,.docblock-short .stab{display:inline-block;}div.where{white-space:pre-wrap;font-size:0.875rem;}.item-info{display:block;margin-left:24px;}.item-info code{font-size:0.875rem;}#main-content>.item-info{margin-left:0;}nav.sub{flex-grow:1;flex-flow:row nowrap;margin:4px 0 25px 0;display:flex;align-items:center;}.search-form{position:relative;display:flex;height:34px;flex-grow:1;}.src nav.sub{margin:0 0 15px 0;}.section-header{display:block;position:relative;}.section-header:hover>.anchor,.impl:hover>.anchor,.trait-impl:hover>.anchor,.variant:hover>.anchor{display:initial;}.anchor{display:none;position:absolute;left:-0.5em;background:none !important;}.anchor.field{left:-5px;}.section-header>.anchor{left:-15px;padding-right:8px;}h2.section-header>.anchor{padding-right:6px;}a.doc-anchor{color:var(--main-color);display:none;position:absolute;left:-17px;padding-right:10px;padding-left:3px;}*:hover>.doc-anchor{display:block;}.top-doc>.docblock>*:first-child>.doc-anchor{display:none !important;}.main-heading a:hover,.example-wrap .rust a:hover,.all-items a:hover,.docblock a:not(.scrape-help):not(.tooltip):hover:not(.doc-anchor),.docblock-short a:not(.scrape-help):not(.tooltip):hover,.item-info a{text-decoration:underline;}.crate.block li.current a{font-weight:500;}table,.item-table{overflow-wrap:break-word;}.item-table{display:table;padding:0;margin:0;width:100%;}.item-table>li{display:table-row;}.item-table>li>div{display:table-cell;}.item-table>li>.item-name{padding-right:1.25rem;}.search-results-title{margin-top:0;white-space:nowrap;display:flex;align-items:baseline;}#crate-search-div{position:relative;min-width:5em;}#crate-search{min-width:115px;padding:0 23px 0 4px;max-width:100%;text-overflow:ellipsis;border:1px solid var(--border-color);border-radius:4px;outline:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;text-indent:0.01px;background-color:var(--main-background-color);color:inherit;line-height:1.5;font-weight:500;}#crate-search:hover,#crate-search:focus{border-color:var(--crate-search-hover-border);}#crate-search-div::after{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0;content:"";background-repeat:no-repeat;background-size:20px;background-position:calc(100% - 2px) 56%;background-image:url('data:image/svg+xml, \ - ');filter:var(--crate-search-div-filter);}#crate-search-div:hover::after,#crate-search-div:focus-within::after{filter:var(--crate-search-div-hover-filter);}#crate-search>option{font-size:1rem;}.search-input{-webkit-appearance:none;outline:none;border:1px solid var(--border-color);border-radius:2px;padding:8px;font-size:1rem;flex-grow:1;background-color:var(--button-background-color);color:var(--search-color);}.search-input:focus{border-color:var(--search-input-focused-border-color);}.search-results{display:none;}.search-results.active{display:block;}.search-results>a{display:flex;margin-left:2px;margin-right:2px;border-bottom:1px solid var(--search-result-border-color);gap:1em;}.search-results>a>div.desc{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:2;}.search-results a:hover,.search-results a:focus{background-color:var(--search-result-link-focus-background-color);}.search-results .result-name{display:flex;align-items:center;justify-content:start;flex:3;}.search-results .result-name .alias{color:var(--search-results-alias-color);}.search-results .result-name .grey{color:var(--search-results-grey-color);}.search-results .result-name .typename{color:var(--search-results-grey-color);font-size:0.875rem;width:var(--search-typename-width);}.search-results .result-name .path{word-break:break-all;max-width:calc(100% - var(--search-typename-width));display:inline-block;}.search-results .result-name .path>*{display:inline;}.popover{position:absolute;top:100%;right:0;z-index:calc(var(--desktop-sidebar-z-index) + 1);margin-top:7px;border-radius:3px;border:1px solid var(--border-color);background-color:var(--main-background-color);color:var(--main-color);--popover-arrow-offset:11px;}.popover::before{content:'';position:absolute;right:var(--popover-arrow-offset);border:solid var(--border-color);border-width:1px 1px 0 0;background-color:var(--main-background-color);padding:4px;transform:rotate(-45deg);top:-5px;}.setting-line{margin:1.2em 0.6em;}.setting-radio input,.setting-check input{margin-right:0.3em;height:1.2rem;width:1.2rem;border:2px solid var(--settings-input-border-color);outline:none;-webkit-appearance:none;cursor:pointer;}.setting-radio input{border-radius:50%;}.setting-radio span,.setting-check span{padding-bottom:1px;}.setting-radio{margin-top:0.1em;margin-bottom:0.1em;min-width:3.8em;padding:0.3em;display:inline-flex;align-items:center;cursor:pointer;}.setting-radio+.setting-radio{margin-left:0.5em;}.setting-check{margin-right:20px;display:flex;align-items:center;cursor:pointer;}.setting-radio input:checked{box-shadow:inset 0 0 0 3px var(--main-background-color);background-color:var(--settings-input-color);}.setting-check input:checked{background-color:var(--settings-input-color);border-width:1px;content:url('data:image/svg+xml,\ - \ - ');}.setting-radio input:focus,.setting-check input:focus{box-shadow:0 0 1px 1px var(--settings-input-color);}.setting-radio input:checked:focus{box-shadow:inset 0 0 0 3px var(--main-background-color),0 0 2px 2px var(--settings-input-color);}.setting-radio input:hover,.setting-check input:hover{border-color:var(--settings-input-color) !important;}#help.popover{max-width:600px;--popover-arrow-offset:48px;}#help dt{float:left;clear:left;margin-right:0.5rem;}#help span.top,#help span.bottom{text-align:center;display:block;font-size:1.125rem;}#help span.top{margin:10px 0;border-bottom:1px solid var(--border-color);padding-bottom:4px;margin-bottom:6px;}#help span.bottom{clear:both;border-top:1px solid var(--border-color);}.side-by-side>div{width:50%;float:left;padding:0 20px 20px 17px;}.item-info .stab{display:block;padding:3px;margin-bottom:5px;}.item-name .stab{margin-left:0.3125em;}.stab{padding:0 2px;font-size:0.875rem;font-weight:normal;color:var(--main-color);background-color:var(--stab-background-color);width:fit-content;white-space:pre-wrap;border-radius:3px;display:inline;vertical-align:baseline;}.stab.portability>code{background:none;color:var(--stab-code-color);}.stab .emoji,.item-info .stab::before{font-size:1.25rem;}.stab .emoji{margin-right:0.3rem;}.item-info .stab::before{content:"\0";width:0;display:inline-block;color:transparent;}.emoji{text-shadow:1px 0 0 black,-1px 0 0 black,0 1px 0 black,0 -1px 0 black;}.since{font-weight:normal;font-size:initial;}.rightside{padding-left:12px;float:right;}.rightside:not(a),.out-of-band{color:var(--right-side-color);}pre.rust{tab-size:4;-moz-tab-size:4;}pre.rust .kw{color:var(--code-highlight-kw-color);}pre.rust .kw-2{color:var(--code-highlight-kw-2-color);}pre.rust .lifetime{color:var(--code-highlight-lifetime-color);}pre.rust .prelude-ty{color:var(--code-highlight-prelude-color);}pre.rust .prelude-val{color:var(--code-highlight-prelude-val-color);}pre.rust .string{color:var(--code-highlight-string-color);}pre.rust .number{color:var(--code-highlight-number-color);}pre.rust .bool-val{color:var(--code-highlight-literal-color);}pre.rust .self{color:var(--code-highlight-self-color);}pre.rust .attr{color:var(--code-highlight-attribute-color);}pre.rust .macro,pre.rust .macro-nonterminal{color:var(--code-highlight-macro-color);}pre.rust .question-mark{font-weight:bold;color:var(--code-highlight-question-mark-color);}pre.rust .comment{color:var(--code-highlight-comment-color);}pre.rust .doccomment{color:var(--code-highlight-doc-comment-color);}.rustdoc.src .example-wrap pre.rust a{background:var(--codeblock-link-background);}.example-wrap.compile_fail,.example-wrap.should_panic{border-left:2px solid var(--codeblock-error-color);}.ignore.example-wrap{border-left:2px solid var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover,.example-wrap.should_panic:hover{border-left:2px solid var(--codeblock-error-hover-color);}.example-wrap.ignore:hover{border-left:2px solid var(--codeblock-ignore-hover-color);}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip{color:var(--codeblock-error-color);}.example-wrap.ignore .tooltip{color:var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover .tooltip,.example-wrap.should_panic:hover .tooltip{color:var(--codeblock-error-hover-color);}.example-wrap.ignore:hover .tooltip{color:var(--codeblock-ignore-hover-color);}.example-wrap .tooltip{position:absolute;display:block;left:-25px;top:5px;margin:0;line-height:1;}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip,.example-wrap.ignore .tooltip{font-weight:bold;font-size:1.25rem;}.content .docblock .warning{border-left:2px solid var(--warning-border-color);padding:14px;position:relative;overflow-x:visible !important;}.content .docblock .warning::before{color:var(--warning-border-color);content:"ⓘ";position:absolute;left:-25px;top:5px;font-weight:bold;font-size:1.25rem;}.top-doc>.docblock>.warning:first-child::before{top:20px;}.example-wrap>a.test-arrow,.example-wrap .button-holder{visibility:hidden;position:absolute;top:4px;right:4px;z-index:1;}a.test-arrow{height:var(--copy-path-height);padding:6px 4px 0 11px;}a.test-arrow::before{content:url('data:image/svg+xml,');}.example-wrap .button-holder{display:flex;}@media not (pointer:coarse){.example-wrap:hover>a.test-arrow,.example-wrap:hover>.button-holder{visibility:visible;}}.example-wrap .button-holder.keep-visible{visibility:visible;}.example-wrap .button-holder .copy-button,.example-wrap .test-arrow{background:var(--main-background-color);cursor:pointer;border-radius:var(--button-border-radius);height:var(--copy-path-height);width:var(--copy-path-width);}.example-wrap .button-holder .copy-button{margin-left:var(--button-left-margin);padding:2px 0 0 4px;border:0;}.example-wrap .button-holder .copy-button::before,.example-wrap .test-arrow::before{filter:var(--copy-path-img-filter);}.example-wrap .button-holder .copy-button::before{content:var(--clipboard-image);}.example-wrap .button-holder .copy-button:hover::before,.example-wrap .test-arrow:hover::before{filter:var(--copy-path-img-hover-filter);}.example-wrap .button-holder .copy-button.clicked::before{content:var(--checkmark-image);padding-right:5px;}.code-attribute{font-weight:300;color:var(--code-attribute-color);}.item-spacer{width:100%;height:12px;display:block;}.out-of-band>span.since{font-size:1.25rem;}.sub-variant h4{font-size:1rem;font-weight:400;margin-top:0;margin-bottom:0;}.sub-variant{margin-left:24px;margin-bottom:40px;}.sub-variant>.sub-variant-field{margin-left:24px;}@keyframes targetfadein{from{background-color:var(--main-background-color);}10%{background-color:var(--target-border-color);}to{background-color:var(--target-background-color);}}:target{padding-right:3px;background-color:var(--target-background-color);border-right:3px solid var(--target-border-color);animation:0.65s cubic-bezier(0,0,0.1,1.0) 0.1s targetfadein;}.code-header a.tooltip{color:inherit;margin-right:15px;position:relative;}.code-header a.tooltip:hover{color:var(--link-color);}a.tooltip:hover::after{position:absolute;top:calc(100% - 10px);left:-15px;right:-15px;height:20px;content:"\00a0";}.fade-out{opacity:0;transition:opacity 0.45s cubic-bezier(0,0,0.1,1.0);}.popover.tooltip .content{margin:0.25em 0.5em;}.popover.tooltip .content pre,.popover.tooltip .content code{background:transparent;margin:0;padding:0;font-size:1.25rem;white-space:pre-wrap;}.popover.tooltip .content>h3:first-child{margin:0 0 5px 0;}.search-failed{text-align:center;margin-top:20px;display:none;}.search-failed.active{display:block;}.search-failed>ul{text-align:left;max-width:570px;margin-left:auto;margin-right:auto;}#search-tabs{display:flex;flex-direction:row;gap:1px;margin-bottom:4px;}#search-tabs button{text-align:center;font-size:1.125rem;border:0;border-top:2px solid;flex:1;line-height:1.5;color:inherit;}#search-tabs button:not(.selected){background-color:var(--search-tab-button-not-selected-background);border-top-color:var(--search-tab-button-not-selected-border-top-color);}#search-tabs button:hover,#search-tabs button.selected{background-color:var(--search-tab-button-selected-background);border-top-color:var(--search-tab-button-selected-border-top-color);}#search-tabs .count{font-size:1rem;font-variant-numeric:tabular-nums;color:var(--search-tab-title-count-color);}#search .error code{border-radius:3px;background-color:var(--search-error-code-background-color);}.search-corrections{font-weight:normal;}#src-sidebar{width:100%;overflow:auto;}#src-sidebar div.files>a:hover,details.dir-entry summary:hover,#src-sidebar div.files>a:focus,details.dir-entry summary:focus{background-color:var(--src-sidebar-background-hover);}#src-sidebar div.files>a.selected{background-color:var(--src-sidebar-background-selected);}.src-sidebar-title{position:sticky;top:0;display:flex;padding:8px 8px 0 48px;margin-bottom:7px;background:var(--sidebar-background-color);border-bottom:1px solid var(--border-color);}#settings-menu,#help-button{margin-left:var(--button-left-margin);display:flex;}#sidebar-button{display:none;line-height:0;}.hide-sidebar #sidebar-button,.src #sidebar-button{display:flex;margin-right:4px;position:fixed;left:6px;height:34px;width:34px;background-color:var(--main-background-color);z-index:1;}.src #sidebar-button{left:8px;z-index:calc(var(--desktop-sidebar-z-index) + 1);}.hide-sidebar .src #sidebar-button{position:static;}#settings-menu>a,#help-button>a,#sidebar-button>a{display:flex;align-items:center;justify-content:center;background-color:var(--button-background-color);border:1px solid var(--border-color);border-radius:var(--button-border-radius);color:var(--settings-button-color);font-size:20px;width:33px;}#settings-menu>a:hover,#settings-menu>a:focus,#help-button>a:hover,#help-button>a:focus,#sidebar-button>a:hover,#sidebar-button>a:focus{border-color:var(--settings-button-border-focus);}#settings-menu>a{line-height:0;font-size:0;}#settings-menu>a:before{content:url('data:image/svg+xml,\ - ');width:22px;height:22px;filter:var(--settings-menu-filter);}#sidebar-button>a:before{content:url('data:image/svg+xml,\ - \ - \ - ');width:22px;height:22px;}#copy-path{color:var(--copy-path-button-color);background:var(--main-background-color);height:var(--copy-path-height);width:var(--copy-path-width);margin-left:10px;padding:0;padding-left:2px;border:0;font-size:0;}#copy-path::before{filter:var(--copy-path-img-filter);content:var(--clipboard-image);}#copy-path:hover::before{filter:var(--copy-path-img-hover-filter);}#copy-path.clicked::before{content:var(--checkmark-image);}@keyframes rotating{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}#settings-menu.rotate>a img{animation:rotating 2s linear infinite;}kbd{display:inline-block;padding:3px 5px;font:15px monospace;line-height:10px;vertical-align:middle;border:solid 1px var(--border-color);border-radius:3px;color:var(--kbd-color);background-color:var(--kbd-background);box-shadow:inset 0 -1px 0 var(--kbd-box-shadow-color);}ul.all-items>li{list-style:none;}details.dir-entry{padding-left:4px;}details.dir-entry>summary{margin:0 0 0 -4px;padding:0 0 0 4px;cursor:pointer;}details.dir-entry div.folders,details.dir-entry div.files{padding-left:23px;}details.dir-entry a{display:block;}details.toggle{contain:layout;position:relative;}details.toggle>summary.hideme{cursor:pointer;font-size:1rem;}details.toggle>summary{list-style:none;outline:none;}details.toggle>summary::-webkit-details-marker,details.toggle>summary::marker{display:none;}details.toggle>summary.hideme>span{margin-left:9px;}details.toggle>summary::before{background:url('data:image/svg+xml,') no-repeat top left;content:"";cursor:pointer;width:16px;height:16px;display:inline-block;vertical-align:middle;opacity:.5;filter:var(--toggle-filter);}details.toggle>summary.hideme>span,.more-examples-toggle summary,.more-examples-toggle .hide-more{color:var(--toggles-color);}details.toggle>summary::after{content:"Expand";overflow:hidden;width:0;height:0;position:absolute;}details.toggle>summary.hideme::after{content:"";}details.toggle>summary:focus::before,details.toggle>summary:hover::before{opacity:1;}details.toggle>summary:focus-visible::before{outline:1px dotted #000;outline-offset:1px;}details.non-exhaustive{margin-bottom:8px;}details.toggle>summary.hideme::before{position:relative;}details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;top:4px;}.impl-items>details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;}details.toggle[open] >summary.hideme{position:absolute;}details.toggle[open] >summary.hideme>span{display:none;}details.toggle[open] >summary::before{background:url('data:image/svg+xml,') no-repeat top left;}details.toggle[open] >summary::after{content:"Collapse";}.docblock summary>*{display:inline-block;}.docblock>.example-wrap:first-child .tooltip{margin-top:16px;}.src #sidebar-button>a:before,.sidebar-menu-toggle:before{content:url('data:image/svg+xml,\ - ');opacity:0.75;}.sidebar-menu-toggle:hover:before,.sidebar-menu-toggle:active:before,.sidebar-menu-toggle:focus:before{opacity:1;}.src #sidebar-button>a:before{content:url('data:image/svg+xml,\ - \ - \ - ');opacity:0.75;}@media (max-width:850px){#search-tabs .count{display:block;}}@media (max-width:700px){*[id]{scroll-margin-top:45px;}.rustdoc{display:block;}main{padding-left:15px;padding-top:0px;}.main-heading{flex-direction:column;}.out-of-band{text-align:left;margin-left:initial;padding:initial;}.out-of-band .since::before{content:"Since ";}.sidebar .logo-container,.sidebar .location,.sidebar-resizer{display:none;}.sidebar{position:fixed;top:45px;left:-1000px;z-index:11;height:calc(100vh - 45px);width:200px;}.src main,.rustdoc.src .sidebar{top:0;padding:0;height:100vh;border:0;}.src .search-form{margin-left:40px;}.hide-sidebar .search-form{margin-left:32px;}.hide-sidebar .src .search-form{margin-left:0;}.sidebar.shown,.src-sidebar-expanded .src .sidebar,.rustdoc:not(.src) .sidebar:focus-within{left:0;}.mobile-topbar h2{padding-bottom:0;margin:auto 0.5em auto auto;overflow:hidden;font-size:24px;white-space:nowrap;text-overflow:ellipsis;}.mobile-topbar .logo-container>img{max-width:35px;max-height:35px;margin:5px 0 5px 20px;}.mobile-topbar{display:flex;flex-direction:row;position:sticky;z-index:10;font-size:2rem;height:45px;width:100%;left:0;top:0;}.hide-sidebar .mobile-topbar{display:none;}.sidebar-menu-toggle{width:45px;border:none;line-height:0;}.hide-sidebar .sidebar-menu-toggle{display:none;}.sidebar-elems{margin-top:1em;}.anchor{display:none !important;}#main-content>details.toggle>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}#copy-path,#help-button{display:none;}#sidebar-button>a:before{content:url('data:image/svg+xml,\ - \ - \ - ');width:22px;height:22px;}.sidebar-menu-toggle:before{filter:var(--mobile-sidebar-menu-filter);}.sidebar-menu-toggle:hover{background:var(--main-background-color);}.item-table,.item-row,.item-table>li,.item-table>li>div,.search-results>a,.search-results>a>div{display:block;}.search-results>a{padding:5px 0px;}.search-results>a>div.desc,.item-table>li>div.desc{padding-left:2em;}.search-results .result-name{display:block;}.search-results .result-name .typename{width:initial;margin-right:0;}.search-results .result-name .typename,.search-results .result-name .path{display:inline;}.src-sidebar-expanded .src .sidebar{position:fixed;max-width:100vw;width:100vw;}.src .src-sidebar-title{padding-top:0;}details.toggle:not(.top-doc)>summary{margin-left:10px;}.impl-items>details.toggle>summary:not(.hideme)::before,#main-content>details.toggle:not(.top-doc)>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}.impl-items>.item-info{margin-left:34px;}.src nav.sub{margin:0;padding:var(--nav-sub-mobile-padding);}}@media (min-width:701px){.scraped-example-title{position:absolute;z-index:10;background:var(--main-background-color);bottom:8px;right:5px;padding:2px 4px;box-shadow:0 0 4px var(--main-background-color);}.item-table>li>.item-name{width:33%;}.item-table>li>div{overflow-wrap:anywhere;}}@media print{nav.sidebar,nav.sub,.out-of-band,a.src,#copy-path,details.toggle[open] >summary::before,details.toggle>summary::before,details.toggle.top-doc>summary{display:none;}.docblock{margin-left:0;}main{padding:10px;}}@media (max-width:464px){.docblock{margin-left:12px;}.docblock code{overflow-wrap:break-word;overflow-wrap:anywhere;}nav.sub{flex-direction:column;}.search-form{align-self:stretch;}}.variant,.implementors-toggle>summary,.impl,#implementors-list>.docblock,.impl-items>section,.impl-items>.toggle>summary,.methods>section,.methods>.toggle>summary{margin-bottom:0.75em;}.variants>.docblock,.implementors-toggle>.docblock,.impl-items>.toggle[open]:not(:last-child),.methods>.toggle[open]:not(:last-child),.implementors-toggle[open]:not(:last-child){margin-bottom:2em;}#trait-implementations-list .impl-items>.toggle:not(:last-child),#synthetic-implementations-list .impl-items>.toggle:not(:last-child),#blanket-implementations-list .impl-items>.toggle:not(:last-child){margin-bottom:1em;}.scraped-example-list .scrape-help{margin-left:10px;padding:0 4px;font-weight:normal;font-size:12px;position:relative;bottom:1px;border:1px solid var(--scrape-example-help-border-color);border-radius:50px;color:var(--scrape-example-help-color);}.scraped-example-list .scrape-help:hover{border-color:var(--scrape-example-help-hover-border-color);color:var(--scrape-example-help-hover-color);}.scraped-example{position:relative;}.scraped-example .code-wrapper{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;width:100%;}.scraped-example:not(.expanded) .code-wrapper{max-height:calc(1.5em * 5 + 10px);}.scraped-example:not(.expanded) .code-wrapper pre{overflow-y:hidden;padding-bottom:0;max-height:calc(1.5em * 5 + 10px);}.more-scraped-examples .scraped-example:not(.expanded) .code-wrapper,.more-scraped-examples .scraped-example:not(.expanded) .code-wrapper pre{max-height:calc(1.5em * 10 + 10px);}.scraped-example .code-wrapper .next,.scraped-example .code-wrapper .prev,.scraped-example .code-wrapper .expand{color:var(--main-color);position:absolute;top:0.25em;z-index:1;padding:0;background:none;border:none;-webkit-appearance:none;opacity:1;}.scraped-example .code-wrapper .prev{right:2.25em;}.scraped-example .code-wrapper .next{right:1.25em;}.scraped-example .code-wrapper .expand{right:0.25em;}.scraped-example:not(.expanded) .code-wrapper::before,.scraped-example:not(.expanded) .code-wrapper::after{content:" ";width:100%;height:5px;position:absolute;z-index:1;}.scraped-example:not(.expanded) .code-wrapper::before{top:0;background:linear-gradient(to bottom,var(--scrape-example-code-wrapper-background-start),var(--scrape-example-code-wrapper-background-end));}.scraped-example:not(.expanded) .code-wrapper::after{bottom:0;background:linear-gradient(to top,var(--scrape-example-code-wrapper-background-start),var(--scrape-example-code-wrapper-background-end));}.scraped-example .code-wrapper .example-wrap{width:100%;overflow-y:hidden;margin-bottom:0;}.scraped-example:not(.expanded) .code-wrapper .example-wrap{overflow-x:hidden;}.scraped-example .example-wrap .rust span.highlight{background:var(--scrape-example-code-line-highlight);}.scraped-example .example-wrap .rust span.highlight.focus{background:var(--scrape-example-code-line-highlight-focus);}.more-examples-toggle{max-width:calc(100% + 25px);margin-top:10px;margin-left:-25px;}.more-examples-toggle .hide-more{margin-left:25px;cursor:pointer;}.more-scraped-examples{margin-left:25px;position:relative;}.toggle-line{position:absolute;top:5px;bottom:0;right:calc(100% + 10px);padding:0 4px;cursor:pointer;}.toggle-line-inner{min-width:2px;height:100%;background:var(--scrape-example-toggle-line-background);}.toggle-line:hover .toggle-line-inner{background:var(--scrape-example-toggle-line-hover-background);}.more-scraped-examples .scraped-example,.example-links{margin-top:20px;}.more-scraped-examples .scraped-example:first-child{margin-top:5px;}.example-links ul{margin-bottom:0;}:root[data-theme="light"],:root:not([data-theme]){--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--settings-input-border-color:#717171;--settings-button-color:#000;--settings-button-border-focus:#717171;--sidebar-background-color:#f5f5f5;--sidebar-background-color-hover:#e0e0e0;--code-block-background-color:#f5f5f5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;--border-color:#e0e0e0;--button-background-color:#fff;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:none;--mobile-sidebar-menu-filter:none;--search-input-focused-border-color:#66afe9;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(35%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ad378a;--trait-link-color:#6e4fc9;--assoc-item-link-color:#3873ad;--function-link-color:#ad7c37;--macro-link-color:#068000;--keyword-link-color:#3873ad;--mod-link-color:#3873ad;--link-color:#3873ad;--sidebar-link-color:#356da4;--sidebar-current-link-background-color:#fff;--search-result-link-focus-background-color:#ccc;--search-result-border-color:#aaa3;--search-color:#000;--search-error-code-background-color:#d0cccc;--search-results-alias-color:#000;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#e6e6e6;--search-tab-button-not-selected-background:#e6e6e6;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#fff;--settings-menu-filter:none;--stab-background-color:#fff5d6;--stab-code-color:#000;--code-highlight-kw-color:#8959a8;--code-highlight-kw-2-color:#4271ae;--code-highlight-lifetime-color:#b76514;--code-highlight-prelude-color:#4271ae;--code-highlight-prelude-val-color:#c82829;--code-highlight-number-color:#718c00;--code-highlight-string-color:#718c00;--code-highlight-literal-color:#c82829;--code-highlight-attribute-color:#c82829;--code-highlight-self-color:#c82829;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8e908c;--code-highlight-doc-comment-color:#4d4d4c;--src-line-numbers-span-color:#c67e2d;--src-line-number-highlighted-background-color:#fdffd3;--target-background-color:#fdffd3;--target-border-color:#ad7c37;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:initial;--crate-search-div-filter:invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);--crate-search-div-hover-filter:invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);--crate-search-hover-border:#717171;--src-sidebar-background-selected:#fff;--src-sidebar-background-hover:#e0e0e0;--table-alt-row-background-color:#f5f5f5;--codeblock-link-background:#eee;--scrape-example-toggle-line-background:#ccc;--scrape-example-toggle-line-hover-background:#999;--scrape-example-code-line-highlight:#fcffd6;--scrape-example-code-line-highlight-focus:#f6fdb0;--scrape-example-help-border-color:#555;--scrape-example-help-color:#333;--scrape-example-help-hover-border-color:#000;--scrape-example-help-hover-color:#000;--scrape-example-code-wrapper-background-start:rgba(255,255,255,1);--scrape-example-code-wrapper-background-end:rgba(255,255,255,0);--sidebar-resizer-hover:hsl(207,90%,66%);--sidebar-resizer-active:hsl(207,90%,54%);}:root[data-theme="dark"]{--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--settings-input-border-color:#999;--settings-button-color:#000;--settings-button-border-focus:#ffb900;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;--border-color:#e0e0e0;--button-background-color:#f0f0f0;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--mobile-sidebar-menu-filter:invert(100%);--search-input-focused-border-color:#008dfd;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(65%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#2dbfb8;--trait-link-color:#b78cf2;--assoc-item-link-color:#d2991d;--function-link-color:#2bab63;--macro-link-color:#09bd00;--keyword-link-color:#d2991d;--mod-link-color:#d2991d;--link-color:#d2991d;--sidebar-link-color:#fdbf35;--sidebar-current-link-background-color:#444;--search-result-link-focus-background-color:#616161;--search-result-border-color:#aaa3;--search-color:#111;--search-error-code-background-color:#484848;--search-results-alias-color:#fff;--search-results-grey-color:#ccc;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#252525;--search-tab-button-not-selected-background:#252525;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#353535;--settings-menu-filter:none;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ab8ac1;--code-highlight-kw-2-color:#769acb;--code-highlight-lifetime-color:#d97f26;--code-highlight-prelude-color:#769acb;--code-highlight-prelude-val-color:#ee6868;--code-highlight-number-color:#83a300;--code-highlight-string-color:#83a300;--code-highlight-literal-color:#ee6868;--code-highlight-attribute-color:#ee6868;--code-highlight-self-color:#ee6868;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8d8d8b;--code-highlight-doc-comment-color:#8ca375;--src-line-numbers-span-color:#3b91e2;--src-line-number-highlighted-background-color:#0a042f;--target-background-color:#494a3d;--target-border-color:#bb7410;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);--crate-search-div-hover-filter:invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);--crate-search-hover-border:#2196f3;--src-sidebar-background-selected:#333;--src-sidebar-background-hover:#444;--table-alt-row-background-color:#2a2a2a;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(53,53,53,1);--scrape-example-code-wrapper-background-end:rgba(53,53,53,0);--sidebar-resizer-hover:hsl(207,30%,54%);--sidebar-resizer-active:hsl(207,90%,54%);}:root[data-theme="ayu"]{--main-background-color:#0f1419;--main-color:#c5c5c5;--settings-input-color:#ffb454;--settings-input-border-color:#999;--settings-button-color:#fff;--settings-button-border-focus:#e0e0e0;--sidebar-background-color:#14191f;--sidebar-background-color-hover:rgba(70,70,70,0.33);--code-block-background-color:#191f26;--scrollbar-track-background-color:transparent;--scrollbar-thumb-background-color:#5c6773;--scrollbar-color:#5c6773 #24292f;--headings-border-bottom-color:#5c6773;--border-color:#5c6773;--button-background-color:#141920;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--mobile-sidebar-menu-filter:invert(100%);--search-input-focused-border-color:#5c6773;--copy-path-button-color:#fff;--copy-path-img-filter:invert(70%);--copy-path-img-hover-filter:invert(100%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ffa0a5;--trait-link-color:#39afd7;--assoc-item-link-color:#39afd7;--function-link-color:#fdd687;--macro-link-color:#a37acc;--keyword-link-color:#39afd7;--mod-link-color:#39afd7;--link-color:#39afd7;--sidebar-link-color:#53b1db;--sidebar-current-link-background-color:transparent;--search-result-link-focus-background-color:#3c3c3c;--search-result-border-color:#aaa3;--search-color:#fff;--search-error-code-background-color:#4f4c4c;--search-results-alias-color:#c5c5c5;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:none;--search-tab-button-not-selected-background:transparent !important;--search-tab-button-selected-border-top-color:none;--search-tab-button-selected-background:#141920 !important;--settings-menu-filter:invert(100%);--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ff7733;--code-highlight-kw-2-color:#ff7733;--code-highlight-lifetime-color:#ff7733;--code-highlight-prelude-color:#69f2df;--code-highlight-prelude-val-color:#ff7733;--code-highlight-number-color:#b8cc52;--code-highlight-string-color:#b8cc52;--code-highlight-literal-color:#ff7733;--code-highlight-attribute-color:#e6e1cf;--code-highlight-self-color:#36a3d9;--code-highlight-macro-color:#a37acc;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#788797;--code-highlight-doc-comment-color:#a1ac88;--src-line-numbers-span-color:#5c6773;--src-line-number-highlighted-background-color:rgba(255,236,164,0.06);--target-background-color:rgba(255,236,164,0.06);--target-border-color:rgba(255,180,76,0.85);--kbd-color:#c5c5c5;--kbd-background:#314559;--kbd-box-shadow-color:#5c6773;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(41%) sepia(12%) saturate(487%) hue-rotate(171deg) brightness(94%) contrast(94%);--crate-search-div-hover-filter:invert(98%) sepia(12%) saturate(81%) hue-rotate(343deg) brightness(113%) contrast(76%);--crate-search-hover-border:#e0e0e0;--src-sidebar-background-selected:#14191f;--src-sidebar-background-hover:#14191f;--table-alt-row-background-color:#191f26;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(15,20,25,1);--scrape-example-code-wrapper-background-end:rgba(15,20,25,0);--sidebar-resizer-hover:hsl(34,50%,33%);--sidebar-resizer-active:hsl(34,100%,66%);}:root[data-theme="ayu"] h1,:root[data-theme="ayu"] h2,:root[data-theme="ayu"] h3,:root[data-theme="ayu"] h4,:where(:root[data-theme="ayu"]) h1 a,:root[data-theme="ayu"] .sidebar h2 a,:root[data-theme="ayu"] .sidebar h3 a{color:#fff;}:root[data-theme="ayu"] .docblock code{color:#ffb454;}:root[data-theme="ayu"] .docblock a>code{color:#39AFD7 !important;}:root[data-theme="ayu"] .code-header,:root[data-theme="ayu"] .docblock pre>code,:root[data-theme="ayu"] pre,:root[data-theme="ayu"] pre>code,:root[data-theme="ayu"] .item-info code,:root[data-theme="ayu"] .rustdoc.source .example-wrap{color:#e6e1cf;}:root[data-theme="ayu"] .sidebar .current,:root[data-theme="ayu"] .sidebar .current a,:root[data-theme="ayu"] .sidebar a:hover,:root[data-theme="ayu"] #src-sidebar div.files>a:hover,:root[data-theme="ayu"] details.dir-entry summary:hover,:root[data-theme="ayu"] #src-sidebar div.files>a:focus,:root[data-theme="ayu"] details.dir-entry summary:focus,:root[data-theme="ayu"] #src-sidebar div.files>a.selected{color:#ffb44c;}:root[data-theme="ayu"] .sidebar-elems .location{color:#ff7733;}:root[data-theme="ayu"] .src-line-numbers .line-highlighted{color:#708090;padding-right:7px;border-right:1px solid #ffb44c;}:root[data-theme="ayu"] .search-results a:hover,:root[data-theme="ayu"] .search-results a:focus{color:#fff !important;background-color:#3c3c3c;}:root[data-theme="ayu"] .search-results a{color:#0096cf;}:root[data-theme="ayu"] .search-results a div.desc{color:#c5c5c5;}:root[data-theme="ayu"] .result-name .primitive>i,:root[data-theme="ayu"] .result-name .keyword>i{color:#788797;}:root[data-theme="ayu"] #search-tabs>button.selected{border-bottom:1px solid #ffb44c !important;border-top:none;}:root[data-theme="ayu"] #search-tabs>button:not(.selected){border:none;background-color:transparent !important;}:root[data-theme="ayu"] #search-tabs>button:hover{border-bottom:1px solid rgba(242,151,24,0.3);}:root[data-theme="ayu"] #settings-menu>a img,:root[data-theme="ayu"] #sidebar-button>a:before{filter:invert(100);} \ No newline at end of file diff --git a/static.files/rustdoc-b0742ba02757f159.css b/static.files/rustdoc-b0742ba02757f159.css new file mode 100644 index 0000000000..9fef311de7 --- /dev/null +++ b/static.files/rustdoc-b0742ba02757f159.css @@ -0,0 +1,53 @@ + :root{--nav-sub-mobile-padding:8px;--search-typename-width:6.75rem;--desktop-sidebar-width:200px;--src-sidebar-width:300px;--desktop-sidebar-z-index:100;--sidebar-elems-left-padding:24px;--clipboard-image:url('data:image/svg+xml,\ +\ +\ +');--copy-path-height:34px;--copy-path-width:33px;--checkmark-image:url('data:image/svg+xml,\ +\ +');--button-left-margin:4px;--button-border-radius:2px;--toolbar-button-border-radius:6px;--code-block-border-radius:6px;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:400;src:local('Fira Sans'),url("FiraSans-Regular-018c141bf0843ffd.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:500;src:local('Fira Sans Medium'),url("FiraSans-Medium-8f9a781e4970d388.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:400;src:local('Source Serif 4'),url("SourceSerif4-Regular-46f98efaafac5295.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:italic;font-weight:400;src:local('Source Serif 4 Italic'),url("SourceSerif4-It-acdfaf1a8af734b1.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:700;src:local('Source Serif 4 Bold'),url("SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:400;src:url("SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:italic;font-weight:400;src:url("SourceCodePro-It-1cc31594bf4f1f79.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:600;src:url("SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'NanumBarunGothic';src:url("NanumBarunGothic-0f09457c7a19b7c6.ttf.woff2") format("woff2");font-display:swap;unicode-range:U+AC00-D7AF,U+1100-11FF,U+3130-318F,U+A960-A97F,U+D7B0-D7FF;}*{box-sizing:border-box;}body{font:1rem/1.5 "Source Serif 4",NanumBarunGothic,serif;margin:0;position:relative;overflow-wrap:break-word;overflow-wrap:anywhere;font-feature-settings:"kern","liga";background-color:var(--main-background-color);color:var(--main-color);}h1{font-size:1.5rem;}h2{font-size:1.375rem;}h3{font-size:1.25rem;}h1,h2,h3,h4,h5,h6{font-weight:500;}h1,h2,h3,h4{margin:25px 0 15px 0;padding-bottom:6px;}.docblock h3,.docblock h4,h5,h6{margin:15px 0 5px 0;}.docblock>h2:first-child,.docblock>h3:first-child,.docblock>h4:first-child,.docblock>h5:first-child,.docblock>h6:first-child{margin-top:0;}.main-heading h1{margin:0;padding:0;grid-area:main-heading-h1;overflow-wrap:break-word;overflow-wrap:anywhere;}.main-heading{position:relative;display:grid;grid-template-areas:"main-heading-breadcrumbs main-heading-breadcrumbs" "main-heading-h1 main-heading-toolbar" "main-heading-sub-heading main-heading-toolbar";grid-template-columns:minmax(105px,1fr) minmax(0,max-content);grid-template-rows:minmax(25px,min-content) min-content min-content;padding-bottom:6px;margin-bottom:11px;}.rustdoc-breadcrumbs{grid-area:main-heading-breadcrumbs;line-height:1.25;display:flex;flex-wrap:wrap;align-items:end;padding-top:5px;}.rustdoc-breadcrumbs a{padding:4px 0;margin:-4px 0;z-index:1;}.content h2,.top-doc .docblock>h3,.top-doc .docblock>h4{border-bottom:1px solid var(--headings-border-bottom-color);}h1,h2{line-height:1.25;padding-top:3px;padding-bottom:9px;}h3.code-header{font-size:1.125rem;}h4.code-header{font-size:1rem;}.code-header{font-weight:600;margin:0;padding:0;white-space:pre-wrap;}.structfield{margin:0.6em 0;}#crate-search,h1,h2,h3,h4,h5,h6,.sidebar,.mobile-topbar,.search-input,.search-results .result-name,.item-name>a,.out-of-band,.sub-heading,span.since,a.src,rustdoc-toolbar,summary.hideme,.scraped-example-list,.rustdoc-breadcrumbs,ul.all-items{font-family:"Fira Sans",Arial,NanumBarunGothic,sans-serif;}#toggle-all-docs,a.anchor,.section-header a,#src-sidebar a,.rust a,.sidebar h2 a,.sidebar h3 a,.mobile-topbar h2 a,h1 a,.search-results a,.stab,.result-name i{color:var(--main-color);}span.enum,a.enum,span.struct,a.struct,span.union,a.union,span.primitive,a.primitive,span.type,a.type,span.foreigntype,a.foreigntype{color:var(--type-link-color);}span.trait,a.trait,span.traitalias,a.traitalias{color:var(--trait-link-color);}span.associatedtype,a.associatedtype,span.constant,a.constant,span.static,a.static{color:var(--assoc-item-link-color);}span.fn,a.fn,span.method,a.method,span.tymethod,a.tymethod{color:var(--function-link-color);}span.attr,a.attr,span.derive,a.derive,span.macro,a.macro{color:var(--macro-link-color);}span.mod,a.mod{color:var(--mod-link-color);}span.keyword,a.keyword{color:var(--keyword-link-color);}a{color:var(--link-color);text-decoration:none;}ol,ul{padding-left:24px;}ul ul,ol ul,ul ol,ol ol{margin-bottom:.625em;}p,.docblock>.warning{margin:0 0 .75em 0;}p:last-child,.docblock>.warning:last-child{margin:0;}button{padding:1px 6px;cursor:pointer;}button#toggle-all-docs{padding:0;background:none;border:none;-webkit-appearance:none;opacity:1;}.rustdoc{display:flex;flex-direction:row;flex-wrap:nowrap;}main{position:relative;flex-grow:1;padding:10px 15px 40px 45px;min-width:0;}.src main{padding:15px;}.width-limiter{max-width:960px;margin-right:auto;}details:not(.toggle) summary{margin-bottom:.6em;}code,pre,.code-header{font-family:"Source Code Pro",monospace;}.docblock code,.docblock-short code{border-radius:3px;padding:0 0.125em;}.docblock pre code,.docblock-short pre code{padding:0;}pre{padding:14px;line-height:1.5;}pre.item-decl{overflow-x:auto;}.item-decl .type-contents-toggle{contain:initial;}.src .content pre{padding:20px;}.rustdoc.src .example-wrap .src-line-numbers{padding:20px 0 20px 4px;}img{max-width:100%;}.logo-container{line-height:0;display:block;}.rust-logo{filter:var(--rust-logo-filter);}.sidebar{font-size:0.875rem;flex:0 0 var(--desktop-sidebar-width);width:var(--desktop-sidebar-width);overflow-y:scroll;overscroll-behavior:contain;position:sticky;height:100vh;top:0;left:0;z-index:var(--desktop-sidebar-z-index);}.rustdoc.src .sidebar{flex-basis:50px;width:50px;border-right:1px solid;overflow-x:hidden;overflow-y:hidden;}.hide-sidebar .sidebar,.hide-sidebar .sidebar-resizer{display:none;}.sidebar-resizer{touch-action:none;width:9px;cursor:col-resize;z-index:calc(var(--desktop-sidebar-z-index) + 1);position:fixed;height:100%;left:calc(var(--desktop-sidebar-width) + 1px);}.rustdoc.src .sidebar-resizer{left:49px;}.src-sidebar-expanded .src .sidebar-resizer{left:var(--src-sidebar-width);}.sidebar-resizing{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;}.sidebar-resizing*{cursor:col-resize !important;}.sidebar-resizing .sidebar{position:fixed;}.sidebar-resizing>body{padding-left:var(--resizing-sidebar-width);}.sidebar-resizer:hover,.sidebar-resizer:active,.sidebar-resizer:focus,.sidebar-resizer.active{width:10px;margin:0;left:var(--desktop-sidebar-width);border-left:solid 1px var(--sidebar-resizer-hover);}.src-sidebar-expanded .rustdoc.src .sidebar-resizer:hover,.src-sidebar-expanded .rustdoc.src .sidebar-resizer:active,.src-sidebar-expanded .rustdoc.src .sidebar-resizer:focus,.src-sidebar-expanded .rustdoc.src .sidebar-resizer.active{left:calc(var(--src-sidebar-width) - 1px);}@media (pointer:coarse){.sidebar-resizer{display:none !important;}}.sidebar-resizer.active{padding:0 140px;width:2px;margin-left:-140px;border-left:none;}.sidebar-resizer.active:before{border-left:solid 2px var(--sidebar-resizer-active);display:block;height:100%;content:"";}.sidebar,.mobile-topbar,.sidebar-menu-toggle,#src-sidebar{background-color:var(--sidebar-background-color);}.src .sidebar>*{visibility:hidden;}.src-sidebar-expanded .src .sidebar{overflow-y:auto;flex-basis:var(--src-sidebar-width);width:var(--src-sidebar-width);}.src-sidebar-expanded .src .sidebar>*{visibility:visible;}#all-types{margin-top:1em;}*{scrollbar-width:initial;scrollbar-color:var(--scrollbar-color);}.sidebar{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color);}::-webkit-scrollbar{width:12px;}.sidebar::-webkit-scrollbar{width:8px;}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0;background-color:var(--scrollbar-track-background-color);}.sidebar::-webkit-scrollbar-track{background-color:var(--scrollbar-track-background-color);}::-webkit-scrollbar-thumb,.sidebar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-background-color);}.hidden{display:none !important;}.logo-container>img{height:48px;width:48px;}ul.block,.block li,.block ul{padding:0;margin:0;list-style:none;}.block ul a{padding-left:1rem;}.sidebar-elems a,.sidebar>h2 a{display:block;padding:0.25rem;margin-right:0.25rem;border-left:solid var(--sidebar-elems-left-padding) transparent;margin-left:calc(-0.25rem - var(--sidebar-elems-left-padding));background-clip:border-box;}.hide-toc #rustdoc-toc,.hide-toc .in-crate{display:none;}.hide-modnav #rustdoc-modnav{display:none;}.sidebar h2{text-wrap:balance;overflow-wrap:anywhere;padding:0;margin:0.7rem 0;}.sidebar h3{text-wrap:balance;overflow-wrap:anywhere;font-size:1.125rem;padding:0;margin:0;}.sidebar-elems,.sidebar>.version,.sidebar>h2{padding-left:var(--sidebar-elems-left-padding);}.sidebar a{color:var(--sidebar-link-color);}.sidebar .current,.sidebar .current a,.sidebar-crate a.logo-container:hover+h2 a,.sidebar a:hover:not(.logo-container){background-color:var(--sidebar-current-link-background-color);}.sidebar-elems .block{margin-bottom:2em;}.sidebar-elems .block li a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}.sidebar-crate{display:flex;align-items:center;justify-content:center;margin:14px 32px 1rem;row-gap:10px;column-gap:32px;flex-wrap:wrap;}.sidebar-crate h2{flex-grow:1;margin:0 -8px;align-self:start;}.sidebar-crate .logo-container{margin:0 calc(-16px - var(--sidebar-elems-left-padding));padding:0 var(--sidebar-elems-left-padding);text-align:center;}.sidebar-crate .logo-container img{margin-top:-16px;border-top:solid 16px transparent;box-sizing:content-box;position:relative;background-clip:border-box;z-index:1;}.sidebar-crate h2 a{display:block;border-left:solid var(--sidebar-elems-left-padding) transparent;background-clip:border-box;margin:0 calc(-24px + 0.25rem) 0 calc(-0.2rem - var(--sidebar-elems-left-padding));padding:calc((16px - 0.57rem ) / 2 ) 0.25rem;padding-left:0.2rem;}.sidebar-crate h2 .version{display:block;font-weight:normal;font-size:1rem;overflow-wrap:break-word;}.sidebar-crate+.version{margin-top:-1rem;margin-bottom:1rem;}.mobile-topbar{display:none;}.rustdoc .example-wrap{display:flex;position:relative;margin-bottom:10px;}.rustdoc .example-wrap>pre,.rustdoc .scraped-example .src-line-numbers,.rustdoc .scraped-example .src-line-numbers>pre{border-radius:6px;}.rustdoc .example-wrap>.example-line-numbers,.rustdoc .scraped-example .src-line-numbers,.rustdoc .scraped-example .src-line-numbers>pre{border-top-right-radius:0;border-bottom-right-radius:0;}.rustdoc .example-wrap>.example-line-numbers+pre,.rustdoc .scraped-example .rust{border-top-left-radius:0;border-bottom-left-radius:0;}.rustdoc .scraped-example{position:relative;}.rustdoc .example-wrap:last-child{margin-bottom:0px;}.rustdoc .example-wrap pre{margin:0;flex-grow:1;}.scraped-example:not(.expanded) .example-wrap{max-height:calc(1.5em * 5 + 10px);}.more-scraped-examples .scraped-example:not(.expanded) .example-wrap{max-height:calc(1.5em * 10 + 10px);}.rustdoc:not(.src) .scraped-example:not(.expanded) .src-line-numbers,.rustdoc:not(.src) .scraped-example:not(.expanded) .src-line-numbers>pre,.rustdoc:not(.src) .scraped-example:not(.expanded) pre.rust{padding-bottom:0;overflow:auto hidden;}.rustdoc:not(.src) .scraped-example .src-line-numbers{padding-top:0;}.rustdoc:not(.src) .scraped-example.expanded .src-line-numbers{padding-bottom:0;}.rustdoc:not(.src) .example-wrap pre{overflow:auto;}.rustdoc .example-wrap pre.example-line-numbers,.rustdoc .example-wrap .src-line-numbers{min-width:fit-content;flex-grow:0;text-align:right;-webkit-user-select:none;user-select:none;padding:14px 8px;padding-right:2px;color:var(--src-line-numbers-span-color);}.rustdoc .scraped-example .example-wrap .src-line-numbers{padding:0;}.rustdoc .src-line-numbers pre{padding:14px 0;}.src-line-numbers a,.src-line-numbers span{color:var(--src-line-numbers-span-color);padding:0 8px;}.src-line-numbers :target{background-color:transparent;border-right:none;padding:0 8px;}.src-line-numbers .line-highlighted{background-color:var(--src-line-number-highlighted-background-color);}.search-loading{text-align:center;}.docblock-short{overflow-wrap:break-word;overflow-wrap:anywhere;}.docblock :not(pre)>code,.docblock-short code{white-space:pre-wrap;}.top-doc .docblock h2{font-size:1.375rem;}.top-doc .docblock h3{font-size:1.25rem;}.top-doc .docblock h4,.top-doc .docblock h5{font-size:1.125rem;}.top-doc .docblock h6{font-size:1rem;}.docblock h5{font-size:1rem;}.docblock h6{font-size:0.875rem;}.docblock{margin-left:24px;position:relative;}.docblock>:not(.more-examples-toggle):not(.example-wrap){max-width:100%;overflow-x:auto;}.sub-heading{font-size:1rem;flex-grow:0;grid-area:main-heading-sub-heading;line-height:1.25;padding-bottom:4px;}.main-heading rustdoc-toolbar,.main-heading .out-of-band{grid-area:main-heading-toolbar;}rustdoc-toolbar{display:flex;flex-direction:row;flex-wrap:nowrap;min-height:60px;}.docblock code,.docblock-short code,pre,.rustdoc.src .example-wrap,.example-wrap .src-line-numbers{background-color:var(--code-block-background-color);border-radius:var(--code-block-border-radius);}#main-content{position:relative;}.docblock table{margin:.5em 0;border-collapse:collapse;}.docblock table td,.docblock table th{padding:.5em;border:1px solid var(--border-color);}.docblock table tbody tr:nth-child(2n){background:var(--table-alt-row-background-color);}.docblock .stab,.docblock-short .stab{display:inline-block;}.docblock li{margin-bottom:.4em;}.docblock li p:not(:last-child){margin-bottom:.3em;}div.where{white-space:pre-wrap;font-size:0.875rem;}.item-info{display:block;margin-left:24px;}.item-info code{font-size:0.875rem;}#main-content>.item-info{margin-left:0;}nav.sub{flex-grow:1;flex-flow:row nowrap;margin:4px 0 0 0;display:flex;align-items:center;}.search-form{position:relative;display:flex;height:34px;flex-grow:1;}.src nav.sub{margin:0 0 -10px 0;}.section-header{display:block;position:relative;}.section-header:hover>.anchor,.impl:hover>.anchor,.trait-impl:hover>.anchor,.variant:hover>.anchor{display:initial;}.anchor{display:none;position:absolute;left:-0.5em;background:none !important;}.anchor.field{left:-5px;}.section-header>.anchor{left:-15px;padding-right:8px;}h2.section-header>.anchor{padding-right:6px;}a.doc-anchor{color:var(--main-color);display:none;position:absolute;left:-17px;padding-right:10px;padding-left:3px;}*:hover>.doc-anchor{display:block;}.top-doc>.docblock>*:first-child>.doc-anchor{display:none !important;}.main-heading a:hover,.example-wrap .rust a:hover,.all-items a:hover,.docblock a:not(.scrape-help):not(.tooltip):hover:not(.doc-anchor),.docblock-short a:not(.scrape-help):not(.tooltip):hover,.item-info a{text-decoration:underline;}.crate.block li.current a{font-weight:500;}table,.item-table{overflow-wrap:break-word;}.item-table{display:table;padding:0;margin:0;width:100%;}.item-table>li{display:table-row;}.item-table>li>div{display:table-cell;}.item-table>li>.item-name{padding-right:1.25rem;}.search-results-title{margin-top:0;white-space:nowrap;display:flex;align-items:baseline;}.search-results-title+.sub-heading{color:var(--main-color);display:flex;align-items:baseline;white-space:nowrap;}#crate-search-div{position:relative;min-width:0;}#crate-search{padding:0 23px 0 4px;max-width:100%;text-overflow:ellipsis;border:1px solid var(--border-color);border-radius:4px;outline:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;text-indent:0.01px;background-color:var(--main-background-color);color:inherit;line-height:1.5;font-weight:500;}#crate-search:hover,#crate-search:focus{border-color:var(--crate-search-hover-border);}#crate-search-div::after{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0;content:"";background-repeat:no-repeat;background-size:20px;background-position:calc(100% - 2px) 56%;background-image:url('data:image/svg+xml, \ + ');filter:var(--crate-search-div-filter);}#crate-search-div:hover::after,#crate-search-div:focus-within::after{filter:var(--crate-search-div-hover-filter);}#crate-search>option{font-size:1rem;}.search-input{-webkit-appearance:none;outline:none;border:1px solid var(--border-color);border-radius:2px;padding:8px;font-size:1rem;flex-grow:1;background-color:var(--button-background-color);color:var(--search-color);}.search-input:focus{border-color:var(--search-input-focused-border-color);}.search-results{display:none;}.search-results.active{display:block;}.search-results>a{display:flex;margin-left:2px;margin-right:2px;border-bottom:1px solid var(--search-result-border-color);gap:1em;}.search-results>a>div.desc{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:2;}.search-results a:hover,.search-results a:focus{background-color:var(--search-result-link-focus-background-color);}.search-results .result-name{display:flex;align-items:center;justify-content:start;flex:3;}.search-results .result-name .alias{color:var(--search-results-alias-color);}.search-results .result-name .grey{color:var(--search-results-grey-color);}.search-results .result-name .typename{color:var(--search-results-grey-color);font-size:0.875rem;width:var(--search-typename-width);}.search-results .result-name .path{word-break:break-all;max-width:calc(100% - var(--search-typename-width));display:inline-block;}.search-results .result-name .path>*{display:inline;}.popover{position:absolute;top:100%;right:0;z-index:calc(var(--desktop-sidebar-z-index) + 1);margin-top:7px;border-radius:3px;border:1px solid var(--border-color);background-color:var(--main-background-color);color:var(--main-color);--popover-arrow-offset:11px;}.popover::before{content:'';position:absolute;right:var(--popover-arrow-offset);border:solid var(--border-color);border-width:1px 1px 0 0;background-color:var(--main-background-color);padding:4px;transform:rotate(-45deg);top:-5px;}.setting-line{margin:1.2em 0.6em;}.setting-radio input,.setting-check input{margin-right:0.3em;height:1.2rem;width:1.2rem;border:2px solid var(--settings-input-border-color);outline:none;-webkit-appearance:none;cursor:pointer;}.setting-radio input{border-radius:50%;}.setting-radio span,.setting-check span{padding-bottom:1px;}.setting-radio{margin-top:0.1em;margin-bottom:0.1em;min-width:3.8em;padding:0.3em;display:inline-flex;align-items:center;cursor:pointer;}.setting-radio+.setting-radio{margin-left:0.5em;}.setting-check{margin-right:20px;display:flex;align-items:center;cursor:pointer;}.setting-radio input:checked{box-shadow:inset 0 0 0 3px var(--main-background-color);background-color:var(--settings-input-color);}.setting-check input:checked{background-color:var(--settings-input-color);border-width:1px;content:url('data:image/svg+xml,\ + \ + ');}.setting-radio input:focus,.setting-check input:focus{box-shadow:0 0 1px 1px var(--settings-input-color);}.setting-radio input:checked:focus{box-shadow:inset 0 0 0 3px var(--main-background-color),0 0 2px 2px var(--settings-input-color);}.setting-radio input:hover,.setting-check input:hover{border-color:var(--settings-input-color) !important;}#settings.popover{--popover-arrow-offset:202px;top:calc(100% - 16px);}#help.popover{max-width:600px;--popover-arrow-offset:118px;top:calc(100% - 16px);}#help dt{float:left;clear:left;margin-right:0.5rem;}#help dd{margin-bottom:0.5rem;}#help span.top,#help span.bottom{text-align:center;display:block;font-size:1.125rem;padding:0 0.5rem;text-wrap-style:balance;}#help span.top{margin:10px 0;border-bottom:1px solid var(--border-color);padding-bottom:4px;margin-bottom:6px;}#help span.bottom{clear:both;border-top:1px solid var(--border-color);}.side-by-side{display:flex;margin-bottom:20px;}.side-by-side>div{width:50%;padding:0 20px 0 17px;}.item-info .stab{display:block;padding:3px;margin-bottom:5px;}.item-name .stab{margin-left:0.3125em;}.stab{padding:0 2px;font-size:0.875rem;font-weight:normal;color:var(--main-color);background-color:var(--stab-background-color);width:fit-content;white-space:pre-wrap;border-radius:3px;display:inline;vertical-align:baseline;}.stab.portability>code{background:none;color:var(--stab-code-color);}.stab .emoji,.item-info .stab::before{font-size:1.25rem;}.stab .emoji{margin-right:0.3rem;}.item-info .stab::before{content:"\0";width:0;display:inline-block;color:transparent;}.emoji{text-shadow:1px 0 0 black,-1px 0 0 black,0 1px 0 black,0 -1px 0 black;}.since{font-weight:normal;font-size:initial;}.rightside{padding-left:12px;float:right;}.rightside:not(a),.out-of-band,.sub-heading,rustdoc-toolbar{color:var(--right-side-color);}pre.rust{tab-size:4;-moz-tab-size:4;}pre.rust .kw{color:var(--code-highlight-kw-color);}pre.rust .kw-2{color:var(--code-highlight-kw-2-color);}pre.rust .lifetime{color:var(--code-highlight-lifetime-color);}pre.rust .prelude-ty{color:var(--code-highlight-prelude-color);}pre.rust .prelude-val{color:var(--code-highlight-prelude-val-color);}pre.rust .string{color:var(--code-highlight-string-color);}pre.rust .number{color:var(--code-highlight-number-color);}pre.rust .bool-val{color:var(--code-highlight-literal-color);}pre.rust .self{color:var(--code-highlight-self-color);}pre.rust .attr{color:var(--code-highlight-attribute-color);}pre.rust .macro,pre.rust .macro-nonterminal{color:var(--code-highlight-macro-color);}pre.rust .question-mark{font-weight:bold;color:var(--code-highlight-question-mark-color);}pre.rust .comment{color:var(--code-highlight-comment-color);}pre.rust .doccomment{color:var(--code-highlight-doc-comment-color);}.rustdoc.src .example-wrap pre.rust a{background:var(--codeblock-link-background);}.example-wrap.compile_fail,.example-wrap.should_panic{border-left:2px solid var(--codeblock-error-color);}.ignore.example-wrap{border-left:2px solid var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover,.example-wrap.should_panic:hover{border-left:2px solid var(--codeblock-error-hover-color);}.example-wrap.ignore:hover{border-left:2px solid var(--codeblock-ignore-hover-color);}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip{color:var(--codeblock-error-color);}.example-wrap.ignore .tooltip{color:var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover .tooltip,.example-wrap.should_panic:hover .tooltip{color:var(--codeblock-error-hover-color);}.example-wrap.ignore:hover .tooltip{color:var(--codeblock-ignore-hover-color);}.example-wrap .tooltip{position:absolute;display:block;left:-25px;top:5px;margin:0;line-height:1;}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip,.example-wrap.ignore .tooltip{font-weight:bold;font-size:1.25rem;}.content .docblock .warning{border-left:2px solid var(--warning-border-color);padding:14px;position:relative;overflow-x:visible !important;}.content .docblock .warning::before{color:var(--warning-border-color);content:"ⓘ";position:absolute;left:-25px;top:5px;font-weight:bold;font-size:1.25rem;}.top-doc>.docblock>.warning:first-child::before{top:20px;}.example-wrap>a.test-arrow,.example-wrap .button-holder{visibility:hidden;position:absolute;top:4px;right:4px;z-index:1;}a.test-arrow{height:var(--copy-path-height);padding:6px 4px 0 11px;}a.test-arrow::before{content:url('data:image/svg+xml,');}.example-wrap .button-holder{display:flex;}@media not (pointer:coarse){.example-wrap:hover>a.test-arrow,.example-wrap:hover>.button-holder{visibility:visible;}}.example-wrap .button-holder.keep-visible{visibility:visible;}.example-wrap .button-holder>*{background:var(--main-background-color);cursor:pointer;border-radius:var(--button-border-radius);height:var(--copy-path-height);width:var(--copy-path-width);border:0;color:var(--code-example-button-color);}.example-wrap .button-holder>*:hover{color:var(--code-example-button-hover-color);}.example-wrap .button-holder>*:not(:first-child){margin-left:var(--button-left-margin);}.example-wrap .button-holder .copy-button{padding:2px 0 0 4px;}.example-wrap .button-holder .copy-button::before,.example-wrap .test-arrow::before{filter:var(--copy-path-img-filter);}.example-wrap .button-holder .copy-button::before{content:var(--clipboard-image);}.example-wrap .button-holder .copy-button:hover::before,.example-wrap .test-arrow:hover::before{filter:var(--copy-path-img-hover-filter);}.example-wrap .button-holder .copy-button.clicked::before{content:var(--checkmark-image);padding-right:5px;}.code-attribute{font-weight:300;color:var(--code-attribute-color);}.item-spacer{width:100%;height:12px;display:block;}.main-heading span.since::before{content:"Since ";}.sub-variant h4{font-size:1rem;font-weight:400;margin-top:0;margin-bottom:0;}.sub-variant{margin-left:24px;margin-bottom:40px;}.sub-variant>.sub-variant-field{margin-left:24px;}@keyframes targetfadein{from{background-color:var(--main-background-color);}10%{background-color:var(--target-border-color);}to{background-color:var(--target-background-color);}}:target{padding-right:3px;background-color:var(--target-background-color);border-right:3px solid var(--target-border-color);}.code-header a.tooltip{color:inherit;margin-right:15px;position:relative;}.code-header a.tooltip:hover{color:var(--link-color);}a.tooltip:hover::after{position:absolute;top:calc(100% - 10px);left:-15px;right:-15px;height:20px;content:"\00a0";}@media not (prefers-reduced-motion){:target{animation:0.65s cubic-bezier(0,0,0.1,1.0) 0.1s targetfadein;}.fade-out{opacity:0;transition:opacity 0.45s cubic-bezier(0,0,0.1,1.0);}}.popover.tooltip .content{margin:0.25em 0.5em;}.popover.tooltip .content pre,.popover.tooltip .content code{background:transparent;margin:0;padding:0;font-size:1.25rem;white-space:pre-wrap;}.popover.tooltip .content>h3:first-child{margin:0 0 5px 0;}.search-failed{text-align:center;margin-top:20px;display:none;}.search-failed.active{display:block;}.search-failed>ul{text-align:left;max-width:570px;margin-left:auto;margin-right:auto;}#search-tabs{margin-top:0.25rem;display:flex;flex-direction:row;gap:1px;margin-bottom:4px;}#search-tabs button{text-align:center;font-size:1.125rem;border:0;border-top:2px solid;flex:1;line-height:1.5;color:inherit;}#search-tabs button:not(.selected){background-color:var(--search-tab-button-not-selected-background);border-top-color:var(--search-tab-button-not-selected-border-top-color);}#search-tabs button:hover,#search-tabs button.selected{background-color:var(--search-tab-button-selected-background);border-top-color:var(--search-tab-button-selected-border-top-color);}#search-tabs .count{font-size:1rem;font-variant-numeric:tabular-nums;color:var(--search-tab-title-count-color);}#search .error code{border-radius:3px;background-color:var(--search-error-code-background-color);}.search-corrections{font-weight:normal;}#src-sidebar{width:100%;overflow:auto;}#src-sidebar div.files>a:hover,details.dir-entry summary:hover,#src-sidebar div.files>a:focus,details.dir-entry summary:focus{background-color:var(--src-sidebar-background-hover);}#src-sidebar div.files>a.selected{background-color:var(--src-sidebar-background-selected);}.src-sidebar-title{position:sticky;top:0;display:flex;padding:8px 8px 0 48px;margin-bottom:7px;background:var(--sidebar-background-color);border-bottom:1px solid var(--border-color);}#settings-menu,#help-button,button#toggle-all-docs{margin-left:var(--button-left-margin);display:flex;line-height:1.25;min-width:14px;}#sidebar-button{display:none;line-height:0;}.hide-sidebar #sidebar-button,.src #sidebar-button{display:flex;margin-right:4px;position:fixed;left:6px;height:34px;width:34px;background-color:var(--main-background-color);z-index:1;}.src #sidebar-button{left:8px;z-index:calc(var(--desktop-sidebar-z-index) + 1);}.hide-sidebar .src #sidebar-button{position:static;}#settings-menu>a,#help-button>a,#sidebar-button>a,button#toggle-all-docs{display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px solid transparent;border-radius:var(--button-border-radius);color:var(--main-color);}#settings-menu>a,#help-button>a,button#toggle-all-docs{width:80px;border-radius:var(--toolbar-button-border-radius);}#settings-menu>a,#help-button>a{min-width:0;}#sidebar-button>a{background-color:var(--button-background-color);border-color:var(--border-color);width:33px;}#settings-menu>a:hover,#settings-menu>a:focus-visible,#help-button>a:hover,#help-button>a:focus-visible,#sidebar-button>a:hover,#sidebar-button>a:focus-visible,button#toggle-all-docs:hover,button#toggle-all-docs:focus-visible{border-color:var(--settings-button-border-focus);text-decoration:none;}#settings-menu>a:before{content:url('data:image/svg+xml,\ + ');width:18px;height:18px;filter:var(--settings-menu-filter);}button#toggle-all-docs:before{content:url('data:image/svg+xml,\ + ');width:18px;height:18px;filter:var(--settings-menu-filter);}#help-button>a:before{content:url('data:image/svg+xml,\ + \ + ?');width:18px;height:18px;filter:var(--settings-menu-filter);}button#toggle-all-docs:before,#help-button>a:before,#settings-menu>a:before{filter:var(--settings-menu-filter);margin:8px;}@media not (pointer:coarse){button#toggle-all-docs:hover:before,#help-button>a:hover:before,#settings-menu>a:hover:before{filter:var(--settings-menu-hover-filter);}}button[disabled]#toggle-all-docs{opacity:0.25;border:solid 1px var(--main-background-color);background-size:cover;}button[disabled]#toggle-all-docs:hover{border:solid 1px var(--main-background-color);cursor:not-allowed;}rustdoc-toolbar span.label{font-size:1rem;flex-grow:1;padding-bottom:4px;}#sidebar-button>a:before{content:url('data:image/svg+xml,\ + \ + \ + ');width:22px;height:22px;}#copy-path{color:var(--copy-path-button-color);background:var(--main-background-color);height:var(--copy-path-height);width:var(--copy-path-width);margin-left:10px;padding:0;padding-left:2px;border:0;font-size:0;}#copy-path::before{filter:var(--copy-path-img-filter);content:var(--clipboard-image);}#copy-path:hover::before{filter:var(--copy-path-img-hover-filter);}#copy-path.clicked::before{content:var(--checkmark-image);}@keyframes rotating{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}#settings-menu.rotate>a img{animation:rotating 2s linear infinite;}kbd{display:inline-block;padding:3px 5px;font:15px monospace;line-height:10px;vertical-align:middle;border:solid 1px var(--border-color);border-radius:3px;color:var(--kbd-color);background-color:var(--kbd-background);box-shadow:inset 0 -1px 0 var(--kbd-box-shadow-color);}ul.all-items>li{list-style:none;}details.dir-entry{padding-left:4px;}details.dir-entry>summary{margin:0 0 0 -4px;padding:0 0 0 4px;cursor:pointer;}details.dir-entry div.folders,details.dir-entry div.files{padding-left:23px;}details.dir-entry a{display:block;}details.toggle{contain:layout;position:relative;}details.big-toggle{contain:inline-size;}details.toggle>summary.hideme{cursor:pointer;font-size:1rem;}details.toggle>summary{list-style:none;outline:none;}details.toggle>summary::-webkit-details-marker,details.toggle>summary::marker{display:none;}details.toggle>summary.hideme>span{margin-left:9px;}details.toggle>summary::before{background:url('data:image/svg+xml,\ + ');content:"";cursor:pointer;width:16px;height:16px;display:inline-block;vertical-align:middle;opacity:.5;filter:var(--toggle-filter);}details.toggle>summary.hideme>span,.more-examples-toggle summary,.more-examples-toggle .hide-more{color:var(--toggles-color);}details.toggle>summary::after{content:"Expand";overflow:hidden;width:0;height:0;position:absolute;}details.toggle>summary.hideme::after{content:"";}details.toggle>summary:focus::before,details.toggle>summary:hover::before{opacity:1;}details.toggle>summary:focus-visible::before{outline:1px dotted #000;outline-offset:1px;}details.non-exhaustive{margin-bottom:8px;}details.toggle>summary.hideme::before{position:relative;}details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;top:4px;}.impl-items>details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;}details.big-toggle>summary:not(.hideme)::before{left:-34px;top:9px;}details.toggle[open] >summary.hideme{position:absolute;}details.toggle[open] >summary.hideme>span{display:none;}details.toggle[open] >summary::before{background:url('data:image/svg+xml,\ + ');}details.toggle[open] >summary::after{content:"Collapse";}.docblock summary>*{display:inline-block;}.docblock>.example-wrap:first-child .tooltip{margin-top:16px;}.src #sidebar-button>a:before,.sidebar-menu-toggle:before{content:url('data:image/svg+xml,\ + ');opacity:0.75;}.sidebar-menu-toggle:hover:before,.sidebar-menu-toggle:active:before,.sidebar-menu-toggle:focus:before{opacity:1;}.src #sidebar-button>a:before{content:url('data:image/svg+xml,\ + \ + \ + ');opacity:0.75;}@media (max-width:850px){#search-tabs .count{display:block;}.side-by-side{flex-direction:column-reverse;}.side-by-side>div{width:auto;}}@media (max-width:700px){*[id]{scroll-margin-top:45px;}#copy-path{display:none;}rustdoc-toolbar span.label{display:none;}#settings-menu>a,#help-button>a,button#toggle-all-docs{width:33px;}#settings.popover{--popover-arrow-offset:86px;}#help.popover{--popover-arrow-offset:48px;}.rustdoc{display:block;}main{padding-left:15px;padding-top:0px;}.sidebar .logo-container,.sidebar .location,.sidebar-resizer{display:none;}.sidebar{position:fixed;top:45px;left:-1000px;z-index:11;height:calc(100vh - 45px);width:200px;}.src main,.rustdoc.src .sidebar{top:0;padding:0;height:100vh;border:0;}.src .search-form{margin-left:40px;}.src .main-heading{margin-left:8px;}.hide-sidebar .search-form{margin-left:32px;}.hide-sidebar .src .search-form{margin-left:0;}.sidebar.shown,.src-sidebar-expanded .src .sidebar,.rustdoc:not(.src) .sidebar:focus-within{left:0;}.mobile-topbar h2{padding-bottom:0;margin:auto 0.5em auto auto;overflow:hidden;font-size:24px;white-space:nowrap;text-overflow:ellipsis;}.mobile-topbar .logo-container>img{max-width:35px;max-height:35px;margin:5px 0 5px 20px;}.mobile-topbar{display:flex;flex-direction:row;position:sticky;z-index:10;font-size:2rem;height:45px;width:100%;left:0;top:0;}.hide-sidebar .mobile-topbar{display:none;}.sidebar-menu-toggle{width:45px;border:none;line-height:0;}.hide-sidebar .sidebar-menu-toggle{display:none;}.sidebar-elems{margin-top:1em;}.anchor{display:none !important;}#main-content>details.toggle>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}#sidebar-button>a:before{content:url('data:image/svg+xml,\ + \ + \ + ');width:22px;height:22px;}.sidebar-menu-toggle:before{filter:var(--mobile-sidebar-menu-filter);}.sidebar-menu-toggle:hover{background:var(--main-background-color);}.item-table,.item-row,.item-table>li,.item-table>li>div,.search-results>a,.search-results>a>div{display:block;}.search-results>a{padding:5px 0px;}.search-results>a>div.desc,.item-table>li>div.desc{padding-left:2em;}.search-results .result-name{display:block;}.search-results .result-name .typename{width:initial;margin-right:0;}.search-results .result-name .typename,.search-results .result-name .path{display:inline;}.src-sidebar-expanded .src .sidebar{position:fixed;max-width:100vw;width:100vw;}.src .src-sidebar-title{padding-top:0;}details.toggle:not(.top-doc)>summary,.impl-items>section{margin-left:10px;}.impl-items>details.toggle>summary:not(.hideme)::before,#main-content>details.toggle:not(.top-doc)>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}.impl-items>.item-info{margin-left:34px;}.src nav.sub{margin:0 0 -25px 0;padding:var(--nav-sub-mobile-padding);}}@media (min-width:701px){.scraped-example-title{position:absolute;z-index:10;background:var(--main-background-color);bottom:8px;right:5px;padding:2px 4px;box-shadow:0 0 4px var(--main-background-color);}.item-table>li>.item-name{width:33%;}.item-table>li>div{overflow-wrap:anywhere;}}@media print{nav.sidebar,nav.sub,.out-of-band,a.src,#copy-path,details.toggle[open] >summary::before,details.toggle>summary::before,details.toggle.top-doc>summary{display:none;}.docblock{margin-left:0;}main{padding:10px;}}@media (max-width:464px){.docblock{margin-left:12px;}.docblock code{overflow-wrap:break-word;overflow-wrap:anywhere;}nav.sub{flex-direction:column;}.search-form{align-self:stretch;}}.variant,.implementors-toggle>summary,.impl,#implementors-list>.docblock,.impl-items>section,.impl-items>.toggle>summary,.methods>section,.methods>.toggle>summary{margin-bottom:0.75em;}.variants>.docblock,.implementors-toggle>.docblock,.impl-items>.toggle[open]:not(:last-child),.methods>.toggle[open]:not(:last-child),.implementors-toggle[open]:not(:last-child){margin-bottom:2em;}#trait-implementations-list .impl-items>.toggle:not(:last-child),#synthetic-implementations-list .impl-items>.toggle:not(:last-child),#blanket-implementations-list .impl-items>.toggle:not(:last-child){margin-bottom:1em;}.scraped-example-list .scrape-help{margin-left:10px;padding:0 4px;font-weight:normal;font-size:12px;position:relative;bottom:1px;border:1px solid var(--scrape-example-help-border-color);border-radius:50px;color:var(--scrape-example-help-color);}.scraped-example-list .scrape-help:hover{border-color:var(--scrape-example-help-hover-border-color);color:var(--scrape-example-help-hover-color);}.scraped-example:not(.expanded) .example-wrap::before,.scraped-example:not(.expanded) .example-wrap::after{content:" ";width:100%;height:5px;position:absolute;z-index:1;}.scraped-example:not(.expanded) .example-wrap::before{top:0;background:linear-gradient(to bottom,var(--scrape-example-code-wrapper-background-start),var(--scrape-example-code-wrapper-background-end));}.scraped-example:not(.expanded) .example-wrap::after{bottom:0;background:linear-gradient(to top,var(--scrape-example-code-wrapper-background-start),var(--scrape-example-code-wrapper-background-end));}.scraped-example:not(.expanded){width:100%;overflow-y:hidden;margin-bottom:0;}.scraped-example:not(.expanded){overflow-x:hidden;}.scraped-example .rust span.highlight{background:var(--scrape-example-code-line-highlight);}.scraped-example .rust span.highlight.focus{background:var(--scrape-example-code-line-highlight-focus);}.more-examples-toggle{max-width:calc(100% + 25px);margin-top:10px;margin-left:-25px;}.more-examples-toggle .hide-more{margin-left:25px;cursor:pointer;}.more-scraped-examples{margin-left:25px;position:relative;}.toggle-line{position:absolute;top:5px;bottom:0;right:calc(100% + 10px);padding:0 4px;cursor:pointer;}.toggle-line-inner{min-width:2px;height:100%;background:var(--scrape-example-toggle-line-background);}.toggle-line:hover .toggle-line-inner{background:var(--scrape-example-toggle-line-hover-background);}.more-scraped-examples .scraped-example,.example-links{margin-top:20px;}.more-scraped-examples .scraped-example:first-child{margin-top:5px;}.example-links ul{margin-bottom:0;}:root[data-theme="light"],:root:not([data-theme]){--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--settings-input-border-color:#717171;--settings-button-color:#000;--settings-button-border-focus:#717171;--sidebar-background-color:#f5f5f5;--sidebar-background-color-hover:#e0e0e0;--code-block-background-color:#f5f5f5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;--border-color:#e0e0e0;--button-background-color:#fff;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:none;--mobile-sidebar-menu-filter:none;--search-input-focused-border-color:#66afe9;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(35%);--code-example-button-color:#7f7f7f;--code-example-button-hover-color:#595959;--settings-menu-filter:invert(50%);--settings-menu-hover-filter:invert(35%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ad378a;--trait-link-color:#6e4fc9;--assoc-item-link-color:#3873ad;--function-link-color:#ad7c37;--macro-link-color:#068000;--keyword-link-color:#3873ad;--mod-link-color:#3873ad;--link-color:#3873ad;--sidebar-link-color:#356da4;--sidebar-current-link-background-color:#fff;--search-result-link-focus-background-color:#ccc;--search-result-border-color:#aaa3;--search-color:#000;--search-error-code-background-color:#d0cccc;--search-results-alias-color:#000;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#e6e6e6;--search-tab-button-not-selected-background:#e6e6e6;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#fff;--stab-background-color:#fff5d6;--stab-code-color:#000;--code-highlight-kw-color:#8959a8;--code-highlight-kw-2-color:#4271ae;--code-highlight-lifetime-color:#b76514;--code-highlight-prelude-color:#4271ae;--code-highlight-prelude-val-color:#c82829;--code-highlight-number-color:#718c00;--code-highlight-string-color:#718c00;--code-highlight-literal-color:#c82829;--code-highlight-attribute-color:#c82829;--code-highlight-self-color:#c82829;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8e908c;--code-highlight-doc-comment-color:#4d4d4c;--src-line-numbers-span-color:#c67e2d;--src-line-number-highlighted-background-color:#fdffd3;--target-background-color:#fdffd3;--target-border-color:#ad7c37;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:initial;--crate-search-div-filter:invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);--crate-search-div-hover-filter:invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);--crate-search-hover-border:#717171;--src-sidebar-background-selected:#fff;--src-sidebar-background-hover:#e0e0e0;--table-alt-row-background-color:#f5f5f5;--codeblock-link-background:#eee;--scrape-example-toggle-line-background:#ccc;--scrape-example-toggle-line-hover-background:#999;--scrape-example-code-line-highlight:#fcffd6;--scrape-example-code-line-highlight-focus:#f6fdb0;--scrape-example-help-border-color:#555;--scrape-example-help-color:#333;--scrape-example-help-hover-border-color:#000;--scrape-example-help-hover-color:#000;--scrape-example-code-wrapper-background-start:rgba(255,255,255,1);--scrape-example-code-wrapper-background-end:rgba(255,255,255,0);--sidebar-resizer-hover:hsl(207,90%,66%);--sidebar-resizer-active:hsl(207,90%,54%);}:root[data-theme="dark"]{--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--settings-input-border-color:#999;--settings-button-color:#000;--settings-button-border-focus:#ffb900;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;--border-color:#e0e0e0;--button-background-color:#f0f0f0;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--mobile-sidebar-menu-filter:invert(100%);--search-input-focused-border-color:#008dfd;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(65%);--code-example-button-color:#7f7f7f;--code-example-button-hover-color:#a5a5a5;--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#2dbfb8;--trait-link-color:#b78cf2;--assoc-item-link-color:#d2991d;--function-link-color:#2bab63;--macro-link-color:#09bd00;--keyword-link-color:#d2991d;--mod-link-color:#d2991d;--link-color:#d2991d;--sidebar-link-color:#fdbf35;--sidebar-current-link-background-color:#444;--search-result-link-focus-background-color:#616161;--search-result-border-color:#aaa3;--search-color:#111;--search-error-code-background-color:#484848;--search-results-alias-color:#fff;--search-results-grey-color:#ccc;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#252525;--search-tab-button-not-selected-background:#252525;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#353535;--settings-menu-filter:invert(50%);--settings-menu-hover-filter:invert(65%);--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ab8ac1;--code-highlight-kw-2-color:#769acb;--code-highlight-lifetime-color:#d97f26;--code-highlight-prelude-color:#769acb;--code-highlight-prelude-val-color:#ee6868;--code-highlight-number-color:#83a300;--code-highlight-string-color:#83a300;--code-highlight-literal-color:#ee6868;--code-highlight-attribute-color:#ee6868;--code-highlight-self-color:#ee6868;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8d8d8b;--code-highlight-doc-comment-color:#8ca375;--src-line-numbers-span-color:#3b91e2;--src-line-number-highlighted-background-color:#0a042f;--target-background-color:#494a3d;--target-border-color:#bb7410;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);--crate-search-div-hover-filter:invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);--crate-search-hover-border:#2196f3;--src-sidebar-background-selected:#333;--src-sidebar-background-hover:#444;--table-alt-row-background-color:#2a2a2a;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(53,53,53,1);--scrape-example-code-wrapper-background-end:rgba(53,53,53,0);--sidebar-resizer-hover:hsl(207,30%,54%);--sidebar-resizer-active:hsl(207,90%,54%);}:root[data-theme="ayu"]{--main-background-color:#0f1419;--main-color:#c5c5c5;--settings-input-color:#ffb454;--settings-input-border-color:#999;--settings-button-color:#fff;--settings-button-border-focus:#e0e0e0;--sidebar-background-color:#14191f;--sidebar-background-color-hover:rgba(70,70,70,0.33);--code-block-background-color:#191f26;--scrollbar-track-background-color:transparent;--scrollbar-thumb-background-color:#5c6773;--scrollbar-color:#5c6773 #24292f;--headings-border-bottom-color:#5c6773;--border-color:#5c6773;--button-background-color:#141920;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--mobile-sidebar-menu-filter:invert(100%);--search-input-focused-border-color:#5c6773;--copy-path-button-color:#fff;--copy-path-img-filter:invert(70%);--copy-path-img-hover-filter:invert(100%);--code-example-button-color:#b2b2b2;--code-example-button-hover-color:#fff;--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ffa0a5;--trait-link-color:#39afd7;--assoc-item-link-color:#39afd7;--function-link-color:#fdd687;--macro-link-color:#a37acc;--keyword-link-color:#39afd7;--mod-link-color:#39afd7;--link-color:#39afd7;--sidebar-link-color:#53b1db;--sidebar-current-link-background-color:transparent;--search-result-link-focus-background-color:#3c3c3c;--search-result-border-color:#aaa3;--search-color:#fff;--search-error-code-background-color:#4f4c4c;--search-results-alias-color:#c5c5c5;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:none;--search-tab-button-not-selected-background:transparent !important;--search-tab-button-selected-border-top-color:none;--search-tab-button-selected-background:#141920 !important;--settings-menu-filter:invert(70%);--settings-menu-hover-filter:invert(100%);--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ff7733;--code-highlight-kw-2-color:#ff7733;--code-highlight-lifetime-color:#ff7733;--code-highlight-prelude-color:#69f2df;--code-highlight-prelude-val-color:#ff7733;--code-highlight-number-color:#b8cc52;--code-highlight-string-color:#b8cc52;--code-highlight-literal-color:#ff7733;--code-highlight-attribute-color:#e6e1cf;--code-highlight-self-color:#36a3d9;--code-highlight-macro-color:#a37acc;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#788797;--code-highlight-doc-comment-color:#a1ac88;--src-line-numbers-span-color:#5c6773;--src-line-number-highlighted-background-color:rgba(255,236,164,0.06);--target-background-color:rgba(255,236,164,0.06);--target-border-color:rgba(255,180,76,0.85);--kbd-color:#c5c5c5;--kbd-background:#314559;--kbd-box-shadow-color:#5c6773;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(41%) sepia(12%) saturate(487%) hue-rotate(171deg) brightness(94%) contrast(94%);--crate-search-div-hover-filter:invert(98%) sepia(12%) saturate(81%) hue-rotate(343deg) brightness(113%) contrast(76%);--crate-search-hover-border:#e0e0e0;--src-sidebar-background-selected:#14191f;--src-sidebar-background-hover:#14191f;--table-alt-row-background-color:#191f26;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(15,20,25,1);--scrape-example-code-wrapper-background-end:rgba(15,20,25,0);--sidebar-resizer-hover:hsl(34,50%,33%);--sidebar-resizer-active:hsl(34,100%,66%);}:root[data-theme="ayu"] h1,:root[data-theme="ayu"] h2,:root[data-theme="ayu"] h3,:root[data-theme="ayu"] h4,:where(:root[data-theme="ayu"]) h1 a,:root[data-theme="ayu"] .sidebar h2 a,:root[data-theme="ayu"] .sidebar h3 a{color:#fff;}:root[data-theme="ayu"] .docblock code{color:#ffb454;}:root[data-theme="ayu"] .docblock a>code{color:#39AFD7 !important;}:root[data-theme="ayu"] .code-header,:root[data-theme="ayu"] .docblock pre>code,:root[data-theme="ayu"] pre,:root[data-theme="ayu"] pre>code,:root[data-theme="ayu"] .item-info code,:root[data-theme="ayu"] .rustdoc.source .example-wrap{color:#e6e1cf;}:root[data-theme="ayu"] .sidebar .current,:root[data-theme="ayu"] .sidebar .current a,:root[data-theme="ayu"] .sidebar a:hover,:root[data-theme="ayu"] #src-sidebar div.files>a:hover,:root[data-theme="ayu"] details.dir-entry summary:hover,:root[data-theme="ayu"] #src-sidebar div.files>a:focus,:root[data-theme="ayu"] details.dir-entry summary:focus,:root[data-theme="ayu"] #src-sidebar div.files>a.selected{color:#ffb44c;}:root[data-theme="ayu"] .sidebar-elems .location{color:#ff7733;}:root[data-theme="ayu"] .src-line-numbers .line-highlighted{color:#708090;padding-right:7px;border-right:1px solid #ffb44c;}:root[data-theme="ayu"] .search-results a:hover,:root[data-theme="ayu"] .search-results a:focus{color:#fff !important;background-color:#3c3c3c;}:root[data-theme="ayu"] .search-results a{color:#0096cf;}:root[data-theme="ayu"] .search-results a div.desc{color:#c5c5c5;}:root[data-theme="ayu"] .result-name .primitive>i,:root[data-theme="ayu"] .result-name .keyword>i{color:#788797;}:root[data-theme="ayu"] #search-tabs>button.selected{border-bottom:1px solid #ffb44c !important;border-top:none;}:root[data-theme="ayu"] #search-tabs>button:not(.selected){border:none;background-color:transparent !important;}:root[data-theme="ayu"] #search-tabs>button:hover{border-bottom:1px solid rgba(242,151,24,0.3);}:root[data-theme="ayu"] #settings-menu>a img,:root[data-theme="ayu"] #sidebar-button>a:before{filter:invert(100);} \ No newline at end of file diff --git a/static.files/scrape-examples-46fc985aa763a438.js b/static.files/scrape-examples-46fc985aa763a438.js new file mode 100644 index 0000000000..87b6065d81 --- /dev/null +++ b/static.files/scrape-examples-46fc985aa763a438.js @@ -0,0 +1 @@ +"use strict";(function(){const DEFAULT_MAX_LINES=5;const HIDDEN_MAX_LINES=10;function scrollToLoc(elt,loc,isHidden){const lines=elt.querySelector(".src-line-numbers > pre");let scrollOffset;const maxLines=isHidden?HIDDEN_MAX_LINES:DEFAULT_MAX_LINES;if(loc[1]-loc[0]>maxLines){const line=Math.max(0,loc[0]-1);scrollOffset=lines.children[line].offsetTop}else{const halfHeight=elt.offsetHeight/2;const offsetTop=lines.children[loc[0]].offsetTop;const lastLine=lines.children[loc[1]];const offsetBot=lastLine.offsetTop+lastLine.offsetHeight;const offsetMid=(offsetTop+offsetBot)/2;scrollOffset=offsetMid-halfHeight}lines.parentElement.scrollTo(0,scrollOffset);elt.querySelector(".rust").scrollTo(0,scrollOffset)}function createScrapeButton(parent,className,content){const button=document.createElement("button");button.className=className;button.innerText=content;parent.insertBefore(button,parent.firstChild);return button}window.updateScrapedExample=(example,buttonHolder)=>{let locIndex=0;const highlights=Array.prototype.slice.call(example.querySelectorAll(".highlight"));const link=example.querySelector(".scraped-example-title a");let expandButton=null;if(!example.classList.contains("expanded")){expandButton=createScrapeButton(buttonHolder,"expand","↕")}const isHidden=example.parentElement.classList.contains("more-scraped-examples");const locs=example.locs;if(locs.length>1){const next=createScrapeButton(buttonHolder,"next","≻");const prev=createScrapeButton(buttonHolder,"prev","≺");const onChangeLoc=changeIndex=>{removeClass(highlights[locIndex],"focus");changeIndex();scrollToLoc(example,locs[locIndex][0],isHidden);addClass(highlights[locIndex],"focus");const url=locs[locIndex][1];const title=locs[locIndex][2];link.href=url;link.innerHTML=title};prev.addEventListener("click",()=>{onChangeLoc(()=>{locIndex=(locIndex-1+locs.length)%locs.length})});next.addEventListener("click",()=>{onChangeLoc(()=>{locIndex=(locIndex+1)%locs.length})})}if(expandButton){expandButton.addEventListener("click",()=>{if(hasClass(example,"expanded")){removeClass(example,"expanded");scrollToLoc(example,locs[0][0],isHidden)}else{addClass(example,"expanded")}})}};function setupLoc(example,isHidden){example.locs=JSON.parse(example.attributes.getNamedItem("data-locs").textContent);scrollToLoc(example,example.locs[0][0],isHidden)}const firstExamples=document.querySelectorAll(".scraped-example-list > .scraped-example");onEachLazy(firstExamples,el=>setupLoc(el,false));onEachLazy(document.querySelectorAll(".more-examples-toggle"),toggle=>{onEachLazy(toggle.querySelectorAll(".toggle-line, .hide-more"),button=>{button.addEventListener("click",()=>{toggle.open=false})});const moreExamples=toggle.querySelectorAll(".scraped-example");toggle.querySelector("summary").addEventListener("click",()=>{setTimeout(()=>{onEachLazy(moreExamples,el=>setupLoc(el,true))})},{once:true})})})() \ No newline at end of file diff --git a/static.files/scrape-examples-ef1e698c1d417c0c.js b/static.files/scrape-examples-ef1e698c1d417c0c.js deleted file mode 100644 index ba830e3744..0000000000 --- a/static.files/scrape-examples-ef1e698c1d417c0c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(function(){const DEFAULT_MAX_LINES=5;const HIDDEN_MAX_LINES=10;function scrollToLoc(elt,loc,isHidden){const lines=elt.querySelector(".src-line-numbers");let scrollOffset;const maxLines=isHidden?HIDDEN_MAX_LINES:DEFAULT_MAX_LINES;if(loc[1]-loc[0]>maxLines){const line=Math.max(0,loc[0]-1);scrollOffset=lines.children[line].offsetTop}else{const wrapper=elt.querySelector(".code-wrapper");const halfHeight=wrapper.offsetHeight/2;const offsetTop=lines.children[loc[0]].offsetTop;const lastLine=lines.children[loc[1]];const offsetBot=lastLine.offsetTop+lastLine.offsetHeight;const offsetMid=(offsetTop+offsetBot)/2;scrollOffset=offsetMid-halfHeight}lines.scrollTo(0,scrollOffset);elt.querySelector(".rust").scrollTo(0,scrollOffset)}function updateScrapedExample(example,isHidden){const locs=JSON.parse(example.attributes.getNamedItem("data-locs").textContent);let locIndex=0;const highlights=Array.prototype.slice.call(example.querySelectorAll(".highlight"));const link=example.querySelector(".scraped-example-title a");if(locs.length>1){const onChangeLoc=changeIndex=>{removeClass(highlights[locIndex],"focus");changeIndex();scrollToLoc(example,locs[locIndex][0],isHidden);addClass(highlights[locIndex],"focus");const url=locs[locIndex][1];const title=locs[locIndex][2];link.href=url;link.innerHTML=title};example.querySelector(".prev").addEventListener("click",()=>{onChangeLoc(()=>{locIndex=(locIndex-1+locs.length)%locs.length})});example.querySelector(".next").addEventListener("click",()=>{onChangeLoc(()=>{locIndex=(locIndex+1)%locs.length})})}const expandButton=example.querySelector(".expand");if(expandButton){expandButton.addEventListener("click",()=>{if(hasClass(example,"expanded")){removeClass(example,"expanded");scrollToLoc(example,locs[0][0],isHidden)}else{addClass(example,"expanded")}})}scrollToLoc(example,locs[0][0],isHidden)}const firstExamples=document.querySelectorAll(".scraped-example-list > .scraped-example");onEachLazy(firstExamples,el=>updateScrapedExample(el,false));onEachLazy(document.querySelectorAll(".more-examples-toggle"),toggle=>{onEachLazy(toggle.querySelectorAll(".toggle-line, .hide-more"),button=>{button.addEventListener("click",()=>{toggle.open=false})});const moreExamples=toggle.querySelectorAll(".scraped-example");toggle.querySelector("summary").addEventListener("click",()=>{setTimeout(()=>{onEachLazy(moreExamples,el=>updateScrapedExample(el,true))})},{once:true})})})() \ No newline at end of file diff --git a/static.files/search-a99f1315e7cc5121.js b/static.files/search-a99f1315e7cc5121.js deleted file mode 100644 index aee0fc77fc..0000000000 --- a/static.files/search-a99f1315e7cc5121.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict";if(!Array.prototype.toSpliced){Array.prototype.toSpliced=function(){const me=this.slice();Array.prototype.splice.apply(me,arguments);return me}}(function(){const itemTypes=["keyword","primitive","mod","externcrate","import","struct","enum","fn","type","static","trait","impl","tymethod","method","structfield","variant","macro","associatedtype","constant","associatedconstant","union","foreigntype","existential","attr","derive","traitalias","generic",];const TY_GENERIC=itemTypes.indexOf("generic");const TY_IMPORT=itemTypes.indexOf("import");const ROOT_PATH=typeof window!=="undefined"?window.rootPath:"../";const UNBOXING_LIMIT=5;const REGEX_IDENT=/\p{ID_Start}\p{ID_Continue}*|_\p{ID_Continue}+/uy;const REGEX_INVALID_TYPE_FILTER=/[^a-z]/ui;const MAX_RESULTS=200;const NO_TYPE_FILTER=-1;const editDistanceState={current:[],prev:[],prevPrev:[],calculate:function calculate(a,b,limit){if(a.lengthlimit){return limit+1}while(b.length>0&&b[0]===a[0]){a=a.substring(1);b=b.substring(1)}while(b.length>0&&b[b.length-1]===a[a.length-1]){a=a.substring(0,a.length-1);b=b.substring(0,b.length-1)}if(b.length===0){return minDist}const aLength=a.length;const bLength=b.length;for(let i=0;i<=bLength;++i){this.current[i]=0;this.prev[i]=i;this.prevPrev[i]=Number.MAX_VALUE}for(let i=1;i<=aLength;++i){this.current[0]=i;const aIdx=i-1;for(let j=1;j<=bLength;++j){const bIdx=j-1;const substitutionCost=a[aIdx]===b[bIdx]?0:1;this.current[j]=Math.min(this.prev[j]+1,this.current[j-1]+1,this.prev[j-1]+substitutionCost,);if((i>1)&&(j>1)&&(a[aIdx]===b[bIdx-1])&&(a[aIdx-1]===b[bIdx])){this.current[j]=Math.min(this.current[j],this.prevPrev[j-2]+1,)}}const prevPrevTmp=this.prevPrev;this.prevPrev=this.prev;this.prev=this.current;this.current=prevPrevTmp}const distance=this.prev[bLength];return distance<=limit?distance:(limit+1)},};function editDistance(a,b,limit){return editDistanceState.calculate(a,b,limit)}function isEndCharacter(c){return"=,>-])".indexOf(c)!==-1}function isSeparatorCharacter(c){return c===","||c==="="}function isReturnArrow(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="->"}function skipWhitespace(parserState){while(parserState.pos0){const c=parserState.userQuery[pos-1];if(c===lookingFor){return true}else if(c!==" "){break}pos-=1}return false}function isLastElemGeneric(elems,parserState){return(elems.length>0&&elems[elems.length-1].generics.length>0)||prevIs(parserState,">")}function getFilteredNextElem(query,parserState,elems,isInGenerics){const start=parserState.pos;if(parserState.userQuery[parserState.pos]===":"&&!isPathStart(parserState)){throw["Expected type filter before ",":"]}getNextElem(query,parserState,elems,isInGenerics);if(parserState.userQuery[parserState.pos]===":"&&!isPathStart(parserState)){if(parserState.typeFilter!==null){throw["Unexpected ",":"," (expected path after type filter ",parserState.typeFilter+":",")",]}if(elems.length===0){throw["Expected type filter before ",":"]}else if(query.literalSearch){throw["Cannot use quotes on type filter"]}const typeFilterElem=elems.pop();checkExtraTypeFilterCharacters(start,parserState);parserState.typeFilter=typeFilterElem.name;parserState.pos+=1;parserState.totalElems-=1;query.literalSearch=false;getNextElem(query,parserState,elems,isInGenerics)}}function getItemsBefore(query,parserState,elems,endChar){let foundStopChar=true;let foundSeparator=false;const oldTypeFilter=parserState.typeFilter;parserState.typeFilter=null;const oldIsInBinding=parserState.isInBinding;parserState.isInBinding=null;let hofParameters=null;let extra="";if(endChar===">"){extra="<"}else if(endChar==="]"){extra="["}else if(endChar===")"){extra="("}else if(endChar===""){extra="->"}else{extra=endChar}while(parserState.pos"," after ","="]}hofParameters=[...elems];elems.length=0;parserState.pos+=2;foundStopChar=true;foundSeparator=false;continue}else if(c===" "){parserState.pos+=1;continue}else if(isSeparatorCharacter(c)){parserState.pos+=1;foundStopChar=true;foundSeparator=true;continue}else if(c===":"&&isPathStart(parserState)){throw["Unexpected ","::",": paths cannot start with ","::"]}else if(isEndCharacter(c)){throw["Unexpected ",c," after ",extra]}if(!foundStopChar){let extra=[];if(isLastElemGeneric(query.elems,parserState)){extra=[" after ",">"]}else if(prevIs(parserState,"\"")){throw["Cannot have more than one element if you use quotes"]}if(endChar!==""){throw["Expected ",",",", ","=",", or ",endChar,...extra,", found ",c,]}throw["Expected ",","," or ","=",...extra,", found ",c,]}const posBefore=parserState.pos;getFilteredNextElem(query,parserState,elems,endChar!=="");if(endChar!==""&&parserState.pos>=parserState.length){throw["Unclosed ",extra]}if(posBefore===parserState.pos){parserState.pos+=1}foundStopChar=false}if(parserState.pos>=parserState.length&&endChar!==""){throw["Unclosed ",extra]}parserState.pos+=1;if(hofParameters){foundSeparator=false;if([...elems,...hofParameters].some(x=>x.bindingName)||parserState.isInBinding){throw["Unexpected ","="," within ","->"]}const hofElem=makePrimitiveElement("->",{generics:hofParameters,bindings:new Map([["output",[...elems]]]),typeFilter:null,});elems.length=0;elems[0]=hofElem}parserState.typeFilter=oldTypeFilter;parserState.isInBinding=oldIsInBinding;return{foundSeparator}}function getNextElem(query,parserState,elems,isInGenerics){const generics=[];skipWhitespace(parserState);let start=parserState.pos;let end;if("[(".indexOf(parserState.userQuery[parserState.pos])!==-1){let endChar=")";let name="()";let friendlyName="tuple";if(parserState.userQuery[parserState.pos]==="["){endChar="]";name="[]";friendlyName="slice"}parserState.pos+=1;const{foundSeparator}=getItemsBefore(query,parserState,generics,endChar);const typeFilter=parserState.typeFilter;const bindingName=parserState.isInBinding;parserState.typeFilter=null;parserState.isInBinding=null;for(const gen of generics){if(gen.bindingName!==null){throw["Type parameter ","=",` cannot be within ${friendlyName} `,name]}}if(name==="()"&&!foundSeparator&&generics.length===1&&typeFilter===null){elems.push(generics[0])}else if(name==="()"&&generics.length===1&&generics[0].name==="->"){generics[0].typeFilter=typeFilter;elems.push(generics[0])}else{if(typeFilter!==null&&typeFilter!=="primitive"){throw["Invalid search type: primitive ",name," and ",typeFilter," both specified",]}parserState.totalElems+=1;if(isInGenerics){parserState.genericsElems+=1}elems.push(makePrimitiveElement(name,{bindingName,generics}))}}else if(parserState.userQuery[parserState.pos]==="&"){if(parserState.typeFilter!==null&&parserState.typeFilter!=="primitive"){throw["Invalid search type: primitive ","&"," and ",parserState.typeFilter," both specified",]}parserState.typeFilter=null;parserState.pos+=1;let c=parserState.userQuery[parserState.pos];while(c===" "&&parserState.pos=end){throw["Found generics without a path"]}parserState.pos+=1;getItemsBefore(query,parserState,generics,">")}else if(parserState.pos=end){throw["Found generics without a path"]}if(parserState.isInBinding){throw["Unexpected ","("," after ","="]}parserState.pos+=1;const typeFilter=parserState.typeFilter;parserState.typeFilter=null;getItemsBefore(query,parserState,generics,")");skipWhitespace(parserState);if(isReturnArrow(parserState)){parserState.pos+=2;skipWhitespace(parserState);getFilteredNextElem(query,parserState,generics,isInGenerics);generics[generics.length-1].bindingName=makePrimitiveElement("output")}else{generics.push(makePrimitiveElement(null,{bindingName:makePrimitiveElement("output"),typeFilter:null,}))}parserState.typeFilter=typeFilter}if(isStringElem){skipWhitespace(parserState)}if(start>=end&&generics.length===0){return}if(parserState.userQuery[parserState.pos]==="="){if(parserState.isInBinding){throw["Cannot write ","="," twice in a binding"]}if(!isInGenerics){throw["Type parameter ","="," must be within generics list"]}const name=parserState.userQuery.slice(start,end).trim();if(name==="!"){throw["Type parameter ","="," key cannot be ","!"," never type"]}if(name.includes("!")){throw["Type parameter ","="," key cannot be ","!"," macro"]}if(name.includes("::")){throw["Type parameter ","="," key cannot contain ","::"," path"]}if(name.includes(":")){throw["Type parameter ","="," key cannot contain ",":"," type"]}parserState.isInBinding={name,generics}}else{elems.push(createQueryElement(query,parserState,parserState.userQuery.slice(start,end),generics,isInGenerics,),)}}}function checkExtraTypeFilterCharacters(start,parserState){const query=parserState.userQuery.slice(start,parserState.pos).trim();const match=query.match(REGEX_INVALID_TYPE_FILTER);if(match){throw["Unexpected ",match[0]," in type filter (before ",":",")",]}}function createQueryElement(query,parserState,name,generics,isInGenerics){const path=name.trim();if(path.length===0&&generics.length===0){throw["Unexpected ",parserState.userQuery[parserState.pos]]}if(query.literalSearch&&parserState.totalElems-parserState.genericsElems>0){throw["Cannot have more than one element if you use quotes"]}const typeFilter=parserState.typeFilter;parserState.typeFilter=null;if(name==="!"){if(typeFilter!==null&&typeFilter!=="primitive"){throw["Invalid search type: primitive never type ","!"," and ",typeFilter," both specified",]}if(generics.length!==0){throw["Never type ","!"," does not accept generic parameters",]}const bindingName=parserState.isInBinding;parserState.isInBinding=null;return makePrimitiveElement("never",{bindingName})}const quadcolon=/::\s*::/.exec(path);if(path.startsWith("::")){throw["Paths cannot start with ","::"]}else if(path.endsWith("::")){throw["Paths cannot end with ","::"]}else if(quadcolon!==null){throw["Unexpected ",quadcolon[0]]}const pathSegments=path.split(/(?:::\s*)|(?:\s+(?:::\s*)?)/);if(pathSegments.length===0||(pathSegments.length===1&&pathSegments[0]==="")){if(generics.length>0||prevIs(parserState,">")){throw["Found generics without a path"]}else{throw["Unexpected ",parserState.userQuery[parserState.pos]]}}for(const[i,pathSegment]of pathSegments.entries()){if(pathSegment==="!"){if(i!==0){throw["Never type ","!"," is not associated item"]}pathSegments[i]="never"}}parserState.totalElems+=1;if(isInGenerics){parserState.genericsElems+=1}const bindingName=parserState.isInBinding;parserState.isInBinding=null;const bindings=new Map();const pathLast=pathSegments[pathSegments.length-1];return{name:name.trim(),id:null,fullPath:pathSegments,pathWithoutLast:pathSegments.slice(0,pathSegments.length-1),pathLast,normalizedPathLast:pathLast.replace(/_/g,""),generics:generics.filter(gen=>{if(gen.bindingName!==null){if(gen.name!==null){gen.bindingName.generics.unshift(gen)}bindings.set(gen.bindingName.name,gen.bindingName.generics);return false}return true}),bindings,typeFilter,bindingName,}}function makePrimitiveElement(name,extra){return Object.assign({name,id:null,fullPath:[name],pathWithoutLast:[],pathLast:name,normalizedPathLast:name,generics:[],bindings:new Map(),typeFilter:"primitive",bindingName:null,},extra)}function getStringElem(query,parserState,isInGenerics){if(isInGenerics){throw["Unexpected ","\""," in generics"]}else if(query.literalSearch){throw["Cannot have more than one literal search element"]}else if(parserState.totalElems-parserState.genericsElems>0){throw["Cannot use literal search when there is more than one element"]}parserState.pos+=1;const start=parserState.pos;const end=getIdentEndPosition(parserState);if(parserState.pos>=parserState.length){throw["Unclosed ","\""]}else if(parserState.userQuery[end]!=="\""){throw["Unexpected ",parserState.userQuery[end]," in a string element"]}else if(start===end){throw["Cannot have empty string element"]}parserState.pos+=1;query.literalSearch=true}function getIdentEndPosition(parserState){let afterIdent=consumeIdent(parserState);let end=parserState.pos;let macroExclamation=-1;while(parserState.pos0){throw["Unexpected ",c," after ",parserState.userQuery[parserState.pos-1]," (not a valid identifier)"]}else{throw["Unexpected ",c," (not a valid identifier)"]}parserState.pos+=1;afterIdent=consumeIdent(parserState);end=parserState.pos}if(macroExclamation!==-1){if(parserState.typeFilter===null){parserState.typeFilter="macro"}else if(parserState.typeFilter!=="macro"){throw["Invalid search type: macro ","!"," and ",parserState.typeFilter," both specified",]}end=macroExclamation}return end}function isSpecialStartCharacter(c){return"<\"".indexOf(c)!==-1}function isPathStart(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="::"}function consumeIdent(parserState){REGEX_IDENT.lastIndex=parserState.pos;const match=parserState.userQuery.match(REGEX_IDENT);if(match){parserState.pos+=match[0].length;return true}return false}function isPathSeparator(c){return c===":"||c===" "}class VlqHexDecoder{constructor(string,cons){this.string=string;this.cons=cons;this.offset=0;this.backrefQueue=[]}decodeList(){let c=this.string.charCodeAt(this.offset);const ret=[];while(c!==125){ret.push(this.decode());c=this.string.charCodeAt(this.offset)}this.offset+=1;return ret}decode(){let n=0;let c=this.string.charCodeAt(this.offset);if(c===123){this.offset+=1;return this.decodeList()}while(c<96){n=(n<<4)|(c&0xF);this.offset+=1;c=this.string.charCodeAt(this.offset)}n=(n<<4)|(c&0xF);const[sign,value]=[n&1,n>>1];this.offset+=1;return sign?-value:value}next(){const c=this.string.charCodeAt(this.offset);if(c>=48&&c<64){this.offset+=1;return this.backrefQueue[c-48]}if(c===96){this.offset+=1;return this.cons(0)}const result=this.cons(this.decode());this.backrefQueue.unshift(result);if(this.backrefQueue.length>16){this.backrefQueue.pop()}return result}}class RoaringBitmap{constructor(str){const strdecoded=atob(str);const u8array=new Uint8Array(strdecoded.length);for(let j=0;j=4){offsets=[];for(let j=0;j>3]&(1<<(j&0x7))){const runcount=(u8array[i]|(u8array[i+1]<<8));i+=2;this.containers.push(new RoaringBitmapRun(runcount,u8array.slice(i,i+(runcount*4)),));i+=runcount*4}else if(this.cardinalities[j]>=4096){this.containers.push(new RoaringBitmapBits(u8array.slice(i,i+8192)));i+=8192}else{const end=this.cardinalities[j]*2;this.containers.push(new RoaringBitmapArray(this.cardinalities[j],u8array.slice(i,i+end),));i+=end}}}contains(keyvalue){const key=keyvalue>>16;const value=keyvalue&0xFFFF;for(let i=0;i=start&&value<=(start+lenm1)){return true}}return false}}class RoaringBitmapArray{constructor(cardinality,array){this.cardinality=cardinality;this.array=array}contains(value){const l=this.cardinality*2;for(let i=0;i>3]&(1<<(value&7)))}}class DocSearch{constructor(rawSearchIndex,rootPath,searchState){this.searchIndexDeprecated=new Map();this.searchIndexEmptyDesc=new Map();this.functionTypeFingerprint=null;this.typeNameIdMap=new Map();this.ALIASES=new Map();this.rootPath=rootPath;this.searchState=searchState;this.typeNameIdOfArray=this.buildTypeMapIndex("array");this.typeNameIdOfSlice=this.buildTypeMapIndex("slice");this.typeNameIdOfArrayOrSlice=this.buildTypeMapIndex("[]");this.typeNameIdOfTuple=this.buildTypeMapIndex("tuple");this.typeNameIdOfUnit=this.buildTypeMapIndex("unit");this.typeNameIdOfTupleOrUnit=this.buildTypeMapIndex("()");this.typeNameIdOfFn=this.buildTypeMapIndex("fn");this.typeNameIdOfFnMut=this.buildTypeMapIndex("fnmut");this.typeNameIdOfFnOnce=this.buildTypeMapIndex("fnonce");this.typeNameIdOfHof=this.buildTypeMapIndex("->");this.EMPTY_BINDINGS_MAP=new Map();this.EMPTY_GENERICS_ARRAY=[];this.TYPES_POOL=new Map();this.searchIndex=this.buildIndex(rawSearchIndex)}buildTypeMapIndex(name,isAssocType){if(name===""||name===null){return null}if(this.typeNameIdMap.has(name)){const obj=this.typeNameIdMap.get(name);obj.assocOnly=isAssocType&&obj.assocOnly;return obj.id}else{const id=this.typeNameIdMap.size;this.typeNameIdMap.set(name,{id,assocOnly:isAssocType});return id}}buildItemSearchTypeAll(types,lowercasePaths){return types.length>0?types.map(type=>this.buildItemSearchType(type,lowercasePaths)):this.EMPTY_GENERICS_ARRAY}buildItemSearchType(type,lowercasePaths,isAssocType){const PATH_INDEX_DATA=0;const GENERICS_DATA=1;const BINDINGS_DATA=2;let pathIndex,generics,bindings;if(typeof type==="number"){pathIndex=type;generics=this.EMPTY_GENERICS_ARRAY;bindings=this.EMPTY_BINDINGS_MAP}else{pathIndex=type[PATH_INDEX_DATA];generics=this.buildItemSearchTypeAll(type[GENERICS_DATA],lowercasePaths,);if(type.length>BINDINGS_DATA&&type[BINDINGS_DATA].length>0){bindings=new Map(type[BINDINGS_DATA].map(binding=>{const[assocType,constraints]=binding;return[this.buildItemSearchType(assocType,lowercasePaths,true).id,this.buildItemSearchTypeAll(constraints,lowercasePaths),]}))}else{bindings=this.EMPTY_BINDINGS_MAP}}let result;if(pathIndex<0){result={id:pathIndex,ty:TY_GENERIC,path:null,exactPath:null,generics,bindings,}}else if(pathIndex===0){result={id:null,ty:null,path:null,exactPath:null,generics,bindings,}}else{const item=lowercasePaths[pathIndex-1];result={id:this.buildTypeMapIndex(item.name,isAssocType),ty:item.ty,path:item.path,exactPath:item.exactPath,generics,bindings,}}const cr=this.TYPES_POOL.get(result.id);if(cr){if(cr.generics.length===result.generics.length&&cr.generics!==result.generics&&cr.generics.every((x,i)=>result.generics[i]===x)){result.generics=cr.generics}if(cr.bindings.size===result.bindings.size&&cr.bindings!==result.bindings){let ok=true;for(const[k,v]of cr.bindings.entries()){const v2=result.bindings.get(v);if(!v2){ok=false;break}if(v!==v2&&v.length===v2.length&&v.every((x,i)=>v2[i]===x)){result.bindings.set(k,v)}else if(v!==v2){ok=false;break}}if(ok){result.bindings=cr.bindings}}if(cr.ty===result.ty&&cr.path===result.path&&cr.bindings===result.bindings&&cr.generics===result.generics&&cr.ty===result.ty){return cr}}this.TYPES_POOL.set(result.id,result);return result}buildFunctionTypeFingerprint(type,output,fps){let input=type.id;if(input===this.typeNameIdOfArray||input===this.typeNameIdOfSlice){input=this.typeNameIdOfArrayOrSlice}if(input===this.typeNameIdOfTuple||input===this.typeNameIdOfUnit){input=this.typeNameIdOfTupleOrUnit}if(input===this.typeNameIdOfFn||input===this.typeNameIdOfFnMut||input===this.typeNameIdOfFnOnce){input=this.typeNameIdOfHof}const hashint1=k=>{k=(~~k+0x7ed55d16)+(k<<12);k=(k ^ 0xc761c23c)^(k>>>19);k=(~~k+0x165667b1)+(k<<5);k=(~~k+0xd3a2646c)^(k<<9);k=(~~k+0xfd7046c5)+(k<<3);return(k ^ 0xb55a4f09)^(k>>>16)};const hashint2=k=>{k=~k+(k<<15);k ^=k>>>12;k+=k<<2;k ^=k>>>4;k=Math.imul(k,2057);return k ^(k>>16)};if(input!==null){const h0a=hashint1(input);const h0b=hashint2(input);const h1a=~~(h0a+Math.imul(h0b,2));const h1b=~~(h0a+Math.imul(h0b,3));const h2a=~~(h0a+Math.imul(h0b,4));const h2b=~~(h0a+Math.imul(h0b,5));output[0]|=(1<<(h0a%32))|(1<<(h1b%32));output[1]|=(1<<(h1a%32))|(1<<(h2b%32));output[2]|=(1<<(h2a%32))|(1<<(h0b%32));fps.add(input)}for(const g of type.generics){this.buildFunctionTypeFingerprint(g,output,fps)}const fb={id:null,ty:0,generics:this.EMPTY_GENERICS_ARRAY,bindings:this.EMPTY_BINDINGS_MAP,};for(const[k,v]of type.bindings.entries()){fb.id=k;fb.generics=v;this.buildFunctionTypeFingerprint(fb,output,fps)}output[3]=fps.size}buildIndex(rawSearchIndex){const buildFunctionSearchTypeCallback=lowercasePaths=>{return functionSearchType=>{if(functionSearchType===0){return null}const INPUTS_DATA=0;const OUTPUT_DATA=1;let inputs,output;if(typeof functionSearchType[INPUTS_DATA]==="number"){inputs=[this.buildItemSearchType(functionSearchType[INPUTS_DATA],lowercasePaths),]}else{inputs=this.buildItemSearchTypeAll(functionSearchType[INPUTS_DATA],lowercasePaths,)}if(functionSearchType.length>1){if(typeof functionSearchType[OUTPUT_DATA]==="number"){output=[this.buildItemSearchType(functionSearchType[OUTPUT_DATA],lowercasePaths,),]}else{output=this.buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA],lowercasePaths,)}}else{output=[]}const where_clause=[];const l=functionSearchType.length;for(let i=2;inoop);let descShard={crate,shard:0,start:0,len:itemDescShardDecoder.next(),promise:null,resolve:null,};const descShardList=[descShard];this.searchIndexDeprecated.set(crate,new RoaringBitmap(crateCorpus.c));this.searchIndexEmptyDesc.set(crate,new RoaringBitmap(crateCorpus.e));let descIndex=0;const crateRow={crate,ty:3,name:crate,path:"",descShard,descIndex,exactPath:"",desc:crateCorpus.doc,parent:undefined,type:null,id,word:crate,normalizedName:crate.indexOf("_")===-1?crate:crate.replace(/_/g,""),bitIndex:0,implDisambiguator:null,};id+=1;searchIndex.push(crateRow);currentIndex+=1;if(!this.searchIndexEmptyDesc.get(crate).contains(0)){descIndex+=1}const itemTypes=crateCorpus.t;const itemNames=crateCorpus.n;const itemPaths=new Map(crateCorpus.q);const itemReexports=new Map(crateCorpus.r);const itemParentIdxDecoder=new VlqHexDecoder(crateCorpus.i,noop=>noop);const implDisambiguator=new Map(crateCorpus.b);const paths=crateCorpus.p;const aliases=crateCorpus.a;const lowercasePaths=[];const itemFunctionDecoder=new VlqHexDecoder(crateCorpus.f,buildFunctionSearchTypeCallback(lowercasePaths),);let len=paths.length;let lastPath=itemPaths.get(0);for(let i=0;i2){path=itemPaths.has(elem[2])?itemPaths.get(elem[2]):lastPath;lastPath=path}const exactPath=elem.length>3?itemPaths.get(elem[3]):path;lowercasePaths.push({ty,name:name.toLowerCase(),path,exactPath});paths[i]={ty,name,path,exactPath}}lastPath="";len=itemTypes.length;let lastName="";let lastWord="";for(let i=0;i=descShard.len&&!this.searchIndexEmptyDesc.get(crate).contains(bitIndex)){descShard={crate,shard:descShard.shard+1,start:descShard.start+descShard.len,len:itemDescShardDecoder.next(),promise:null,resolve:null,};descIndex=0;descShardList.push(descShard)}const name=itemNames[i]===""?lastName:itemNames[i];const word=itemNames[i]===""?lastWord:itemNames[i].toLowerCase();const path=itemPaths.has(i)?itemPaths.get(i):lastPath;const type=itemFunctionDecoder.next();if(type!==null){if(type){const fp=this.functionTypeFingerprint.subarray(id*4,(id+1)*4);const fps=new Set();for(const t of type.inputs){this.buildFunctionTypeFingerprint(t,fp,fps)}for(const t of type.output){this.buildFunctionTypeFingerprint(t,fp,fps)}for(const w of type.where_clause){for(const t of w){this.buildFunctionTypeFingerprint(t,fp,fps)}}}}const itemParentIdx=itemParentIdxDecoder.next();const row={crate,ty:itemTypes.charCodeAt(i)-65,name,path,descShard,descIndex,exactPath:itemReexports.has(i)?itemPaths.get(itemReexports.get(i)):path,parent:itemParentIdx>0?paths[itemParentIdx-1]:undefined,type,id,word,normalizedName:word.indexOf("_")===-1?word:word.replace(/_/g,""),bitIndex,implDisambiguator:implDisambiguator.has(i)?implDisambiguator.get(i):null,};id+=1;searchIndex.push(row);lastPath=row.path;if(!this.searchIndexEmptyDesc.get(crate).contains(bitIndex)){descIndex+=1}lastName=name;lastWord=word}if(aliases){const currentCrateAliases=new Map();this.ALIASES.set(crate,currentCrateAliases);for(const alias_name in aliases){if(!Object.prototype.hasOwnProperty.call(aliases,alias_name)){continue}let currentNameAliases;if(currentCrateAliases.has(alias_name)){currentNameAliases=currentCrateAliases.get(alias_name)}else{currentNameAliases=[];currentCrateAliases.set(alias_name,currentNameAliases)}for(const local_alias of aliases[alias_name]){currentNameAliases.push(local_alias+currentIndex)}}}currentIndex+=itemTypes.length;this.searchState.descShards.set(crate,descShardList)}this.TYPES_POOL=new Map();return searchIndex}static parseQuery(userQuery){function itemTypeFromName(typename){const index=itemTypes.findIndex(i=>i===typename);if(index<0){throw["Unknown type filter ",typename]}return index}function convertTypeFilterOnElem(elem){if(elem.typeFilter!==null){let typeFilter=elem.typeFilter;if(typeFilter==="const"){typeFilter="constant"}elem.typeFilter=itemTypeFromName(typeFilter)}else{elem.typeFilter=NO_TYPE_FILTER}for(const elem2 of elem.generics){convertTypeFilterOnElem(elem2)}for(const constraints of elem.bindings.values()){for(const constraint of constraints){convertTypeFilterOnElem(constraint)}}}function newParsedQuery(userQuery){return{original:userQuery,userQuery:userQuery.toLowerCase(),elems:[],returned:[],foundElems:0,totalElems:0,literalSearch:false,error:null,correction:null,proposeCorrectionFrom:null,proposeCorrectionTo:null,typeFingerprint:new Uint32Array(4),}}function parseInput(query,parserState){let foundStopChar=true;while(parserState.pos"){if(isReturnArrow(parserState)){break}throw["Unexpected ",c," (did you mean ","->","?)"]}else if(parserState.pos>0){throw["Unexpected ",c," after ",parserState.userQuery[parserState.pos-1]]}throw["Unexpected ",c]}else if(c===" "){skipWhitespace(parserState);continue}if(!foundStopChar){let extra="";if(isLastElemGeneric(query.elems,parserState)){extra=[" after ",">"]}else if(prevIs(parserState,"\"")){throw["Cannot have more than one element if you use quotes"]}if(parserState.typeFilter!==null){throw["Expected ",","," or ","->",...extra,", found ",c,]}throw["Expected ",",",", ",":"," or ","->",...extra,", found ",c,]}const before=query.elems.length;getFilteredNextElem(query,parserState,query.elems,false);if(query.elems.length===before){parserState.pos+=1}foundStopChar=false}if(parserState.typeFilter!==null){throw["Unexpected ",":"," (expected path after type filter ",parserState.typeFilter+":",")",]}while(parserState.pos"]}break}else{parserState.pos+=1}}}userQuery=userQuery.trim().replace(/\r|\n|\t/g," ");const parserState={length:userQuery.length,pos:0,totalElems:0,genericsElems:0,typeFilter:null,isInBinding:null,userQuery:userQuery.toLowerCase(),};let query=newParsedQuery(userQuery);try{parseInput(query,parserState);for(const elem of query.elems){convertTypeFilterOnElem(elem)}for(const elem of query.returned){convertTypeFilterOnElem(elem)}}catch(err){query=newParsedQuery(userQuery);query.error=err;return query}if(!query.literalSearch){query.literalSearch=parserState.totalElems>1}query.foundElems=query.elems.length+query.returned.length;query.totalElems=parserState.totalElems;return query}async execQuery(parsedQuery,filterCrates,currentCrate){const results_others=new Map(),results_in_args=new Map(),results_returned=new Map();function createQueryResults(results_in_args,results_returned,results_others,parsedQuery){return{"in_args":results_in_args,"returned":results_returned,"others":results_others,"query":parsedQuery,}}const buildHrefAndPath=item=>{let displayPath;let href;const type=itemTypes[item.ty];const name=item.name;let path=item.path;let exactPath=item.exactPath;if(type==="mod"){displayPath=path+"::";href=this.rootPath+path.replace(/::/g,"/")+"/"+name+"/index.html"}else if(type==="import"){displayPath=item.path+"::";href=this.rootPath+item.path.replace(/::/g,"/")+"/index.html#reexport."+name}else if(type==="primitive"||type==="keyword"){displayPath="";href=this.rootPath+path.replace(/::/g,"/")+"/"+type+"."+name+".html"}else if(type==="externcrate"){displayPath="";href=this.rootPath+name+"/index.html"}else if(item.parent!==undefined){const myparent=item.parent;let anchor=type+"."+name;const parentType=itemTypes[myparent.ty];let pageType=parentType;let pageName=myparent.name;exactPath=`${myparent.exactPath}::${myparent.name}`;if(parentType==="primitive"){displayPath=myparent.name+"::"}else if(type==="structfield"&&parentType==="variant"){const enumNameIdx=item.path.lastIndexOf("::");const enumName=item.path.substr(enumNameIdx+2);path=item.path.substr(0,enumNameIdx);displayPath=path+"::"+enumName+"::"+myparent.name+"::";anchor="variant."+myparent.name+".field."+name;pageType="enum";pageName=enumName}else{displayPath=path+"::"+myparent.name+"::"}if(item.implDisambiguator!==null){anchor=item.implDisambiguator+"/"+anchor}href=this.rootPath+path.replace(/::/g,"/")+"/"+pageType+"."+pageName+".html#"+anchor}else{displayPath=item.path+"::";href=this.rootPath+item.path.replace(/::/g,"/")+"/"+type+"."+name+".html"}return[displayPath,href,`${exactPath}::${name}`]};function pathSplitter(path){const tmp=""+path.replace(/::/g,"::");if(tmp.endsWith("")){return tmp.slice(0,tmp.length-6)}return tmp}const transformResults=results=>{const duplicates=new Set();const out=[];for(const result of results){if(result.id!==-1){const obj=this.searchIndex[result.id];obj.dist=result.dist;const res=buildHrefAndPath(obj);obj.displayPath=pathSplitter(res[0]);obj.fullPath=res[2]+"|"+obj.ty;if(duplicates.has(obj.fullPath)){continue}if(obj.ty===TY_IMPORT&&duplicates.has(res[2])){continue}if(duplicates.has(res[2]+"|"+TY_IMPORT)){continue}duplicates.add(obj.fullPath);duplicates.add(res[2]);obj.href=res[1];out.push(obj);if(out.length>=MAX_RESULTS){break}}}return out};const sortResults=async(results,isType,preferredCrate)=>{const userQuery=parsedQuery.userQuery;const casedUserQuery=parsedQuery.original;const result_list=[];for(const result of results.values()){result.item=this.searchIndex[result.id];result.word=this.searchIndex[result.id].word;result_list.push(result)}result_list.sort((aaa,bbb)=>{let a,b;a=(aaa.item.name!==casedUserQuery);b=(bbb.item.name!==casedUserQuery);if(a!==b){return a-b}a=(aaa.word!==userQuery);b=(bbb.word!==userQuery);if(a!==b){return a-b}a=(aaa.index<0);b=(bbb.index<0);if(a!==b){return a-b}a=aaa.path_dist;b=bbb.path_dist;if(a!==b){return a-b}a=aaa.index;b=bbb.index;if(a!==b){return a-b}a=(aaa.dist);b=(bbb.dist);if(a!==b){return a-b}a=this.searchIndexDeprecated.get(aaa.item.crate).contains(aaa.item.bitIndex);b=this.searchIndexDeprecated.get(bbb.item.crate).contains(bbb.item.bitIndex);if(a!==b){return a-b}a=(aaa.item.crate!==preferredCrate);b=(bbb.item.crate!==preferredCrate);if(a!==b){return a-b}a=aaa.word.length;b=bbb.word.length;if(a!==b){return a-b}a=aaa.word;b=bbb.word;if(a!==b){return(a>b?+1:-1)}a=this.searchIndexEmptyDesc.get(aaa.item.crate).contains(aaa.item.bitIndex);b=this.searchIndexEmptyDesc.get(bbb.item.crate).contains(bbb.item.bitIndex);if(a!==b){return a-b}a=aaa.item.ty;b=bbb.item.ty;if(a!==b){return a-b}a=aaa.item.path;b=bbb.item.path;if(a!==b){return(a>b?+1:-1)}return 0});return transformResults(result_list)};function unifyFunctionTypes(fnTypesIn,queryElems,whereClause,mgensIn,solutionCb,unboxingDepth,){if(unboxingDepth>=UNBOXING_LIMIT){return false}const mgens=mgensIn===null?null:new Map(mgensIn);if(queryElems.length===0){return!solutionCb||solutionCb(mgens)}if(!fnTypesIn||fnTypesIn.length===0){return false}const ql=queryElems.length;const fl=fnTypesIn.length;if(ql===1&&queryElems[0].generics.length===0&&queryElems[0].bindings.size===0){const queryElem=queryElems[0];for(const fnType of fnTypesIn){if(!unifyFunctionTypeIsMatchCandidate(fnType,queryElem,mgens)){continue}if(fnType.id<0&&queryElem.id<0){if(mgens&&mgens.has(fnType.id)&&mgens.get(fnType.id)!==queryElem.id){continue}const mgensScratch=new Map(mgens);mgensScratch.set(fnType.id,queryElem.id);if(!solutionCb||solutionCb(mgensScratch)){return true}}else if(!solutionCb||solutionCb(mgens?new Map(mgens):null)){return true}}for(const fnType of fnTypesIn){if(!unifyFunctionTypeIsUnboxCandidate(fnType,queryElem,whereClause,mgens,unboxingDepth+1,)){continue}if(fnType.id<0){if(mgens&&mgens.has(fnType.id)&&mgens.get(fnType.id)!==0){continue}const mgensScratch=new Map(mgens);mgensScratch.set(fnType.id,0);if(unifyFunctionTypes(whereClause[(-fnType.id)-1],queryElems,whereClause,mgensScratch,solutionCb,unboxingDepth+1,)){return true}}else if(unifyFunctionTypes([...fnType.generics,...Array.from(fnType.bindings.values()).flat()],queryElems,whereClause,mgens?new Map(mgens):null,solutionCb,unboxingDepth+1,)){return true}}return false}const fnTypes=fnTypesIn.slice();const flast=fl-1;const qlast=ql-1;const queryElem=queryElems[qlast];let queryElemsTmp=null;for(let i=flast;i>=0;i-=1){const fnType=fnTypes[i];if(!unifyFunctionTypeIsMatchCandidate(fnType,queryElem,mgens)){continue}let mgensScratch;if(fnType.id<0){mgensScratch=new Map(mgens);if(mgensScratch.has(fnType.id)&&mgensScratch.get(fnType.id)!==queryElem.id){continue}mgensScratch.set(fnType.id,queryElem.id)}else{mgensScratch=mgens}fnTypes[i]=fnTypes[flast];fnTypes.length=flast;if(!queryElemsTmp){queryElemsTmp=queryElems.slice(0,qlast)}const passesUnification=unifyFunctionTypes(fnTypes,queryElemsTmp,whereClause,mgensScratch,mgensScratch=>{if(fnType.generics.length===0&&queryElem.generics.length===0&&fnType.bindings.size===0&&queryElem.bindings.size===0){return!solutionCb||solutionCb(mgensScratch)}const solution=unifyFunctionTypeCheckBindings(fnType,queryElem,whereClause,mgensScratch,unboxingDepth,);if(!solution){return false}const simplifiedGenerics=solution.simplifiedGenerics;for(const simplifiedMgens of solution.mgens){const passesUnification=unifyFunctionTypes(simplifiedGenerics,queryElem.generics,whereClause,simplifiedMgens,solutionCb,unboxingDepth,);if(passesUnification){return true}}return false},unboxingDepth,);if(passesUnification){return true}fnTypes[flast]=fnTypes[i];fnTypes[i]=fnType;fnTypes.length=fl}for(let i=flast;i>=0;i-=1){const fnType=fnTypes[i];if(!unifyFunctionTypeIsUnboxCandidate(fnType,queryElem,whereClause,mgens,unboxingDepth+1,)){continue}let mgensScratch;if(fnType.id<0){mgensScratch=new Map(mgens);if(mgensScratch.has(fnType.id)&&mgensScratch.get(fnType.id)!==0){continue}mgensScratch.set(fnType.id,0)}else{mgensScratch=mgens}const generics=fnType.id<0?whereClause[(-fnType.id)-1]:fnType.generics;const bindings=fnType.bindings?Array.from(fnType.bindings.values()).flat():[];const passesUnification=unifyFunctionTypes(fnTypes.toSpliced(i,1,...generics,...bindings),queryElems,whereClause,mgensScratch,solutionCb,unboxingDepth+1,);if(passesUnification){return true}}return false}const unifyFunctionTypeIsMatchCandidate=(fnType,queryElem,mgensIn)=>{if(!typePassesFilter(queryElem.typeFilter,fnType.ty)){return false}if(fnType.id<0&&queryElem.id<0){if(mgensIn){if(mgensIn.has(fnType.id)&&mgensIn.get(fnType.id)!==queryElem.id){return false}for(const[fid,qid]of mgensIn.entries()){if(fnType.id!==fid&&queryElem.id===qid){return false}if(fnType.id===fid&&queryElem.id!==qid){return false}}}return true}else{if(queryElem.id===this.typeNameIdOfArrayOrSlice&&(fnType.id===this.typeNameIdOfSlice||fnType.id===this.typeNameIdOfArray)){}else if(queryElem.id===this.typeNameIdOfTupleOrUnit&&(fnType.id===this.typeNameIdOfTuple||fnType.id===this.typeNameIdOfUnit)){}else if(queryElem.id===this.typeNameIdOfHof&&(fnType.id===this.typeNameIdOfFn||fnType.id===this.typeNameIdOfFnMut||fnType.id===this.typeNameIdOfFnOnce)){}else if(fnType.id!==queryElem.id||queryElem.id===null){return false}if((fnType.generics.length+fnType.bindings.size)===0&&queryElem.generics.length!==0){return false}if(fnType.bindings.size0){const fnTypePath=fnType.path!==undefined&&fnType.path!==null?fnType.path.split("::"):[];if(queryElemPathLength>fnTypePath.length){return false}let i=0;for(const path of fnTypePath){if(path===queryElem.pathWithoutLast[i]){i+=1;if(i>=queryElemPathLength){break}}}if(i0){let mgensSolutionSet=[mgensIn];for(const[name,constraints]of queryElem.bindings.entries()){if(mgensSolutionSet.length===0){return false}if(!fnType.bindings.has(name)){return false}const fnTypeBindings=fnType.bindings.get(name);mgensSolutionSet=mgensSolutionSet.flatMap(mgens=>{const newSolutions=[];unifyFunctionTypes(fnTypeBindings,constraints,whereClause,mgens,newMgens=>{newSolutions.push(newMgens);return false},unboxingDepth,);return newSolutions})}if(mgensSolutionSet.length===0){return false}const binds=Array.from(fnType.bindings.entries()).flatMap(entry=>{const[name,constraints]=entry;if(queryElem.bindings.has(name)){return[]}else{return constraints}});if(simplifiedGenerics.length>0){simplifiedGenerics=[...simplifiedGenerics,...binds]}else{simplifiedGenerics=binds}return{simplifiedGenerics,mgens:mgensSolutionSet}}return{simplifiedGenerics,mgens:[mgensIn]}}function unifyFunctionTypeIsUnboxCandidate(fnType,queryElem,whereClause,mgens,unboxingDepth,){if(unboxingDepth>=UNBOXING_LIMIT){return false}if(fnType.id<0&&queryElem.id>=0){if(!whereClause){return false}if(mgens&&mgens.has(fnType.id)&&mgens.get(fnType.id)!==0){return false}const mgensTmp=new Map(mgens);mgensTmp.set(fnType.id,null);return checkIfInList(whereClause[(-fnType.id)-1],queryElem,whereClause,mgensTmp,unboxingDepth,)}else if(fnType.generics.length>0||fnType.bindings.size>0){const simplifiedGenerics=[...fnType.generics,...Array.from(fnType.bindings.values()).flat(),];return checkIfInList(simplifiedGenerics,queryElem,whereClause,mgens,unboxingDepth,)}return false}function checkIfInList(list,elem,whereClause,mgens,unboxingDepth){for(const entry of list){if(checkType(entry,elem,whereClause,mgens,unboxingDepth)){return true}}return false}const checkType=(row,elem,whereClause,mgens,unboxingDepth)=>{if(unboxingDepth>=UNBOXING_LIMIT){return false}if(row.bindings.size===0&&elem.bindings.size===0){if(elem.id<0&&mgens===null){return row.id<0||checkIfInList(row.generics,elem,whereClause,mgens,unboxingDepth+1,)}if(row.id>0&&elem.id>0&&elem.pathWithoutLast.length===0&&typePassesFilter(elem.typeFilter,row.ty)&&elem.generics.length===0&&elem.id!==this.typeNameIdOfArrayOrSlice&&elem.id!==this.typeNameIdOfTupleOrUnit&&elem.id!==this.typeNameIdOfHof){return row.id===elem.id||checkIfInList(row.generics,elem,whereClause,mgens,unboxingDepth,)}}return unifyFunctionTypes([row],[elem],whereClause,mgens,null,unboxingDepth)};function checkPath(contains,ty){if(contains.length===0){return 0}const maxPathEditDistance=Math.floor(contains.reduce((acc,next)=>acc+next.length,0)/3,);let ret_dist=maxPathEditDistance+1;const path=ty.path.split("::");if(ty.parent&&ty.parent.name){path.push(ty.parent.name.toLowerCase())}const length=path.length;const clength=contains.length;pathiter:for(let i=length-clength;i>=0;i-=1){let dist_total=0;for(let x=0;xmaxPathEditDistance){continue pathiter}dist_total+=dist}}ret_dist=Math.min(ret_dist,Math.round(dist_total/clength))}return ret_dist>maxPathEditDistance?null:ret_dist}function typePassesFilter(filter,type){if(filter<=NO_TYPE_FILTER||filter===type)return true;const name=itemTypes[type];switch(itemTypes[filter]){case"constant":return name==="associatedconstant";case"fn":return name==="method"||name==="tymethod";case"type":return name==="primitive"||name==="associatedtype";case"trait":return name==="traitalias"}return false}function createAliasFromItem(item){return{crate:item.crate,name:item.name,path:item.path,descShard:item.descShard,descIndex:item.descIndex,exactPath:item.exactPath,ty:item.ty,parent:item.parent,type:item.type,is_alias:true,bitIndex:item.bitIndex,implDisambiguator:item.implDisambiguator,}}const handleAliases=async(ret,query,filterCrates,currentCrate)=>{const lowerQuery=query.toLowerCase();const aliases=[];const crateAliases=[];if(filterCrates!==null){if(this.ALIASES.has(filterCrates)&&this.ALIASES.get(filterCrates).has(lowerQuery)){const query_aliases=this.ALIASES.get(filterCrates).get(lowerQuery);for(const alias of query_aliases){aliases.push(createAliasFromItem(this.searchIndex[alias]))}}}else{for(const[crate,crateAliasesIndex]of this.ALIASES){if(crateAliasesIndex.has(lowerQuery)){const pushTo=crate===currentCrate?crateAliases:aliases;const query_aliases=crateAliasesIndex.get(lowerQuery);for(const alias of query_aliases){pushTo.push(createAliasFromItem(this.searchIndex[alias]))}}}}const sortFunc=(aaa,bbb)=>{if(aaa.path{return this.searchIndexEmptyDesc.get(alias.crate).contains(alias.bitIndex)?"":this.searchState.loadDesc(alias)};const[crateDescs,descs]=await Promise.all([Promise.all(crateAliases.map(fetchDesc)),Promise.all(aliases.map(fetchDesc)),]);const pushFunc=alias=>{alias.alias=query;const res=buildHrefAndPath(alias);alias.displayPath=pathSplitter(res[0]);alias.fullPath=alias.displayPath+alias.name;alias.href=res[1];ret.others.unshift(alias);if(ret.others.length>MAX_RESULTS){ret.others.pop()}};aliases.forEach((alias,i)=>{alias.desc=descs[i]});aliases.forEach(pushFunc);crateAliases.forEach((alias,i)=>{alias.desc=crateDescs[i]});crateAliases.forEach(pushFunc)};function addIntoResults(results,fullId,id,index,dist,path_dist,maxEditDistance){if(dist<=maxEditDistance||index!==-1){if(results.has(fullId)){const result=results.get(fullId);if(result.dontValidate||result.dist<=dist){return}}results.set(fullId,{id:id,index:index,dontValidate:parsedQuery.literalSearch,dist:dist,path_dist:path_dist,})}}function handleSingleArg(row,pos,elem,results_others,results_in_args,results_returned,maxEditDistance,){if(!row||(filterCrates!==null&&row.crate!==filterCrates)){return}let path_dist=0;const fullId=row.id;const tfpDist=compareTypeFingerprints(fullId,parsedQuery.typeFingerprint,);if(tfpDist!==null){const in_args=row.type&&row.type.inputs&&checkIfInList(row.type.inputs,elem,row.type.where_clause,null,0);const returned=row.type&&row.type.output&&checkIfInList(row.type.output,elem,row.type.where_clause,null,0);if(in_args){results_in_args.max_dist=Math.max(results_in_args.max_dist||0,tfpDist);const maxDist=results_in_args.sizenormalizedIndex&&normalizedIndex!==-1)){index=normalizedIndex}if(elem.fullPath.length>1){path_dist=checkPath(elem.pathWithoutLast,row);if(path_dist===null){return}}if(parsedQuery.literalSearch){if(row.word===elem.pathLast){addIntoResults(results_others,fullId,pos,index,0,path_dist)}return}const dist=editDistance(row.normalizedName,elem.normalizedPathLast,maxEditDistance);if(index===-1&&dist>maxEditDistance){return}addIntoResults(results_others,fullId,pos,index,dist,path_dist,maxEditDistance)}function handleArgs(row,pos,results){if(!row||(filterCrates!==null&&row.crate!==filterCrates)||!row.type){return}const tfpDist=compareTypeFingerprints(row.id,parsedQuery.typeFingerprint,);if(tfpDist===null){return}if(results.size>=MAX_RESULTS&&tfpDist>results.max_dist){return}if(!unifyFunctionTypes(row.type.inputs,parsedQuery.elems,row.type.where_clause,null,mgens=>{return unifyFunctionTypes(row.type.output,parsedQuery.returned,row.type.where_clause,mgens,null,0,)},0,)){return}results.max_dist=Math.max(results.max_dist||0,tfpDist);addIntoResults(results,row.id,pos,0,tfpDist,0,Number.MAX_VALUE)}const compareTypeFingerprints=(fullId,queryFingerprint)=>{const fh0=this.functionTypeFingerprint[fullId*4];const fh1=this.functionTypeFingerprint[(fullId*4)+1];const fh2=this.functionTypeFingerprint[(fullId*4)+2];const[qh0,qh1,qh2]=queryFingerprint;const[in0,in1,in2]=[fh0&qh0,fh1&qh1,fh2&qh2];if((in0 ^ qh0)||(in1 ^ qh1)||(in2 ^ qh2)){return null}return this.functionTypeFingerprint[(fullId*4)+3]};const innerRunQuery=()=>{const queryLen=parsedQuery.elems.reduce((acc,next)=>acc+next.pathLast.length,0)+parsedQuery.returned.reduce((acc,next)=>acc+next.pathLast.length,0);const maxEditDistance=Math.floor(queryLen/3);const genericSymbols=new Map();const convertNameToId=(elem,isAssocType)=>{const loweredName=elem.pathLast.toLowerCase();if(this.typeNameIdMap.has(loweredName)&&(isAssocType||!this.typeNameIdMap.get(loweredName).assocOnly)){elem.id=this.typeNameIdMap.get(loweredName).id}else if(!parsedQuery.literalSearch){let match=null;let matchDist=maxEditDistance+1;let matchName="";for(const[name,{id,assocOnly}]of this.typeNameIdMap){const dist=Math.min(editDistance(name,loweredName,maxEditDistance),editDistance(name,elem.normalizedPathLast,maxEditDistance),);if(dist<=matchDist&&dist<=maxEditDistance&&(isAssocType||!assocOnly)){if(dist===matchDist&&matchName>name){continue}match=id;matchDist=dist;matchName=name}}if(match!==null){parsedQuery.correction=matchName}elem.id=match}if((elem.id===null&&parsedQuery.totalElems>1&&elem.typeFilter===-1&&elem.generics.length===0&&elem.bindings.size===0)||elem.typeFilter===TY_GENERIC){if(genericSymbols.has(elem.name)){elem.id=genericSymbols.get(elem.name)}else{elem.id=-(genericSymbols.size+1);genericSymbols.set(elem.name,elem.id)}if(elem.typeFilter===-1&&elem.name.length>=3){const maxPartDistance=Math.floor(elem.name.length/3);let matchDist=maxPartDistance+1;let matchName="";for(const name of this.typeNameIdMap.keys()){const dist=editDistance(name,elem.name,maxPartDistance);if(dist<=matchDist&&dist<=maxPartDistance){if(dist===matchDist&&matchName>name){continue}matchDist=dist;matchName=name}}if(matchName!==""){parsedQuery.proposeCorrectionFrom=elem.name;parsedQuery.proposeCorrectionTo=matchName}}elem.typeFilter=TY_GENERIC}if(elem.generics.length>0&&elem.typeFilter===TY_GENERIC){parsedQuery.error=["Generic type parameter ",elem.name," does not accept generic parameters",]}for(const elem2 of elem.generics){convertNameToId(elem2)}elem.bindings=new Map(Array.from(elem.bindings.entries()).map(entry=>{const[name,constraints]=entry;if(!this.typeNameIdMap.has(name)){parsedQuery.error=["Type parameter ",name," does not exist",];return[null,[]]}for(const elem2 of constraints){convertNameToId(elem2)}return[this.typeNameIdMap.get(name).id,constraints]}),)};const fps=new Set();for(const elem of parsedQuery.elems){convertNameToId(elem);this.buildFunctionTypeFingerprint(elem,parsedQuery.typeFingerprint,fps)}for(const elem of parsedQuery.returned){convertNameToId(elem);this.buildFunctionTypeFingerprint(elem,parsedQuery.typeFingerprint,fps)}if(parsedQuery.foundElems===1&&parsedQuery.returned.length===0){if(parsedQuery.elems.length===1){const elem=parsedQuery.elems[0];const length=this.searchIndex.length;for(let i=0,nSearchIndex=length;i0){const sortQ=(a,b)=>{const ag=a.generics.length===0&&a.bindings.size===0;const bg=b.generics.length===0&&b.bindings.size===0;if(ag!==bg){return ag-bg}const ai=a.id>0;const bi=b.id>0;return ai-bi};parsedQuery.elems.sort(sortQ);parsedQuery.returned.sort(sortQ);for(let i=0,nSearchIndex=this.searchIndex.length;i{const descs=await Promise.all(list.map(result=>{return this.searchIndexEmptyDesc.get(result.crate).contains(result.bitIndex)?"":this.searchState.loadDesc(result)}));for(const[i,result]of list.entries()){result.desc=descs[i]}}));if(parsedQuery.error!==null&&ret.others.length!==0){ret.query.error=null}return ret}}let rawSearchIndex;let docSearch;const longItemTypes=["keyword","primitive type","module","extern crate","re-export","struct","enum","function","type alias","static","trait","","trait method","method","struct field","enum variant","macro","assoc type","constant","assoc const","union","foreign type","existential type","attribute macro","derive macro","trait alias",];let currentResults;function printTab(nb){let iter=0;let foundCurrentTab=false;let foundCurrentResultSet=false;onEachLazy(document.getElementById("search-tabs").childNodes,elem=>{if(nb===iter){addClass(elem,"selected");foundCurrentTab=true}else{removeClass(elem,"selected")}iter+=1});const isTypeSearch=(nb>0||iter===1);iter=0;onEachLazy(document.getElementById("results").childNodes,elem=>{if(nb===iter){addClass(elem,"active");foundCurrentResultSet=true}else{removeClass(elem,"active")}iter+=1});if(foundCurrentTab&&foundCurrentResultSet){searchState.currentTab=nb;const correctionsElem=document.getElementsByClassName("search-corrections");if(isTypeSearch){removeClass(correctionsElem[0],"hidden")}else{addClass(correctionsElem[0],"hidden")}}else if(nb!==0){printTab(0)}}function buildUrl(search,filterCrates){let extra="?search="+encodeURIComponent(search);if(filterCrates!==null){extra+="&filter-crate="+encodeURIComponent(filterCrates)}return getNakedUrl()+extra+window.location.hash}function getFilterCrates(){const elem=document.getElementById("crate-search");if(elem&&elem.value!=="all crates"&&window.searchIndex.has(elem.value)){return elem.value}return null}function nextTab(direction){const next=(searchState.currentTab+direction+3)%searchState.focusedByTab.length;searchState.focusedByTab[searchState.currentTab]=document.activeElement;printTab(next);focusSearchResult()}function focusSearchResult(){const target=searchState.focusedByTab[searchState.currentTab]||document.querySelectorAll(".search-results.active a").item(0)||document.querySelectorAll("#search-tabs button").item(searchState.currentTab);searchState.focusedByTab[searchState.currentTab]=null;if(target){target.focus()}}async function addTab(array,query,display){const extraClass=display?" active":"";const output=document.createElement("div");if(array.length>0){output.className="search-results "+extraClass;for(const item of array){const name=item.name;const type=itemTypes[item.ty];const longType=longItemTypes[item.ty];const typeName=longType.length!==0?`${longType}`:"?";const link=document.createElement("a");link.className="result-"+type;link.href=item.href;const resultName=document.createElement("div");resultName.className="result-name";resultName.insertAdjacentHTML("beforeend",`${typeName}`);link.appendChild(resultName);let alias=" ";if(item.is_alias){alias=`
\ -${item.alias} - see \ -
`}resultName.insertAdjacentHTML("beforeend",`
${alias}\ -${item.displayPath}${name}\ -
`);const description=document.createElement("div");description.className="desc";description.insertAdjacentHTML("beforeend",item.desc);link.appendChild(description);output.appendChild(link)}}else if(query.error===null){output.className="search-failed"+extraClass;output.innerHTML="No results :(
"+"Try on DuckDuckGo?

"+"Or try looking in one of these:"}return[output,array.length]}function makeTabHeader(tabNb,text,nbElems){const fmtNbElems=nbElems<10?`\u{2007}(${nbElems})\u{2007}\u{2007}`:nbElems<100?`\u{2007}(${nbElems})\u{2007}`:`\u{2007}(${nbElems})`;if(searchState.currentTab===tabNb){return""}return""}async function showResults(results,go_to_first,filterCrates){const search=searchState.outputElement();if(go_to_first||(results.others.length===1&&getSettingValue("go-to-only-result")==="true")){window.onunload=()=>{};searchState.removeQueryParameters();const elem=document.createElement("a");elem.href=results.others[0].href;removeClass(elem,"active");document.body.appendChild(elem);elem.click();return}if(results.query===undefined){results.query=DocSearch.parseQuery(searchState.input.value)}currentResults=results.query.userQuery;const[ret_others,ret_in_args,ret_returned]=await Promise.all([addTab(results.others,results.query,true),addTab(results.in_args,results.query,false),addTab(results.returned,results.query,false),]);let currentTab=searchState.currentTab;if((currentTab===0&&ret_others[1]===0)||(currentTab===1&&ret_in_args[1]===0)||(currentTab===2&&ret_returned[1]===0)){if(ret_others[1]!==0){currentTab=0}else if(ret_in_args[1]!==0){currentTab=1}else if(ret_returned[1]!==0){currentTab=2}}let crates="";if(rawSearchIndex.size>1){crates=" in 
"}let output=`

Results${crates}

`;if(results.query.error!==null){const error=results.query.error;error.forEach((value,index)=>{value=value.split("<").join("<").split(">").join(">");if(index%2!==0){error[index]=`${value.replaceAll(" ", " ")}`}else{error[index]=value}});output+=`

Query parser error: "${error.join("")}".

`;output+="
"+makeTabHeader(0,"In Names",ret_others[1])+"
";currentTab=0}else if(results.query.foundElems<=1&&results.query.returned.length===0){output+="
"+makeTabHeader(0,"In Names",ret_others[1])+makeTabHeader(1,"In Parameters",ret_in_args[1])+makeTabHeader(2,"In Return Types",ret_returned[1])+"
"}else{const signatureTabTitle=results.query.elems.length===0?"In Function Return Types":results.query.returned.length===0?"In Function Parameters":"In Function Signatures";output+="
"+makeTabHeader(0,signatureTabTitle,ret_others[1])+"
";currentTab=0}if(results.query.correction!==null){const orig=results.query.returned.length>0?results.query.returned[0].name:results.query.elems[0].name;output+="

"+`Type "${orig}" not found. `+"Showing results for closest type name "+`"${results.query.correction}" instead.

`}if(results.query.proposeCorrectionFrom!==null){const orig=results.query.proposeCorrectionFrom;const targ=results.query.proposeCorrectionTo;output+="

"+`Type "${orig}" not found and used as generic parameter. `+`Consider searching for "${targ}" instead.

`}const resultsElem=document.createElement("div");resultsElem.id="results";resultsElem.appendChild(ret_others[0]);resultsElem.appendChild(ret_in_args[0]);resultsElem.appendChild(ret_returned[0]);search.innerHTML=output;const crateSearch=document.getElementById("crate-search");if(crateSearch){crateSearch.addEventListener("input",updateCrate)}search.appendChild(resultsElem);searchState.showResults(search);const elems=document.getElementById("search-tabs").childNodes;searchState.focusedByTab=[];let i=0;for(const elem of elems){const j=i;elem.onclick=()=>printTab(j);searchState.focusedByTab.push(null);i+=1}printTab(currentTab)}function updateSearchHistory(url){if(!browserSupportsHistoryApi()){return}const params=searchState.getQueryStringParams();if(!history.state&&!params.search){history.pushState(null,"",url)}else{history.replaceState(null,"",url)}}async function search(forced){const query=DocSearch.parseQuery(searchState.input.value.trim());let filterCrates=getFilterCrates();if(!forced&&query.userQuery===currentResults){if(query.userQuery.length>0){putBackSearch()}return}searchState.setLoadingSearch();const params=searchState.getQueryStringParams();if(filterCrates===null&¶ms["filter-crate"]!==undefined){filterCrates=params["filter-crate"]}searchState.title="\""+query.original+"\" Search - Rust";updateSearchHistory(buildUrl(query.original,filterCrates));await showResults(await docSearch.execQuery(query,filterCrates,window.currentCrate),params.go_to_first,filterCrates)}function onSearchSubmit(e){e.preventDefault();searchState.clearInputTimeout();search()}function putBackSearch(){const search_input=searchState.input;if(!searchState.input){return}if(search_input.value!==""&&!searchState.isDisplayed()){searchState.showResults();if(browserSupportsHistoryApi()){history.replaceState(null,"",buildUrl(search_input.value,getFilterCrates()))}document.title=searchState.title}}function registerSearchEvents(){const params=searchState.getQueryStringParams();if(searchState.input.value===""){searchState.input.value=params.search||""}const searchAfter500ms=()=>{searchState.clearInputTimeout();if(searchState.input.value.length===0){searchState.hideResults()}else{searchState.timeout=setTimeout(search,500)}};searchState.input.onkeyup=searchAfter500ms;searchState.input.oninput=searchAfter500ms;document.getElementsByClassName("search-form")[0].onsubmit=onSearchSubmit;searchState.input.onchange=e=>{if(e.target!==document.activeElement){return}searchState.clearInputTimeout();setTimeout(search,0)};searchState.input.onpaste=searchState.input.onchange;searchState.outputElement().addEventListener("keydown",e=>{if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey){return}if(e.which===38){const previous=document.activeElement.previousElementSibling;if(previous){previous.focus()}else{searchState.focus()}e.preventDefault()}else if(e.which===40){const next=document.activeElement.nextElementSibling;if(next){next.focus()}const rect=document.activeElement.getBoundingClientRect();if(window.innerHeight-rect.bottom{if(e.which===40){focusSearchResult();e.preventDefault()}});searchState.input.addEventListener("focus",()=>{putBackSearch()});searchState.input.addEventListener("blur",()=>{searchState.input.placeholder=searchState.input.origPlaceholder});if(browserSupportsHistoryApi()){const previousTitle=document.title;window.addEventListener("popstate",e=>{const params=searchState.getQueryStringParams();document.title=previousTitle;currentResults=null;if(params.search&¶ms.search.length>0){searchState.input.value=params.search;e.preventDefault();search()}else{searchState.input.value="";searchState.hideResults()}})}window.onpageshow=()=>{const qSearch=searchState.getQueryStringParams().search;if(searchState.input.value===""&&qSearch){searchState.input.value=qSearch}search()}}function updateCrate(ev){if(ev.target.value==="all crates"){const query=searchState.input.value.trim();updateSearchHistory(buildUrl(query,null))}currentResults=null;search(true)}function initSearch(searchIndx){rawSearchIndex=searchIndx;if(typeof window!=="undefined"){docSearch=new DocSearch(rawSearchIndex,ROOT_PATH,searchState);registerSearchEvents();if(window.searchState.getQueryStringParams().search){search()}}else if(typeof exports!=="undefined"){docSearch=new DocSearch(rawSearchIndex,ROOT_PATH,searchState);exports.docSearch=docSearch;exports.parseQuery=DocSearch.parseQuery}}if(typeof exports!=="undefined"){exports.initSearch=initSearch}if(typeof window!=="undefined"){window.initSearch=initSearch;if(window.searchIndex!==undefined){initSearch(window.searchIndex)}}else{initSearch(new Map())}})() \ No newline at end of file diff --git a/static.files/search-f0d225181b97f9a4.js b/static.files/search-f0d225181b97f9a4.js new file mode 100644 index 0000000000..d34fb34c68 --- /dev/null +++ b/static.files/search-f0d225181b97f9a4.js @@ -0,0 +1,6 @@ +"use strict";if(!Array.prototype.toSpliced){Array.prototype.toSpliced=function(){const me=this.slice();Array.prototype.splice.apply(me,arguments);return me}}(function(){const itemTypes=["keyword","primitive","mod","externcrate","import","struct","enum","fn","type","static","trait","impl","tymethod","method","structfield","variant","macro","associatedtype","constant","associatedconstant","union","foreigntype","existential","attr","derive","traitalias","generic",];const TY_GENERIC=itemTypes.indexOf("generic");const TY_IMPORT=itemTypes.indexOf("import");const ROOT_PATH=typeof window!=="undefined"?window.rootPath:"../";const UNBOXING_LIMIT=5;const REGEX_IDENT=/\p{ID_Start}\p{ID_Continue}*|_\p{ID_Continue}+/uy;const REGEX_INVALID_TYPE_FILTER=/[^a-z]/ui;const MAX_RESULTS=200;const NO_TYPE_FILTER=-1;const editDistanceState={current:[],prev:[],prevPrev:[],calculate:function calculate(a,b,limit){if(a.lengthlimit){return limit+1}while(b.length>0&&b[0]===a[0]){a=a.substring(1);b=b.substring(1)}while(b.length>0&&b[b.length-1]===a[a.length-1]){a=a.substring(0,a.length-1);b=b.substring(0,b.length-1)}if(b.length===0){return minDist}const aLength=a.length;const bLength=b.length;for(let i=0;i<=bLength;++i){this.current[i]=0;this.prev[i]=i;this.prevPrev[i]=Number.MAX_VALUE}for(let i=1;i<=aLength;++i){this.current[0]=i;const aIdx=i-1;for(let j=1;j<=bLength;++j){const bIdx=j-1;const substitutionCost=a[aIdx]===b[bIdx]?0:1;this.current[j]=Math.min(this.prev[j]+1,this.current[j-1]+1,this.prev[j-1]+substitutionCost,);if((i>1)&&(j>1)&&(a[aIdx]===b[bIdx-1])&&(a[aIdx-1]===b[bIdx])){this.current[j]=Math.min(this.current[j],this.prevPrev[j-2]+1,)}}const prevPrevTmp=this.prevPrev;this.prevPrev=this.prev;this.prev=this.current;this.current=prevPrevTmp}const distance=this.prev[bLength];return distance<=limit?distance:(limit+1)},};function editDistance(a,b,limit){return editDistanceState.calculate(a,b,limit)}function isEndCharacter(c){return"=,>-])".indexOf(c)!==-1}function isSeparatorCharacter(c){return c===","||c==="="}function isReturnArrow(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="->"}function skipWhitespace(parserState){while(parserState.pos0){const c=parserState.userQuery[pos-1];if(c===lookingFor){return true}else if(c!==" "){break}pos-=1}return false}function isLastElemGeneric(elems,parserState){return(elems.length>0&&elems[elems.length-1].generics.length>0)||prevIs(parserState,">")}function getFilteredNextElem(query,parserState,elems,isInGenerics){const start=parserState.pos;if(parserState.userQuery[parserState.pos]===":"&&!isPathStart(parserState)){throw["Expected type filter before ",":"]}getNextElem(query,parserState,elems,isInGenerics);if(parserState.userQuery[parserState.pos]===":"&&!isPathStart(parserState)){if(parserState.typeFilter!==null){throw["Unexpected ",":"," (expected path after type filter ",parserState.typeFilter+":",")",]}if(elems.length===0){throw["Expected type filter before ",":"]}else if(query.literalSearch){throw["Cannot use quotes on type filter"]}const typeFilterElem=elems.pop();checkExtraTypeFilterCharacters(start,parserState);parserState.typeFilter=typeFilterElem.name;parserState.pos+=1;parserState.totalElems-=1;query.literalSearch=false;getNextElem(query,parserState,elems,isInGenerics)}}function getItemsBefore(query,parserState,elems,endChar){let foundStopChar=true;let foundSeparator=false;const oldTypeFilter=parserState.typeFilter;parserState.typeFilter=null;const oldIsInBinding=parserState.isInBinding;parserState.isInBinding=null;let hofParameters=null;let extra="";if(endChar===">"){extra="<"}else if(endChar==="]"){extra="["}else if(endChar===")"){extra="("}else if(endChar===""){extra="->"}else{extra=endChar}while(parserState.pos"," after ","="]}hofParameters=[...elems];elems.length=0;parserState.pos+=2;foundStopChar=true;foundSeparator=false;continue}else if(c===" "){parserState.pos+=1;continue}else if(isSeparatorCharacter(c)){parserState.pos+=1;foundStopChar=true;foundSeparator=true;continue}else if(c===":"&&isPathStart(parserState)){throw["Unexpected ","::",": paths cannot start with ","::"]}else if(isEndCharacter(c)){throw["Unexpected ",c," after ",extra]}if(!foundStopChar){let extra=[];if(isLastElemGeneric(query.elems,parserState)){extra=[" after ",">"]}else if(prevIs(parserState,"\"")){throw["Cannot have more than one element if you use quotes"]}if(endChar!==""){throw["Expected ",",",", ","=",", or ",endChar,...extra,", found ",c,]}throw["Expected ",","," or ","=",...extra,", found ",c,]}const posBefore=parserState.pos;getFilteredNextElem(query,parserState,elems,endChar!=="");if(endChar!==""&&parserState.pos>=parserState.length){throw["Unclosed ",extra]}if(posBefore===parserState.pos){parserState.pos+=1}foundStopChar=false}if(parserState.pos>=parserState.length&&endChar!==""){throw["Unclosed ",extra]}parserState.pos+=1;if(hofParameters){foundSeparator=false;if([...elems,...hofParameters].some(x=>x.bindingName)||parserState.isInBinding){throw["Unexpected ","="," within ","->"]}const hofElem=makePrimitiveElement("->",{generics:hofParameters,bindings:new Map([["output",[...elems]]]),typeFilter:null,});elems.length=0;elems[0]=hofElem}parserState.typeFilter=oldTypeFilter;parserState.isInBinding=oldIsInBinding;return{foundSeparator}}function getNextElem(query,parserState,elems,isInGenerics){const generics=[];skipWhitespace(parserState);let start=parserState.pos;let end;if("[(".indexOf(parserState.userQuery[parserState.pos])!==-1){let endChar=")";let name="()";let friendlyName="tuple";if(parserState.userQuery[parserState.pos]==="["){endChar="]";name="[]";friendlyName="slice"}parserState.pos+=1;const{foundSeparator}=getItemsBefore(query,parserState,generics,endChar);const typeFilter=parserState.typeFilter;const bindingName=parserState.isInBinding;parserState.typeFilter=null;parserState.isInBinding=null;for(const gen of generics){if(gen.bindingName!==null){throw["Type parameter ","=",` cannot be within ${friendlyName} `,name]}}if(name==="()"&&!foundSeparator&&generics.length===1&&typeFilter===null){elems.push(generics[0])}else if(name==="()"&&generics.length===1&&generics[0].name==="->"){generics[0].typeFilter=typeFilter;elems.push(generics[0])}else{if(typeFilter!==null&&typeFilter!=="primitive"){throw["Invalid search type: primitive ",name," and ",typeFilter," both specified",]}parserState.totalElems+=1;if(isInGenerics){parserState.genericsElems+=1}elems.push(makePrimitiveElement(name,{bindingName,generics}))}}else if(parserState.userQuery[parserState.pos]==="&"){if(parserState.typeFilter!==null&&parserState.typeFilter!=="primitive"){throw["Invalid search type: primitive ","&"," and ",parserState.typeFilter," both specified",]}parserState.typeFilter=null;parserState.pos+=1;let c=parserState.userQuery[parserState.pos];while(c===" "&&parserState.pos=end){throw["Found generics without a path"]}parserState.pos+=1;getItemsBefore(query,parserState,generics,">")}else if(parserState.pos=end){throw["Found generics without a path"]}if(parserState.isInBinding){throw["Unexpected ","("," after ","="]}parserState.pos+=1;const typeFilter=parserState.typeFilter;parserState.typeFilter=null;getItemsBefore(query,parserState,generics,")");skipWhitespace(parserState);if(isReturnArrow(parserState)){parserState.pos+=2;skipWhitespace(parserState);getFilteredNextElem(query,parserState,generics,isInGenerics);generics[generics.length-1].bindingName=makePrimitiveElement("output")}else{generics.push(makePrimitiveElement(null,{bindingName:makePrimitiveElement("output"),typeFilter:null,}))}parserState.typeFilter=typeFilter}if(isStringElem){skipWhitespace(parserState)}if(start>=end&&generics.length===0){return}if(parserState.userQuery[parserState.pos]==="="){if(parserState.isInBinding){throw["Cannot write ","="," twice in a binding"]}if(!isInGenerics){throw["Type parameter ","="," must be within generics list"]}const name=parserState.userQuery.slice(start,end).trim();if(name==="!"){throw["Type parameter ","="," key cannot be ","!"," never type"]}if(name.includes("!")){throw["Type parameter ","="," key cannot be ","!"," macro"]}if(name.includes("::")){throw["Type parameter ","="," key cannot contain ","::"," path"]}if(name.includes(":")){throw["Type parameter ","="," key cannot contain ",":"," type"]}parserState.isInBinding={name,generics}}else{elems.push(createQueryElement(query,parserState,parserState.userQuery.slice(start,end),generics,isInGenerics,),)}}}function checkExtraTypeFilterCharacters(start,parserState){const query=parserState.userQuery.slice(start,parserState.pos).trim();const match=query.match(REGEX_INVALID_TYPE_FILTER);if(match){throw["Unexpected ",match[0]," in type filter (before ",":",")",]}}function createQueryElement(query,parserState,name,generics,isInGenerics){const path=name.trim();if(path.length===0&&generics.length===0){throw["Unexpected ",parserState.userQuery[parserState.pos]]}if(query.literalSearch&&parserState.totalElems-parserState.genericsElems>0){throw["Cannot have more than one element if you use quotes"]}const typeFilter=parserState.typeFilter;parserState.typeFilter=null;if(name.trim()==="!"){if(typeFilter!==null&&typeFilter!=="primitive"){throw["Invalid search type: primitive never type ","!"," and ",typeFilter," both specified",]}if(generics.length!==0){throw["Never type ","!"," does not accept generic parameters",]}const bindingName=parserState.isInBinding;parserState.isInBinding=null;return makePrimitiveElement("never",{bindingName})}const quadcolon=/::\s*::/.exec(path);if(path.startsWith("::")){throw["Paths cannot start with ","::"]}else if(path.endsWith("::")){throw["Paths cannot end with ","::"]}else if(quadcolon!==null){throw["Unexpected ",quadcolon[0]]}const pathSegments=path.split(/(?:::\s*)|(?:\s+(?:::\s*)?)/);if(pathSegments.length===0||(pathSegments.length===1&&pathSegments[0]==="")){if(generics.length>0||prevIs(parserState,">")){throw["Found generics without a path"]}else{throw["Unexpected ",parserState.userQuery[parserState.pos]]}}for(const[i,pathSegment]of pathSegments.entries()){if(pathSegment==="!"){if(i!==0){throw["Never type ","!"," is not associated item"]}pathSegments[i]="never"}}parserState.totalElems+=1;if(isInGenerics){parserState.genericsElems+=1}const bindingName=parserState.isInBinding;parserState.isInBinding=null;const bindings=new Map();const pathLast=pathSegments[pathSegments.length-1];return{name:name.trim(),id:null,fullPath:pathSegments,pathWithoutLast:pathSegments.slice(0,pathSegments.length-1),pathLast,normalizedPathLast:pathLast.replace(/_/g,""),generics:generics.filter(gen=>{if(gen.bindingName!==null){if(gen.name!==null){gen.bindingName.generics.unshift(gen)}bindings.set(gen.bindingName.name,gen.bindingName.generics);return false}return true}),bindings,typeFilter,bindingName,}}function makePrimitiveElement(name,extra){return Object.assign({name,id:null,fullPath:[name],pathWithoutLast:[],pathLast:name,normalizedPathLast:name,generics:[],bindings:new Map(),typeFilter:"primitive",bindingName:null,},extra)}function getStringElem(query,parserState,isInGenerics){if(isInGenerics){throw["Unexpected ","\""," in generics"]}else if(query.literalSearch){throw["Cannot have more than one literal search element"]}else if(parserState.totalElems-parserState.genericsElems>0){throw["Cannot use literal search when there is more than one element"]}parserState.pos+=1;const start=parserState.pos;const end=getIdentEndPosition(parserState);if(parserState.pos>=parserState.length){throw["Unclosed ","\""]}else if(parserState.userQuery[end]!=="\""){throw["Unexpected ",parserState.userQuery[end]," in a string element"]}else if(start===end){throw["Cannot have empty string element"]}parserState.pos+=1;query.literalSearch=true}function getIdentEndPosition(parserState){let afterIdent=consumeIdent(parserState);let end=parserState.pos;let macroExclamation=-1;while(parserState.pos0){throw["Unexpected ",c," after ",parserState.userQuery[parserState.pos-1]," (not a valid identifier)"]}else{throw["Unexpected ",c," (not a valid identifier)"]}parserState.pos+=1;afterIdent=consumeIdent(parserState);end=parserState.pos}if(macroExclamation!==-1){if(parserState.typeFilter===null){parserState.typeFilter="macro"}else if(parserState.typeFilter!=="macro"){throw["Invalid search type: macro ","!"," and ",parserState.typeFilter," both specified",]}end=macroExclamation}return end}function isSpecialStartCharacter(c){return"<\"".indexOf(c)!==-1}function isPathStart(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="::"}function consumeIdent(parserState){REGEX_IDENT.lastIndex=parserState.pos;const match=parserState.userQuery.match(REGEX_IDENT);if(match){parserState.pos+=match[0].length;return true}return false}function isPathSeparator(c){return c===":"||c===" "}class VlqHexDecoder{constructor(string,cons){this.string=string;this.cons=cons;this.offset=0;this.backrefQueue=[]}decodeList(){let c=this.string.charCodeAt(this.offset);const ret=[];while(c!==125){ret.push(this.decode());c=this.string.charCodeAt(this.offset)}this.offset+=1;return ret}decode(){let n=0;let c=this.string.charCodeAt(this.offset);if(c===123){this.offset+=1;return this.decodeList()}while(c<96){n=(n<<4)|(c&0xF);this.offset+=1;c=this.string.charCodeAt(this.offset)}n=(n<<4)|(c&0xF);const[sign,value]=[n&1,n>>1];this.offset+=1;return sign?-value:value}next(){const c=this.string.charCodeAt(this.offset);if(c>=48&&c<64){this.offset+=1;return this.backrefQueue[c-48]}if(c===96){this.offset+=1;return this.cons(0)}const result=this.cons(this.decode());this.backrefQueue.unshift(result);if(this.backrefQueue.length>16){this.backrefQueue.pop()}return result}}class RoaringBitmap{constructor(str){const strdecoded=atob(str);const u8array=new Uint8Array(strdecoded.length);for(let j=0;j=4){offsets=[];for(let j=0;j>3]&(1<<(j&0x7))){const runcount=(u8array[i]|(u8array[i+1]<<8));i+=2;this.containers.push(new RoaringBitmapRun(runcount,u8array.slice(i,i+(runcount*4)),));i+=runcount*4}else if(this.cardinalities[j]>=4096){this.containers.push(new RoaringBitmapBits(u8array.slice(i,i+8192)));i+=8192}else{const end=this.cardinalities[j]*2;this.containers.push(new RoaringBitmapArray(this.cardinalities[j],u8array.slice(i,i+end),));i+=end}}}contains(keyvalue){const key=keyvalue>>16;const value=keyvalue&0xFFFF;for(let i=0;i=start&&value<=(start+lenm1)){return true}}return false}}class RoaringBitmapArray{constructor(cardinality,array){this.cardinality=cardinality;this.array=array}contains(value){const l=this.cardinality*2;for(let i=0;i>3]&(1<<(value&7)))}}class DocSearch{constructor(rawSearchIndex,rootPath,searchState){this.searchIndexDeprecated=new Map();this.searchIndexEmptyDesc=new Map();this.functionTypeFingerprint=null;this.typeNameIdMap=new Map();this.ALIASES=new Map();this.rootPath=rootPath;this.searchState=searchState;this.typeNameIdOfArray=this.buildTypeMapIndex("array");this.typeNameIdOfSlice=this.buildTypeMapIndex("slice");this.typeNameIdOfArrayOrSlice=this.buildTypeMapIndex("[]");this.typeNameIdOfTuple=this.buildTypeMapIndex("tuple");this.typeNameIdOfUnit=this.buildTypeMapIndex("unit");this.typeNameIdOfTupleOrUnit=this.buildTypeMapIndex("()");this.typeNameIdOfFn=this.buildTypeMapIndex("fn");this.typeNameIdOfFnMut=this.buildTypeMapIndex("fnmut");this.typeNameIdOfFnOnce=this.buildTypeMapIndex("fnonce");this.typeNameIdOfHof=this.buildTypeMapIndex("->");this.EMPTY_BINDINGS_MAP=new Map();this.EMPTY_GENERICS_ARRAY=[];this.TYPES_POOL=new Map();this.searchIndex=this.buildIndex(rawSearchIndex)}buildTypeMapIndex(name,isAssocType){if(name===""||name===null){return null}if(this.typeNameIdMap.has(name)){const obj=this.typeNameIdMap.get(name);obj.assocOnly=isAssocType&&obj.assocOnly;return obj.id}else{const id=this.typeNameIdMap.size;this.typeNameIdMap.set(name,{id,assocOnly:isAssocType});return id}}buildItemSearchTypeAll(types,lowercasePaths){return types.length>0?types.map(type=>this.buildItemSearchType(type,lowercasePaths)):this.EMPTY_GENERICS_ARRAY}buildItemSearchType(type,lowercasePaths,isAssocType){const PATH_INDEX_DATA=0;const GENERICS_DATA=1;const BINDINGS_DATA=2;let pathIndex,generics,bindings;if(typeof type==="number"){pathIndex=type;generics=this.EMPTY_GENERICS_ARRAY;bindings=this.EMPTY_BINDINGS_MAP}else{pathIndex=type[PATH_INDEX_DATA];generics=this.buildItemSearchTypeAll(type[GENERICS_DATA],lowercasePaths,);if(type.length>BINDINGS_DATA&&type[BINDINGS_DATA].length>0){bindings=new Map(type[BINDINGS_DATA].map(binding=>{const[assocType,constraints]=binding;return[this.buildItemSearchType(assocType,lowercasePaths,true).id,this.buildItemSearchTypeAll(constraints,lowercasePaths),]}))}else{bindings=this.EMPTY_BINDINGS_MAP}}let result;if(pathIndex<0){result={id:pathIndex,ty:TY_GENERIC,path:null,exactPath:null,generics,bindings,}}else if(pathIndex===0){result={id:null,ty:null,path:null,exactPath:null,generics,bindings,}}else{const item=lowercasePaths[pathIndex-1];result={id:this.buildTypeMapIndex(item.name,isAssocType),ty:item.ty,path:item.path,exactPath:item.exactPath,generics,bindings,}}const cr=this.TYPES_POOL.get(result.id);if(cr){if(cr.generics.length===result.generics.length&&cr.generics!==result.generics&&cr.generics.every((x,i)=>result.generics[i]===x)){result.generics=cr.generics}if(cr.bindings.size===result.bindings.size&&cr.bindings!==result.bindings){let ok=true;for(const[k,v]of cr.bindings.entries()){const v2=result.bindings.get(v);if(!v2){ok=false;break}if(v!==v2&&v.length===v2.length&&v.every((x,i)=>v2[i]===x)){result.bindings.set(k,v)}else if(v!==v2){ok=false;break}}if(ok){result.bindings=cr.bindings}}if(cr.ty===result.ty&&cr.path===result.path&&cr.bindings===result.bindings&&cr.generics===result.generics&&cr.ty===result.ty){return cr}}this.TYPES_POOL.set(result.id,result);return result}buildFunctionTypeFingerprint(type,output,fps){let input=type.id;if(input===this.typeNameIdOfArray||input===this.typeNameIdOfSlice){input=this.typeNameIdOfArrayOrSlice}if(input===this.typeNameIdOfTuple||input===this.typeNameIdOfUnit){input=this.typeNameIdOfTupleOrUnit}if(input===this.typeNameIdOfFn||input===this.typeNameIdOfFnMut||input===this.typeNameIdOfFnOnce){input=this.typeNameIdOfHof}const hashint1=k=>{k=(~~k+0x7ed55d16)+(k<<12);k=(k ^ 0xc761c23c)^(k>>>19);k=(~~k+0x165667b1)+(k<<5);k=(~~k+0xd3a2646c)^(k<<9);k=(~~k+0xfd7046c5)+(k<<3);return(k ^ 0xb55a4f09)^(k>>>16)};const hashint2=k=>{k=~k+(k<<15);k ^=k>>>12;k+=k<<2;k ^=k>>>4;k=Math.imul(k,2057);return k ^(k>>16)};if(input!==null){const h0a=hashint1(input);const h0b=hashint2(input);const h1a=~~(h0a+Math.imul(h0b,2));const h1b=~~(h0a+Math.imul(h0b,3));const h2a=~~(h0a+Math.imul(h0b,4));const h2b=~~(h0a+Math.imul(h0b,5));output[0]|=(1<<(h0a%32))|(1<<(h1b%32));output[1]|=(1<<(h1a%32))|(1<<(h2b%32));output[2]|=(1<<(h2a%32))|(1<<(h0b%32));fps.add(input)}for(const g of type.generics){this.buildFunctionTypeFingerprint(g,output,fps)}const fb={id:null,ty:0,generics:this.EMPTY_GENERICS_ARRAY,bindings:this.EMPTY_BINDINGS_MAP,};for(const[k,v]of type.bindings.entries()){fb.id=k;fb.generics=v;this.buildFunctionTypeFingerprint(fb,output,fps)}output[3]=fps.size}buildIndex(rawSearchIndex){const buildFunctionSearchTypeCallback=lowercasePaths=>{return functionSearchType=>{if(functionSearchType===0){return null}const INPUTS_DATA=0;const OUTPUT_DATA=1;let inputs,output;if(typeof functionSearchType[INPUTS_DATA]==="number"){inputs=[this.buildItemSearchType(functionSearchType[INPUTS_DATA],lowercasePaths),]}else{inputs=this.buildItemSearchTypeAll(functionSearchType[INPUTS_DATA],lowercasePaths,)}if(functionSearchType.length>1){if(typeof functionSearchType[OUTPUT_DATA]==="number"){output=[this.buildItemSearchType(functionSearchType[OUTPUT_DATA],lowercasePaths,),]}else{output=this.buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA],lowercasePaths,)}}else{output=[]}const where_clause=[];const l=functionSearchType.length;for(let i=2;inoop);let descShard={crate,shard:0,start:0,len:itemDescShardDecoder.next(),promise:null,resolve:null,};const descShardList=[descShard];this.searchIndexDeprecated.set(crate,new RoaringBitmap(crateCorpus.c));this.searchIndexEmptyDesc.set(crate,new RoaringBitmap(crateCorpus.e));let descIndex=0;const crateRow={crate,ty:3,name:crate,path:"",descShard,descIndex,exactPath:"",desc:crateCorpus.doc,parent:undefined,type:null,id,word:crate,normalizedName:crate.indexOf("_")===-1?crate:crate.replace(/_/g,""),bitIndex:0,implDisambiguator:null,};id+=1;searchIndex.push(crateRow);currentIndex+=1;if(!this.searchIndexEmptyDesc.get(crate).contains(0)){descIndex+=1}const itemTypes=crateCorpus.t;const itemNames=crateCorpus.n;const itemPaths=new Map(crateCorpus.q);const itemReexports=new Map(crateCorpus.r);const itemParentIdxDecoder=new VlqHexDecoder(crateCorpus.i,noop=>noop);const implDisambiguator=new Map(crateCorpus.b);const paths=crateCorpus.p;const aliases=crateCorpus.a;const lowercasePaths=[];const itemFunctionDecoder=new VlqHexDecoder(crateCorpus.f,buildFunctionSearchTypeCallback(lowercasePaths),);let len=paths.length;let lastPath=itemPaths.get(0);for(let i=0;i2){path=itemPaths.has(elem[2])?itemPaths.get(elem[2]):lastPath;lastPath=path}const exactPath=elem.length>3?itemPaths.get(elem[3]):path;lowercasePaths.push({ty,name:name.toLowerCase(),path,exactPath});paths[i]={ty,name,path,exactPath}}lastPath="";len=itemTypes.length;let lastName="";let lastWord="";for(let i=0;i=descShard.len&&!this.searchIndexEmptyDesc.get(crate).contains(bitIndex)){descShard={crate,shard:descShard.shard+1,start:descShard.start+descShard.len,len:itemDescShardDecoder.next(),promise:null,resolve:null,};descIndex=0;descShardList.push(descShard)}const name=itemNames[i]===""?lastName:itemNames[i];const word=itemNames[i]===""?lastWord:itemNames[i].toLowerCase();const path=itemPaths.has(i)?itemPaths.get(i):lastPath;const type=itemFunctionDecoder.next();if(type!==null){if(type){const fp=this.functionTypeFingerprint.subarray(id*4,(id+1)*4);const fps=new Set();for(const t of type.inputs){this.buildFunctionTypeFingerprint(t,fp,fps)}for(const t of type.output){this.buildFunctionTypeFingerprint(t,fp,fps)}for(const w of type.where_clause){for(const t of w){this.buildFunctionTypeFingerprint(t,fp,fps)}}}}const itemParentIdx=itemParentIdxDecoder.next();const row={crate,ty:itemTypes.charCodeAt(i)-65,name,path,descShard,descIndex,exactPath:itemReexports.has(i)?itemPaths.get(itemReexports.get(i)):path,parent:itemParentIdx>0?paths[itemParentIdx-1]:undefined,type,id,word,normalizedName:word.indexOf("_")===-1?word:word.replace(/_/g,""),bitIndex,implDisambiguator:implDisambiguator.has(i)?implDisambiguator.get(i):null,};id+=1;searchIndex.push(row);lastPath=row.path;if(!this.searchIndexEmptyDesc.get(crate).contains(bitIndex)){descIndex+=1}lastName=name;lastWord=word}if(aliases){const currentCrateAliases=new Map();this.ALIASES.set(crate,currentCrateAliases);for(const alias_name in aliases){if(!Object.prototype.hasOwnProperty.call(aliases,alias_name)){continue}let currentNameAliases;if(currentCrateAliases.has(alias_name)){currentNameAliases=currentCrateAliases.get(alias_name)}else{currentNameAliases=[];currentCrateAliases.set(alias_name,currentNameAliases)}for(const local_alias of aliases[alias_name]){currentNameAliases.push(local_alias+currentIndex)}}}currentIndex+=itemTypes.length;this.searchState.descShards.set(crate,descShardList)}this.TYPES_POOL=new Map();return searchIndex}static parseQuery(userQuery){function itemTypeFromName(typename){const index=itemTypes.findIndex(i=>i===typename);if(index<0){throw["Unknown type filter ",typename]}return index}function convertTypeFilterOnElem(elem){if(elem.typeFilter!==null){let typeFilter=elem.typeFilter;if(typeFilter==="const"){typeFilter="constant"}elem.typeFilter=itemTypeFromName(typeFilter)}else{elem.typeFilter=NO_TYPE_FILTER}for(const elem2 of elem.generics){convertTypeFilterOnElem(elem2)}for(const constraints of elem.bindings.values()){for(const constraint of constraints){convertTypeFilterOnElem(constraint)}}}function newParsedQuery(userQuery){return{original:userQuery,userQuery:userQuery.toLowerCase(),elems:[],returned:[],foundElems:0,totalElems:0,literalSearch:false,hasReturnArrow:false,error:null,correction:null,proposeCorrectionFrom:null,proposeCorrectionTo:null,typeFingerprint:new Uint32Array(4),}}function parseInput(query,parserState){let foundStopChar=true;while(parserState.pos"){if(isReturnArrow(parserState)){query.hasReturnArrow=true;break}throw["Unexpected ",c," (did you mean ","->","?)"]}else if(parserState.pos>0){throw["Unexpected ",c," after ",parserState.userQuery[parserState.pos-1]]}throw["Unexpected ",c]}else if(c===" "){skipWhitespace(parserState);continue}if(!foundStopChar){let extra="";if(isLastElemGeneric(query.elems,parserState)){extra=[" after ",">"]}else if(prevIs(parserState,"\"")){throw["Cannot have more than one element if you use quotes"]}if(parserState.typeFilter!==null){throw["Expected ",","," or ","->",...extra,", found ",c,]}throw["Expected ",",",", ",":"," or ","->",...extra,", found ",c,]}const before=query.elems.length;getFilteredNextElem(query,parserState,query.elems,false);if(query.elems.length===before){parserState.pos+=1}foundStopChar=false}if(parserState.typeFilter!==null){throw["Unexpected ",":"," (expected path after type filter ",parserState.typeFilter+":",")",]}while(parserState.pos1}query.foundElems=query.elems.length+query.returned.length;query.totalElems=parserState.totalElems;return query}async execQuery(parsedQuery,filterCrates,currentCrate){const results_others=new Map(),results_in_args=new Map(),results_returned=new Map();function createQueryResults(results_in_args,results_returned,results_others,parsedQuery){return{"in_args":results_in_args,"returned":results_returned,"others":results_others,"query":parsedQuery,}}const buildHrefAndPath=item=>{let displayPath;let href;const type=itemTypes[item.ty];const name=item.name;let path=item.path;let exactPath=item.exactPath;if(type==="mod"){displayPath=path+"::";href=this.rootPath+path.replace(/::/g,"/")+"/"+name+"/index.html"}else if(type==="import"){displayPath=item.path+"::";href=this.rootPath+item.path.replace(/::/g,"/")+"/index.html#reexport."+name}else if(type==="primitive"||type==="keyword"){displayPath="";href=this.rootPath+path.replace(/::/g,"/")+"/"+type+"."+name+".html"}else if(type==="externcrate"){displayPath="";href=this.rootPath+name+"/index.html"}else if(item.parent!==undefined){const myparent=item.parent;let anchor=type+"."+name;const parentType=itemTypes[myparent.ty];let pageType=parentType;let pageName=myparent.name;exactPath=`${myparent.exactPath}::${myparent.name}`;if(parentType==="primitive"){displayPath=myparent.name+"::"}else if(type==="structfield"&&parentType==="variant"){const enumNameIdx=item.path.lastIndexOf("::");const enumName=item.path.substr(enumNameIdx+2);path=item.path.substr(0,enumNameIdx);displayPath=path+"::"+enumName+"::"+myparent.name+"::";anchor="variant."+myparent.name+".field."+name;pageType="enum";pageName=enumName}else{displayPath=path+"::"+myparent.name+"::"}if(item.implDisambiguator!==null){anchor=item.implDisambiguator+"/"+anchor}href=this.rootPath+path.replace(/::/g,"/")+"/"+pageType+"."+pageName+".html#"+anchor}else{displayPath=item.path+"::";href=this.rootPath+item.path.replace(/::/g,"/")+"/"+type+"."+name+".html"}return[displayPath,href,`${exactPath}::${name}`]};function pathSplitter(path){const tmp=""+path.replace(/::/g,"::");if(tmp.endsWith("")){return tmp.slice(0,tmp.length-6)}return tmp}const transformResults=results=>{const duplicates=new Set();const out=[];for(const result of results){if(result.id!==-1){const obj=this.searchIndex[result.id];obj.dist=result.dist;const res=buildHrefAndPath(obj);obj.displayPath=pathSplitter(res[0]);obj.fullPath=res[2]+"|"+obj.ty;if(duplicates.has(obj.fullPath)){continue}if(obj.ty===TY_IMPORT&&duplicates.has(res[2])){continue}if(duplicates.has(res[2]+"|"+TY_IMPORT)){continue}duplicates.add(obj.fullPath);duplicates.add(res[2]);obj.href=res[1];out.push(obj);if(out.length>=MAX_RESULTS){break}}}return out};const sortResults=async(results,isType,preferredCrate)=>{const userQuery=parsedQuery.userQuery;const casedUserQuery=parsedQuery.original;const isMixedCase=casedUserQuery!==userQuery;const result_list=[];for(const result of results.values()){result.item=this.searchIndex[result.id];result.word=this.searchIndex[result.id].word;result_list.push(result)}result_list.sort((aaa,bbb)=>{let a,b;if(isMixedCase){a=(aaa.item.name!==casedUserQuery);b=(bbb.item.name!==casedUserQuery);if(a!==b){return a-b}}a=(aaa.word!==userQuery);b=(bbb.word!==userQuery);if(a!==b){return a-b}a=(aaa.index<0);b=(bbb.index<0);if(a!==b){return a-b}a=aaa.path_dist;b=bbb.path_dist;if(a!==b){return a-b}a=aaa.index;b=bbb.index;if(a!==b){return a-b}a=(aaa.dist);b=(bbb.dist);if(a!==b){return a-b}a=this.searchIndexDeprecated.get(aaa.item.crate).contains(aaa.item.bitIndex);b=this.searchIndexDeprecated.get(bbb.item.crate).contains(bbb.item.bitIndex);if(a!==b){return a-b}a=(aaa.item.crate!==preferredCrate);b=(bbb.item.crate!==preferredCrate);if(a!==b){return a-b}a=aaa.word.length;b=bbb.word.length;if(a!==b){return a-b}a=aaa.word;b=bbb.word;if(a!==b){return(a>b?+1:-1)}a=this.searchIndexEmptyDesc.get(aaa.item.crate).contains(aaa.item.bitIndex);b=this.searchIndexEmptyDesc.get(bbb.item.crate).contains(bbb.item.bitIndex);if(a!==b){return a-b}a=aaa.item.ty;b=bbb.item.ty;if(a!==b){return a-b}a=aaa.item.path;b=bbb.item.path;if(a!==b){return(a>b?+1:-1)}return 0});return transformResults(result_list)};function unifyFunctionTypes(fnTypesIn,queryElems,whereClause,mgensIn,solutionCb,unboxingDepth,){if(unboxingDepth>=UNBOXING_LIMIT){return false}const mgens=mgensIn===null?null:new Map(mgensIn);if(queryElems.length===0){return!solutionCb||solutionCb(mgens)}if(!fnTypesIn||fnTypesIn.length===0){return false}const ql=queryElems.length;const fl=fnTypesIn.length;if(ql===1&&queryElems[0].generics.length===0&&queryElems[0].bindings.size===0){const queryElem=queryElems[0];for(const fnType of fnTypesIn){if(!unifyFunctionTypeIsMatchCandidate(fnType,queryElem,mgens)){continue}if(fnType.id<0&&queryElem.id<0){if(mgens&&mgens.has(fnType.id)&&mgens.get(fnType.id)!==queryElem.id){continue}const mgensScratch=new Map(mgens);mgensScratch.set(fnType.id,queryElem.id);if(!solutionCb||solutionCb(mgensScratch)){return true}}else if(!solutionCb||solutionCb(mgens?new Map(mgens):null)){return true}}for(const fnType of fnTypesIn){if(!unifyFunctionTypeIsUnboxCandidate(fnType,queryElem,whereClause,mgens,unboxingDepth+1,)){continue}if(fnType.id<0){if(mgens&&mgens.has(fnType.id)&&mgens.get(fnType.id)!==0){continue}const mgensScratch=new Map(mgens);mgensScratch.set(fnType.id,0);if(unifyFunctionTypes(whereClause[(-fnType.id)-1],queryElems,whereClause,mgensScratch,solutionCb,unboxingDepth+1,)){return true}}else if(unifyFunctionTypes([...fnType.generics,...Array.from(fnType.bindings.values()).flat()],queryElems,whereClause,mgens?new Map(mgens):null,solutionCb,unboxingDepth+1,)){return true}}return false}const fnTypes=fnTypesIn.slice();const flast=fl-1;const qlast=ql-1;const queryElem=queryElems[qlast];let queryElemsTmp=null;for(let i=flast;i>=0;i-=1){const fnType=fnTypes[i];if(!unifyFunctionTypeIsMatchCandidate(fnType,queryElem,mgens)){continue}let mgensScratch;if(fnType.id<0){mgensScratch=new Map(mgens);if(mgensScratch.has(fnType.id)&&mgensScratch.get(fnType.id)!==queryElem.id){continue}mgensScratch.set(fnType.id,queryElem.id)}else{mgensScratch=mgens}fnTypes[i]=fnTypes[flast];fnTypes.length=flast;if(!queryElemsTmp){queryElemsTmp=queryElems.slice(0,qlast)}const passesUnification=unifyFunctionTypes(fnTypes,queryElemsTmp,whereClause,mgensScratch,mgensScratch=>{if(fnType.generics.length===0&&queryElem.generics.length===0&&fnType.bindings.size===0&&queryElem.bindings.size===0){return!solutionCb||solutionCb(mgensScratch)}const solution=unifyFunctionTypeCheckBindings(fnType,queryElem,whereClause,mgensScratch,unboxingDepth,);if(!solution){return false}const simplifiedGenerics=solution.simplifiedGenerics;for(const simplifiedMgens of solution.mgens){const passesUnification=unifyFunctionTypes(simplifiedGenerics,queryElem.generics,whereClause,simplifiedMgens,solutionCb,unboxingDepth,);if(passesUnification){return true}}return false},unboxingDepth,);if(passesUnification){return true}fnTypes[flast]=fnTypes[i];fnTypes[i]=fnType;fnTypes.length=fl}for(let i=flast;i>=0;i-=1){const fnType=fnTypes[i];if(!unifyFunctionTypeIsUnboxCandidate(fnType,queryElem,whereClause,mgens,unboxingDepth+1,)){continue}let mgensScratch;if(fnType.id<0){mgensScratch=new Map(mgens);if(mgensScratch.has(fnType.id)&&mgensScratch.get(fnType.id)!==0){continue}mgensScratch.set(fnType.id,0)}else{mgensScratch=mgens}const generics=fnType.id<0?whereClause[(-fnType.id)-1]:fnType.generics;const bindings=fnType.bindings?Array.from(fnType.bindings.values()).flat():[];const passesUnification=unifyFunctionTypes(fnTypes.toSpliced(i,1,...generics,...bindings),queryElems,whereClause,mgensScratch,solutionCb,unboxingDepth+1,);if(passesUnification){return true}}return false}const unifyFunctionTypeIsMatchCandidate=(fnType,queryElem,mgensIn)=>{if(!typePassesFilter(queryElem.typeFilter,fnType.ty)){return false}if(fnType.id<0&&queryElem.id<0){if(mgensIn){if(mgensIn.has(fnType.id)&&mgensIn.get(fnType.id)!==queryElem.id){return false}for(const[fid,qid]of mgensIn.entries()){if(fnType.id!==fid&&queryElem.id===qid){return false}if(fnType.id===fid&&queryElem.id!==qid){return false}}}return true}else{if(queryElem.id===this.typeNameIdOfArrayOrSlice&&(fnType.id===this.typeNameIdOfSlice||fnType.id===this.typeNameIdOfArray)){}else if(queryElem.id===this.typeNameIdOfTupleOrUnit&&(fnType.id===this.typeNameIdOfTuple||fnType.id===this.typeNameIdOfUnit)){}else if(queryElem.id===this.typeNameIdOfHof&&(fnType.id===this.typeNameIdOfFn||fnType.id===this.typeNameIdOfFnMut||fnType.id===this.typeNameIdOfFnOnce)){}else if(fnType.id!==queryElem.id||queryElem.id===null){return false}if((fnType.generics.length+fnType.bindings.size)===0&&queryElem.generics.length!==0){return false}if(fnType.bindings.size0){const fnTypePath=fnType.path!==undefined&&fnType.path!==null?fnType.path.split("::"):[];if(queryElemPathLength>fnTypePath.length){return false}let i=0;for(const path of fnTypePath){if(path===queryElem.pathWithoutLast[i]){i+=1;if(i>=queryElemPathLength){break}}}if(i0){let mgensSolutionSet=[mgensIn];for(const[name,constraints]of queryElem.bindings.entries()){if(mgensSolutionSet.length===0){return false}if(!fnType.bindings.has(name)){return false}const fnTypeBindings=fnType.bindings.get(name);mgensSolutionSet=mgensSolutionSet.flatMap(mgens=>{const newSolutions=[];unifyFunctionTypes(fnTypeBindings,constraints,whereClause,mgens,newMgens=>{newSolutions.push(newMgens);return false},unboxingDepth,);return newSolutions})}if(mgensSolutionSet.length===0){return false}const binds=Array.from(fnType.bindings.entries()).flatMap(entry=>{const[name,constraints]=entry;if(queryElem.bindings.has(name)){return[]}else{return constraints}});if(simplifiedGenerics.length>0){simplifiedGenerics=[...simplifiedGenerics,...binds]}else{simplifiedGenerics=binds}return{simplifiedGenerics,mgens:mgensSolutionSet}}return{simplifiedGenerics,mgens:[mgensIn]}}function unifyFunctionTypeIsUnboxCandidate(fnType,queryElem,whereClause,mgens,unboxingDepth,){if(unboxingDepth>=UNBOXING_LIMIT){return false}if(fnType.id<0&&queryElem.id>=0){if(!whereClause){return false}if(mgens&&mgens.has(fnType.id)&&mgens.get(fnType.id)!==0){return false}const mgensTmp=new Map(mgens);mgensTmp.set(fnType.id,null);return checkIfInList(whereClause[(-fnType.id)-1],queryElem,whereClause,mgensTmp,unboxingDepth,)}else if(fnType.generics.length>0||fnType.bindings.size>0){const simplifiedGenerics=[...fnType.generics,...Array.from(fnType.bindings.values()).flat(),];return checkIfInList(simplifiedGenerics,queryElem,whereClause,mgens,unboxingDepth,)}return false}function checkIfInList(list,elem,whereClause,mgens,unboxingDepth){for(const entry of list){if(checkType(entry,elem,whereClause,mgens,unboxingDepth)){return true}}return false}const checkType=(row,elem,whereClause,mgens,unboxingDepth)=>{if(unboxingDepth>=UNBOXING_LIMIT){return false}if(row.bindings.size===0&&elem.bindings.size===0){if(elem.id<0&&mgens===null){return row.id<0||checkIfInList(row.generics,elem,whereClause,mgens,unboxingDepth+1,)}if(row.id>0&&elem.id>0&&elem.pathWithoutLast.length===0&&typePassesFilter(elem.typeFilter,row.ty)&&elem.generics.length===0&&elem.id!==this.typeNameIdOfArrayOrSlice&&elem.id!==this.typeNameIdOfTupleOrUnit&&elem.id!==this.typeNameIdOfHof){return row.id===elem.id||checkIfInList(row.generics,elem,whereClause,mgens,unboxingDepth,)}}return unifyFunctionTypes([row],[elem],whereClause,mgens,null,unboxingDepth)};function checkPath(contains,ty){if(contains.length===0){return 0}const maxPathEditDistance=Math.floor(contains.reduce((acc,next)=>acc+next.length,0)/3,);let ret_dist=maxPathEditDistance+1;const path=ty.path.split("::");if(ty.parent&&ty.parent.name){path.push(ty.parent.name.toLowerCase())}const length=path.length;const clength=contains.length;pathiter:for(let i=length-clength;i>=0;i-=1){let dist_total=0;for(let x=0;xmaxPathEditDistance){continue pathiter}dist_total+=dist}}ret_dist=Math.min(ret_dist,Math.round(dist_total/clength))}return ret_dist>maxPathEditDistance?null:ret_dist}function typePassesFilter(filter,type){if(filter<=NO_TYPE_FILTER||filter===type)return true;const name=itemTypes[type];switch(itemTypes[filter]){case"constant":return name==="associatedconstant";case"fn":return name==="method"||name==="tymethod";case"type":return name==="primitive"||name==="associatedtype";case"trait":return name==="traitalias"}return false}function createAliasFromItem(item){return{crate:item.crate,name:item.name,path:item.path,descShard:item.descShard,descIndex:item.descIndex,exactPath:item.exactPath,ty:item.ty,parent:item.parent,type:item.type,is_alias:true,bitIndex:item.bitIndex,implDisambiguator:item.implDisambiguator,}}const handleAliases=async(ret,query,filterCrates,currentCrate)=>{const lowerQuery=query.toLowerCase();const aliases=[];const crateAliases=[];if(filterCrates!==null){if(this.ALIASES.has(filterCrates)&&this.ALIASES.get(filterCrates).has(lowerQuery)){const query_aliases=this.ALIASES.get(filterCrates).get(lowerQuery);for(const alias of query_aliases){aliases.push(createAliasFromItem(this.searchIndex[alias]))}}}else{for(const[crate,crateAliasesIndex]of this.ALIASES){if(crateAliasesIndex.has(lowerQuery)){const pushTo=crate===currentCrate?crateAliases:aliases;const query_aliases=crateAliasesIndex.get(lowerQuery);for(const alias of query_aliases){pushTo.push(createAliasFromItem(this.searchIndex[alias]))}}}}const sortFunc=(aaa,bbb)=>{if(aaa.path{return this.searchIndexEmptyDesc.get(alias.crate).contains(alias.bitIndex)?"":this.searchState.loadDesc(alias)};const[crateDescs,descs]=await Promise.all([Promise.all(crateAliases.map(fetchDesc)),Promise.all(aliases.map(fetchDesc)),]);const pushFunc=alias=>{alias.alias=query;const res=buildHrefAndPath(alias);alias.displayPath=pathSplitter(res[0]);alias.fullPath=alias.displayPath+alias.name;alias.href=res[1];ret.others.unshift(alias);if(ret.others.length>MAX_RESULTS){ret.others.pop()}};aliases.forEach((alias,i)=>{alias.desc=descs[i]});aliases.forEach(pushFunc);crateAliases.forEach((alias,i)=>{alias.desc=crateDescs[i]});crateAliases.forEach(pushFunc)};function addIntoResults(results,fullId,id,index,dist,path_dist,maxEditDistance){if(dist<=maxEditDistance||index!==-1){if(results.has(fullId)){const result=results.get(fullId);if(result.dontValidate||result.dist<=dist){return}}results.set(fullId,{id:id,index:index,dontValidate:parsedQuery.literalSearch,dist:dist,path_dist:path_dist,})}}function handleSingleArg(row,pos,elem,results_others,results_in_args,results_returned,maxEditDistance,){if(!row||(filterCrates!==null&&row.crate!==filterCrates)){return}let path_dist=0;const fullId=row.id;const tfpDist=compareTypeFingerprints(fullId,parsedQuery.typeFingerprint,);if(tfpDist!==null){const in_args=row.type&&row.type.inputs&&checkIfInList(row.type.inputs,elem,row.type.where_clause,null,0);const returned=row.type&&row.type.output&&checkIfInList(row.type.output,elem,row.type.where_clause,null,0);if(in_args){results_in_args.max_dist=Math.max(results_in_args.max_dist||0,tfpDist);const maxDist=results_in_args.sizenormalizedIndex&&normalizedIndex!==-1)){index=normalizedIndex}if(elem.fullPath.length>1){path_dist=checkPath(elem.pathWithoutLast,row);if(path_dist===null){return}}if(parsedQuery.literalSearch){if(row.word===elem.pathLast){addIntoResults(results_others,fullId,pos,index,0,path_dist)}return}const dist=editDistance(row.normalizedName,elem.normalizedPathLast,maxEditDistance);if(index===-1&&dist>maxEditDistance){return}addIntoResults(results_others,fullId,pos,index,dist,path_dist,maxEditDistance)}function handleArgs(row,pos,results){if(!row||(filterCrates!==null&&row.crate!==filterCrates)||!row.type){return}const tfpDist=compareTypeFingerprints(row.id,parsedQuery.typeFingerprint,);if(tfpDist===null){return}if(results.size>=MAX_RESULTS&&tfpDist>results.max_dist){return}if(!unifyFunctionTypes(row.type.inputs,parsedQuery.elems,row.type.where_clause,null,mgens=>{return unifyFunctionTypes(row.type.output,parsedQuery.returned,row.type.where_clause,mgens,null,0,)},0,)){return}results.max_dist=Math.max(results.max_dist||0,tfpDist);addIntoResults(results,row.id,pos,0,tfpDist,0,Number.MAX_VALUE)}const compareTypeFingerprints=(fullId,queryFingerprint)=>{const fh0=this.functionTypeFingerprint[fullId*4];const fh1=this.functionTypeFingerprint[(fullId*4)+1];const fh2=this.functionTypeFingerprint[(fullId*4)+2];const[qh0,qh1,qh2]=queryFingerprint;const[in0,in1,in2]=[fh0&qh0,fh1&qh1,fh2&qh2];if((in0 ^ qh0)||(in1 ^ qh1)||(in2 ^ qh2)){return null}return this.functionTypeFingerprint[(fullId*4)+3]};const innerRunQuery=()=>{const queryLen=parsedQuery.elems.reduce((acc,next)=>acc+next.pathLast.length,0)+parsedQuery.returned.reduce((acc,next)=>acc+next.pathLast.length,0);const maxEditDistance=Math.floor(queryLen/3);const genericSymbols=new Map();const convertNameToId=(elem,isAssocType)=>{const loweredName=elem.pathLast.toLowerCase();if(this.typeNameIdMap.has(loweredName)&&(isAssocType||!this.typeNameIdMap.get(loweredName).assocOnly)){elem.id=this.typeNameIdMap.get(loweredName).id}else if(!parsedQuery.literalSearch){let match=null;let matchDist=maxEditDistance+1;let matchName="";for(const[name,{id,assocOnly}]of this.typeNameIdMap){const dist=Math.min(editDistance(name,loweredName,maxEditDistance),editDistance(name,elem.normalizedPathLast,maxEditDistance),);if(dist<=matchDist&&dist<=maxEditDistance&&(isAssocType||!assocOnly)){if(dist===matchDist&&matchName>name){continue}match=id;matchDist=dist;matchName=name}}if(match!==null){parsedQuery.correction=matchName}elem.id=match}if((elem.id===null&&parsedQuery.totalElems>1&&elem.typeFilter===-1&&elem.generics.length===0&&elem.bindings.size===0)||elem.typeFilter===TY_GENERIC){if(genericSymbols.has(elem.name)){elem.id=genericSymbols.get(elem.name)}else{elem.id=-(genericSymbols.size+1);genericSymbols.set(elem.name,elem.id)}if(elem.typeFilter===-1&&elem.name.length>=3){const maxPartDistance=Math.floor(elem.name.length/3);let matchDist=maxPartDistance+1;let matchName="";for(const name of this.typeNameIdMap.keys()){const dist=editDistance(name,elem.name,maxPartDistance);if(dist<=matchDist&&dist<=maxPartDistance){if(dist===matchDist&&matchName>name){continue}matchDist=dist;matchName=name}}if(matchName!==""){parsedQuery.proposeCorrectionFrom=elem.name;parsedQuery.proposeCorrectionTo=matchName}}elem.typeFilter=TY_GENERIC}if(elem.generics.length>0&&elem.typeFilter===TY_GENERIC){parsedQuery.error=["Generic type parameter ",elem.name," does not accept generic parameters",]}for(const elem2 of elem.generics){convertNameToId(elem2)}elem.bindings=new Map(Array.from(elem.bindings.entries()).map(entry=>{const[name,constraints]=entry;if(!this.typeNameIdMap.has(name)){parsedQuery.error=["Type parameter ",name," does not exist",];return[null,[]]}for(const elem2 of constraints){convertNameToId(elem2)}return[this.typeNameIdMap.get(name).id,constraints]}),)};const fps=new Set();for(const elem of parsedQuery.elems){convertNameToId(elem);this.buildFunctionTypeFingerprint(elem,parsedQuery.typeFingerprint,fps)}for(const elem of parsedQuery.returned){convertNameToId(elem);this.buildFunctionTypeFingerprint(elem,parsedQuery.typeFingerprint,fps)}if(parsedQuery.foundElems===1&&!parsedQuery.hasReturnArrow){if(parsedQuery.elems.length===1){const elem=parsedQuery.elems[0];const length=this.searchIndex.length;for(let i=0,nSearchIndex=length;i0){const sortQ=(a,b)=>{const ag=a.generics.length===0&&a.bindings.size===0;const bg=b.generics.length===0&&b.bindings.size===0;if(ag!==bg){return ag-bg}const ai=a.id>0;const bi=b.id>0;return ai-bi};parsedQuery.elems.sort(sortQ);parsedQuery.returned.sort(sortQ);for(let i=0,nSearchIndex=this.searchIndex.length;i{const descs=await Promise.all(list.map(result=>{return this.searchIndexEmptyDesc.get(result.crate).contains(result.bitIndex)?"":this.searchState.loadDesc(result)}));for(const[i,result]of list.entries()){result.desc=descs[i]}}));if(parsedQuery.error!==null&&ret.others.length!==0){ret.query.error=null}return ret}}let rawSearchIndex;let docSearch;const longItemTypes=["keyword","primitive type","module","extern crate","re-export","struct","enum","function","type alias","static","trait","","trait method","method","struct field","enum variant","macro","assoc type","constant","assoc const","union","foreign type","existential type","attribute macro","derive macro","trait alias",];let currentResults;function printTab(nb){let iter=0;let foundCurrentTab=false;let foundCurrentResultSet=false;onEachLazy(document.getElementById("search-tabs").childNodes,elem=>{if(nb===iter){addClass(elem,"selected");foundCurrentTab=true}else{removeClass(elem,"selected")}iter+=1});const isTypeSearch=(nb>0||iter===1);iter=0;onEachLazy(document.getElementById("results").childNodes,elem=>{if(nb===iter){addClass(elem,"active");foundCurrentResultSet=true}else{removeClass(elem,"active")}iter+=1});if(foundCurrentTab&&foundCurrentResultSet){searchState.currentTab=nb;const correctionsElem=document.getElementsByClassName("search-corrections");if(isTypeSearch){removeClass(correctionsElem[0],"hidden")}else{addClass(correctionsElem[0],"hidden")}}else if(nb!==0){printTab(0)}}function buildUrl(search,filterCrates){let extra="?search="+encodeURIComponent(search);if(filterCrates!==null){extra+="&filter-crate="+encodeURIComponent(filterCrates)}return getNakedUrl()+extra+window.location.hash}function getFilterCrates(){const elem=document.getElementById("crate-search");if(elem&&elem.value!=="all crates"&&window.searchIndex.has(elem.value)){return elem.value}return null}function nextTab(direction){const next=(searchState.currentTab+direction+3)%searchState.focusedByTab.length;searchState.focusedByTab[searchState.currentTab]=document.activeElement;printTab(next);focusSearchResult()}function focusSearchResult(){const target=searchState.focusedByTab[searchState.currentTab]||document.querySelectorAll(".search-results.active a").item(0)||document.querySelectorAll("#search-tabs button").item(searchState.currentTab);searchState.focusedByTab[searchState.currentTab]=null;if(target){target.focus()}}async function addTab(array,query,display){const extraClass=display?" active":"";const output=document.createElement("div");if(array.length>0){output.className="search-results "+extraClass;for(const item of array){const name=item.name;const type=itemTypes[item.ty];const longType=longItemTypes[item.ty];const typeName=longType.length!==0?`${longType}`:"?";const link=document.createElement("a");link.className="result-"+type;link.href=item.href;const resultName=document.createElement("div");resultName.className="result-name";resultName.insertAdjacentHTML("beforeend",`${typeName}`);link.appendChild(resultName);let alias=" ";if(item.is_alias){alias=`
\ +${item.alias} - see \ +
`}resultName.insertAdjacentHTML("beforeend",`
${alias}\ +${item.displayPath}${name}\ +
`);const description=document.createElement("div");description.className="desc";description.insertAdjacentHTML("beforeend",item.desc);link.appendChild(description);output.appendChild(link)}}else if(query.error===null){output.className="search-failed"+extraClass;output.innerHTML="No results :(
"+"Try on DuckDuckGo?

"+"Or try looking in one of these:"}return[output,array.length]}function makeTabHeader(tabNb,text,nbElems){const fmtNbElems=nbElems<10?`\u{2007}(${nbElems})\u{2007}\u{2007}`:nbElems<100?`\u{2007}(${nbElems})\u{2007}`:`\u{2007}(${nbElems})`;if(searchState.currentTab===tabNb){return""}return""}async function showResults(results,go_to_first,filterCrates){const search=searchState.outputElement();if(go_to_first||(results.others.length===1&&getSettingValue("go-to-only-result")==="true")){window.onunload=()=>{};searchState.removeQueryParameters();const elem=document.createElement("a");elem.href=results.others[0].href;removeClass(elem,"active");document.body.appendChild(elem);elem.click();return}if(results.query===undefined){results.query=DocSearch.parseQuery(searchState.input.value)}currentResults=results.query.userQuery;const[ret_others,ret_in_args,ret_returned]=await Promise.all([addTab(results.others,results.query,true),addTab(results.in_args,results.query,false),addTab(results.returned,results.query,false),]);let currentTab=searchState.currentTab;if((currentTab===0&&ret_others[1]===0)||(currentTab===1&&ret_in_args[1]===0)||(currentTab===2&&ret_returned[1]===0)){if(ret_others[1]!==0){currentTab=0}else if(ret_in_args[1]!==0){currentTab=1}else if(ret_returned[1]!==0){currentTab=2}}let crates="";if(rawSearchIndex.size>1){crates="
in 
"+"
"}let output=`
\ +

Results

${crates}
`;if(results.query.error!==null){const error=results.query.error;error.forEach((value,index)=>{value=value.split("<").join("<").split(">").join(">");if(index%2!==0){error[index]=`${value.replaceAll(" ", " ")}`}else{error[index]=value}});output+=`

Query parser error: "${error.join("")}".

`;output+="
"+makeTabHeader(0,"In Names",ret_others[1])+"
";currentTab=0}else if(results.query.foundElems<=1&&results.query.returned.length===0){output+="
"+makeTabHeader(0,"In Names",ret_others[1])+makeTabHeader(1,"In Parameters",ret_in_args[1])+makeTabHeader(2,"In Return Types",ret_returned[1])+"
"}else{const signatureTabTitle=results.query.elems.length===0?"In Function Return Types":results.query.returned.length===0?"In Function Parameters":"In Function Signatures";output+="
"+makeTabHeader(0,signatureTabTitle,ret_others[1])+"
";currentTab=0}if(results.query.correction!==null){const orig=results.query.returned.length>0?results.query.returned[0].name:results.query.elems[0].name;output+="

"+`Type "${orig}" not found. `+"Showing results for closest type name "+`"${results.query.correction}" instead.

`}if(results.query.proposeCorrectionFrom!==null){const orig=results.query.proposeCorrectionFrom;const targ=results.query.proposeCorrectionTo;output+="

"+`Type "${orig}" not found and used as generic parameter. `+`Consider searching for "${targ}" instead.

`}const resultsElem=document.createElement("div");resultsElem.id="results";resultsElem.appendChild(ret_others[0]);resultsElem.appendChild(ret_in_args[0]);resultsElem.appendChild(ret_returned[0]);search.innerHTML=output;if(searchState.rustdocToolbar){search.querySelector(".main-heading").appendChild(searchState.rustdocToolbar)}const crateSearch=document.getElementById("crate-search");if(crateSearch){crateSearch.addEventListener("input",updateCrate)}search.appendChild(resultsElem);searchState.showResults(search);const elems=document.getElementById("search-tabs").childNodes;searchState.focusedByTab=[];let i=0;for(const elem of elems){const j=i;elem.onclick=()=>printTab(j);searchState.focusedByTab.push(null);i+=1}printTab(currentTab)}function updateSearchHistory(url){if(!browserSupportsHistoryApi()){return}const params=searchState.getQueryStringParams();if(!history.state&&!params.search){history.pushState(null,"",url)}else{history.replaceState(null,"",url)}}async function search(forced){const query=DocSearch.parseQuery(searchState.input.value.trim());let filterCrates=getFilterCrates();if(!forced&&query.userQuery===currentResults){if(query.userQuery.length>0){putBackSearch()}return}searchState.setLoadingSearch();const params=searchState.getQueryStringParams();if(filterCrates===null&¶ms["filter-crate"]!==undefined){filterCrates=params["filter-crate"]}searchState.title="\""+query.original+"\" Search - Rust";updateSearchHistory(buildUrl(query.original,filterCrates));await showResults(await docSearch.execQuery(query,filterCrates,window.currentCrate),params.go_to_first,filterCrates)}function onSearchSubmit(e){e.preventDefault();searchState.clearInputTimeout();search()}function putBackSearch(){const search_input=searchState.input;if(!searchState.input){return}if(search_input.value!==""&&!searchState.isDisplayed()){searchState.showResults();if(browserSupportsHistoryApi()){history.replaceState(null,"",buildUrl(search_input.value,getFilterCrates()))}document.title=searchState.title}}function registerSearchEvents(){const params=searchState.getQueryStringParams();if(searchState.input.value===""){searchState.input.value=params.search||""}const searchAfter500ms=()=>{searchState.clearInputTimeout();if(searchState.input.value.length===0){searchState.hideResults()}else{searchState.timeout=setTimeout(search,500)}};searchState.input.onkeyup=searchAfter500ms;searchState.input.oninput=searchAfter500ms;document.getElementsByClassName("search-form")[0].onsubmit=onSearchSubmit;searchState.input.onchange=e=>{if(e.target!==document.activeElement){return}searchState.clearInputTimeout();setTimeout(search,0)};searchState.input.onpaste=searchState.input.onchange;searchState.outputElement().addEventListener("keydown",e=>{if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey){return}if(e.which===38){const previous=document.activeElement.previousElementSibling;if(previous){previous.focus()}else{searchState.focus()}e.preventDefault()}else if(e.which===40){const next=document.activeElement.nextElementSibling;if(next){next.focus()}const rect=document.activeElement.getBoundingClientRect();if(window.innerHeight-rect.bottom{if(e.which===40){focusSearchResult();e.preventDefault()}});searchState.input.addEventListener("focus",()=>{putBackSearch()});searchState.input.addEventListener("blur",()=>{searchState.input.placeholder=searchState.input.origPlaceholder});if(browserSupportsHistoryApi()){const previousTitle=document.title;window.addEventListener("popstate",e=>{const params=searchState.getQueryStringParams();document.title=previousTitle;currentResults=null;if(params.search&¶ms.search.length>0){searchState.input.value=params.search;e.preventDefault();search()}else{searchState.input.value="";searchState.hideResults()}})}window.onpageshow=()=>{const qSearch=searchState.getQueryStringParams().search;if(searchState.input.value===""&&qSearch){searchState.input.value=qSearch}search()}}function updateCrate(ev){if(ev.target.value==="all crates"){const query=searchState.input.value.trim();updateSearchHistory(buildUrl(query,null))}currentResults=null;search(true)}function initSearch(searchIndx){rawSearchIndex=searchIndx;if(typeof window!=="undefined"){docSearch=new DocSearch(rawSearchIndex,ROOT_PATH,searchState);registerSearchEvents();if(window.searchState.getQueryStringParams().search){search()}}else if(typeof exports!=="undefined"){docSearch=new DocSearch(rawSearchIndex,ROOT_PATH,searchState);exports.docSearch=docSearch;exports.parseQuery=DocSearch.parseQuery}}if(typeof exports!=="undefined"){exports.initSearch=initSearch}if(typeof window!=="undefined"){window.initSearch=initSearch;if(window.searchIndex!==undefined){initSearch(window.searchIndex)}}else{initSearch(new Map())}})() \ No newline at end of file diff --git a/static.files/settings-4313503d2e1961c2.js b/static.files/settings-805db61a62df4bd2.js similarity index 50% rename from static.files/settings-4313503d2e1961c2.js rename to static.files/settings-805db61a62df4bd2.js index ab425fe49d..4a30479d9e 100644 --- a/static.files/settings-4313503d2e1961c2.js +++ b/static.files/settings-805db61a62df4bd2.js @@ -1,4 +1,4 @@ -"use strict";(function(){const isSettingsPage=window.location.pathname.endsWith("/settings.html");function changeSetting(settingName,value){if(settingName==="theme"){const useSystem=value==="system preference"?"true":"false";updateLocalStorage("use-system-theme",useSystem)}updateLocalStorage(settingName,value);switch(settingName){case"theme":case"preferred-dark-theme":case"preferred-light-theme":updateTheme();updateLightAndDark();break;case"line-numbers":if(value===true){window.rustdoc_add_line_numbers_to_examples()}else{window.rustdoc_remove_line_numbers_from_examples()}break;case"hide-sidebar":if(value===true){addClass(document.documentElement,"hide-sidebar")}else{removeClass(document.documentElement,"hide-sidebar")}break}}function showLightAndDark(){removeClass(document.getElementById("preferred-light-theme"),"hidden");removeClass(document.getElementById("preferred-dark-theme"),"hidden")}function hideLightAndDark(){addClass(document.getElementById("preferred-light-theme"),"hidden");addClass(document.getElementById("preferred-dark-theme"),"hidden")}function updateLightAndDark(){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||(useSystem===null&&getSettingValue("theme")===null)){showLightAndDark()}else{hideLightAndDark()}}function setEvents(settingsElement){updateLightAndDark();onEachLazy(settingsElement.querySelectorAll("input[type=\"checkbox\"]"),toggle=>{const settingId=toggle.id;const settingValue=getSettingValue(settingId);if(settingValue!==null){toggle.checked=settingValue==="true"}toggle.onchange=()=>{changeSetting(toggle.id,toggle.checked)}});onEachLazy(settingsElement.querySelectorAll("input[type=\"radio\"]"),elem=>{const settingId=elem.name;let settingValue=getSettingValue(settingId);if(settingId==="theme"){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||settingValue===null){settingValue=useSystem==="false"?"light":"system preference"}}if(settingValue!==null&&settingValue!=="null"){elem.checked=settingValue===elem.value}elem.addEventListener("change",ev=>{changeSetting(ev.target.name,ev.target.value)})})}function buildSettingsPageSections(settings){let output="";for(const setting of settings){const js_data_name=setting["js_name"];const setting_name=setting["name"];if(setting["options"]!==undefined){output+=`\ +"use strict";(function(){const isSettingsPage=window.location.pathname.endsWith("/settings.html");function changeSetting(settingName,value){if(settingName==="theme"){const useSystem=value==="system preference"?"true":"false";updateLocalStorage("use-system-theme",useSystem)}updateLocalStorage(settingName,value);switch(settingName){case"theme":case"preferred-dark-theme":case"preferred-light-theme":updateTheme();updateLightAndDark();break;case"line-numbers":if(value===true){window.rustdoc_add_line_numbers_to_examples()}else{window.rustdoc_remove_line_numbers_from_examples()}break;case"hide-sidebar":if(value===true){addClass(document.documentElement,"hide-sidebar")}else{removeClass(document.documentElement,"hide-sidebar")}break;case"hide-toc":if(value===true){addClass(document.documentElement,"hide-toc")}else{removeClass(document.documentElement,"hide-toc")}break;case"hide-modnav":if(value===true){addClass(document.documentElement,"hide-modnav")}else{removeClass(document.documentElement,"hide-modnav")}break}}function showLightAndDark(){removeClass(document.getElementById("preferred-light-theme"),"hidden");removeClass(document.getElementById("preferred-dark-theme"),"hidden")}function hideLightAndDark(){addClass(document.getElementById("preferred-light-theme"),"hidden");addClass(document.getElementById("preferred-dark-theme"),"hidden")}function updateLightAndDark(){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||(useSystem===null&&getSettingValue("theme")===null)){showLightAndDark()}else{hideLightAndDark()}}function setEvents(settingsElement){updateLightAndDark();onEachLazy(settingsElement.querySelectorAll("input[type=\"checkbox\"]"),toggle=>{const settingId=toggle.id;const settingValue=getSettingValue(settingId);if(settingValue!==null){toggle.checked=settingValue==="true"}toggle.onchange=()=>{changeSetting(toggle.id,toggle.checked)}});onEachLazy(settingsElement.querySelectorAll("input[type=\"radio\"]"),elem=>{const settingId=elem.name;let settingValue=getSettingValue(settingId);if(settingId==="theme"){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||settingValue===null){settingValue=useSystem==="false"?"light":"system preference"}}if(settingValue!==null&&settingValue!=="null"){elem.checked=settingValue===elem.value}elem.addEventListener("change",ev=>{changeSetting(ev.target.name,ev.target.value)})})}function buildSettingsPageSections(settings){let output="";for(const setting of settings){if(setting==="hr"){output+="
";continue}const js_data_name=setting["js_name"];const setting_name=setting["name"];if(setting["options"]!==undefined){output+=`\
${setting_name}
`;onEach(setting["options"],option=>{const checked=option===setting["default"]?" checked":"";const full=`${js_data_name}-${option.replace(/ /g,"-")}`;output+=`\ @@ -14,4 +14,4 @@ \ ${setting_name}\ \ -
`}}return output}function buildSettingsPage(){const theme_names=getVar("themes").split(",").filter(t=>t);theme_names.push("light","dark","ayu");const settings=[{"name":"Theme","js_name":"theme","default":"system preference","options":theme_names.concat("system preference"),},{"name":"Preferred light theme","js_name":"preferred-light-theme","default":"light","options":theme_names,},{"name":"Preferred dark theme","js_name":"preferred-dark-theme","default":"dark","options":theme_names,},{"name":"Auto-hide item contents for large items","js_name":"auto-hide-large-items","default":true,},{"name":"Auto-hide item methods' documentation","js_name":"auto-hide-method-docs","default":false,},{"name":"Auto-hide trait implementation documentation","js_name":"auto-hide-trait-implementations","default":false,},{"name":"Directly go to item in search if there is only one result","js_name":"go-to-only-result","default":false,},{"name":"Show line numbers on code examples","js_name":"line-numbers","default":false,},{"name":"Hide persistent navigation bar","js_name":"hide-sidebar","default":false,},{"name":"Disable keyboard shortcuts","js_name":"disable-shortcuts","default":false,},];const elementKind=isSettingsPage?"section":"div";const innerHTML=`
${buildSettingsPageSections(settings)}
`;const el=document.createElement(elementKind);el.id="settings";if(!isSettingsPage){el.className="popover"}el.innerHTML=innerHTML;if(isSettingsPage){document.getElementById(MAIN_ID).appendChild(el)}else{el.setAttribute("tabindex","-1");getSettingsButton().appendChild(el)}return el}const settingsMenu=buildSettingsPage();function displaySettings(){settingsMenu.style.display="";onEachLazy(settingsMenu.querySelectorAll("input[type='checkbox']"),el=>{const val=getSettingValue(el.id);const checked=val==="true";if(checked!==el.checked&&val!==null){el.checked=checked}})}function settingsBlurHandler(event){blurHandler(event,getSettingsButton(),window.hidePopoverMenus)}if(isSettingsPage){getSettingsButton().onclick=event=>{event.preventDefault()}}else{const settingsButton=getSettingsButton();const settingsMenu=document.getElementById("settings");settingsButton.onclick=event=>{if(settingsMenu.contains(event.target)){return}event.preventDefault();const shouldDisplaySettings=settingsMenu.style.display==="none";window.hideAllModals();if(shouldDisplaySettings){displaySettings()}};settingsButton.onblur=settingsBlurHandler;settingsButton.querySelector("a").onblur=settingsBlurHandler;onEachLazy(settingsMenu.querySelectorAll("input"),el=>{el.onblur=settingsBlurHandler});settingsMenu.onblur=settingsBlurHandler}setTimeout(()=>{setEvents(settingsMenu);if(!isSettingsPage){displaySettings()}removeClass(getSettingsButton(),"rotate")},0)})() \ No newline at end of file +
`}}return output}function buildSettingsPage(){const theme_names=getVar("themes").split(",").filter(t=>t);theme_names.push("light","dark","ayu");const settings=[{"name":"Theme","js_name":"theme","default":"system preference","options":theme_names.concat("system preference"),},{"name":"Preferred light theme","js_name":"preferred-light-theme","default":"light","options":theme_names,},{"name":"Preferred dark theme","js_name":"preferred-dark-theme","default":"dark","options":theme_names,},{"name":"Auto-hide item contents for large items","js_name":"auto-hide-large-items","default":true,},{"name":"Auto-hide item methods' documentation","js_name":"auto-hide-method-docs","default":false,},{"name":"Auto-hide trait implementation documentation","js_name":"auto-hide-trait-implementations","default":false,},{"name":"Directly go to item in search if there is only one result","js_name":"go-to-only-result","default":false,},{"name":"Show line numbers on code examples","js_name":"line-numbers","default":false,},{"name":"Hide persistent navigation bar","js_name":"hide-sidebar","default":false,},{"name":"Hide table of contents","js_name":"hide-toc","default":false,},{"name":"Hide module navigation","js_name":"hide-modnav","default":false,},{"name":"Disable keyboard shortcuts","js_name":"disable-shortcuts","default":false,},];const elementKind=isSettingsPage?"section":"div";const innerHTML=`
${buildSettingsPageSections(settings)}
`;const el=document.createElement(elementKind);el.id="settings";if(!isSettingsPage){el.className="popover"}el.innerHTML=innerHTML;if(isSettingsPage){document.getElementById(MAIN_ID).appendChild(el)}else{el.setAttribute("tabindex","-1");getSettingsButton().appendChild(el)}return el}const settingsMenu=buildSettingsPage();function displaySettings(){settingsMenu.style.display="";onEachLazy(settingsMenu.querySelectorAll("input[type='checkbox']"),el=>{const val=getSettingValue(el.id);const checked=val==="true";if(checked!==el.checked&&val!==null){el.checked=checked}})}function settingsBlurHandler(event){if(!getHelpButton().contains(document.activeElement)&&!getHelpButton().contains(event.relatedTarget)&&!getSettingsButton().contains(document.activeElement)&&!getSettingsButton().contains(event.relatedTarget)){window.hidePopoverMenus()}}if(!isSettingsPage){const settingsButton=getSettingsButton();const settingsMenu=document.getElementById("settings");settingsButton.onclick=event=>{if(settingsMenu.contains(event.target)){return}event.preventDefault();const shouldDisplaySettings=settingsMenu.style.display==="none";window.hideAllModals();if(shouldDisplaySettings){displaySettings()}};settingsButton.onblur=settingsBlurHandler;settingsButton.querySelector("a").onblur=settingsBlurHandler;onEachLazy(settingsMenu.querySelectorAll("input"),el=>{el.onblur=settingsBlurHandler});settingsMenu.onblur=settingsBlurHandler}setTimeout(()=>{setEvents(settingsMenu);if(!isSettingsPage){displaySettings()}removeClass(getSettingsButton(),"rotate")},0)})() \ No newline at end of file diff --git a/static.files/storage-118b08c4c78b968e.js b/static.files/storage-1d39b6787ed640ff.js similarity index 71% rename from static.files/storage-118b08c4c78b968e.js rename to static.files/storage-1d39b6787ed640ff.js index 9818946774..5aac776b45 100644 --- a/static.files/storage-118b08c4c78b968e.js +++ b/static.files/storage-1d39b6787ed640ff.js @@ -1,4 +1,4 @@ -"use strict";const builtinThemes=["light","dark","ayu"];const darkThemes=["dark","ayu"];window.currentTheme=document.getElementById("themeStyle");const settingsDataset=(function(){const settingsElement=document.getElementById("default-settings");return settingsElement&&settingsElement.dataset?settingsElement.dataset:null})();function getSettingValue(settingName){const current=getCurrentValue(settingName);if(current===null&&settingsDataset!==null){const def=settingsDataset[settingName.replace(/-/g,"_")];if(def!==undefined){return def}}return current}const localStoredTheme=getSettingValue("theme");function hasClass(elem,className){return elem&&elem.classList&&elem.classList.contains(className)}function addClass(elem,className){if(elem&&elem.classList){elem.classList.add(className)}}function removeClass(elem,className){if(elem&&elem.classList){elem.classList.remove(className)}}function onEach(arr,func){for(const elem of arr){if(func(elem)){return true}}return false}function onEachLazy(lazyArray,func){return onEach(Array.prototype.slice.call(lazyArray),func)}function updateLocalStorage(name,value){try{window.localStorage.setItem("rustdoc-"+name,value)}catch(e){}}function getCurrentValue(name){try{return window.localStorage.getItem("rustdoc-"+name)}catch(e){return null}}const getVar=(function getVar(name){const el=document.querySelector("head > meta[name='rustdoc-vars']");return el?el.attributes["data-"+name].value:null});function switchTheme(newThemeName,saveTheme){const themeNames=getVar("themes").split(",").filter(t=>t);themeNames.push(...builtinThemes);if(themeNames.indexOf(newThemeName)===-1){return}if(saveTheme){updateLocalStorage("theme",newThemeName)}document.documentElement.setAttribute("data-theme",newThemeName);if(builtinThemes.indexOf(newThemeName)!==-1){if(window.currentTheme){window.currentTheme.parentNode.removeChild(window.currentTheme);window.currentTheme=null}}else{const newHref=getVar("root-path")+encodeURIComponent(newThemeName)+getVar("resource-suffix")+".css";if(!window.currentTheme){if(document.readyState==="loading"){document.write(``);window.currentTheme=document.getElementById("themeStyle")}else{window.currentTheme=document.createElement("link");window.currentTheme.rel="stylesheet";window.currentTheme.id="themeStyle";window.currentTheme.href=newHref;document.documentElement.appendChild(window.currentTheme)}}else if(newHref!==window.currentTheme.href){window.currentTheme.href=newHref}}}const updateTheme=(function(){const mql=window.matchMedia("(prefers-color-scheme: dark)");function updateTheme(){if(getSettingValue("use-system-theme")!=="false"){const lightTheme=getSettingValue("preferred-light-theme")||"light";const darkTheme=getSettingValue("preferred-dark-theme")||"dark";updateLocalStorage("use-system-theme","true");switchTheme(mql.matches?darkTheme:lightTheme,true)}else{switchTheme(getSettingValue("theme"),false)}}mql.addEventListener("change",updateTheme);return updateTheme})();if(getSettingValue("use-system-theme")!=="false"&&window.matchMedia){if(getSettingValue("use-system-theme")===null&&getSettingValue("preferred-dark-theme")===null&&darkThemes.indexOf(localStoredTheme)>=0){updateLocalStorage("preferred-dark-theme",localStoredTheme)}}updateTheme();if(getSettingValue("source-sidebar-show")==="true"){addClass(document.documentElement,"src-sidebar-expanded")}if(getSettingValue("hide-sidebar")==="true"){addClass(document.documentElement,"hide-sidebar")}function updateSidebarWidth(){const desktopSidebarWidth=getSettingValue("desktop-sidebar-width");if(desktopSidebarWidth&&desktopSidebarWidth!=="null"){document.documentElement.style.setProperty("--desktop-sidebar-width",desktopSidebarWidth+"px",)}const srcSidebarWidth=getSettingValue("src-sidebar-width");if(srcSidebarWidth&&srcSidebarWidth!=="null"){document.documentElement.style.setProperty("--src-sidebar-width",srcSidebarWidth+"px",)}}updateSidebarWidth();window.addEventListener("pageshow",ev=>{if(ev.persisted){setTimeout(updateTheme,0);setTimeout(updateSidebarWidth,0)}});class RustdocSearchElement extends HTMLElement{constructor(){super()}connectedCallback(){const rootPath=getVar("root-path");const currentCrate=getVar("current-crate");this.innerHTML=``}}window.customElements.define("rustdoc-search",RustdocSearchElement);class RustdocToolbarElement extends HTMLElement{constructor(){super()}connectedCallback(){if(this.firstElementChild){return}const rootPath=getVar("root-path");this.innerHTML=` +
+ Settings +
+
+ Help +
+ `}}window.customElements.define("rustdoc-toolbar",RustdocToolbarElement) \ No newline at end of file diff --git a/trait.impl/core/borrow/trait.Borrow.js b/trait.impl/core/borrow/trait.Borrow.js index 7385294c2a..fd795fbd06 100644 --- a/trait.impl/core/borrow/trait.Borrow.js +++ b/trait.impl/core/borrow/trait.Borrow.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_span",[["impl Borrow<str> for InternedStr"]]]]); + var implementors = Object.fromEntries([["leo_span",[["impl Borrow<str> for InternedStr"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/clone/trait.Clone.js b/trait.impl/core/clone/trait.Clone.js index cd6ddfe12a..ec16c51186 100644 --- a/trait.impl/core/clone/trait.Clone.js +++ b/trait.impl/core/clone/trait.Clone.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_abnf",[["impl Clone for Scope"],["impl<'a> Clone for Processor<'a>"]]],["leo_ast",[["impl Clone for AccessExpression"],["impl Clone for BinaryOperation"],["impl Clone for Expression"],["impl Clone for Literal"],["impl Clone for UnaryOperation"],["impl Clone for CoreFunction"],["impl Clone for Mode"],["impl Clone for Variant"],["impl Clone for GroupCoordinate"],["impl Clone for GroupLiteral"],["impl Clone for AssertVariant"],["impl Clone for ConsoleFunction"],["impl Clone for DeclarationType"],["impl Clone for Statement"],["impl Clone for CoreConstant"],["impl Clone for IntegerType"],["impl Clone for Type"],["impl Clone for Value"],["impl Clone for ArrayAccess"],["impl Clone for AssociatedConstant"],["impl Clone for AssociatedFunction"],["impl Clone for MemberAccess"],["impl Clone for TupleAccess"],["impl Clone for Identifier"],["impl Clone for Location"],["impl Clone for NodeBuilder"],["impl Clone for NodeBuilderInner"],["impl Clone for NonNegativeNumber"],["impl Clone for StaticString"],["impl Clone for ArrayExpression"],["impl Clone for BinaryExpression"],["impl Clone for CallExpression"],["impl Clone for CastExpression"],["impl Clone for ErrExpression"],["impl Clone for LocatorExpression"],["impl Clone for StructExpression"],["impl Clone for StructVariableInitializer"],["impl Clone for TernaryExpression"],["impl Clone for TupleExpression"],["impl Clone for UnaryExpression"],["impl Clone for UnitExpression"],["impl Clone for Annotation"],["impl Clone for Input"],["impl Clone for Output"],["impl Clone for Function"],["impl Clone for GroupTuple"],["impl Clone for Mapping"],["impl Clone for ProgramId"],["impl Clone for ProgramScope"],["impl Clone for Program"],["impl Clone for AssertStatement"],["impl Clone for AssignStatement"],["impl Clone for Block"],["impl Clone for ConditionalStatement"],["impl Clone for ConsoleStatement"],["impl Clone for ConstDeclaration"],["impl Clone for DefinitionStatement"],["impl Clone for ExpressionStatement"],["impl Clone for IterationStatement"],["impl Clone for ReturnStatement"],["impl Clone for Ast"],["impl Clone for Member"],["impl Clone for Composite"],["impl Clone for FunctionStub"],["impl Clone for Stub"],["impl Clone for ArrayType"],["impl Clone for FutureType"],["impl Clone for MappingType"],["impl Clone for CompositeType"],["impl Clone for TupleType"]]],["leo_compiler",[["impl Clone for BuildOptions"],["impl Clone for CompilerOptions"],["impl Clone for OutputOptions"],["impl<'a, N: Clone + Network> Clone for Compiler<'a, N>"]]],["leo_errors",[["impl Clone for AstError"],["impl Clone for CliError"],["impl Clone for CompilerError"],["impl Clone for FlattenError"],["impl Clone for LoopUnrollerError"],["impl Clone for PackageError"],["impl Clone for ParserError"],["impl Clone for ParserWarning"],["impl Clone for StaticAnalyzerError"],["impl Clone for StaticAnalyzerWarning"],["impl Clone for TypeCheckerError"],["impl Clone for TypeCheckerWarning"],["impl Clone for UtilError"],["impl Clone for Backtraced"],["impl Clone for Formatted"],["impl Clone for BufferEmitter"]]],["leo_lang",[["impl Clone for ExampleVariant"],["impl Clone for BuildOptions"],["impl Clone for FeeOptions"],["impl Clone for Context"],["impl<F: Clone, T: Clone> Clone for Format<F, T>"]]],["leo_parser",[["impl Clone for Delimiter"],["impl Clone for Token"],["impl Clone for SpannedToken"]]],["leo_passes",[["impl Clone for VariableType"],["impl Clone for Guard"],["impl Clone for ReturnGuard"],["impl Clone for Assigner"],["impl Clone for AssignerInner"],["impl Clone for ConstantPropagationTable"],["impl Clone for RenameTable"],["impl Clone for FunctionSymbol"],["impl Clone for SymbolTable"],["impl Clone for VariableSymbol"],["impl Clone for TypeTable"],["impl<N: Clone + Node> Clone for TreeNode<N>"]]],["leo_retriever",[["impl Clone for Location"],["impl Clone for NetworkName"],["impl Clone for Dependency"],["impl Clone for LockFileEntry"],["impl Clone for Manifest"],["impl Clone for ProgramContext"]]],["leo_span",[["impl Clone for FileName"],["impl Clone for MultiByteChar"],["impl Clone for BytePos"],["impl Clone for CharPos"],["impl Clone for Span"],["impl Clone for Symbol"]]],["leo_test_framework",[["impl Clone for ParseType"],["impl Clone for TestExpectationMode"],["impl Clone for TestExpectation"],["impl Clone for TestConfig"]]]]); + var implementors = Object.fromEntries([["leo_abnf",[["impl Clone for Scope"],["impl<'a> Clone for Processor<'a>"]]],["leo_ast",[["impl Clone for AccessExpression"],["impl Clone for BinaryOperation"],["impl Clone for Expression"],["impl Clone for Literal"],["impl Clone for UnaryOperation"],["impl Clone for CoreFunction"],["impl Clone for Mode"],["impl Clone for Variant"],["impl Clone for GroupCoordinate"],["impl Clone for GroupLiteral"],["impl Clone for AssertVariant"],["impl Clone for ConsoleFunction"],["impl Clone for DeclarationType"],["impl Clone for Statement"],["impl Clone for CoreConstant"],["impl Clone for IntegerType"],["impl Clone for Type"],["impl Clone for Value"],["impl Clone for ArrayAccess"],["impl Clone for AssociatedConstant"],["impl Clone for AssociatedFunction"],["impl Clone for MemberAccess"],["impl Clone for TupleAccess"],["impl Clone for Identifier"],["impl Clone for Location"],["impl Clone for NodeBuilder"],["impl Clone for NodeBuilderInner"],["impl Clone for NonNegativeNumber"],["impl Clone for StaticString"],["impl Clone for ArrayExpression"],["impl Clone for BinaryExpression"],["impl Clone for CallExpression"],["impl Clone for CastExpression"],["impl Clone for ErrExpression"],["impl Clone for LocatorExpression"],["impl Clone for StructExpression"],["impl Clone for StructVariableInitializer"],["impl Clone for TernaryExpression"],["impl Clone for TupleExpression"],["impl Clone for UnaryExpression"],["impl Clone for UnitExpression"],["impl Clone for Annotation"],["impl Clone for Input"],["impl Clone for Output"],["impl Clone for Function"],["impl Clone for GroupTuple"],["impl Clone for Mapping"],["impl Clone for ProgramId"],["impl Clone for ProgramScope"],["impl Clone for Program"],["impl Clone for AssertStatement"],["impl Clone for AssignStatement"],["impl Clone for Block"],["impl Clone for ConditionalStatement"],["impl Clone for ConsoleStatement"],["impl Clone for ConstDeclaration"],["impl Clone for DefinitionStatement"],["impl Clone for ExpressionStatement"],["impl Clone for IterationStatement"],["impl Clone for ReturnStatement"],["impl Clone for Ast"],["impl Clone for Member"],["impl Clone for Composite"],["impl Clone for FunctionStub"],["impl Clone for Stub"],["impl Clone for ArrayType"],["impl Clone for FutureType"],["impl Clone for MappingType"],["impl Clone for CompositeType"],["impl Clone for TupleType"]]],["leo_compiler",[["impl Clone for BuildOptions"],["impl Clone for CompilerOptions"],["impl Clone for OutputOptions"],["impl<'a, N: Clone + Network> Clone for Compiler<'a, N>"]]],["leo_errors",[["impl Clone for AstError"],["impl Clone for CliError"],["impl Clone for CompilerError"],["impl Clone for FlattenError"],["impl Clone for LoopUnrollerError"],["impl Clone for PackageError"],["impl Clone for ParserError"],["impl Clone for ParserWarning"],["impl Clone for StaticAnalyzerError"],["impl Clone for StaticAnalyzerWarning"],["impl Clone for TypeCheckerError"],["impl Clone for TypeCheckerWarning"],["impl Clone for UtilError"],["impl Clone for Backtraced"],["impl Clone for Formatted"],["impl Clone for BufferEmitter"]]],["leo_lang",[["impl Clone for ExampleVariant"],["impl Clone for BuildOptions"],["impl Clone for FeeOptions"],["impl Clone for Context"],["impl<F: Clone, T: Clone> Clone for Format<F, T>"]]],["leo_parser",[["impl Clone for Delimiter"],["impl Clone for Token"],["impl Clone for SpannedToken"]]],["leo_passes",[["impl Clone for VariableType"],["impl Clone for Guard"],["impl Clone for ReturnGuard"],["impl Clone for Assigner"],["impl Clone for AssignerInner"],["impl Clone for ConstantPropagationTable"],["impl Clone for RenameTable"],["impl Clone for FunctionSymbol"],["impl Clone for SymbolTable"],["impl Clone for VariableSymbol"],["impl Clone for TypeTable"],["impl<N: Clone + Node> Clone for TreeNode<N>"]]],["leo_retriever",[["impl Clone for Location"],["impl Clone for NetworkName"],["impl Clone for Dependency"],["impl Clone for LockFileEntry"],["impl Clone for Manifest"],["impl Clone for ProgramContext"]]],["leo_span",[["impl Clone for FileName"],["impl Clone for MultiByteChar"],["impl Clone for BytePos"],["impl Clone for CharPos"],["impl Clone for Span"],["impl Clone for Symbol"]]],["leo_test_framework",[["impl Clone for ParseType"],["impl Clone for TestExpectationMode"],["impl Clone for TestExpectation"],["impl Clone for TestConfig"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/cmp/trait.Eq.js b/trait.impl/core/cmp/trait.Eq.js index 864f13970a..cd9e463e58 100644 --- a/trait.impl/core/cmp/trait.Eq.js +++ b/trait.impl/core/cmp/trait.Eq.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_ast",[["impl Eq for AccessExpression"],["impl Eq for BinaryOperation"],["impl Eq for Expression"],["impl Eq for Literal"],["impl Eq for UnaryOperation"],["impl Eq for CoreFunction"],["impl Eq for Mode"],["impl Eq for Variant"],["impl Eq for GroupCoordinate"],["impl Eq for GroupLiteral"],["impl Eq for AssertVariant"],["impl Eq for ConsoleFunction"],["impl Eq for DeclarationType"],["impl Eq for Statement"],["impl Eq for CoreConstant"],["impl Eq for IntegerType"],["impl Eq for Type"],["impl Eq for Value"],["impl Eq for ArrayAccess"],["impl Eq for AssociatedConstant"],["impl Eq for AssociatedFunction"],["impl Eq for MemberAccess"],["impl Eq for TupleAccess"],["impl Eq for Identifier"],["impl Eq for Location"],["impl Eq for NonNegativeNumber"],["impl Eq for StaticString"],["impl Eq for ArrayExpression"],["impl Eq for BinaryExpression"],["impl Eq for CallExpression"],["impl Eq for CastExpression"],["impl Eq for ErrExpression"],["impl Eq for LocatorExpression"],["impl Eq for StructExpression"],["impl Eq for StructVariableInitializer"],["impl Eq for TernaryExpression"],["impl Eq for TupleExpression"],["impl Eq for UnaryExpression"],["impl Eq for UnitExpression"],["impl Eq for Annotation"],["impl Eq for Input"],["impl Eq for Output"],["impl Eq for Function"],["impl Eq for GroupTuple"],["impl Eq for Mapping"],["impl Eq for ProgramId"],["impl Eq for ProgramScope"],["impl Eq for Program"],["impl Eq for AssertStatement"],["impl Eq for AssignStatement"],["impl Eq for Block"],["impl Eq for ConditionalStatement"],["impl Eq for ConsoleStatement"],["impl Eq for ConstDeclaration"],["impl Eq for DefinitionStatement"],["impl Eq for ExpressionStatement"],["impl Eq for IterationStatement"],["impl Eq for ReturnStatement"],["impl Eq for Ast"],["impl Eq for Member"],["impl Eq for Composite"],["impl Eq for FunctionStub"],["impl Eq for Stub"],["impl Eq for ArrayType"],["impl Eq for FutureType"],["impl Eq for MappingType"],["impl Eq for CompositeType"],["impl Eq for TupleType"]]],["leo_parser",[["impl Eq for Token"]]],["leo_passes",[["impl Eq for VariableType"],["impl Eq for RenameTable"],["impl Eq for VariableSymbol"],["impl<N: Eq + Node> Eq for DiGraph<N>"],["impl<N: Eq + Node> Eq for TreeNode<N>"]]],["leo_retriever",[["impl Eq for Location"],["impl Eq for NetworkName"],["impl Eq for Dependency"]]],["leo_span",[["impl Eq for InternedStr"],["impl Eq for MultiByteChar"],["impl Eq for BytePos"],["impl Eq for CharPos"],["impl Eq for Span"],["impl Eq for Symbol"]]],["leo_test_framework",[["impl Eq for ParseType"],["impl Eq for TestExpectationMode"]]]]); + var implementors = Object.fromEntries([["leo_ast",[["impl Eq for AccessExpression"],["impl Eq for BinaryOperation"],["impl Eq for Expression"],["impl Eq for Literal"],["impl Eq for UnaryOperation"],["impl Eq for CoreFunction"],["impl Eq for Mode"],["impl Eq for Variant"],["impl Eq for GroupCoordinate"],["impl Eq for GroupLiteral"],["impl Eq for AssertVariant"],["impl Eq for ConsoleFunction"],["impl Eq for DeclarationType"],["impl Eq for Statement"],["impl Eq for CoreConstant"],["impl Eq for IntegerType"],["impl Eq for Type"],["impl Eq for Value"],["impl Eq for ArrayAccess"],["impl Eq for AssociatedConstant"],["impl Eq for AssociatedFunction"],["impl Eq for MemberAccess"],["impl Eq for TupleAccess"],["impl Eq for Identifier"],["impl Eq for Location"],["impl Eq for NonNegativeNumber"],["impl Eq for StaticString"],["impl Eq for ArrayExpression"],["impl Eq for BinaryExpression"],["impl Eq for CallExpression"],["impl Eq for CastExpression"],["impl Eq for ErrExpression"],["impl Eq for LocatorExpression"],["impl Eq for StructExpression"],["impl Eq for StructVariableInitializer"],["impl Eq for TernaryExpression"],["impl Eq for TupleExpression"],["impl Eq for UnaryExpression"],["impl Eq for UnitExpression"],["impl Eq for Annotation"],["impl Eq for Input"],["impl Eq for Output"],["impl Eq for Function"],["impl Eq for GroupTuple"],["impl Eq for Mapping"],["impl Eq for ProgramId"],["impl Eq for ProgramScope"],["impl Eq for Program"],["impl Eq for AssertStatement"],["impl Eq for AssignStatement"],["impl Eq for Block"],["impl Eq for ConditionalStatement"],["impl Eq for ConsoleStatement"],["impl Eq for ConstDeclaration"],["impl Eq for DefinitionStatement"],["impl Eq for ExpressionStatement"],["impl Eq for IterationStatement"],["impl Eq for ReturnStatement"],["impl Eq for Ast"],["impl Eq for Member"],["impl Eq for Composite"],["impl Eq for FunctionStub"],["impl Eq for Stub"],["impl Eq for ArrayType"],["impl Eq for FutureType"],["impl Eq for MappingType"],["impl Eq for CompositeType"],["impl Eq for TupleType"]]],["leo_parser",[["impl Eq for Token"]]],["leo_passes",[["impl Eq for VariableType"],["impl Eq for RenameTable"],["impl Eq for VariableSymbol"],["impl<N: Eq + Node> Eq for DiGraph<N>"],["impl<N: Eq + Node> Eq for TreeNode<N>"]]],["leo_retriever",[["impl Eq for Location"],["impl Eq for NetworkName"],["impl Eq for Dependency"]]],["leo_span",[["impl Eq for InternedStr"],["impl Eq for MultiByteChar"],["impl Eq for BytePos"],["impl Eq for CharPos"],["impl Eq for Span"],["impl Eq for Symbol"]]],["leo_test_framework",[["impl Eq for ParseType"],["impl Eq for TestExpectationMode"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/cmp/trait.Ord.js b/trait.impl/core/cmp/trait.Ord.js index b823ca895d..593c167329 100644 --- a/trait.impl/core/cmp/trait.Ord.js +++ b/trait.impl/core/cmp/trait.Ord.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_span",[["impl Ord for BytePos"],["impl Ord for CharPos"],["impl Ord for Symbol"]]]]); + var implementors = Object.fromEntries([["leo_span",[["impl Ord for BytePos"],["impl Ord for CharPos"],["impl Ord for Symbol"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/cmp/trait.PartialEq.js b/trait.impl/core/cmp/trait.PartialEq.js index dba5353f91..b01ea4b806 100644 --- a/trait.impl/core/cmp/trait.PartialEq.js +++ b/trait.impl/core/cmp/trait.PartialEq.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_ast",[["impl PartialEq for AccessExpression"],["impl PartialEq for BinaryOperation"],["impl PartialEq for Expression"],["impl PartialEq for Literal"],["impl PartialEq for UnaryOperation"],["impl PartialEq for CoreFunction"],["impl PartialEq for Mode"],["impl PartialEq for Variant"],["impl PartialEq for GroupCoordinate"],["impl PartialEq for GroupLiteral"],["impl PartialEq for AssertVariant"],["impl PartialEq for ConsoleFunction"],["impl PartialEq for DeclarationType"],["impl PartialEq for Statement"],["impl PartialEq for CoreConstant"],["impl PartialEq for IntegerType"],["impl PartialEq for Type"],["impl PartialEq for Value"],["impl PartialEq for ArrayAccess"],["impl PartialEq for AssociatedConstant"],["impl PartialEq for AssociatedFunction"],["impl PartialEq for MemberAccess"],["impl PartialEq for TupleAccess"],["impl PartialEq for Identifier"],["impl PartialEq for Location"],["impl PartialEq for NonNegativeNumber"],["impl PartialEq for StaticString"],["impl PartialEq for ArrayExpression"],["impl PartialEq for BinaryExpression"],["impl PartialEq for CallExpression"],["impl PartialEq for CastExpression"],["impl PartialEq for ErrExpression"],["impl PartialEq for LocatorExpression"],["impl PartialEq for StructExpression"],["impl PartialEq for StructVariableInitializer"],["impl PartialEq for TernaryExpression"],["impl PartialEq for TupleExpression"],["impl PartialEq for UnaryExpression"],["impl PartialEq for UnitExpression"],["impl PartialEq for Annotation"],["impl PartialEq for Input"],["impl PartialEq for Output"],["impl PartialEq for Function"],["impl PartialEq for GroupTuple"],["impl PartialEq for Mapping"],["impl PartialEq for ProgramId"],["impl PartialEq for ProgramScope"],["impl PartialEq for Program"],["impl PartialEq for AssertStatement"],["impl PartialEq for AssignStatement"],["impl PartialEq for Block"],["impl PartialEq for ConditionalStatement"],["impl PartialEq for ConsoleStatement"],["impl PartialEq for ConstDeclaration"],["impl PartialEq for DefinitionStatement"],["impl PartialEq for ExpressionStatement"],["impl PartialEq for IterationStatement"],["impl PartialEq for ReturnStatement"],["impl PartialEq for Ast"],["impl PartialEq for Member"],["impl PartialEq for Composite"],["impl PartialEq for FunctionStub"],["impl PartialEq for Stub"],["impl PartialEq for ArrayType"],["impl PartialEq for FutureType"],["impl PartialEq for MappingType"],["impl PartialEq for CompositeType"],["impl PartialEq for TupleType"]]],["leo_errors",[["impl PartialEq for Backtraced"],["impl PartialEq for Formatted"]]],["leo_parser",[["impl PartialEq for Token"]]],["leo_passes",[["impl PartialEq for VariableType"],["impl PartialEq for RenameTable"],["impl PartialEq for FunctionSymbol"],["impl PartialEq for SymbolTable"],["impl PartialEq for VariableSymbol"],["impl<N: PartialEq + Node> PartialEq for DiGraph<N>"],["impl<N: PartialEq + Node> PartialEq for TreeNode<N>"]]],["leo_retriever",[["impl PartialEq for Location"],["impl PartialEq for NetworkName"],["impl PartialEq for Dependency"]]],["leo_span",[["impl PartialEq for InternedStr"],["impl PartialEq for MultiByteChar"],["impl PartialEq for BytePos"],["impl PartialEq for CharPos"],["impl PartialEq for Span"],["impl PartialEq for Symbol"]]],["leo_test_framework",[["impl PartialEq for ParseType"],["impl PartialEq for TestExpectationMode"]]]]); + var implementors = Object.fromEntries([["leo_ast",[["impl PartialEq for AccessExpression"],["impl PartialEq for BinaryOperation"],["impl PartialEq for Expression"],["impl PartialEq for Literal"],["impl PartialEq for UnaryOperation"],["impl PartialEq for CoreFunction"],["impl PartialEq for Mode"],["impl PartialEq for Variant"],["impl PartialEq for GroupCoordinate"],["impl PartialEq for GroupLiteral"],["impl PartialEq for AssertVariant"],["impl PartialEq for ConsoleFunction"],["impl PartialEq for DeclarationType"],["impl PartialEq for Statement"],["impl PartialEq for CoreConstant"],["impl PartialEq for IntegerType"],["impl PartialEq for Type"],["impl PartialEq for Value"],["impl PartialEq for ArrayAccess"],["impl PartialEq for AssociatedConstant"],["impl PartialEq for AssociatedFunction"],["impl PartialEq for MemberAccess"],["impl PartialEq for TupleAccess"],["impl PartialEq for Identifier"],["impl PartialEq for Location"],["impl PartialEq for NonNegativeNumber"],["impl PartialEq for StaticString"],["impl PartialEq for ArrayExpression"],["impl PartialEq for BinaryExpression"],["impl PartialEq for CallExpression"],["impl PartialEq for CastExpression"],["impl PartialEq for ErrExpression"],["impl PartialEq for LocatorExpression"],["impl PartialEq for StructExpression"],["impl PartialEq for StructVariableInitializer"],["impl PartialEq for TernaryExpression"],["impl PartialEq for TupleExpression"],["impl PartialEq for UnaryExpression"],["impl PartialEq for UnitExpression"],["impl PartialEq for Annotation"],["impl PartialEq for Input"],["impl PartialEq for Output"],["impl PartialEq for Function"],["impl PartialEq for GroupTuple"],["impl PartialEq for Mapping"],["impl PartialEq for ProgramId"],["impl PartialEq for ProgramScope"],["impl PartialEq for Program"],["impl PartialEq for AssertStatement"],["impl PartialEq for AssignStatement"],["impl PartialEq for Block"],["impl PartialEq for ConditionalStatement"],["impl PartialEq for ConsoleStatement"],["impl PartialEq for ConstDeclaration"],["impl PartialEq for DefinitionStatement"],["impl PartialEq for ExpressionStatement"],["impl PartialEq for IterationStatement"],["impl PartialEq for ReturnStatement"],["impl PartialEq for Ast"],["impl PartialEq for Member"],["impl PartialEq for Composite"],["impl PartialEq for FunctionStub"],["impl PartialEq for Stub"],["impl PartialEq for ArrayType"],["impl PartialEq for FutureType"],["impl PartialEq for MappingType"],["impl PartialEq for CompositeType"],["impl PartialEq for TupleType"]]],["leo_errors",[["impl PartialEq for Backtraced"],["impl PartialEq for Formatted"]]],["leo_parser",[["impl PartialEq for Token"]]],["leo_passes",[["impl PartialEq for VariableType"],["impl PartialEq for RenameTable"],["impl PartialEq for FunctionSymbol"],["impl PartialEq for SymbolTable"],["impl PartialEq for VariableSymbol"],["impl<N: PartialEq + Node> PartialEq for DiGraph<N>"],["impl<N: PartialEq + Node> PartialEq for TreeNode<N>"]]],["leo_retriever",[["impl PartialEq for Location"],["impl PartialEq for NetworkName"],["impl PartialEq for Dependency"]]],["leo_span",[["impl PartialEq for InternedStr"],["impl PartialEq for MultiByteChar"],["impl PartialEq for BytePos"],["impl PartialEq for CharPos"],["impl PartialEq for Span"],["impl PartialEq for Symbol"]]],["leo_test_framework",[["impl PartialEq for ParseType"],["impl PartialEq for TestExpectationMode"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/cmp/trait.PartialOrd.js b/trait.impl/core/cmp/trait.PartialOrd.js index 1bb0f08995..557ec1387a 100644 --- a/trait.impl/core/cmp/trait.PartialOrd.js +++ b/trait.impl/core/cmp/trait.PartialOrd.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_span",[["impl PartialOrd for BytePos"],["impl PartialOrd for CharPos"],["impl PartialOrd for Symbol"]]]]); + var implementors = Object.fromEntries([["leo_span",[["impl PartialOrd for BytePos"],["impl PartialOrd for CharPos"],["impl PartialOrd for Symbol"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/convert/trait.AsRef.js b/trait.impl/core/convert/trait.AsRef.js index 4d1fe52474..1923908d6b 100644 --- a/trait.impl/core/convert/trait.AsRef.js +++ b/trait.impl/core/convert/trait.AsRef.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_ast",[["impl AsRef<Value> for Value"],["impl AsRef<Program> for Ast"]]]]); + var implementors = Object.fromEntries([["leo_ast",[["impl AsRef<Value> for Value"],["impl AsRef<Program> for Ast"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/convert/trait.From.js b/trait.impl/core/convert/trait.From.js index 2f0e6014e7..09a7ab9e88 100644 --- a/trait.impl/core/convert/trait.From.js +++ b/trait.impl/core/convert/trait.From.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["leo_ast",[["impl From<&Value> for Type"],["impl From<&CompositeType> for Location"],["impl From<Value> for Type"],["impl From<usize> for NonNegativeNumber"],["impl From<String> for NonNegativeNumber"],["impl From<Identifier> for ProgramId"],["impl From<Function> for FunctionStub"],["impl From<FunctionStub> for Function"],["impl From<Stub> for ProgramScope"],["impl<N: Network> From<&Identifier<N>> for Identifier"],["impl<N: Network> From<&ProgramID<N>> for ProgramId"]]],["leo_errors",[["impl From<AstError> for LeoError"],["impl From<CliError> for LeoError"],["impl From<CompilerError> for LeoError"],["impl From<FlattenError> for LeoError"],["impl From<LoopUnrollerError> for LeoError"],["impl From<PackageError> for LeoError"],["impl From<ParserError> for LeoError"],["impl From<ParserWarning> for LeoWarning"],["impl From<StaticAnalyzerError> for LeoError"],["impl From<StaticAnalyzerWarning> for LeoWarning"],["impl From<TypeCheckerError> for LeoError"],["impl From<TypeCheckerWarning> for LeoWarning"],["impl From<UtilError> for LeoError"],["impl From<Error> for LeoError"],["impl From<Backtraced> for AstError"],["impl From<Backtraced> for CliError"],["impl From<Backtraced> for CompilerError"],["impl From<Backtraced> for FlattenError"],["impl From<Backtraced> for LoopUnrollerError"],["impl From<Backtraced> for PackageError"],["impl From<Backtraced> for ParserError"],["impl From<Backtraced> for ParserWarning"],["impl From<Backtraced> for StaticAnalyzerError"],["impl From<Backtraced> for StaticAnalyzerWarning"],["impl From<Backtraced> for TypeCheckerError"],["impl From<Backtraced> for TypeCheckerWarning"],["impl From<Backtraced> for UtilError"],["impl From<Formatted> for AstError"],["impl From<Formatted> for CliError"],["impl From<Formatted> for CompilerError"],["impl From<Formatted> for FlattenError"],["impl From<Formatted> for LoopUnrollerError"],["impl From<Formatted> for PackageError"],["impl From<Formatted> for ParserError"],["impl From<Formatted> for ParserWarning"],["impl From<Formatted> for StaticAnalyzerError"],["impl From<Formatted> for StaticAnalyzerWarning"],["impl From<Formatted> for TypeCheckerError"],["impl From<Formatted> for TypeCheckerWarning"],["impl From<Formatted> for UtilError"]]],["leo_lang",[["impl From<BuildOptions> for CompilerOptions"]]],["leo_retriever",[["impl From<&Dependency> for Symbol"],["impl From<&ProgramContext> for LockFileEntry"],["impl From<Dependency> for ProgramContext"]]]]); + var implementors = Object.fromEntries([["leo_ast",[["impl From<&Value> for Type"],["impl From<&CompositeType> for Location"],["impl From<Value> for Type"],["impl From<usize> for NonNegativeNumber"],["impl From<String> for NonNegativeNumber"],["impl From<Identifier> for ProgramId"],["impl From<Function> for FunctionStub"],["impl From<FunctionStub> for Function"],["impl From<Stub> for ProgramScope"],["impl<N: Network> From<&Identifier<N>> for Identifier"],["impl<N: Network> From<&ProgramID<N>> for ProgramId"]]],["leo_errors",[["impl From<AstError> for LeoError"],["impl From<CliError> for LeoError"],["impl From<CompilerError> for LeoError"],["impl From<FlattenError> for LeoError"],["impl From<LoopUnrollerError> for LeoError"],["impl From<PackageError> for LeoError"],["impl From<ParserError> for LeoError"],["impl From<ParserWarning> for LeoWarning"],["impl From<StaticAnalyzerError> for LeoError"],["impl From<StaticAnalyzerWarning> for LeoWarning"],["impl From<TypeCheckerError> for LeoError"],["impl From<TypeCheckerWarning> for LeoWarning"],["impl From<UtilError> for LeoError"],["impl From<Error> for LeoError"],["impl From<Backtraced> for AstError"],["impl From<Backtraced> for CliError"],["impl From<Backtraced> for CompilerError"],["impl From<Backtraced> for FlattenError"],["impl From<Backtraced> for LoopUnrollerError"],["impl From<Backtraced> for PackageError"],["impl From<Backtraced> for ParserError"],["impl From<Backtraced> for ParserWarning"],["impl From<Backtraced> for StaticAnalyzerError"],["impl From<Backtraced> for StaticAnalyzerWarning"],["impl From<Backtraced> for TypeCheckerError"],["impl From<Backtraced> for TypeCheckerWarning"],["impl From<Backtraced> for UtilError"],["impl From<Formatted> for AstError"],["impl From<Formatted> for CliError"],["impl From<Formatted> for CompilerError"],["impl From<Formatted> for FlattenError"],["impl From<Formatted> for LoopUnrollerError"],["impl From<Formatted> for PackageError"],["impl From<Formatted> for ParserError"],["impl From<Formatted> for ParserWarning"],["impl From<Formatted> for StaticAnalyzerError"],["impl From<Formatted> for StaticAnalyzerWarning"],["impl From<Formatted> for TypeCheckerError"],["impl From<Formatted> for TypeCheckerWarning"],["impl From<Formatted> for UtilError"]]],["leo_lang",[["impl From<BuildOptions> for CompilerOptions"]]],["leo_retriever",[["impl From<&Dependency> for Symbol"],["impl From<&ProgramContext> for LockFileEntry"],["impl From<Dependency> for ProgramContext"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[4591,19575,334,1509]} \ No newline at end of file +//{"start":57,"fragment_lengths":[4591,19575,472,1509]} \ No newline at end of file diff --git a/trait.impl/core/convert/trait.TryFrom.js b/trait.impl/core/convert/trait.TryFrom.js index e6c40b846c..91c5657da7 100644 --- a/trait.impl/core/convert/trait.TryFrom.js +++ b/trait.impl/core/convert/trait.TryFrom.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_ast",[["impl TryFrom<&Literal> for Value"],["impl TryFrom<&Value> for i128"],["impl TryFrom<&Value> for u128"],["impl TryFrom<Value> for i128"],["impl TryFrom<Value> for u128"]]],["leo_lang",[["impl TryFrom<&str> for ExampleVariant"]]],["leo_retriever",[["impl TryFrom<&str> for NetworkName"],["impl TryFrom<String> for NetworkName"]]]]); + var implementors = Object.fromEntries([["leo_ast",[["impl TryFrom<&Literal> for Value"],["impl TryFrom<&Value> for i128"],["impl TryFrom<&Value> for u128"],["impl TryFrom<Value> for i128"],["impl TryFrom<Value> for u128"]]],["leo_lang",[["impl TryFrom<&str> for ExampleVariant"]]],["leo_retriever",[["impl TryFrom<&str> for NetworkName"],["impl TryFrom<String> for NetworkName"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/default/trait.Default.js b/trait.impl/core/default/trait.Default.js index 419d244fbd..0889700f41 100644 --- a/trait.impl/core/default/trait.Default.js +++ b/trait.impl/core/default/trait.Default.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_ast",[["impl Default for NodeBuilder"],["impl Default for StaticString"],["impl Default for Program"],["impl Default for Block"],["impl Default for Ast"],["impl Default for Stub"],["impl Default for FutureType"]]],["leo_compiler",[["impl Default for BuildOptions"],["impl Default for CompilerOptions"],["impl Default for OutputOptions"]]],["leo_errors",[["impl Default for Backtraced"],["impl Default for Formatted"],["impl Default for BufferEmitter"],["impl Default for Handler"],["impl<T> Default for Buffer<T>"]]],["leo_lang",[["impl Default for BuildOptions"],["impl Default for FeeOptions"],["impl Default for Format<Full, SystemTime>"]]],["leo_package",[["impl Default for Gitignore"]]],["leo_passes",[["impl Default for Assigner"],["impl Default for AssignerInner"],["impl Default for ConstantPropagationTable"],["impl Default for RenameTable"],["impl Default for SymbolTable"],["impl Default for TypeTable"]]],["leo_span",[["impl Default for SourceMap"],["impl Default for SourceMapInner"],["impl Default for BytePos"],["impl Default for Span"],["impl Default for SessionGlobals"]]]]); + var implementors = Object.fromEntries([["leo_ast",[["impl Default for NodeBuilder"],["impl Default for StaticString"],["impl Default for Program"],["impl Default for Block"],["impl Default for Ast"],["impl Default for Stub"],["impl Default for FutureType"]]],["leo_compiler",[["impl Default for BuildOptions"],["impl Default for CompilerOptions"],["impl Default for OutputOptions"]]],["leo_errors",[["impl Default for Backtraced"],["impl Default for Formatted"],["impl Default for BufferEmitter"],["impl Default for Handler"],["impl<T> Default for Buffer<T>"]]],["leo_lang",[["impl Default for BuildOptions"],["impl Default for FeeOptions"],["impl Default for Format<Full, SystemTime>"]]],["leo_package",[["impl Default for Gitignore"]]],["leo_passes",[["impl Default for Assigner"],["impl Default for AssignerInner"],["impl Default for ConstantPropagationTable"],["impl Default for RenameTable"],["impl Default for SymbolTable"],["impl Default for TypeTable"]]],["leo_span",[["impl Default for SourceMap"],["impl Default for SourceMapInner"],["impl Default for BytePos"],["impl Default for Span"],["impl Default for SessionGlobals"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/error/trait.Error.js b/trait.impl/core/error/trait.Error.js index 3cb0d5ee98..df821b4927 100644 --- a/trait.impl/core/error/trait.Error.js +++ b/trait.impl/core/error/trait.Error.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_errors",[["impl Error for AstError"],["impl Error for CliError"],["impl Error for CompilerError"],["impl Error for LeoError"],["impl Error for LeoWarning"],["impl Error for FlattenError"],["impl Error for LoopUnrollerError"],["impl Error for PackageError"],["impl Error for ParserError"],["impl Error for ParserWarning"],["impl Error for StaticAnalyzerError"],["impl Error for StaticAnalyzerWarning"],["impl Error for TypeCheckerError"],["impl Error for TypeCheckerWarning"],["impl Error for UtilError"],["impl Error for Backtraced"],["impl Error for Formatted"]]]]); + var implementors = Object.fromEntries([["leo_errors",[["impl Error for AstError"],["impl Error for CliError"],["impl Error for CompilerError"],["impl Error for LeoError"],["impl Error for LeoWarning"],["impl Error for FlattenError"],["impl Error for LoopUnrollerError"],["impl Error for PackageError"],["impl Error for ParserError"],["impl Error for ParserWarning"],["impl Error for StaticAnalyzerError"],["impl Error for StaticAnalyzerWarning"],["impl Error for TypeCheckerError"],["impl Error for TypeCheckerWarning"],["impl Error for UtilError"],["impl Error for Backtraced"],["impl Error for Formatted"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/fmt/trait.Debug.js b/trait.impl/core/fmt/trait.Debug.js index 73cb52788b..c20758b330 100644 --- a/trait.impl/core/fmt/trait.Debug.js +++ b/trait.impl/core/fmt/trait.Debug.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_abnf",[["impl Debug for Scope"],["impl<'a> Debug for Processor<'a>"]]],["leo_ast",[["impl Debug for AccessExpression"],["impl Debug for BinaryOperation"],["impl Debug for Expression"],["impl Debug for Literal"],["impl Debug for UnaryOperation"],["impl Debug for Mode"],["impl Debug for Variant"],["impl Debug for GroupCoordinate"],["impl Debug for GroupLiteral"],["impl Debug for AssertVariant"],["impl Debug for ConsoleFunction"],["impl Debug for DeclarationType"],["impl Debug for Statement"],["impl Debug for IntegerType"],["impl Debug for Type"],["impl Debug for Value"],["impl Debug for ArrayAccess"],["impl Debug for AssociatedConstant"],["impl Debug for AssociatedFunction"],["impl Debug for MemberAccess"],["impl Debug for TupleAccess"],["impl Debug for Identifier"],["impl Debug for Location"],["impl Debug for NodeBuilder"],["impl Debug for NodeBuilderInner"],["impl Debug for NonNegativeNumber"],["impl Debug for StaticString"],["impl Debug for ArrayExpression"],["impl Debug for BinaryExpression"],["impl Debug for CallExpression"],["impl Debug for CastExpression"],["impl Debug for ErrExpression"],["impl Debug for LocatorExpression"],["impl Debug for StructExpression"],["impl Debug for StructVariableInitializer"],["impl Debug for TernaryExpression"],["impl Debug for TupleExpression"],["impl Debug for UnaryExpression"],["impl Debug for UnitExpression"],["impl Debug for Annotation"],["impl Debug for Input"],["impl Debug for Output"],["impl Debug for Function"],["impl Debug for GroupTuple"],["impl Debug for Mapping"],["impl Debug for ProgramId"],["impl Debug for ProgramScope"],["impl Debug for Program"],["impl Debug for AssertStatement"],["impl Debug for AssignStatement"],["impl Debug for Block"],["impl Debug for ConditionalStatement"],["impl Debug for ConsoleStatement"],["impl Debug for ConstDeclaration"],["impl Debug for DefinitionStatement"],["impl Debug for ExpressionStatement"],["impl Debug for IterationStatement"],["impl Debug for ReturnStatement"],["impl Debug for Ast"],["impl Debug for Member"],["impl Debug for Composite"],["impl Debug for FunctionStub"],["impl Debug for Stub"],["impl Debug for ArrayType"],["impl Debug for FutureType"],["impl Debug for MappingType"],["impl Debug for CompositeType"],["impl Debug for TupleType"]]],["leo_errors",[["impl Debug for AstError"],["impl Debug for CliError"],["impl Debug for CompilerError"],["impl Debug for LeoError"],["impl Debug for LeoWarning"],["impl Debug for FlattenError"],["impl Debug for LoopUnrollerError"],["impl Debug for PackageError"],["impl Debug for ParserError"],["impl Debug for ParserWarning"],["impl Debug for StaticAnalyzerError"],["impl Debug for StaticAnalyzerWarning"],["impl Debug for TypeCheckerError"],["impl Debug for TypeCheckerWarning"],["impl Debug for UtilError"],["impl Debug for Backtraced"],["impl Debug for Formatted"],["impl<T: Debug> Debug for Buffer<T>"]]],["leo_lang",[["impl Debug for Commands"],["impl Debug for Account"],["impl Debug for ExampleVariant"],["impl Debug for QueryCommands"],["impl Debug for CLI"],["impl Debug for LeoAdd"],["impl Debug for LeoBuild"],["impl Debug for LeoClean"],["impl Debug for Deploy"],["impl Debug for LeoExample"],["impl Debug for LeoExecute"],["impl Debug for LeoNew"],["impl Debug for LeoBlock"],["impl Debug for LeoCommittee"],["impl Debug for LeoMempool"],["impl Debug for LeoPeers"],["impl Debug for LeoProgram"],["impl Debug for StateRoot"],["impl Debug for LeoQuery"],["impl Debug for LeoTransaction"],["impl Debug for LeoRemove"],["impl Debug for LeoRun"],["impl Debug for BuildOptions"],["impl Debug for FeeOptions"],["impl Debug for LeoUpdate"],["impl<F: Debug, T: Debug> Debug for Format<F, T>"]]],["leo_parser",[["impl Debug for Token"],["impl Debug for SpannedToken"]]],["leo_passes",[["impl Debug for VariableType"],["impl Debug for Assigner"],["impl Debug for AssignerInner"],["impl Debug for ConstantPropagationTable"],["impl Debug for RenameTable"],["impl Debug for FunctionSymbol"],["impl Debug for SymbolTable"],["impl Debug for VariableSymbol"],["impl Debug for TypeTable"],["impl<N: Debug + Node> Debug for DiGraphError<N>"],["impl<N: Debug + Node> Debug for DiGraph<N>"],["impl<N: Debug + Node> Debug for TreeNode<N>"]]],["leo_retriever",[["impl Debug for Location"],["impl Debug for NetworkName"],["impl Debug for Dependency"],["impl Debug for LockFileEntry"],["impl Debug for Manifest"],["impl Debug for ProgramContext"]]],["leo_span",[["impl Debug for MultiByteChar"],["impl Debug for BytePos"],["impl Debug for CharPos"],["impl Debug for Span"],["impl Debug for Symbol"]]],["leo_test_framework",[["impl Debug for TestError"],["impl Debug for ParseType"],["impl Debug for TestExpectationMode"],["impl Debug for TestConfig"]]]]); + var implementors = Object.fromEntries([["leo_abnf",[["impl Debug for Scope"],["impl<'a> Debug for Processor<'a>"]]],["leo_ast",[["impl Debug for AccessExpression"],["impl Debug for BinaryOperation"],["impl Debug for Expression"],["impl Debug for Literal"],["impl Debug for UnaryOperation"],["impl Debug for Mode"],["impl Debug for Variant"],["impl Debug for GroupCoordinate"],["impl Debug for GroupLiteral"],["impl Debug for AssertVariant"],["impl Debug for ConsoleFunction"],["impl Debug for DeclarationType"],["impl Debug for Statement"],["impl Debug for IntegerType"],["impl Debug for Type"],["impl Debug for Value"],["impl Debug for ArrayAccess"],["impl Debug for AssociatedConstant"],["impl Debug for AssociatedFunction"],["impl Debug for MemberAccess"],["impl Debug for TupleAccess"],["impl Debug for Identifier"],["impl Debug for Location"],["impl Debug for NodeBuilder"],["impl Debug for NodeBuilderInner"],["impl Debug for NonNegativeNumber"],["impl Debug for StaticString"],["impl Debug for ArrayExpression"],["impl Debug for BinaryExpression"],["impl Debug for CallExpression"],["impl Debug for CastExpression"],["impl Debug for ErrExpression"],["impl Debug for LocatorExpression"],["impl Debug for StructExpression"],["impl Debug for StructVariableInitializer"],["impl Debug for TernaryExpression"],["impl Debug for TupleExpression"],["impl Debug for UnaryExpression"],["impl Debug for UnitExpression"],["impl Debug for Annotation"],["impl Debug for Input"],["impl Debug for Output"],["impl Debug for Function"],["impl Debug for GroupTuple"],["impl Debug for Mapping"],["impl Debug for ProgramId"],["impl Debug for ProgramScope"],["impl Debug for Program"],["impl Debug for AssertStatement"],["impl Debug for AssignStatement"],["impl Debug for Block"],["impl Debug for ConditionalStatement"],["impl Debug for ConsoleStatement"],["impl Debug for ConstDeclaration"],["impl Debug for DefinitionStatement"],["impl Debug for ExpressionStatement"],["impl Debug for IterationStatement"],["impl Debug for ReturnStatement"],["impl Debug for Ast"],["impl Debug for Member"],["impl Debug for Composite"],["impl Debug for FunctionStub"],["impl Debug for Stub"],["impl Debug for ArrayType"],["impl Debug for FutureType"],["impl Debug for MappingType"],["impl Debug for CompositeType"],["impl Debug for TupleType"]]],["leo_errors",[["impl Debug for AstError"],["impl Debug for CliError"],["impl Debug for CompilerError"],["impl Debug for LeoError"],["impl Debug for LeoWarning"],["impl Debug for FlattenError"],["impl Debug for LoopUnrollerError"],["impl Debug for PackageError"],["impl Debug for ParserError"],["impl Debug for ParserWarning"],["impl Debug for StaticAnalyzerError"],["impl Debug for StaticAnalyzerWarning"],["impl Debug for TypeCheckerError"],["impl Debug for TypeCheckerWarning"],["impl Debug for UtilError"],["impl Debug for Backtraced"],["impl Debug for Formatted"],["impl<T: Debug> Debug for Buffer<T>"]]],["leo_lang",[["impl Debug for Commands"],["impl Debug for Account"],["impl Debug for ExampleVariant"],["impl Debug for QueryCommands"],["impl Debug for CLI"],["impl Debug for LeoAdd"],["impl Debug for LeoBuild"],["impl Debug for LeoClean"],["impl Debug for Deploy"],["impl Debug for LeoExample"],["impl Debug for LeoExecute"],["impl Debug for LeoNew"],["impl Debug for LeoBlock"],["impl Debug for LeoCommittee"],["impl Debug for LeoMempool"],["impl Debug for LeoPeers"],["impl Debug for LeoProgram"],["impl Debug for StateRoot"],["impl Debug for LeoQuery"],["impl Debug for LeoTransaction"],["impl Debug for LeoRemove"],["impl Debug for LeoRun"],["impl Debug for BuildOptions"],["impl Debug for FeeOptions"],["impl Debug for LeoUpdate"],["impl<F: Debug, T: Debug> Debug for Format<F, T>"]]],["leo_parser",[["impl Debug for Token"],["impl Debug for SpannedToken"]]],["leo_passes",[["impl Debug for VariableType"],["impl Debug for Assigner"],["impl Debug for AssignerInner"],["impl Debug for ConstantPropagationTable"],["impl Debug for RenameTable"],["impl Debug for FunctionSymbol"],["impl Debug for SymbolTable"],["impl Debug for VariableSymbol"],["impl Debug for TypeTable"],["impl<N: Debug + Node> Debug for DiGraphError<N>"],["impl<N: Debug + Node> Debug for DiGraph<N>"],["impl<N: Debug + Node> Debug for TreeNode<N>"]]],["leo_retriever",[["impl Debug for Location"],["impl Debug for NetworkName"],["impl Debug for Dependency"],["impl Debug for LockFileEntry"],["impl Debug for Manifest"],["impl Debug for ProgramContext"]]],["leo_span",[["impl Debug for MultiByteChar"],["impl Debug for BytePos"],["impl Debug for CharPos"],["impl Debug for Span"],["impl Debug for Symbol"]]],["leo_test_framework",[["impl Debug for TestError"],["impl Debug for ParseType"],["impl Debug for TestExpectationMode"],["impl Debug for TestConfig"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/fmt/trait.Display.js b/trait.impl/core/fmt/trait.Display.js index 7b1e1d6cac..f8ed83faf2 100644 --- a/trait.impl/core/fmt/trait.Display.js +++ b/trait.impl/core/fmt/trait.Display.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_ast",[["impl Display for AccessExpression"],["impl Display for BinaryOperation"],["impl Display for Expression"],["impl Display for Literal"],["impl Display for Mode"],["impl Display for GroupCoordinate"],["impl Display for GroupLiteral"],["impl Display for ConsoleFunction"],["impl Display for DeclarationType"],["impl Display for Statement"],["impl Display for IntegerType"],["impl Display for Type"],["impl Display for Value"],["impl Display for ArrayAccess"],["impl Display for AssociatedConstant"],["impl Display for AssociatedFunction"],["impl Display for MemberAccess"],["impl Display for TupleAccess"],["impl Display for Identifier"],["impl Display for NonNegativeNumber"],["impl Display for StaticString"],["impl Display for ArrayExpression"],["impl Display for BinaryExpression"],["impl Display for CallExpression"],["impl Display for CastExpression"],["impl Display for ErrExpression"],["impl Display for DisplayDecimal<'_>"],["impl Display for LocatorExpression"],["impl Display for StructExpression"],["impl Display for StructVariableInitializer"],["impl Display for TernaryExpression"],["impl Display for TupleExpression"],["impl Display for UnaryExpression"],["impl Display for UnitExpression"],["impl Display for Annotation"],["impl Display for Input"],["impl Display for Output"],["impl Display for Function"],["impl Display for Mapping"],["impl Display for ProgramId"],["impl Display for ProgramScope"],["impl Display for Program"],["impl Display for AssertStatement"],["impl Display for AssignStatement"],["impl Display for Block"],["impl Display for ConditionalStatement"],["impl Display for ConsoleStatement"],["impl Display for ConstDeclaration"],["impl Display for DefinitionStatement"],["impl Display for ExpressionStatement"],["impl Display for IterationStatement"],["impl Display for ReturnStatement"],["impl Display for Member"],["impl Display for Composite"],["impl Display for FunctionStub"],["impl Display for Stub"],["impl Display for ArrayType"],["impl Display for FutureType"],["impl Display for MappingType"],["impl Display for CompositeType"],["impl Display for TupleType"]]],["leo_errors",[["impl Display for AstError"],["impl Display for CliError"],["impl Display for CompilerError"],["impl Display for LeoError"],["impl Display for LeoWarning"],["impl Display for FlattenError"],["impl Display for LoopUnrollerError"],["impl Display for PackageError"],["impl Display for ParserError"],["impl Display for ParserWarning"],["impl Display for StaticAnalyzerError"],["impl Display for StaticAnalyzerWarning"],["impl Display for TypeCheckerError"],["impl Display for TypeCheckerWarning"],["impl Display for UtilError"],["impl Display for Backtraced"],["impl Display for Formatted"],["impl<T: Display> Display for Buffer<T>"]]],["leo_package",[["impl Display for Snapshot"],["impl<N: Network> Display for Env<N>"]]],["leo_parser",[["impl Display for Token"],["impl Display for SpannedToken"]]],["leo_passes",[["impl Display for VariableType"],["impl Display for VariableSymbol"]]],["leo_retriever",[["impl Display for NetworkName"]]],["leo_span",[["impl Display for FileName"],["impl Display for Span"],["impl Display for Symbol"]]],["leo_test_framework",[["impl Display for TestError"]]]]); + var implementors = Object.fromEntries([["leo_ast",[["impl Display for AccessExpression"],["impl Display for BinaryOperation"],["impl Display for Expression"],["impl Display for Literal"],["impl Display for Mode"],["impl Display for GroupCoordinate"],["impl Display for GroupLiteral"],["impl Display for ConsoleFunction"],["impl Display for DeclarationType"],["impl Display for Statement"],["impl Display for IntegerType"],["impl Display for Type"],["impl Display for Value"],["impl Display for ArrayAccess"],["impl Display for AssociatedConstant"],["impl Display for AssociatedFunction"],["impl Display for MemberAccess"],["impl Display for TupleAccess"],["impl Display for Identifier"],["impl Display for NonNegativeNumber"],["impl Display for StaticString"],["impl Display for ArrayExpression"],["impl Display for BinaryExpression"],["impl Display for CallExpression"],["impl Display for CastExpression"],["impl Display for ErrExpression"],["impl Display for DisplayDecimal<'_>"],["impl Display for LocatorExpression"],["impl Display for StructExpression"],["impl Display for StructVariableInitializer"],["impl Display for TernaryExpression"],["impl Display for TupleExpression"],["impl Display for UnaryExpression"],["impl Display for UnitExpression"],["impl Display for Annotation"],["impl Display for Input"],["impl Display for Output"],["impl Display for Function"],["impl Display for Mapping"],["impl Display for ProgramId"],["impl Display for ProgramScope"],["impl Display for Program"],["impl Display for AssertStatement"],["impl Display for AssignStatement"],["impl Display for Block"],["impl Display for ConditionalStatement"],["impl Display for ConsoleStatement"],["impl Display for ConstDeclaration"],["impl Display for DefinitionStatement"],["impl Display for ExpressionStatement"],["impl Display for IterationStatement"],["impl Display for ReturnStatement"],["impl Display for Member"],["impl Display for Composite"],["impl Display for FunctionStub"],["impl Display for Stub"],["impl Display for ArrayType"],["impl Display for FutureType"],["impl Display for MappingType"],["impl Display for CompositeType"],["impl Display for TupleType"]]],["leo_errors",[["impl Display for AstError"],["impl Display for CliError"],["impl Display for CompilerError"],["impl Display for LeoError"],["impl Display for LeoWarning"],["impl Display for FlattenError"],["impl Display for LoopUnrollerError"],["impl Display for PackageError"],["impl Display for ParserError"],["impl Display for ParserWarning"],["impl Display for StaticAnalyzerError"],["impl Display for StaticAnalyzerWarning"],["impl Display for TypeCheckerError"],["impl Display for TypeCheckerWarning"],["impl Display for UtilError"],["impl Display for Backtraced"],["impl Display for Formatted"],["impl<T: Display> Display for Buffer<T>"]]],["leo_package",[["impl Display for Snapshot"],["impl<N: Network> Display for Env<N>"]]],["leo_parser",[["impl Display for Token"],["impl Display for SpannedToken"]]],["leo_passes",[["impl Display for VariableType"],["impl Display for VariableSymbol"]]],["leo_retriever",[["impl Display for NetworkName"]]],["leo_span",[["impl Display for FileName"],["impl Display for Span"],["impl Display for Symbol"]]],["leo_test_framework",[["impl Display for TestError"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/hash/trait.Hash.js b/trait.impl/core/hash/trait.Hash.js index 30023d8dab..7d97f8f598 100644 --- a/trait.impl/core/hash/trait.Hash.js +++ b/trait.impl/core/hash/trait.Hash.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_ast",[["impl Hash for IntegerType"],["impl Hash for Type"],["impl Hash for Identifier"],["impl Hash for Location"],["impl Hash for NonNegativeNumber"],["impl Hash for LocatorExpression"],["impl Hash for ProgramId"],["impl Hash for ArrayType"],["impl Hash for FutureType"],["impl Hash for MappingType"],["impl Hash for CompositeType"],["impl Hash for TupleType"]]],["leo_errors",[["impl Hash for Backtraced"],["impl Hash for Formatted"]]],["leo_retriever",[["impl Hash for Location"],["impl Hash for NetworkName"],["impl Hash for Dependency"]]],["leo_span",[["impl Hash for InternedStr"],["impl Hash for BytePos"],["impl Hash for Span"],["impl Hash for Symbol"]]]]); + var implementors = Object.fromEntries([["leo_ast",[["impl Hash for IntegerType"],["impl Hash for Type"],["impl Hash for Identifier"],["impl Hash for Location"],["impl Hash for NonNegativeNumber"],["impl Hash for LocatorExpression"],["impl Hash for ProgramId"],["impl Hash for ArrayType"],["impl Hash for FutureType"],["impl Hash for MappingType"],["impl Hash for CompositeType"],["impl Hash for TupleType"]]],["leo_errors",[["impl Hash for Backtraced"],["impl Hash for Formatted"]]],["leo_retriever",[["impl Hash for Location"],["impl Hash for NetworkName"],["impl Hash for Dependency"]]],["leo_span",[["impl Hash for InternedStr"],["impl Hash for BytePos"],["impl Hash for Span"],["impl Hash for Symbol"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/iter/traits/iterator/trait.Iterator.js b/trait.impl/core/iter/traits/iterator/trait.Iterator.js index f321b3da43..4b586df508 100644 --- a/trait.impl/core/iter/traits/iterator/trait.Iterator.js +++ b/trait.impl/core/iter/traits/iterator/trait.Iterator.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_passes",[["impl<I: LoopBound> Iterator for RangeIterator<I>"]]]]); + var implementors = Object.fromEntries([["leo_passes",[["impl<I: LoopBound> Iterator for RangeIterator<I>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/marker/trait.Copy.js b/trait.impl/core/marker/trait.Copy.js index 7c899ff8a4..1688ac94b9 100644 --- a/trait.impl/core/marker/trait.Copy.js +++ b/trait.impl/core/marker/trait.Copy.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_ast",[["impl Copy for BinaryOperation"],["impl Copy for UnaryOperation"],["impl Copy for Mode"],["impl Copy for Variant"],["impl Copy for DeclarationType"],["impl Copy for IntegerType"],["impl Copy for Identifier"],["impl Copy for LocatorExpression"],["impl Copy for ProgramId"],["impl Copy for CompositeType"]]],["leo_lang",[["impl Copy for ExampleVariant"]]],["leo_parser",[["impl Copy for Delimiter"]]],["leo_passes",[["impl Copy for VariableType"],["impl Copy for Guard"],["impl Copy for ReturnGuard"]]],["leo_retriever",[["impl Copy for NetworkName"]]],["leo_span",[["impl Copy for MultiByteChar"],["impl Copy for BytePos"],["impl Copy for CharPos"],["impl Copy for Span"],["impl Copy for Symbol"]]],["leo_test_framework",[["impl Copy for ParseType"]]]]); + var implementors = Object.fromEntries([["leo_ast",[["impl Copy for BinaryOperation"],["impl Copy for UnaryOperation"],["impl Copy for Mode"],["impl Copy for Variant"],["impl Copy for DeclarationType"],["impl Copy for IntegerType"],["impl Copy for Identifier"],["impl Copy for LocatorExpression"],["impl Copy for ProgramId"],["impl Copy for CompositeType"]]],["leo_lang",[["impl Copy for ExampleVariant"]]],["leo_parser",[["impl Copy for Delimiter"]]],["leo_passes",[["impl Copy for VariableType"],["impl Copy for Guard"],["impl Copy for ReturnGuard"]]],["leo_retriever",[["impl Copy for NetworkName"]]],["leo_span",[["impl Copy for MultiByteChar"],["impl Copy for BytePos"],["impl Copy for CharPos"],["impl Copy for Span"],["impl Copy for Symbol"]]],["leo_test_framework",[["impl Copy for ParseType"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/marker/trait.Freeze.js b/trait.impl/core/marker/trait.Freeze.js index 4b76ee2803..7c90131891 100644 --- a/trait.impl/core/marker/trait.Freeze.js +++ b/trait.impl/core/marker/trait.Freeze.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_abnf",[["impl Freeze for Scope",1,["leo_abnf::Scope"]],["impl<'a> Freeze for Processor<'a>",1,["leo_abnf::Processor"]]]],["leo_ast",[["impl !Freeze for NodeBuilder",1,["leo_ast::common::node_builder::NodeBuilder"]],["impl !Freeze for IterationStatement",1,["leo_ast::statement::iteration::IterationStatement"]],["impl Freeze for AccessExpression",1,["leo_ast::expressions::access::AccessExpression"]],["impl Freeze for BinaryOperation",1,["leo_ast::expressions::binary::BinaryOperation"]],["impl Freeze for Expression",1,["leo_ast::expressions::Expression"]],["impl Freeze for Literal",1,["leo_ast::expressions::literal::Literal"]],["impl Freeze for UnaryOperation",1,["leo_ast::expressions::unary::UnaryOperation"]],["impl Freeze for CoreFunction",1,["leo_ast::functions::core_function::CoreFunction"]],["impl Freeze for Mode",1,["leo_ast::functions::mode::Mode"]],["impl Freeze for Variant",1,["leo_ast::functions::variant::Variant"]],["impl Freeze for GroupCoordinate",1,["leo_ast::groups::group_coordinate::GroupCoordinate"]],["impl Freeze for GroupLiteral",1,["leo_ast::groups::group_literal::GroupLiteral"]],["impl Freeze for AssertVariant",1,["leo_ast::statement::assert::AssertVariant"]],["impl Freeze for ConsoleFunction",1,["leo_ast::statement::console::console_function::ConsoleFunction"]],["impl Freeze for DeclarationType",1,["leo_ast::statement::definition::declaration_type::DeclarationType"]],["impl Freeze for Statement",1,["leo_ast::statement::Statement"]],["impl Freeze for CoreConstant",1,["leo_ast::types::core_constant::CoreConstant"]],["impl Freeze for IntegerType",1,["leo_ast::types::integer_type::IntegerType"]],["impl Freeze for Type",1,["leo_ast::types::type_::Type"]],["impl Freeze for Value",1,["leo_ast::value::Value"]],["impl Freeze for ArrayAccess",1,["leo_ast::access::array_access::ArrayAccess"]],["impl Freeze for AssociatedConstant",1,["leo_ast::access::associated_constant_access::AssociatedConstant"]],["impl Freeze for AssociatedFunction",1,["leo_ast::access::associated_function_access::AssociatedFunction"]],["impl Freeze for MemberAccess",1,["leo_ast::access::member_access::MemberAccess"]],["impl Freeze for TupleAccess",1,["leo_ast::access::tuple_access::TupleAccess"]],["impl Freeze for Identifier",1,["leo_ast::common::identifier::Identifier"]],["impl Freeze for Location",1,["leo_ast::common::location::Location"]],["impl Freeze for NodeBuilderInner",1,["leo_ast::common::node_builder::NodeBuilderInner"]],["impl Freeze for NonNegativeNumber",1,["leo_ast::common::positive_number::NonNegativeNumber"]],["impl Freeze for StaticString",1,["leo_ast::common::static_string::StaticString"]],["impl Freeze for ArrayExpression",1,["leo_ast::expressions::array::ArrayExpression"]],["impl Freeze for BinaryExpression",1,["leo_ast::expressions::binary::BinaryExpression"]],["impl Freeze for CallExpression",1,["leo_ast::expressions::call::CallExpression"]],["impl Freeze for CastExpression",1,["leo_ast::expressions::cast::CastExpression"]],["impl Freeze for ErrExpression",1,["leo_ast::expressions::err::ErrExpression"]],["impl Freeze for LocatorExpression",1,["leo_ast::expressions::locator::LocatorExpression"]],["impl Freeze for StructExpression",1,["leo_ast::expressions::struct_init::StructExpression"]],["impl Freeze for StructVariableInitializer",1,["leo_ast::expressions::struct_init::StructVariableInitializer"]],["impl Freeze for TernaryExpression",1,["leo_ast::expressions::ternary::TernaryExpression"]],["impl Freeze for TupleExpression",1,["leo_ast::expressions::tuple::TupleExpression"]],["impl Freeze for UnaryExpression",1,["leo_ast::expressions::unary::UnaryExpression"]],["impl Freeze for UnitExpression",1,["leo_ast::expressions::unit::UnitExpression"]],["impl Freeze for Annotation",1,["leo_ast::functions::annotation::Annotation"]],["impl Freeze for Input",1,["leo_ast::functions::input::Input"]],["impl Freeze for Output",1,["leo_ast::functions::output::Output"]],["impl Freeze for Function",1,["leo_ast::functions::Function"]],["impl Freeze for GroupTuple",1,["leo_ast::groups::group_literal::GroupTuple"]],["impl Freeze for Mapping",1,["leo_ast::mapping::Mapping"]],["impl Freeze for ProgramId",1,["leo_ast::program::program_id::ProgramId"]],["impl Freeze for ProgramScope",1,["leo_ast::program::program_scope::ProgramScope"]],["impl Freeze for Program",1,["leo_ast::program::Program"]],["impl Freeze for AssertStatement",1,["leo_ast::statement::assert::AssertStatement"]],["impl Freeze for AssignStatement",1,["leo_ast::statement::assign::AssignStatement"]],["impl Freeze for Block",1,["leo_ast::statement::block::Block"]],["impl Freeze for ConditionalStatement",1,["leo_ast::statement::conditional::ConditionalStatement"]],["impl Freeze for ConsoleStatement",1,["leo_ast::statement::console::console_statement::ConsoleStatement"]],["impl Freeze for ConstDeclaration",1,["leo_ast::statement::const_::ConstDeclaration"]],["impl Freeze for DefinitionStatement",1,["leo_ast::statement::definition::DefinitionStatement"]],["impl Freeze for ExpressionStatement",1,["leo_ast::statement::expression::ExpressionStatement"]],["impl Freeze for ReturnStatement",1,["leo_ast::statement::return_::ReturnStatement"]],["impl Freeze for Ast",1,["leo_ast::Ast"]],["impl Freeze for Member",1,["leo_ast::struct::member::Member"]],["impl Freeze for Composite",1,["leo_ast::struct::Composite"]],["impl Freeze for FunctionStub",1,["leo_ast::stub::function_stub::FunctionStub"]],["impl Freeze for Stub",1,["leo_ast::stub::Stub"]],["impl Freeze for ArrayType",1,["leo_ast::types::array::ArrayType"]],["impl Freeze for FutureType",1,["leo_ast::types::future::FutureType"]],["impl Freeze for MappingType",1,["leo_ast::types::mapping::MappingType"]],["impl Freeze for CompositeType",1,["leo_ast::types::struct_type::CompositeType"]],["impl Freeze for TupleType",1,["leo_ast::types::tuple::TupleType"]],["impl<'a> Freeze for DisplayDecimal<'a>",1,["leo_ast::expressions::literal::DisplayDecimal"]]]],["leo_compiler",[["impl Freeze for BuildOptions",1,["leo_compiler::options::BuildOptions"]],["impl Freeze for CompilerOptions",1,["leo_compiler::options::CompilerOptions"]],["impl Freeze for OutputOptions",1,["leo_compiler::options::OutputOptions"]],["impl<'a, N> !Freeze for Compiler<'a, N>",1,["leo_compiler::compiler::Compiler"]]]],["leo_errors",[["impl !Freeze for Handler",1,["leo_errors::emitter::Handler"]],["impl Freeze for AstError",1,["leo_errors::errors::ast::ast_errors::AstError"]],["impl Freeze for CliError",1,["leo_errors::errors::cli::cli_errors::CliError"]],["impl Freeze for CompilerError",1,["leo_errors::errors::compiler::compiler_errors::CompilerError"]],["impl Freeze for LeoError",1,["leo_errors::errors::LeoError"]],["impl Freeze for LeoWarning",1,["leo_errors::errors::LeoWarning"]],["impl Freeze for FlattenError",1,["leo_errors::errors::flattener::flattener_errors::FlattenError"]],["impl Freeze for LoopUnrollerError",1,["leo_errors::errors::loop_unroller::loop_unroller_errors::LoopUnrollerError"]],["impl Freeze for PackageError",1,["leo_errors::errors::package::package_errors::PackageError"]],["impl Freeze for ParserError",1,["leo_errors::errors::parser::parser_errors::ParserError"]],["impl Freeze for ParserWarning",1,["leo_errors::errors::parser::parser_warnings::ParserWarning"]],["impl Freeze for StaticAnalyzerError",1,["leo_errors::errors::static_analyzer::static_analyzer_error::StaticAnalyzerError"]],["impl Freeze for StaticAnalyzerWarning",1,["leo_errors::errors::static_analyzer::static_analyzer_warning::StaticAnalyzerWarning"]],["impl Freeze for TypeCheckerError",1,["leo_errors::errors::type_checker::type_checker_error::TypeCheckerError"]],["impl Freeze for TypeCheckerWarning",1,["leo_errors::errors::type_checker::type_checker_warning::TypeCheckerWarning"]],["impl Freeze for UtilError",1,["leo_errors::errors::utils::util_errors::UtilError"]],["impl Freeze for Backtraced",1,["leo_errors::common::backtraced::Backtraced"]],["impl Freeze for Formatted",1,["leo_errors::common::formatted::Formatted"]],["impl Freeze for BufferEmitter",1,["leo_errors::emitter::BufferEmitter"]],["impl Freeze for HandlerInner",1,["leo_errors::emitter::HandlerInner"]],["impl Freeze for StderrEmitter",1,["leo_errors::emitter::StderrEmitter"]],["impl<T> Freeze for Buffer<T>",1,["leo_errors::emitter::Buffer"]]]],["leo_lang",[["impl Freeze for Commands",1,["leo_lang::cli::cli::Commands"]],["impl Freeze for Account",1,["leo_lang::cli::commands::account::Account"]],["impl Freeze for ExampleVariant",1,["leo_lang::cli::commands::example::ExampleVariant"]],["impl Freeze for QueryCommands",1,["leo_lang::cli::commands::query::QueryCommands"]],["impl Freeze for CLI",1,["leo_lang::cli::cli::CLI"]],["impl Freeze for LeoAdd",1,["leo_lang::cli::commands::add::LeoAdd"]],["impl Freeze for LeoBuild",1,["leo_lang::cli::commands::build::LeoBuild"]],["impl Freeze for LeoClean",1,["leo_lang::cli::commands::clean::LeoClean"]],["impl Freeze for Deploy",1,["leo_lang::cli::commands::deploy::Deploy"]],["impl Freeze for LeoExample",1,["leo_lang::cli::commands::example::LeoExample"]],["impl Freeze for LeoExecute",1,["leo_lang::cli::commands::execute::LeoExecute"]],["impl Freeze for LeoNew",1,["leo_lang::cli::commands::new::LeoNew"]],["impl Freeze for LeoBlock",1,["leo_lang::cli::commands::query::block::LeoBlock"]],["impl Freeze for LeoCommittee",1,["leo_lang::cli::commands::query::committee::LeoCommittee"]],["impl Freeze for LeoMempool",1,["leo_lang::cli::commands::query::mempool::LeoMempool"]],["impl Freeze for LeoPeers",1,["leo_lang::cli::commands::query::peers::LeoPeers"]],["impl Freeze for LeoProgram",1,["leo_lang::cli::commands::query::program::LeoProgram"]],["impl Freeze for StateRoot",1,["leo_lang::cli::commands::query::state_root::StateRoot"]],["impl Freeze for LeoQuery",1,["leo_lang::cli::commands::query::LeoQuery"]],["impl Freeze for LeoTransaction",1,["leo_lang::cli::commands::query::transaction::LeoTransaction"]],["impl Freeze for LeoRemove",1,["leo_lang::cli::commands::remove::LeoRemove"]],["impl Freeze for LeoRun",1,["leo_lang::cli::commands::run::LeoRun"]],["impl Freeze for BuildOptions",1,["leo_lang::cli::commands::BuildOptions"]],["impl Freeze for FeeOptions",1,["leo_lang::cli::commands::FeeOptions"]],["impl Freeze for LeoUpdate",1,["leo_lang::cli::commands::update::LeoUpdate"]],["impl Freeze for Context",1,["leo_lang::cli::helpers::context::Context"]],["impl Freeze for Updater",1,["leo_lang::cli::helpers::updater::Updater"]],["impl<F, T> Freeze for Format<F, T>
where\n F: Freeze,\n T: Freeze,
",1,["leo_lang::cli::helpers::logger::Format"]]]],["leo_package",[["impl Freeze for Snapshot",1,["leo_package::outputs::ast_snapshot::Snapshot"]],["impl Freeze for BuildDirectory",1,["leo_package::build::directory::BuildDirectory"]],["impl Freeze for ImportsDirectory",1,["leo_package::imports::directory::ImportsDirectory"]],["impl Freeze for InputsDirectory",1,["leo_package::inputs::directory::InputsDirectory"]],["impl Freeze for SnapshotFile",1,["leo_package::outputs::ast_snapshot::SnapshotFile"]],["impl Freeze for ChecksumFile",1,["leo_package::outputs::checksum::ChecksumFile"]],["impl Freeze for CircuitFile",1,["leo_package::outputs::circuit::CircuitFile"]],["impl Freeze for OutputsDirectory",1,["leo_package::outputs::directory::OutputsDirectory"]],["impl Freeze for Package",1,["leo_package::package::Package"]],["impl Freeze for Gitignore",1,["leo_package::root::gitignore::Gitignore"]],["impl Freeze for SourceDirectory",1,["leo_package::source::directory::SourceDirectory"]],["impl Freeze for MainFile",1,["leo_package::source::main::MainFile"]],["impl<N> Freeze for Env<N>
where\n <N as Environment>::Field: Freeze,\n <N as Environment>::Scalar: Freeze,
",1,["leo_package::root::env::Env"]]]],["leo_parser",[["impl Freeze for Delimiter",1,["leo_parser::tokenizer::token::Delimiter"]],["impl Freeze for Token",1,["leo_parser::tokenizer::token::Token"]],["impl Freeze for SpannedToken",1,["leo_parser::tokenizer::lexer::SpannedToken"]],["impl<'a, N> Freeze for ParserContext<'a, N>",1,["leo_parser::parser::context::ParserContext"]]]],["leo_passes",[["impl !Freeze for Assigner",1,["leo_passes::common::assigner::Assigner"]],["impl !Freeze for TypeTable",1,["leo_passes::common::type_table::TypeTable"]],["impl Freeze for VariableType",1,["leo_passes::common::symbol_table::variable_symbol::VariableType"]],["impl Freeze for Guard",1,["leo_passes::flattening::flattener::Guard"]],["impl Freeze for ReturnGuard",1,["leo_passes::flattening::flattener::ReturnGuard"]],["impl Freeze for Clusivity",1,["leo_passes::loop_unrolling::range_iterator::Clusivity"]],["impl Freeze for AssignerInner",1,["leo_passes::common::assigner::AssignerInner"]],["impl Freeze for ConstantPropagationTable",1,["leo_passes::common::constant_propagation_table::ConstantPropagationTable"]],["impl Freeze for RenameTable",1,["leo_passes::common::rename_table::RenameTable"]],["impl Freeze for FunctionSymbol",1,["leo_passes::common::symbol_table::function_symbol::FunctionSymbol"]],["impl Freeze for SymbolTable",1,["leo_passes::common::symbol_table::SymbolTable"]],["impl Freeze for VariableSymbol",1,["leo_passes::common::symbol_table::variable_symbol::VariableSymbol"]],["impl Freeze for AwaitChecker",1,["leo_passes::static_analysis::await_checker::AwaitChecker"]],["impl Freeze for ScopeState",1,["leo_passes::type_checking::scope_state::ScopeState"]],["impl<'a> !Freeze for Unroller<'a>",1,["leo_passes::loop_unrolling::unroller::Unroller"]],["impl<'a> Freeze for CodeGenerator<'a>",1,["leo_passes::code_generation::generator::CodeGenerator"]],["impl<'a> Freeze for DeadCodeEliminator<'a>",1,["leo_passes::dead_code_elimination::dead_code_eliminator::DeadCodeEliminator"]],["impl<'a> Freeze for Destructurer<'a>",1,["leo_passes::destructuring::destructurer::Destructurer"]],["impl<'a> Freeze for Flattener<'a>",1,["leo_passes::flattening::flattener::Flattener"]],["impl<'a> Freeze for AssignmentRenamer<'a>",1,["leo_passes::function_inlining::assignment_renamer::AssignmentRenamer"]],["impl<'a> Freeze for FunctionInliner<'a>",1,["leo_passes::function_inlining::function_inliner::FunctionInliner"]],["impl<'a> Freeze for StaticSingleAssigner<'a>",1,["leo_passes::static_single_assignment::static_single_assigner::StaticSingleAssigner"]],["impl<'a> Freeze for SymbolTableCreator<'a>",1,["leo_passes::symbol_table_creation::creator::SymbolTableCreator"]],["impl<'a, N> !Freeze for TypeChecker<'a, N>",1,["leo_passes::type_checking::checker::TypeChecker"]],["impl<'a, N> Freeze for StaticAnalyzer<'a, N>",1,["leo_passes::static_analysis::analyzer::StaticAnalyzer"]],["impl<F> Freeze for Replacer<F>
where\n F: Freeze,
",1,["leo_passes::common::replacer::Replacer"]],["impl<I> Freeze for RangeIterator<I>
where\n I: Freeze,
",1,["leo_passes::loop_unrolling::range_iterator::RangeIterator"]],["impl<N> Freeze for DiGraphError<N>",1,["leo_passes::common::graph::DiGraphError"]],["impl<N> Freeze for DiGraph<N>",1,["leo_passes::common::graph::DiGraph"]],["impl<N> Freeze for TreeNode<N>",1,["leo_passes::common::tree_node::TreeNode"]]]],["leo_retriever",[["impl Freeze for Location",1,["leo_retriever::program_context::location::Location"]],["impl Freeze for NetworkName",1,["leo_retriever::program_context::network_name::NetworkName"]],["impl Freeze for Dependency",1,["leo_retriever::program_context::dependency::Dependency"]],["impl Freeze for LockFileEntry",1,["leo_retriever::program_context::lock_file_entry::LockFileEntry"]],["impl Freeze for Manifest",1,["leo_retriever::program_context::manifest::Manifest"]],["impl Freeze for ProgramContext",1,["leo_retriever::program_context::ProgramContext"]],["impl<N> Freeze for Retriever<N>",1,["leo_retriever::retriever::Retriever"]]]],["leo_span",[["impl !Freeze for SourceMap",1,["leo_span::source_map::SourceMap"]],["impl !Freeze for Interner",1,["leo_span::symbol::Interner"]],["impl !Freeze for SessionGlobals",1,["leo_span::symbol::SessionGlobals"]],["impl Freeze for FileName",1,["leo_span::source_map::FileName"]],["impl Freeze for InternedStr",1,["leo_span::symbol::InternedStr"]],["impl Freeze for LineCol",1,["leo_span::source_map::LineCol"]],["impl Freeze for MultiByteChar",1,["leo_span::source_map::MultiByteChar"]],["impl Freeze for SourceFile",1,["leo_span::source_map::SourceFile"]],["impl Freeze for SourceMapInner",1,["leo_span::source_map::SourceMapInner"]],["impl Freeze for SpanLocation",1,["leo_span::source_map::SpanLocation"]],["impl Freeze for BytePos",1,["leo_span::span::BytePos"]],["impl Freeze for CharPos",1,["leo_span::span::CharPos"]],["impl Freeze for Span",1,["leo_span::span::Span"]],["impl Freeze for SpanMapVisitor",1,["leo_span::span_json::SpanMapVisitor"]],["impl Freeze for InnerInterner",1,["leo_span::symbol::InnerInterner"]],["impl Freeze for Symbol",1,["leo_span::symbol::Symbol"]]]],["leo_test_framework",[["impl Freeze for TestError",1,["leo_test_framework::error::TestError"]],["impl Freeze for ParseType",1,["leo_test_framework::runner::ParseType"]],["impl Freeze for TestExpectationMode",1,["leo_test_framework::test::TestExpectationMode"]],["impl Freeze for TestFailure",1,["leo_test_framework::error::TestFailure"]],["impl Freeze for TestExpectation",1,["leo_test_framework::output::TestExpectation"]],["impl Freeze for Test",1,["leo_test_framework::runner::Test"]],["impl Freeze for TestCases",1,["leo_test_framework::runner::TestCases"]],["impl Freeze for TestConfig",1,["leo_test_framework::test::TestConfig"]]]]]); + var implementors = Object.fromEntries([["leo_abnf",[["impl Freeze for Scope",1,["leo_abnf::Scope"]],["impl<'a> Freeze for Processor<'a>",1,["leo_abnf::Processor"]]]],["leo_ast",[["impl !Freeze for NodeBuilder",1,["leo_ast::common::node_builder::NodeBuilder"]],["impl !Freeze for IterationStatement",1,["leo_ast::statement::iteration::IterationStatement"]],["impl Freeze for AccessExpression",1,["leo_ast::expressions::access::AccessExpression"]],["impl Freeze for BinaryOperation",1,["leo_ast::expressions::binary::BinaryOperation"]],["impl Freeze for Expression",1,["leo_ast::expressions::Expression"]],["impl Freeze for Literal",1,["leo_ast::expressions::literal::Literal"]],["impl Freeze for UnaryOperation",1,["leo_ast::expressions::unary::UnaryOperation"]],["impl Freeze for CoreFunction",1,["leo_ast::functions::core_function::CoreFunction"]],["impl Freeze for Mode",1,["leo_ast::functions::mode::Mode"]],["impl Freeze for Variant",1,["leo_ast::functions::variant::Variant"]],["impl Freeze for GroupCoordinate",1,["leo_ast::groups::group_coordinate::GroupCoordinate"]],["impl Freeze for GroupLiteral",1,["leo_ast::groups::group_literal::GroupLiteral"]],["impl Freeze for AssertVariant",1,["leo_ast::statement::assert::AssertVariant"]],["impl Freeze for ConsoleFunction",1,["leo_ast::statement::console::console_function::ConsoleFunction"]],["impl Freeze for DeclarationType",1,["leo_ast::statement::definition::declaration_type::DeclarationType"]],["impl Freeze for Statement",1,["leo_ast::statement::Statement"]],["impl Freeze for CoreConstant",1,["leo_ast::types::core_constant::CoreConstant"]],["impl Freeze for IntegerType",1,["leo_ast::types::integer_type::IntegerType"]],["impl Freeze for Type",1,["leo_ast::types::type_::Type"]],["impl Freeze for Value",1,["leo_ast::value::Value"]],["impl Freeze for ArrayAccess",1,["leo_ast::access::array_access::ArrayAccess"]],["impl Freeze for AssociatedConstant",1,["leo_ast::access::associated_constant_access::AssociatedConstant"]],["impl Freeze for AssociatedFunction",1,["leo_ast::access::associated_function_access::AssociatedFunction"]],["impl Freeze for MemberAccess",1,["leo_ast::access::member_access::MemberAccess"]],["impl Freeze for TupleAccess",1,["leo_ast::access::tuple_access::TupleAccess"]],["impl Freeze for Identifier",1,["leo_ast::common::identifier::Identifier"]],["impl Freeze for Location",1,["leo_ast::common::location::Location"]],["impl Freeze for NodeBuilderInner",1,["leo_ast::common::node_builder::NodeBuilderInner"]],["impl Freeze for NonNegativeNumber",1,["leo_ast::common::positive_number::NonNegativeNumber"]],["impl Freeze for StaticString",1,["leo_ast::common::static_string::StaticString"]],["impl Freeze for ArrayExpression",1,["leo_ast::expressions::array::ArrayExpression"]],["impl Freeze for BinaryExpression",1,["leo_ast::expressions::binary::BinaryExpression"]],["impl Freeze for CallExpression",1,["leo_ast::expressions::call::CallExpression"]],["impl Freeze for CastExpression",1,["leo_ast::expressions::cast::CastExpression"]],["impl Freeze for ErrExpression",1,["leo_ast::expressions::err::ErrExpression"]],["impl Freeze for LocatorExpression",1,["leo_ast::expressions::locator::LocatorExpression"]],["impl Freeze for StructExpression",1,["leo_ast::expressions::struct_init::StructExpression"]],["impl Freeze for StructVariableInitializer",1,["leo_ast::expressions::struct_init::StructVariableInitializer"]],["impl Freeze for TernaryExpression",1,["leo_ast::expressions::ternary::TernaryExpression"]],["impl Freeze for TupleExpression",1,["leo_ast::expressions::tuple::TupleExpression"]],["impl Freeze for UnaryExpression",1,["leo_ast::expressions::unary::UnaryExpression"]],["impl Freeze for UnitExpression",1,["leo_ast::expressions::unit::UnitExpression"]],["impl Freeze for Annotation",1,["leo_ast::functions::annotation::Annotation"]],["impl Freeze for Input",1,["leo_ast::functions::input::Input"]],["impl Freeze for Output",1,["leo_ast::functions::output::Output"]],["impl Freeze for Function",1,["leo_ast::functions::Function"]],["impl Freeze for GroupTuple",1,["leo_ast::groups::group_literal::GroupTuple"]],["impl Freeze for Mapping",1,["leo_ast::mapping::Mapping"]],["impl Freeze for ProgramId",1,["leo_ast::program::program_id::ProgramId"]],["impl Freeze for ProgramScope",1,["leo_ast::program::program_scope::ProgramScope"]],["impl Freeze for Program",1,["leo_ast::program::Program"]],["impl Freeze for AssertStatement",1,["leo_ast::statement::assert::AssertStatement"]],["impl Freeze for AssignStatement",1,["leo_ast::statement::assign::AssignStatement"]],["impl Freeze for Block",1,["leo_ast::statement::block::Block"]],["impl Freeze for ConditionalStatement",1,["leo_ast::statement::conditional::ConditionalStatement"]],["impl Freeze for ConsoleStatement",1,["leo_ast::statement::console::console_statement::ConsoleStatement"]],["impl Freeze for ConstDeclaration",1,["leo_ast::statement::const_::ConstDeclaration"]],["impl Freeze for DefinitionStatement",1,["leo_ast::statement::definition::DefinitionStatement"]],["impl Freeze for ExpressionStatement",1,["leo_ast::statement::expression::ExpressionStatement"]],["impl Freeze for ReturnStatement",1,["leo_ast::statement::return_::ReturnStatement"]],["impl Freeze for Ast",1,["leo_ast::Ast"]],["impl Freeze for Member",1,["leo_ast::struct::member::Member"]],["impl Freeze for Composite",1,["leo_ast::struct::Composite"]],["impl Freeze for FunctionStub",1,["leo_ast::stub::function_stub::FunctionStub"]],["impl Freeze for Stub",1,["leo_ast::stub::Stub"]],["impl Freeze for ArrayType",1,["leo_ast::types::array::ArrayType"]],["impl Freeze for FutureType",1,["leo_ast::types::future::FutureType"]],["impl Freeze for MappingType",1,["leo_ast::types::mapping::MappingType"]],["impl Freeze for CompositeType",1,["leo_ast::types::struct_type::CompositeType"]],["impl Freeze for TupleType",1,["leo_ast::types::tuple::TupleType"]],["impl<'a> Freeze for DisplayDecimal<'a>",1,["leo_ast::expressions::literal::DisplayDecimal"]]]],["leo_compiler",[["impl Freeze for BuildOptions",1,["leo_compiler::options::BuildOptions"]],["impl Freeze for CompilerOptions",1,["leo_compiler::options::CompilerOptions"]],["impl Freeze for OutputOptions",1,["leo_compiler::options::OutputOptions"]],["impl<'a, N> !Freeze for Compiler<'a, N>",1,["leo_compiler::compiler::Compiler"]]]],["leo_errors",[["impl !Freeze for Handler",1,["leo_errors::emitter::Handler"]],["impl Freeze for AstError",1,["leo_errors::errors::ast::ast_errors::AstError"]],["impl Freeze for CliError",1,["leo_errors::errors::cli::cli_errors::CliError"]],["impl Freeze for CompilerError",1,["leo_errors::errors::compiler::compiler_errors::CompilerError"]],["impl Freeze for LeoError",1,["leo_errors::errors::LeoError"]],["impl Freeze for LeoWarning",1,["leo_errors::errors::LeoWarning"]],["impl Freeze for FlattenError",1,["leo_errors::errors::flattener::flattener_errors::FlattenError"]],["impl Freeze for LoopUnrollerError",1,["leo_errors::errors::loop_unroller::loop_unroller_errors::LoopUnrollerError"]],["impl Freeze for PackageError",1,["leo_errors::errors::package::package_errors::PackageError"]],["impl Freeze for ParserError",1,["leo_errors::errors::parser::parser_errors::ParserError"]],["impl Freeze for ParserWarning",1,["leo_errors::errors::parser::parser_warnings::ParserWarning"]],["impl Freeze for StaticAnalyzerError",1,["leo_errors::errors::static_analyzer::static_analyzer_error::StaticAnalyzerError"]],["impl Freeze for StaticAnalyzerWarning",1,["leo_errors::errors::static_analyzer::static_analyzer_warning::StaticAnalyzerWarning"]],["impl Freeze for TypeCheckerError",1,["leo_errors::errors::type_checker::type_checker_error::TypeCheckerError"]],["impl Freeze for TypeCheckerWarning",1,["leo_errors::errors::type_checker::type_checker_warning::TypeCheckerWarning"]],["impl Freeze for UtilError",1,["leo_errors::errors::utils::util_errors::UtilError"]],["impl Freeze for Backtraced",1,["leo_errors::common::backtraced::Backtraced"]],["impl Freeze for Formatted",1,["leo_errors::common::formatted::Formatted"]],["impl Freeze for BufferEmitter",1,["leo_errors::emitter::BufferEmitter"]],["impl Freeze for HandlerInner",1,["leo_errors::emitter::HandlerInner"]],["impl Freeze for StderrEmitter",1,["leo_errors::emitter::StderrEmitter"]],["impl<T> Freeze for Buffer<T>",1,["leo_errors::emitter::Buffer"]]]],["leo_lang",[["impl Freeze for Commands",1,["leo_lang::cli::cli::Commands"]],["impl Freeze for Account",1,["leo_lang::cli::commands::account::Account"]],["impl Freeze for ExampleVariant",1,["leo_lang::cli::commands::example::ExampleVariant"]],["impl Freeze for QueryCommands",1,["leo_lang::cli::commands::query::QueryCommands"]],["impl Freeze for CLI",1,["leo_lang::cli::cli::CLI"]],["impl Freeze for LeoAdd",1,["leo_lang::cli::commands::add::LeoAdd"]],["impl Freeze for LeoBuild",1,["leo_lang::cli::commands::build::LeoBuild"]],["impl Freeze for LeoClean",1,["leo_lang::cli::commands::clean::LeoClean"]],["impl Freeze for Deploy",1,["leo_lang::cli::commands::deploy::Deploy"]],["impl Freeze for LeoExample",1,["leo_lang::cli::commands::example::LeoExample"]],["impl Freeze for LeoExecute",1,["leo_lang::cli::commands::execute::LeoExecute"]],["impl Freeze for LeoNew",1,["leo_lang::cli::commands::new::LeoNew"]],["impl Freeze for LeoBlock",1,["leo_lang::cli::commands::query::block::LeoBlock"]],["impl Freeze for LeoCommittee",1,["leo_lang::cli::commands::query::committee::LeoCommittee"]],["impl Freeze for LeoMempool",1,["leo_lang::cli::commands::query::mempool::LeoMempool"]],["impl Freeze for LeoPeers",1,["leo_lang::cli::commands::query::peers::LeoPeers"]],["impl Freeze for LeoProgram",1,["leo_lang::cli::commands::query::program::LeoProgram"]],["impl Freeze for StateRoot",1,["leo_lang::cli::commands::query::state_root::StateRoot"]],["impl Freeze for LeoQuery",1,["leo_lang::cli::commands::query::LeoQuery"]],["impl Freeze for LeoTransaction",1,["leo_lang::cli::commands::query::transaction::LeoTransaction"]],["impl Freeze for LeoRemove",1,["leo_lang::cli::commands::remove::LeoRemove"]],["impl Freeze for LeoRun",1,["leo_lang::cli::commands::run::LeoRun"]],["impl Freeze for BuildOptions",1,["leo_lang::cli::commands::BuildOptions"]],["impl Freeze for FeeOptions",1,["leo_lang::cli::commands::FeeOptions"]],["impl Freeze for LeoUpdate",1,["leo_lang::cli::commands::update::LeoUpdate"]],["impl Freeze for Context",1,["leo_lang::cli::helpers::context::Context"]],["impl Freeze for Updater",1,["leo_lang::cli::helpers::updater::Updater"]],["impl<F, T> Freeze for Format<F, T>
where\n F: Freeze,\n T: Freeze,
",1,["leo_lang::cli::helpers::logger::Format"]]]],["leo_package",[["impl Freeze for Snapshot",1,["leo_package::outputs::ast_snapshot::Snapshot"]],["impl Freeze for BuildDirectory",1,["leo_package::build::directory::BuildDirectory"]],["impl Freeze for ImportsDirectory",1,["leo_package::imports::directory::ImportsDirectory"]],["impl Freeze for InputsDirectory",1,["leo_package::inputs::directory::InputsDirectory"]],["impl Freeze for SnapshotFile",1,["leo_package::outputs::ast_snapshot::SnapshotFile"]],["impl Freeze for ChecksumFile",1,["leo_package::outputs::checksum::ChecksumFile"]],["impl Freeze for CircuitFile",1,["leo_package::outputs::circuit::CircuitFile"]],["impl Freeze for OutputsDirectory",1,["leo_package::outputs::directory::OutputsDirectory"]],["impl Freeze for Package",1,["leo_package::package::Package"]],["impl Freeze for Gitignore",1,["leo_package::root::gitignore::Gitignore"]],["impl Freeze for SourceDirectory",1,["leo_package::source::directory::SourceDirectory"]],["impl Freeze for MainFile",1,["leo_package::source::main::MainFile"]],["impl<N> Freeze for Env<N>
where\n <N as Environment>::Field: Freeze,\n <N as Environment>::Scalar: Freeze,
",1,["leo_package::root::env::Env"]]]],["leo_parser",[["impl Freeze for Delimiter",1,["leo_parser::tokenizer::token::Delimiter"]],["impl Freeze for Token",1,["leo_parser::tokenizer::token::Token"]],["impl Freeze for SpannedToken",1,["leo_parser::tokenizer::lexer::SpannedToken"]],["impl<'a, N> Freeze for ParserContext<'a, N>",1,["leo_parser::parser::context::ParserContext"]]]],["leo_passes",[["impl !Freeze for Assigner",1,["leo_passes::common::assigner::Assigner"]],["impl !Freeze for TypeTable",1,["leo_passes::common::type_table::TypeTable"]],["impl Freeze for VariableType",1,["leo_passes::common::symbol_table::variable_symbol::VariableType"]],["impl Freeze for Guard",1,["leo_passes::flattening::flattener::Guard"]],["impl Freeze for ReturnGuard",1,["leo_passes::flattening::flattener::ReturnGuard"]],["impl Freeze for Clusivity",1,["leo_passes::loop_unrolling::range_iterator::Clusivity"]],["impl Freeze for AssignerInner",1,["leo_passes::common::assigner::AssignerInner"]],["impl Freeze for ConstantPropagationTable",1,["leo_passes::common::constant_propagation_table::ConstantPropagationTable"]],["impl Freeze for RenameTable",1,["leo_passes::common::rename_table::RenameTable"]],["impl Freeze for FunctionSymbol",1,["leo_passes::common::symbol_table::function_symbol::FunctionSymbol"]],["impl Freeze for SymbolTable",1,["leo_passes::common::symbol_table::SymbolTable"]],["impl Freeze for VariableSymbol",1,["leo_passes::common::symbol_table::variable_symbol::VariableSymbol"]],["impl Freeze for AwaitChecker",1,["leo_passes::static_analysis::await_checker::AwaitChecker"]],["impl Freeze for ScopeState",1,["leo_passes::type_checking::scope_state::ScopeState"]],["impl<'a> !Freeze for Unroller<'a>",1,["leo_passes::loop_unrolling::unroller::Unroller"]],["impl<'a> Freeze for CodeGenerator<'a>",1,["leo_passes::code_generation::generator::CodeGenerator"]],["impl<'a> Freeze for DeadCodeEliminator<'a>",1,["leo_passes::dead_code_elimination::dead_code_eliminator::DeadCodeEliminator"]],["impl<'a> Freeze for Destructurer<'a>",1,["leo_passes::destructuring::destructurer::Destructurer"]],["impl<'a> Freeze for Flattener<'a>",1,["leo_passes::flattening::flattener::Flattener"]],["impl<'a> Freeze for AssignmentRenamer<'a>",1,["leo_passes::function_inlining::assignment_renamer::AssignmentRenamer"]],["impl<'a> Freeze for FunctionInliner<'a>",1,["leo_passes::function_inlining::function_inliner::FunctionInliner"]],["impl<'a> Freeze for StaticSingleAssigner<'a>",1,["leo_passes::static_single_assignment::static_single_assigner::StaticSingleAssigner"]],["impl<'a> Freeze for SymbolTableCreator<'a>",1,["leo_passes::symbol_table_creation::creator::SymbolTableCreator"]],["impl<'a, N> !Freeze for TypeChecker<'a, N>",1,["leo_passes::type_checking::checker::TypeChecker"]],["impl<'a, N> Freeze for StaticAnalyzer<'a, N>",1,["leo_passes::static_analysis::analyzer::StaticAnalyzer"]],["impl<F> Freeze for Replacer<F>
where\n F: Freeze,
",1,["leo_passes::common::replacer::Replacer"]],["impl<I> Freeze for RangeIterator<I>
where\n I: Freeze,
",1,["leo_passes::loop_unrolling::range_iterator::RangeIterator"]],["impl<N> Freeze for DiGraphError<N>",1,["leo_passes::common::graph::DiGraphError"]],["impl<N> Freeze for DiGraph<N>",1,["leo_passes::common::graph::DiGraph"]],["impl<N> Freeze for TreeNode<N>",1,["leo_passes::common::tree_node::TreeNode"]]]],["leo_retriever",[["impl Freeze for Location",1,["leo_retriever::program_context::location::Location"]],["impl Freeze for NetworkName",1,["leo_retriever::program_context::network_name::NetworkName"]],["impl Freeze for Dependency",1,["leo_retriever::program_context::dependency::Dependency"]],["impl Freeze for LockFileEntry",1,["leo_retriever::program_context::lock_file_entry::LockFileEntry"]],["impl Freeze for Manifest",1,["leo_retriever::program_context::manifest::Manifest"]],["impl Freeze for ProgramContext",1,["leo_retriever::program_context::ProgramContext"]],["impl<N> Freeze for Retriever<N>",1,["leo_retriever::retriever::Retriever"]]]],["leo_span",[["impl !Freeze for SourceMap",1,["leo_span::source_map::SourceMap"]],["impl !Freeze for Interner",1,["leo_span::symbol::Interner"]],["impl !Freeze for SessionGlobals",1,["leo_span::symbol::SessionGlobals"]],["impl Freeze for FileName",1,["leo_span::source_map::FileName"]],["impl Freeze for InternedStr",1,["leo_span::symbol::InternedStr"]],["impl Freeze for LineCol",1,["leo_span::source_map::LineCol"]],["impl Freeze for MultiByteChar",1,["leo_span::source_map::MultiByteChar"]],["impl Freeze for SourceFile",1,["leo_span::source_map::SourceFile"]],["impl Freeze for SourceMapInner",1,["leo_span::source_map::SourceMapInner"]],["impl Freeze for SpanLocation",1,["leo_span::source_map::SpanLocation"]],["impl Freeze for BytePos",1,["leo_span::span::BytePos"]],["impl Freeze for CharPos",1,["leo_span::span::CharPos"]],["impl Freeze for Span",1,["leo_span::span::Span"]],["impl Freeze for SpanMapVisitor",1,["leo_span::span_json::SpanMapVisitor"]],["impl Freeze for InnerInterner",1,["leo_span::symbol::InnerInterner"]],["impl Freeze for Symbol",1,["leo_span::symbol::Symbol"]]]],["leo_test_framework",[["impl Freeze for TestError",1,["leo_test_framework::error::TestError"]],["impl Freeze for ParseType",1,["leo_test_framework::runner::ParseType"]],["impl Freeze for TestExpectationMode",1,["leo_test_framework::test::TestExpectationMode"]],["impl Freeze for TestFailure",1,["leo_test_framework::error::TestFailure"]],["impl Freeze for TestExpectation",1,["leo_test_framework::output::TestExpectation"]],["impl Freeze for Test",1,["leo_test_framework::runner::Test"]],["impl Freeze for TestCases",1,["leo_test_framework::runner::TestCases"]],["impl Freeze for TestConfig",1,["leo_test_framework::test::TestConfig"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/marker/trait.Send.js b/trait.impl/core/marker/trait.Send.js index 0c42a7b882..0db3963827 100644 --- a/trait.impl/core/marker/trait.Send.js +++ b/trait.impl/core/marker/trait.Send.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_abnf",[["impl Send for Scope",1,["leo_abnf::Scope"]],["impl<'a> Send for Processor<'a>",1,["leo_abnf::Processor"]]]],["leo_ast",[["impl Send for AccessExpression",1,["leo_ast::expressions::access::AccessExpression"]],["impl Send for BinaryOperation",1,["leo_ast::expressions::binary::BinaryOperation"]],["impl Send for Expression",1,["leo_ast::expressions::Expression"]],["impl Send for Literal",1,["leo_ast::expressions::literal::Literal"]],["impl Send for UnaryOperation",1,["leo_ast::expressions::unary::UnaryOperation"]],["impl Send for CoreFunction",1,["leo_ast::functions::core_function::CoreFunction"]],["impl Send for Mode",1,["leo_ast::functions::mode::Mode"]],["impl Send for Variant",1,["leo_ast::functions::variant::Variant"]],["impl Send for GroupCoordinate",1,["leo_ast::groups::group_coordinate::GroupCoordinate"]],["impl Send for GroupLiteral",1,["leo_ast::groups::group_literal::GroupLiteral"]],["impl Send for AssertVariant",1,["leo_ast::statement::assert::AssertVariant"]],["impl Send for ConsoleFunction",1,["leo_ast::statement::console::console_function::ConsoleFunction"]],["impl Send for DeclarationType",1,["leo_ast::statement::definition::declaration_type::DeclarationType"]],["impl Send for Statement",1,["leo_ast::statement::Statement"]],["impl Send for CoreConstant",1,["leo_ast::types::core_constant::CoreConstant"]],["impl Send for IntegerType",1,["leo_ast::types::integer_type::IntegerType"]],["impl Send for Type",1,["leo_ast::types::type_::Type"]],["impl Send for Value",1,["leo_ast::value::Value"]],["impl Send for ArrayAccess",1,["leo_ast::access::array_access::ArrayAccess"]],["impl Send for AssociatedConstant",1,["leo_ast::access::associated_constant_access::AssociatedConstant"]],["impl Send for AssociatedFunction",1,["leo_ast::access::associated_function_access::AssociatedFunction"]],["impl Send for MemberAccess",1,["leo_ast::access::member_access::MemberAccess"]],["impl Send for TupleAccess",1,["leo_ast::access::tuple_access::TupleAccess"]],["impl Send for Identifier",1,["leo_ast::common::identifier::Identifier"]],["impl Send for Location",1,["leo_ast::common::location::Location"]],["impl Send for NodeBuilder",1,["leo_ast::common::node_builder::NodeBuilder"]],["impl Send for NodeBuilderInner",1,["leo_ast::common::node_builder::NodeBuilderInner"]],["impl Send for NonNegativeNumber",1,["leo_ast::common::positive_number::NonNegativeNumber"]],["impl Send for StaticString",1,["leo_ast::common::static_string::StaticString"]],["impl Send for ArrayExpression",1,["leo_ast::expressions::array::ArrayExpression"]],["impl Send for BinaryExpression",1,["leo_ast::expressions::binary::BinaryExpression"]],["impl Send for CallExpression",1,["leo_ast::expressions::call::CallExpression"]],["impl Send for CastExpression",1,["leo_ast::expressions::cast::CastExpression"]],["impl Send for ErrExpression",1,["leo_ast::expressions::err::ErrExpression"]],["impl Send for LocatorExpression",1,["leo_ast::expressions::locator::LocatorExpression"]],["impl Send for StructExpression",1,["leo_ast::expressions::struct_init::StructExpression"]],["impl Send for StructVariableInitializer",1,["leo_ast::expressions::struct_init::StructVariableInitializer"]],["impl Send for TernaryExpression",1,["leo_ast::expressions::ternary::TernaryExpression"]],["impl Send for TupleExpression",1,["leo_ast::expressions::tuple::TupleExpression"]],["impl Send for UnaryExpression",1,["leo_ast::expressions::unary::UnaryExpression"]],["impl Send for UnitExpression",1,["leo_ast::expressions::unit::UnitExpression"]],["impl Send for Annotation",1,["leo_ast::functions::annotation::Annotation"]],["impl Send for Input",1,["leo_ast::functions::input::Input"]],["impl Send for Output",1,["leo_ast::functions::output::Output"]],["impl Send for Function",1,["leo_ast::functions::Function"]],["impl Send for GroupTuple",1,["leo_ast::groups::group_literal::GroupTuple"]],["impl Send for Mapping",1,["leo_ast::mapping::Mapping"]],["impl Send for ProgramId",1,["leo_ast::program::program_id::ProgramId"]],["impl Send for ProgramScope",1,["leo_ast::program::program_scope::ProgramScope"]],["impl Send for Program",1,["leo_ast::program::Program"]],["impl Send for AssertStatement",1,["leo_ast::statement::assert::AssertStatement"]],["impl Send for AssignStatement",1,["leo_ast::statement::assign::AssignStatement"]],["impl Send for Block",1,["leo_ast::statement::block::Block"]],["impl Send for ConditionalStatement",1,["leo_ast::statement::conditional::ConditionalStatement"]],["impl Send for ConsoleStatement",1,["leo_ast::statement::console::console_statement::ConsoleStatement"]],["impl Send for ConstDeclaration",1,["leo_ast::statement::const_::ConstDeclaration"]],["impl Send for DefinitionStatement",1,["leo_ast::statement::definition::DefinitionStatement"]],["impl Send for ExpressionStatement",1,["leo_ast::statement::expression::ExpressionStatement"]],["impl Send for IterationStatement",1,["leo_ast::statement::iteration::IterationStatement"]],["impl Send for ReturnStatement",1,["leo_ast::statement::return_::ReturnStatement"]],["impl Send for Ast",1,["leo_ast::Ast"]],["impl Send for Member",1,["leo_ast::struct::member::Member"]],["impl Send for Composite",1,["leo_ast::struct::Composite"]],["impl Send for FunctionStub",1,["leo_ast::stub::function_stub::FunctionStub"]],["impl Send for Stub",1,["leo_ast::stub::Stub"]],["impl Send for ArrayType",1,["leo_ast::types::array::ArrayType"]],["impl Send for FutureType",1,["leo_ast::types::future::FutureType"]],["impl Send for MappingType",1,["leo_ast::types::mapping::MappingType"]],["impl Send for CompositeType",1,["leo_ast::types::struct_type::CompositeType"]],["impl Send for TupleType",1,["leo_ast::types::tuple::TupleType"]],["impl<'a> Send for DisplayDecimal<'a>",1,["leo_ast::expressions::literal::DisplayDecimal"]]]],["leo_compiler",[["impl Send for BuildOptions",1,["leo_compiler::options::BuildOptions"]],["impl Send for CompilerOptions",1,["leo_compiler::options::CompilerOptions"]],["impl Send for OutputOptions",1,["leo_compiler::options::OutputOptions"]],["impl<'a, N> !Send for Compiler<'a, N>",1,["leo_compiler::compiler::Compiler"]]]],["leo_errors",[["impl !Send for BufferEmitter",1,["leo_errors::emitter::BufferEmitter"]],["impl !Send for Handler",1,["leo_errors::emitter::Handler"]],["impl !Send for HandlerInner",1,["leo_errors::emitter::HandlerInner"]],["impl Send for AstError",1,["leo_errors::errors::ast::ast_errors::AstError"]],["impl Send for CliError",1,["leo_errors::errors::cli::cli_errors::CliError"]],["impl Send for CompilerError",1,["leo_errors::errors::compiler::compiler_errors::CompilerError"]],["impl Send for LeoError",1,["leo_errors::errors::LeoError"]],["impl Send for LeoWarning",1,["leo_errors::errors::LeoWarning"]],["impl Send for FlattenError",1,["leo_errors::errors::flattener::flattener_errors::FlattenError"]],["impl Send for LoopUnrollerError",1,["leo_errors::errors::loop_unroller::loop_unroller_errors::LoopUnrollerError"]],["impl Send for PackageError",1,["leo_errors::errors::package::package_errors::PackageError"]],["impl Send for ParserError",1,["leo_errors::errors::parser::parser_errors::ParserError"]],["impl Send for ParserWarning",1,["leo_errors::errors::parser::parser_warnings::ParserWarning"]],["impl Send for StaticAnalyzerError",1,["leo_errors::errors::static_analyzer::static_analyzer_error::StaticAnalyzerError"]],["impl Send for StaticAnalyzerWarning",1,["leo_errors::errors::static_analyzer::static_analyzer_warning::StaticAnalyzerWarning"]],["impl Send for TypeCheckerError",1,["leo_errors::errors::type_checker::type_checker_error::TypeCheckerError"]],["impl Send for TypeCheckerWarning",1,["leo_errors::errors::type_checker::type_checker_warning::TypeCheckerWarning"]],["impl Send for UtilError",1,["leo_errors::errors::utils::util_errors::UtilError"]],["impl Send for Backtraced",1,["leo_errors::common::backtraced::Backtraced"]],["impl Send for Formatted",1,["leo_errors::common::formatted::Formatted"]],["impl Send for StderrEmitter",1,["leo_errors::emitter::StderrEmitter"]],["impl<T> Send for Buffer<T>
where\n T: Send,
",1,["leo_errors::emitter::Buffer"]]]],["leo_lang",[["impl Send for Commands",1,["leo_lang::cli::cli::Commands"]],["impl Send for Account",1,["leo_lang::cli::commands::account::Account"]],["impl Send for ExampleVariant",1,["leo_lang::cli::commands::example::ExampleVariant"]],["impl Send for QueryCommands",1,["leo_lang::cli::commands::query::QueryCommands"]],["impl Send for CLI",1,["leo_lang::cli::cli::CLI"]],["impl Send for LeoAdd",1,["leo_lang::cli::commands::add::LeoAdd"]],["impl Send for LeoBuild",1,["leo_lang::cli::commands::build::LeoBuild"]],["impl Send for LeoClean",1,["leo_lang::cli::commands::clean::LeoClean"]],["impl Send for Deploy",1,["leo_lang::cli::commands::deploy::Deploy"]],["impl Send for LeoExample",1,["leo_lang::cli::commands::example::LeoExample"]],["impl Send for LeoExecute",1,["leo_lang::cli::commands::execute::LeoExecute"]],["impl Send for LeoNew",1,["leo_lang::cli::commands::new::LeoNew"]],["impl Send for LeoBlock",1,["leo_lang::cli::commands::query::block::LeoBlock"]],["impl Send for LeoCommittee",1,["leo_lang::cli::commands::query::committee::LeoCommittee"]],["impl Send for LeoMempool",1,["leo_lang::cli::commands::query::mempool::LeoMempool"]],["impl Send for LeoPeers",1,["leo_lang::cli::commands::query::peers::LeoPeers"]],["impl Send for LeoProgram",1,["leo_lang::cli::commands::query::program::LeoProgram"]],["impl Send for StateRoot",1,["leo_lang::cli::commands::query::state_root::StateRoot"]],["impl Send for LeoQuery",1,["leo_lang::cli::commands::query::LeoQuery"]],["impl Send for LeoTransaction",1,["leo_lang::cli::commands::query::transaction::LeoTransaction"]],["impl Send for LeoRemove",1,["leo_lang::cli::commands::remove::LeoRemove"]],["impl Send for LeoRun",1,["leo_lang::cli::commands::run::LeoRun"]],["impl Send for BuildOptions",1,["leo_lang::cli::commands::BuildOptions"]],["impl Send for FeeOptions",1,["leo_lang::cli::commands::FeeOptions"]],["impl Send for LeoUpdate",1,["leo_lang::cli::commands::update::LeoUpdate"]],["impl Send for Context",1,["leo_lang::cli::helpers::context::Context"]],["impl Send for Updater",1,["leo_lang::cli::helpers::updater::Updater"]],["impl<F, T> Send for Format<F, T>
where\n F: Send,\n T: Send,
",1,["leo_lang::cli::helpers::logger::Format"]]]],["leo_package",[["impl Send for Snapshot",1,["leo_package::outputs::ast_snapshot::Snapshot"]],["impl Send for BuildDirectory",1,["leo_package::build::directory::BuildDirectory"]],["impl Send for ImportsDirectory",1,["leo_package::imports::directory::ImportsDirectory"]],["impl Send for InputsDirectory",1,["leo_package::inputs::directory::InputsDirectory"]],["impl Send for SnapshotFile",1,["leo_package::outputs::ast_snapshot::SnapshotFile"]],["impl Send for ChecksumFile",1,["leo_package::outputs::checksum::ChecksumFile"]],["impl Send for CircuitFile",1,["leo_package::outputs::circuit::CircuitFile"]],["impl Send for OutputsDirectory",1,["leo_package::outputs::directory::OutputsDirectory"]],["impl Send for Package",1,["leo_package::package::Package"]],["impl Send for Gitignore",1,["leo_package::root::gitignore::Gitignore"]],["impl Send for SourceDirectory",1,["leo_package::source::directory::SourceDirectory"]],["impl Send for MainFile",1,["leo_package::source::main::MainFile"]],["impl<N> Send for Env<N>",1,["leo_package::root::env::Env"]]]],["leo_parser",[["impl Send for Delimiter",1,["leo_parser::tokenizer::token::Delimiter"]],["impl Send for Token",1,["leo_parser::tokenizer::token::Token"]],["impl Send for SpannedToken",1,["leo_parser::tokenizer::lexer::SpannedToken"]],["impl<'a, N> !Send for ParserContext<'a, N>",1,["leo_parser::parser::context::ParserContext"]]]],["leo_passes",[["impl Send for VariableType",1,["leo_passes::common::symbol_table::variable_symbol::VariableType"]],["impl Send for Guard",1,["leo_passes::flattening::flattener::Guard"]],["impl Send for ReturnGuard",1,["leo_passes::flattening::flattener::ReturnGuard"]],["impl Send for Clusivity",1,["leo_passes::loop_unrolling::range_iterator::Clusivity"]],["impl Send for Assigner",1,["leo_passes::common::assigner::Assigner"]],["impl Send for AssignerInner",1,["leo_passes::common::assigner::AssignerInner"]],["impl Send for ConstantPropagationTable",1,["leo_passes::common::constant_propagation_table::ConstantPropagationTable"]],["impl Send for RenameTable",1,["leo_passes::common::rename_table::RenameTable"]],["impl Send for FunctionSymbol",1,["leo_passes::common::symbol_table::function_symbol::FunctionSymbol"]],["impl Send for SymbolTable",1,["leo_passes::common::symbol_table::SymbolTable"]],["impl Send for VariableSymbol",1,["leo_passes::common::symbol_table::variable_symbol::VariableSymbol"]],["impl Send for TypeTable",1,["leo_passes::common::type_table::TypeTable"]],["impl Send for AwaitChecker",1,["leo_passes::static_analysis::await_checker::AwaitChecker"]],["impl Send for ScopeState",1,["leo_passes::type_checking::scope_state::ScopeState"]],["impl<'a> !Send for CodeGenerator<'a>",1,["leo_passes::code_generation::generator::CodeGenerator"]],["impl<'a> !Send for DeadCodeEliminator<'a>",1,["leo_passes::dead_code_elimination::dead_code_eliminator::DeadCodeEliminator"]],["impl<'a> !Send for Destructurer<'a>",1,["leo_passes::destructuring::destructurer::Destructurer"]],["impl<'a> !Send for Flattener<'a>",1,["leo_passes::flattening::flattener::Flattener"]],["impl<'a> !Send for AssignmentRenamer<'a>",1,["leo_passes::function_inlining::assignment_renamer::AssignmentRenamer"]],["impl<'a> !Send for FunctionInliner<'a>",1,["leo_passes::function_inlining::function_inliner::FunctionInliner"]],["impl<'a> !Send for Unroller<'a>",1,["leo_passes::loop_unrolling::unroller::Unroller"]],["impl<'a> !Send for StaticSingleAssigner<'a>",1,["leo_passes::static_single_assignment::static_single_assigner::StaticSingleAssigner"]],["impl<'a> !Send for SymbolTableCreator<'a>",1,["leo_passes::symbol_table_creation::creator::SymbolTableCreator"]],["impl<'a, N> !Send for StaticAnalyzer<'a, N>",1,["leo_passes::static_analysis::analyzer::StaticAnalyzer"]],["impl<'a, N> !Send for TypeChecker<'a, N>",1,["leo_passes::type_checking::checker::TypeChecker"]],["impl<F> Send for Replacer<F>
where\n F: Send,
",1,["leo_passes::common::replacer::Replacer"]],["impl<I> Send for RangeIterator<I>
where\n I: Send,
",1,["leo_passes::loop_unrolling::range_iterator::RangeIterator"]],["impl<N> Send for DiGraphError<N>
where\n N: Send,
",1,["leo_passes::common::graph::DiGraphError"]],["impl<N> Send for DiGraph<N>
where\n N: Send,
",1,["leo_passes::common::graph::DiGraph"]],["impl<N> Send for TreeNode<N>
where\n N: Send,
",1,["leo_passes::common::tree_node::TreeNode"]]]],["leo_retriever",[["impl Send for Location",1,["leo_retriever::program_context::location::Location"]],["impl Send for NetworkName",1,["leo_retriever::program_context::network_name::NetworkName"]],["impl Send for Dependency",1,["leo_retriever::program_context::dependency::Dependency"]],["impl Send for LockFileEntry",1,["leo_retriever::program_context::lock_file_entry::LockFileEntry"]],["impl Send for Manifest",1,["leo_retriever::program_context::manifest::Manifest"]],["impl Send for ProgramContext",1,["leo_retriever::program_context::ProgramContext"]],["impl<N> Send for Retriever<N>",1,["leo_retriever::retriever::Retriever"]]]],["leo_span",[["impl !Send for LineCol",1,["leo_span::source_map::LineCol"]],["impl !Send for SourceMap",1,["leo_span::source_map::SourceMap"]],["impl !Send for SourceMapInner",1,["leo_span::source_map::SourceMapInner"]],["impl !Send for SpanLocation",1,["leo_span::source_map::SpanLocation"]],["impl !Send for SessionGlobals",1,["leo_span::symbol::SessionGlobals"]],["impl Send for FileName",1,["leo_span::source_map::FileName"]],["impl Send for InternedStr",1,["leo_span::symbol::InternedStr"]],["impl Send for MultiByteChar",1,["leo_span::source_map::MultiByteChar"]],["impl Send for SourceFile",1,["leo_span::source_map::SourceFile"]],["impl Send for BytePos",1,["leo_span::span::BytePos"]],["impl Send for CharPos",1,["leo_span::span::CharPos"]],["impl Send for Span",1,["leo_span::span::Span"]],["impl Send for SpanMapVisitor",1,["leo_span::span_json::SpanMapVisitor"]],["impl Send for InnerInterner",1,["leo_span::symbol::InnerInterner"]],["impl Send for Interner",1,["leo_span::symbol::Interner"]],["impl Send for Symbol",1,["leo_span::symbol::Symbol"]]]],["leo_test_framework",[["impl Send for TestError",1,["leo_test_framework::error::TestError"]],["impl Send for ParseType",1,["leo_test_framework::runner::ParseType"]],["impl Send for TestExpectationMode",1,["leo_test_framework::test::TestExpectationMode"]],["impl Send for TestFailure",1,["leo_test_framework::error::TestFailure"]],["impl Send for TestExpectation",1,["leo_test_framework::output::TestExpectation"]],["impl Send for Test",1,["leo_test_framework::runner::Test"]],["impl Send for TestCases",1,["leo_test_framework::runner::TestCases"]],["impl Send for TestConfig",1,["leo_test_framework::test::TestConfig"]]]]]); + var implementors = Object.fromEntries([["leo_abnf",[["impl Send for Scope",1,["leo_abnf::Scope"]],["impl<'a> Send for Processor<'a>",1,["leo_abnf::Processor"]]]],["leo_ast",[["impl Send for AccessExpression",1,["leo_ast::expressions::access::AccessExpression"]],["impl Send for BinaryOperation",1,["leo_ast::expressions::binary::BinaryOperation"]],["impl Send for Expression",1,["leo_ast::expressions::Expression"]],["impl Send for Literal",1,["leo_ast::expressions::literal::Literal"]],["impl Send for UnaryOperation",1,["leo_ast::expressions::unary::UnaryOperation"]],["impl Send for CoreFunction",1,["leo_ast::functions::core_function::CoreFunction"]],["impl Send for Mode",1,["leo_ast::functions::mode::Mode"]],["impl Send for Variant",1,["leo_ast::functions::variant::Variant"]],["impl Send for GroupCoordinate",1,["leo_ast::groups::group_coordinate::GroupCoordinate"]],["impl Send for GroupLiteral",1,["leo_ast::groups::group_literal::GroupLiteral"]],["impl Send for AssertVariant",1,["leo_ast::statement::assert::AssertVariant"]],["impl Send for ConsoleFunction",1,["leo_ast::statement::console::console_function::ConsoleFunction"]],["impl Send for DeclarationType",1,["leo_ast::statement::definition::declaration_type::DeclarationType"]],["impl Send for Statement",1,["leo_ast::statement::Statement"]],["impl Send for CoreConstant",1,["leo_ast::types::core_constant::CoreConstant"]],["impl Send for IntegerType",1,["leo_ast::types::integer_type::IntegerType"]],["impl Send for Type",1,["leo_ast::types::type_::Type"]],["impl Send for Value",1,["leo_ast::value::Value"]],["impl Send for ArrayAccess",1,["leo_ast::access::array_access::ArrayAccess"]],["impl Send for AssociatedConstant",1,["leo_ast::access::associated_constant_access::AssociatedConstant"]],["impl Send for AssociatedFunction",1,["leo_ast::access::associated_function_access::AssociatedFunction"]],["impl Send for MemberAccess",1,["leo_ast::access::member_access::MemberAccess"]],["impl Send for TupleAccess",1,["leo_ast::access::tuple_access::TupleAccess"]],["impl Send for Identifier",1,["leo_ast::common::identifier::Identifier"]],["impl Send for Location",1,["leo_ast::common::location::Location"]],["impl Send for NodeBuilder",1,["leo_ast::common::node_builder::NodeBuilder"]],["impl Send for NodeBuilderInner",1,["leo_ast::common::node_builder::NodeBuilderInner"]],["impl Send for NonNegativeNumber",1,["leo_ast::common::positive_number::NonNegativeNumber"]],["impl Send for StaticString",1,["leo_ast::common::static_string::StaticString"]],["impl Send for ArrayExpression",1,["leo_ast::expressions::array::ArrayExpression"]],["impl Send for BinaryExpression",1,["leo_ast::expressions::binary::BinaryExpression"]],["impl Send for CallExpression",1,["leo_ast::expressions::call::CallExpression"]],["impl Send for CastExpression",1,["leo_ast::expressions::cast::CastExpression"]],["impl Send for ErrExpression",1,["leo_ast::expressions::err::ErrExpression"]],["impl Send for LocatorExpression",1,["leo_ast::expressions::locator::LocatorExpression"]],["impl Send for StructExpression",1,["leo_ast::expressions::struct_init::StructExpression"]],["impl Send for StructVariableInitializer",1,["leo_ast::expressions::struct_init::StructVariableInitializer"]],["impl Send for TernaryExpression",1,["leo_ast::expressions::ternary::TernaryExpression"]],["impl Send for TupleExpression",1,["leo_ast::expressions::tuple::TupleExpression"]],["impl Send for UnaryExpression",1,["leo_ast::expressions::unary::UnaryExpression"]],["impl Send for UnitExpression",1,["leo_ast::expressions::unit::UnitExpression"]],["impl Send for Annotation",1,["leo_ast::functions::annotation::Annotation"]],["impl Send for Input",1,["leo_ast::functions::input::Input"]],["impl Send for Output",1,["leo_ast::functions::output::Output"]],["impl Send for Function",1,["leo_ast::functions::Function"]],["impl Send for GroupTuple",1,["leo_ast::groups::group_literal::GroupTuple"]],["impl Send for Mapping",1,["leo_ast::mapping::Mapping"]],["impl Send for ProgramId",1,["leo_ast::program::program_id::ProgramId"]],["impl Send for ProgramScope",1,["leo_ast::program::program_scope::ProgramScope"]],["impl Send for Program",1,["leo_ast::program::Program"]],["impl Send for AssertStatement",1,["leo_ast::statement::assert::AssertStatement"]],["impl Send for AssignStatement",1,["leo_ast::statement::assign::AssignStatement"]],["impl Send for Block",1,["leo_ast::statement::block::Block"]],["impl Send for ConditionalStatement",1,["leo_ast::statement::conditional::ConditionalStatement"]],["impl Send for ConsoleStatement",1,["leo_ast::statement::console::console_statement::ConsoleStatement"]],["impl Send for ConstDeclaration",1,["leo_ast::statement::const_::ConstDeclaration"]],["impl Send for DefinitionStatement",1,["leo_ast::statement::definition::DefinitionStatement"]],["impl Send for ExpressionStatement",1,["leo_ast::statement::expression::ExpressionStatement"]],["impl Send for IterationStatement",1,["leo_ast::statement::iteration::IterationStatement"]],["impl Send for ReturnStatement",1,["leo_ast::statement::return_::ReturnStatement"]],["impl Send for Ast",1,["leo_ast::Ast"]],["impl Send for Member",1,["leo_ast::struct::member::Member"]],["impl Send for Composite",1,["leo_ast::struct::Composite"]],["impl Send for FunctionStub",1,["leo_ast::stub::function_stub::FunctionStub"]],["impl Send for Stub",1,["leo_ast::stub::Stub"]],["impl Send for ArrayType",1,["leo_ast::types::array::ArrayType"]],["impl Send for FutureType",1,["leo_ast::types::future::FutureType"]],["impl Send for MappingType",1,["leo_ast::types::mapping::MappingType"]],["impl Send for CompositeType",1,["leo_ast::types::struct_type::CompositeType"]],["impl Send for TupleType",1,["leo_ast::types::tuple::TupleType"]],["impl<'a> Send for DisplayDecimal<'a>",1,["leo_ast::expressions::literal::DisplayDecimal"]]]],["leo_compiler",[["impl Send for BuildOptions",1,["leo_compiler::options::BuildOptions"]],["impl Send for CompilerOptions",1,["leo_compiler::options::CompilerOptions"]],["impl Send for OutputOptions",1,["leo_compiler::options::OutputOptions"]],["impl<'a, N> !Send for Compiler<'a, N>",1,["leo_compiler::compiler::Compiler"]]]],["leo_errors",[["impl !Send for BufferEmitter",1,["leo_errors::emitter::BufferEmitter"]],["impl !Send for Handler",1,["leo_errors::emitter::Handler"]],["impl !Send for HandlerInner",1,["leo_errors::emitter::HandlerInner"]],["impl Send for AstError",1,["leo_errors::errors::ast::ast_errors::AstError"]],["impl Send for CliError",1,["leo_errors::errors::cli::cli_errors::CliError"]],["impl Send for CompilerError",1,["leo_errors::errors::compiler::compiler_errors::CompilerError"]],["impl Send for LeoError",1,["leo_errors::errors::LeoError"]],["impl Send for LeoWarning",1,["leo_errors::errors::LeoWarning"]],["impl Send for FlattenError",1,["leo_errors::errors::flattener::flattener_errors::FlattenError"]],["impl Send for LoopUnrollerError",1,["leo_errors::errors::loop_unroller::loop_unroller_errors::LoopUnrollerError"]],["impl Send for PackageError",1,["leo_errors::errors::package::package_errors::PackageError"]],["impl Send for ParserError",1,["leo_errors::errors::parser::parser_errors::ParserError"]],["impl Send for ParserWarning",1,["leo_errors::errors::parser::parser_warnings::ParserWarning"]],["impl Send for StaticAnalyzerError",1,["leo_errors::errors::static_analyzer::static_analyzer_error::StaticAnalyzerError"]],["impl Send for StaticAnalyzerWarning",1,["leo_errors::errors::static_analyzer::static_analyzer_warning::StaticAnalyzerWarning"]],["impl Send for TypeCheckerError",1,["leo_errors::errors::type_checker::type_checker_error::TypeCheckerError"]],["impl Send for TypeCheckerWarning",1,["leo_errors::errors::type_checker::type_checker_warning::TypeCheckerWarning"]],["impl Send for UtilError",1,["leo_errors::errors::utils::util_errors::UtilError"]],["impl Send for Backtraced",1,["leo_errors::common::backtraced::Backtraced"]],["impl Send for Formatted",1,["leo_errors::common::formatted::Formatted"]],["impl Send for StderrEmitter",1,["leo_errors::emitter::StderrEmitter"]],["impl<T> Send for Buffer<T>
where\n T: Send,
",1,["leo_errors::emitter::Buffer"]]]],["leo_lang",[["impl Send for Commands",1,["leo_lang::cli::cli::Commands"]],["impl Send for Account",1,["leo_lang::cli::commands::account::Account"]],["impl Send for ExampleVariant",1,["leo_lang::cli::commands::example::ExampleVariant"]],["impl Send for QueryCommands",1,["leo_lang::cli::commands::query::QueryCommands"]],["impl Send for CLI",1,["leo_lang::cli::cli::CLI"]],["impl Send for LeoAdd",1,["leo_lang::cli::commands::add::LeoAdd"]],["impl Send for LeoBuild",1,["leo_lang::cli::commands::build::LeoBuild"]],["impl Send for LeoClean",1,["leo_lang::cli::commands::clean::LeoClean"]],["impl Send for Deploy",1,["leo_lang::cli::commands::deploy::Deploy"]],["impl Send for LeoExample",1,["leo_lang::cli::commands::example::LeoExample"]],["impl Send for LeoExecute",1,["leo_lang::cli::commands::execute::LeoExecute"]],["impl Send for LeoNew",1,["leo_lang::cli::commands::new::LeoNew"]],["impl Send for LeoBlock",1,["leo_lang::cli::commands::query::block::LeoBlock"]],["impl Send for LeoCommittee",1,["leo_lang::cli::commands::query::committee::LeoCommittee"]],["impl Send for LeoMempool",1,["leo_lang::cli::commands::query::mempool::LeoMempool"]],["impl Send for LeoPeers",1,["leo_lang::cli::commands::query::peers::LeoPeers"]],["impl Send for LeoProgram",1,["leo_lang::cli::commands::query::program::LeoProgram"]],["impl Send for StateRoot",1,["leo_lang::cli::commands::query::state_root::StateRoot"]],["impl Send for LeoQuery",1,["leo_lang::cli::commands::query::LeoQuery"]],["impl Send for LeoTransaction",1,["leo_lang::cli::commands::query::transaction::LeoTransaction"]],["impl Send for LeoRemove",1,["leo_lang::cli::commands::remove::LeoRemove"]],["impl Send for LeoRun",1,["leo_lang::cli::commands::run::LeoRun"]],["impl Send for BuildOptions",1,["leo_lang::cli::commands::BuildOptions"]],["impl Send for FeeOptions",1,["leo_lang::cli::commands::FeeOptions"]],["impl Send for LeoUpdate",1,["leo_lang::cli::commands::update::LeoUpdate"]],["impl Send for Context",1,["leo_lang::cli::helpers::context::Context"]],["impl Send for Updater",1,["leo_lang::cli::helpers::updater::Updater"]],["impl<F, T> Send for Format<F, T>
where\n F: Send,\n T: Send,
",1,["leo_lang::cli::helpers::logger::Format"]]]],["leo_package",[["impl Send for Snapshot",1,["leo_package::outputs::ast_snapshot::Snapshot"]],["impl Send for BuildDirectory",1,["leo_package::build::directory::BuildDirectory"]],["impl Send for ImportsDirectory",1,["leo_package::imports::directory::ImportsDirectory"]],["impl Send for InputsDirectory",1,["leo_package::inputs::directory::InputsDirectory"]],["impl Send for SnapshotFile",1,["leo_package::outputs::ast_snapshot::SnapshotFile"]],["impl Send for ChecksumFile",1,["leo_package::outputs::checksum::ChecksumFile"]],["impl Send for CircuitFile",1,["leo_package::outputs::circuit::CircuitFile"]],["impl Send for OutputsDirectory",1,["leo_package::outputs::directory::OutputsDirectory"]],["impl Send for Package",1,["leo_package::package::Package"]],["impl Send for Gitignore",1,["leo_package::root::gitignore::Gitignore"]],["impl Send for SourceDirectory",1,["leo_package::source::directory::SourceDirectory"]],["impl Send for MainFile",1,["leo_package::source::main::MainFile"]],["impl<N> Send for Env<N>",1,["leo_package::root::env::Env"]]]],["leo_parser",[["impl Send for Delimiter",1,["leo_parser::tokenizer::token::Delimiter"]],["impl Send for Token",1,["leo_parser::tokenizer::token::Token"]],["impl Send for SpannedToken",1,["leo_parser::tokenizer::lexer::SpannedToken"]],["impl<'a, N> !Send for ParserContext<'a, N>",1,["leo_parser::parser::context::ParserContext"]]]],["leo_passes",[["impl Send for VariableType",1,["leo_passes::common::symbol_table::variable_symbol::VariableType"]],["impl Send for Guard",1,["leo_passes::flattening::flattener::Guard"]],["impl Send for ReturnGuard",1,["leo_passes::flattening::flattener::ReturnGuard"]],["impl Send for Clusivity",1,["leo_passes::loop_unrolling::range_iterator::Clusivity"]],["impl Send for Assigner",1,["leo_passes::common::assigner::Assigner"]],["impl Send for AssignerInner",1,["leo_passes::common::assigner::AssignerInner"]],["impl Send for ConstantPropagationTable",1,["leo_passes::common::constant_propagation_table::ConstantPropagationTable"]],["impl Send for RenameTable",1,["leo_passes::common::rename_table::RenameTable"]],["impl Send for FunctionSymbol",1,["leo_passes::common::symbol_table::function_symbol::FunctionSymbol"]],["impl Send for SymbolTable",1,["leo_passes::common::symbol_table::SymbolTable"]],["impl Send for VariableSymbol",1,["leo_passes::common::symbol_table::variable_symbol::VariableSymbol"]],["impl Send for TypeTable",1,["leo_passes::common::type_table::TypeTable"]],["impl Send for AwaitChecker",1,["leo_passes::static_analysis::await_checker::AwaitChecker"]],["impl Send for ScopeState",1,["leo_passes::type_checking::scope_state::ScopeState"]],["impl<'a> !Send for CodeGenerator<'a>",1,["leo_passes::code_generation::generator::CodeGenerator"]],["impl<'a> !Send for DeadCodeEliminator<'a>",1,["leo_passes::dead_code_elimination::dead_code_eliminator::DeadCodeEliminator"]],["impl<'a> !Send for Destructurer<'a>",1,["leo_passes::destructuring::destructurer::Destructurer"]],["impl<'a> !Send for Flattener<'a>",1,["leo_passes::flattening::flattener::Flattener"]],["impl<'a> !Send for AssignmentRenamer<'a>",1,["leo_passes::function_inlining::assignment_renamer::AssignmentRenamer"]],["impl<'a> !Send for FunctionInliner<'a>",1,["leo_passes::function_inlining::function_inliner::FunctionInliner"]],["impl<'a> !Send for Unroller<'a>",1,["leo_passes::loop_unrolling::unroller::Unroller"]],["impl<'a> !Send for StaticSingleAssigner<'a>",1,["leo_passes::static_single_assignment::static_single_assigner::StaticSingleAssigner"]],["impl<'a> !Send for SymbolTableCreator<'a>",1,["leo_passes::symbol_table_creation::creator::SymbolTableCreator"]],["impl<'a, N> !Send for StaticAnalyzer<'a, N>",1,["leo_passes::static_analysis::analyzer::StaticAnalyzer"]],["impl<'a, N> !Send for TypeChecker<'a, N>",1,["leo_passes::type_checking::checker::TypeChecker"]],["impl<F> Send for Replacer<F>
where\n F: Send,
",1,["leo_passes::common::replacer::Replacer"]],["impl<I> Send for RangeIterator<I>
where\n I: Send,
",1,["leo_passes::loop_unrolling::range_iterator::RangeIterator"]],["impl<N> Send for DiGraphError<N>
where\n N: Send,
",1,["leo_passes::common::graph::DiGraphError"]],["impl<N> Send for DiGraph<N>
where\n N: Send,
",1,["leo_passes::common::graph::DiGraph"]],["impl<N> Send for TreeNode<N>
where\n N: Send,
",1,["leo_passes::common::tree_node::TreeNode"]]]],["leo_retriever",[["impl Send for Location",1,["leo_retriever::program_context::location::Location"]],["impl Send for NetworkName",1,["leo_retriever::program_context::network_name::NetworkName"]],["impl Send for Dependency",1,["leo_retriever::program_context::dependency::Dependency"]],["impl Send for LockFileEntry",1,["leo_retriever::program_context::lock_file_entry::LockFileEntry"]],["impl Send for Manifest",1,["leo_retriever::program_context::manifest::Manifest"]],["impl Send for ProgramContext",1,["leo_retriever::program_context::ProgramContext"]],["impl<N> Send for Retriever<N>",1,["leo_retriever::retriever::Retriever"]]]],["leo_span",[["impl !Send for LineCol",1,["leo_span::source_map::LineCol"]],["impl !Send for SourceMap",1,["leo_span::source_map::SourceMap"]],["impl !Send for SourceMapInner",1,["leo_span::source_map::SourceMapInner"]],["impl !Send for SpanLocation",1,["leo_span::source_map::SpanLocation"]],["impl !Send for SessionGlobals",1,["leo_span::symbol::SessionGlobals"]],["impl Send for FileName",1,["leo_span::source_map::FileName"]],["impl Send for InternedStr",1,["leo_span::symbol::InternedStr"]],["impl Send for MultiByteChar",1,["leo_span::source_map::MultiByteChar"]],["impl Send for SourceFile",1,["leo_span::source_map::SourceFile"]],["impl Send for BytePos",1,["leo_span::span::BytePos"]],["impl Send for CharPos",1,["leo_span::span::CharPos"]],["impl Send for Span",1,["leo_span::span::Span"]],["impl Send for SpanMapVisitor",1,["leo_span::span_json::SpanMapVisitor"]],["impl Send for InnerInterner",1,["leo_span::symbol::InnerInterner"]],["impl Send for Interner",1,["leo_span::symbol::Interner"]],["impl Send for Symbol",1,["leo_span::symbol::Symbol"]]]],["leo_test_framework",[["impl Send for TestError",1,["leo_test_framework::error::TestError"]],["impl Send for ParseType",1,["leo_test_framework::runner::ParseType"]],["impl Send for TestExpectationMode",1,["leo_test_framework::test::TestExpectationMode"]],["impl Send for TestFailure",1,["leo_test_framework::error::TestFailure"]],["impl Send for TestExpectation",1,["leo_test_framework::output::TestExpectation"]],["impl Send for Test",1,["leo_test_framework::runner::Test"]],["impl Send for TestCases",1,["leo_test_framework::runner::TestCases"]],["impl Send for TestConfig",1,["leo_test_framework::test::TestConfig"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/marker/trait.StructuralPartialEq.js b/trait.impl/core/marker/trait.StructuralPartialEq.js index 2a53d41562..e2d369e256 100644 --- a/trait.impl/core/marker/trait.StructuralPartialEq.js +++ b/trait.impl/core/marker/trait.StructuralPartialEq.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_ast",[["impl StructuralPartialEq for AccessExpression"],["impl StructuralPartialEq for BinaryOperation"],["impl StructuralPartialEq for Expression"],["impl StructuralPartialEq for Literal"],["impl StructuralPartialEq for UnaryOperation"],["impl StructuralPartialEq for CoreFunction"],["impl StructuralPartialEq for Mode"],["impl StructuralPartialEq for Variant"],["impl StructuralPartialEq for GroupCoordinate"],["impl StructuralPartialEq for GroupLiteral"],["impl StructuralPartialEq for AssertVariant"],["impl StructuralPartialEq for ConsoleFunction"],["impl StructuralPartialEq for DeclarationType"],["impl StructuralPartialEq for Statement"],["impl StructuralPartialEq for CoreConstant"],["impl StructuralPartialEq for IntegerType"],["impl StructuralPartialEq for Type"],["impl StructuralPartialEq for Value"],["impl StructuralPartialEq for ArrayAccess"],["impl StructuralPartialEq for AssociatedConstant"],["impl StructuralPartialEq for AssociatedFunction"],["impl StructuralPartialEq for MemberAccess"],["impl StructuralPartialEq for TupleAccess"],["impl StructuralPartialEq for Location"],["impl StructuralPartialEq for NonNegativeNumber"],["impl StructuralPartialEq for StaticString"],["impl StructuralPartialEq for ArrayExpression"],["impl StructuralPartialEq for BinaryExpression"],["impl StructuralPartialEq for CallExpression"],["impl StructuralPartialEq for CastExpression"],["impl StructuralPartialEq for ErrExpression"],["impl StructuralPartialEq for LocatorExpression"],["impl StructuralPartialEq for StructExpression"],["impl StructuralPartialEq for StructVariableInitializer"],["impl StructuralPartialEq for TernaryExpression"],["impl StructuralPartialEq for TupleExpression"],["impl StructuralPartialEq for UnaryExpression"],["impl StructuralPartialEq for UnitExpression"],["impl StructuralPartialEq for Annotation"],["impl StructuralPartialEq for Input"],["impl StructuralPartialEq for Output"],["impl StructuralPartialEq for GroupTuple"],["impl StructuralPartialEq for Mapping"],["impl StructuralPartialEq for ProgramId"],["impl StructuralPartialEq for ProgramScope"],["impl StructuralPartialEq for Program"],["impl StructuralPartialEq for AssertStatement"],["impl StructuralPartialEq for AssignStatement"],["impl StructuralPartialEq for Block"],["impl StructuralPartialEq for ConditionalStatement"],["impl StructuralPartialEq for ConsoleStatement"],["impl StructuralPartialEq for ConstDeclaration"],["impl StructuralPartialEq for DefinitionStatement"],["impl StructuralPartialEq for ExpressionStatement"],["impl StructuralPartialEq for IterationStatement"],["impl StructuralPartialEq for ReturnStatement"],["impl StructuralPartialEq for Ast"],["impl StructuralPartialEq for Member"],["impl StructuralPartialEq for Stub"],["impl StructuralPartialEq for ArrayType"],["impl StructuralPartialEq for FutureType"],["impl StructuralPartialEq for MappingType"],["impl StructuralPartialEq for CompositeType"],["impl StructuralPartialEq for TupleType"]]],["leo_errors",[["impl StructuralPartialEq for Formatted"]]],["leo_parser",[["impl StructuralPartialEq for Token"]]],["leo_passes",[["impl StructuralPartialEq for VariableType"],["impl StructuralPartialEq for RenameTable"],["impl StructuralPartialEq for FunctionSymbol"],["impl StructuralPartialEq for SymbolTable"],["impl StructuralPartialEq for VariableSymbol"],["impl<N: Node> StructuralPartialEq for DiGraph<N>"],["impl<N: Node> StructuralPartialEq for TreeNode<N>"]]],["leo_retriever",[["impl StructuralPartialEq for Location"],["impl StructuralPartialEq for NetworkName"],["impl StructuralPartialEq for Dependency"]]],["leo_span",[["impl StructuralPartialEq for MultiByteChar"],["impl StructuralPartialEq for BytePos"],["impl StructuralPartialEq for CharPos"],["impl StructuralPartialEq for Span"],["impl StructuralPartialEq for Symbol"]]],["leo_test_framework",[["impl StructuralPartialEq for ParseType"],["impl StructuralPartialEq for TestExpectationMode"]]]]); + var implementors = Object.fromEntries([["leo_ast",[["impl StructuralPartialEq for AccessExpression"],["impl StructuralPartialEq for BinaryOperation"],["impl StructuralPartialEq for Expression"],["impl StructuralPartialEq for Literal"],["impl StructuralPartialEq for UnaryOperation"],["impl StructuralPartialEq for CoreFunction"],["impl StructuralPartialEq for Mode"],["impl StructuralPartialEq for Variant"],["impl StructuralPartialEq for GroupCoordinate"],["impl StructuralPartialEq for GroupLiteral"],["impl StructuralPartialEq for AssertVariant"],["impl StructuralPartialEq for ConsoleFunction"],["impl StructuralPartialEq for DeclarationType"],["impl StructuralPartialEq for Statement"],["impl StructuralPartialEq for CoreConstant"],["impl StructuralPartialEq for IntegerType"],["impl StructuralPartialEq for Type"],["impl StructuralPartialEq for Value"],["impl StructuralPartialEq for ArrayAccess"],["impl StructuralPartialEq for AssociatedConstant"],["impl StructuralPartialEq for AssociatedFunction"],["impl StructuralPartialEq for MemberAccess"],["impl StructuralPartialEq for TupleAccess"],["impl StructuralPartialEq for Location"],["impl StructuralPartialEq for NonNegativeNumber"],["impl StructuralPartialEq for StaticString"],["impl StructuralPartialEq for ArrayExpression"],["impl StructuralPartialEq for BinaryExpression"],["impl StructuralPartialEq for CallExpression"],["impl StructuralPartialEq for CastExpression"],["impl StructuralPartialEq for ErrExpression"],["impl StructuralPartialEq for LocatorExpression"],["impl StructuralPartialEq for StructExpression"],["impl StructuralPartialEq for StructVariableInitializer"],["impl StructuralPartialEq for TernaryExpression"],["impl StructuralPartialEq for TupleExpression"],["impl StructuralPartialEq for UnaryExpression"],["impl StructuralPartialEq for UnitExpression"],["impl StructuralPartialEq for Annotation"],["impl StructuralPartialEq for Input"],["impl StructuralPartialEq for Output"],["impl StructuralPartialEq for GroupTuple"],["impl StructuralPartialEq for Mapping"],["impl StructuralPartialEq for ProgramId"],["impl StructuralPartialEq for ProgramScope"],["impl StructuralPartialEq for Program"],["impl StructuralPartialEq for AssertStatement"],["impl StructuralPartialEq for AssignStatement"],["impl StructuralPartialEq for Block"],["impl StructuralPartialEq for ConditionalStatement"],["impl StructuralPartialEq for ConsoleStatement"],["impl StructuralPartialEq for ConstDeclaration"],["impl StructuralPartialEq for DefinitionStatement"],["impl StructuralPartialEq for ExpressionStatement"],["impl StructuralPartialEq for IterationStatement"],["impl StructuralPartialEq for ReturnStatement"],["impl StructuralPartialEq for Ast"],["impl StructuralPartialEq for Member"],["impl StructuralPartialEq for Stub"],["impl StructuralPartialEq for ArrayType"],["impl StructuralPartialEq for FutureType"],["impl StructuralPartialEq for MappingType"],["impl StructuralPartialEq for CompositeType"],["impl StructuralPartialEq for TupleType"]]],["leo_errors",[["impl StructuralPartialEq for Formatted"]]],["leo_parser",[["impl StructuralPartialEq for Token"]]],["leo_passes",[["impl StructuralPartialEq for VariableType"],["impl StructuralPartialEq for RenameTable"],["impl StructuralPartialEq for FunctionSymbol"],["impl StructuralPartialEq for SymbolTable"],["impl StructuralPartialEq for VariableSymbol"],["impl<N: Node> StructuralPartialEq for DiGraph<N>"],["impl<N: Node> StructuralPartialEq for TreeNode<N>"]]],["leo_retriever",[["impl StructuralPartialEq for Location"],["impl StructuralPartialEq for NetworkName"],["impl StructuralPartialEq for Dependency"]]],["leo_span",[["impl StructuralPartialEq for MultiByteChar"],["impl StructuralPartialEq for BytePos"],["impl StructuralPartialEq for CharPos"],["impl StructuralPartialEq for Span"],["impl StructuralPartialEq for Symbol"]]],["leo_test_framework",[["impl StructuralPartialEq for ParseType"],["impl StructuralPartialEq for TestExpectationMode"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/marker/trait.Sync.js b/trait.impl/core/marker/trait.Sync.js index 41ecbda3d8..8e5b8dc712 100644 --- a/trait.impl/core/marker/trait.Sync.js +++ b/trait.impl/core/marker/trait.Sync.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_abnf",[["impl Sync for Scope",1,["leo_abnf::Scope"]],["impl<'a> Sync for Processor<'a>",1,["leo_abnf::Processor"]]]],["leo_ast",[["impl !Sync for Statement",1,["leo_ast::statement::Statement"]],["impl !Sync for NodeBuilder",1,["leo_ast::common::node_builder::NodeBuilder"]],["impl !Sync for Function",1,["leo_ast::functions::Function"]],["impl !Sync for ProgramScope",1,["leo_ast::program::program_scope::ProgramScope"]],["impl !Sync for Program",1,["leo_ast::program::Program"]],["impl !Sync for Block",1,["leo_ast::statement::block::Block"]],["impl !Sync for ConditionalStatement",1,["leo_ast::statement::conditional::ConditionalStatement"]],["impl !Sync for IterationStatement",1,["leo_ast::statement::iteration::IterationStatement"]],["impl !Sync for Ast",1,["leo_ast::Ast"]],["impl Sync for AccessExpression",1,["leo_ast::expressions::access::AccessExpression"]],["impl Sync for BinaryOperation",1,["leo_ast::expressions::binary::BinaryOperation"]],["impl Sync for Expression",1,["leo_ast::expressions::Expression"]],["impl Sync for Literal",1,["leo_ast::expressions::literal::Literal"]],["impl Sync for UnaryOperation",1,["leo_ast::expressions::unary::UnaryOperation"]],["impl Sync for CoreFunction",1,["leo_ast::functions::core_function::CoreFunction"]],["impl Sync for Mode",1,["leo_ast::functions::mode::Mode"]],["impl Sync for Variant",1,["leo_ast::functions::variant::Variant"]],["impl Sync for GroupCoordinate",1,["leo_ast::groups::group_coordinate::GroupCoordinate"]],["impl Sync for GroupLiteral",1,["leo_ast::groups::group_literal::GroupLiteral"]],["impl Sync for AssertVariant",1,["leo_ast::statement::assert::AssertVariant"]],["impl Sync for ConsoleFunction",1,["leo_ast::statement::console::console_function::ConsoleFunction"]],["impl Sync for DeclarationType",1,["leo_ast::statement::definition::declaration_type::DeclarationType"]],["impl Sync for CoreConstant",1,["leo_ast::types::core_constant::CoreConstant"]],["impl Sync for IntegerType",1,["leo_ast::types::integer_type::IntegerType"]],["impl Sync for Type",1,["leo_ast::types::type_::Type"]],["impl Sync for Value",1,["leo_ast::value::Value"]],["impl Sync for ArrayAccess",1,["leo_ast::access::array_access::ArrayAccess"]],["impl Sync for AssociatedConstant",1,["leo_ast::access::associated_constant_access::AssociatedConstant"]],["impl Sync for AssociatedFunction",1,["leo_ast::access::associated_function_access::AssociatedFunction"]],["impl Sync for MemberAccess",1,["leo_ast::access::member_access::MemberAccess"]],["impl Sync for TupleAccess",1,["leo_ast::access::tuple_access::TupleAccess"]],["impl Sync for Identifier",1,["leo_ast::common::identifier::Identifier"]],["impl Sync for Location",1,["leo_ast::common::location::Location"]],["impl Sync for NodeBuilderInner",1,["leo_ast::common::node_builder::NodeBuilderInner"]],["impl Sync for NonNegativeNumber",1,["leo_ast::common::positive_number::NonNegativeNumber"]],["impl Sync for StaticString",1,["leo_ast::common::static_string::StaticString"]],["impl Sync for ArrayExpression",1,["leo_ast::expressions::array::ArrayExpression"]],["impl Sync for BinaryExpression",1,["leo_ast::expressions::binary::BinaryExpression"]],["impl Sync for CallExpression",1,["leo_ast::expressions::call::CallExpression"]],["impl Sync for CastExpression",1,["leo_ast::expressions::cast::CastExpression"]],["impl Sync for ErrExpression",1,["leo_ast::expressions::err::ErrExpression"]],["impl Sync for LocatorExpression",1,["leo_ast::expressions::locator::LocatorExpression"]],["impl Sync for StructExpression",1,["leo_ast::expressions::struct_init::StructExpression"]],["impl Sync for StructVariableInitializer",1,["leo_ast::expressions::struct_init::StructVariableInitializer"]],["impl Sync for TernaryExpression",1,["leo_ast::expressions::ternary::TernaryExpression"]],["impl Sync for TupleExpression",1,["leo_ast::expressions::tuple::TupleExpression"]],["impl Sync for UnaryExpression",1,["leo_ast::expressions::unary::UnaryExpression"]],["impl Sync for UnitExpression",1,["leo_ast::expressions::unit::UnitExpression"]],["impl Sync for Annotation",1,["leo_ast::functions::annotation::Annotation"]],["impl Sync for Input",1,["leo_ast::functions::input::Input"]],["impl Sync for Output",1,["leo_ast::functions::output::Output"]],["impl Sync for GroupTuple",1,["leo_ast::groups::group_literal::GroupTuple"]],["impl Sync for Mapping",1,["leo_ast::mapping::Mapping"]],["impl Sync for ProgramId",1,["leo_ast::program::program_id::ProgramId"]],["impl Sync for AssertStatement",1,["leo_ast::statement::assert::AssertStatement"]],["impl Sync for AssignStatement",1,["leo_ast::statement::assign::AssignStatement"]],["impl Sync for ConsoleStatement",1,["leo_ast::statement::console::console_statement::ConsoleStatement"]],["impl Sync for ConstDeclaration",1,["leo_ast::statement::const_::ConstDeclaration"]],["impl Sync for DefinitionStatement",1,["leo_ast::statement::definition::DefinitionStatement"]],["impl Sync for ExpressionStatement",1,["leo_ast::statement::expression::ExpressionStatement"]],["impl Sync for ReturnStatement",1,["leo_ast::statement::return_::ReturnStatement"]],["impl Sync for Member",1,["leo_ast::struct::member::Member"]],["impl Sync for Composite",1,["leo_ast::struct::Composite"]],["impl Sync for FunctionStub",1,["leo_ast::stub::function_stub::FunctionStub"]],["impl Sync for Stub",1,["leo_ast::stub::Stub"]],["impl Sync for ArrayType",1,["leo_ast::types::array::ArrayType"]],["impl Sync for FutureType",1,["leo_ast::types::future::FutureType"]],["impl Sync for MappingType",1,["leo_ast::types::mapping::MappingType"]],["impl Sync for CompositeType",1,["leo_ast::types::struct_type::CompositeType"]],["impl Sync for TupleType",1,["leo_ast::types::tuple::TupleType"]],["impl<'a> Sync for DisplayDecimal<'a>",1,["leo_ast::expressions::literal::DisplayDecimal"]]]],["leo_compiler",[["impl Sync for BuildOptions",1,["leo_compiler::options::BuildOptions"]],["impl Sync for CompilerOptions",1,["leo_compiler::options::CompilerOptions"]],["impl Sync for OutputOptions",1,["leo_compiler::options::OutputOptions"]],["impl<'a, N> !Sync for Compiler<'a, N>",1,["leo_compiler::compiler::Compiler"]]]],["leo_errors",[["impl !Sync for BufferEmitter",1,["leo_errors::emitter::BufferEmitter"]],["impl !Sync for Handler",1,["leo_errors::emitter::Handler"]],["impl !Sync for HandlerInner",1,["leo_errors::emitter::HandlerInner"]],["impl Sync for AstError",1,["leo_errors::errors::ast::ast_errors::AstError"]],["impl Sync for CliError",1,["leo_errors::errors::cli::cli_errors::CliError"]],["impl Sync for CompilerError",1,["leo_errors::errors::compiler::compiler_errors::CompilerError"]],["impl Sync for LeoError",1,["leo_errors::errors::LeoError"]],["impl Sync for LeoWarning",1,["leo_errors::errors::LeoWarning"]],["impl Sync for FlattenError",1,["leo_errors::errors::flattener::flattener_errors::FlattenError"]],["impl Sync for LoopUnrollerError",1,["leo_errors::errors::loop_unroller::loop_unroller_errors::LoopUnrollerError"]],["impl Sync for PackageError",1,["leo_errors::errors::package::package_errors::PackageError"]],["impl Sync for ParserError",1,["leo_errors::errors::parser::parser_errors::ParserError"]],["impl Sync for ParserWarning",1,["leo_errors::errors::parser::parser_warnings::ParserWarning"]],["impl Sync for StaticAnalyzerError",1,["leo_errors::errors::static_analyzer::static_analyzer_error::StaticAnalyzerError"]],["impl Sync for StaticAnalyzerWarning",1,["leo_errors::errors::static_analyzer::static_analyzer_warning::StaticAnalyzerWarning"]],["impl Sync for TypeCheckerError",1,["leo_errors::errors::type_checker::type_checker_error::TypeCheckerError"]],["impl Sync for TypeCheckerWarning",1,["leo_errors::errors::type_checker::type_checker_warning::TypeCheckerWarning"]],["impl Sync for UtilError",1,["leo_errors::errors::utils::util_errors::UtilError"]],["impl Sync for Backtraced",1,["leo_errors::common::backtraced::Backtraced"]],["impl Sync for Formatted",1,["leo_errors::common::formatted::Formatted"]],["impl Sync for StderrEmitter",1,["leo_errors::emitter::StderrEmitter"]],["impl<T> Sync for Buffer<T>
where\n T: Sync,
",1,["leo_errors::emitter::Buffer"]]]],["leo_lang",[["impl Sync for Commands",1,["leo_lang::cli::cli::Commands"]],["impl Sync for Account",1,["leo_lang::cli::commands::account::Account"]],["impl Sync for ExampleVariant",1,["leo_lang::cli::commands::example::ExampleVariant"]],["impl Sync for QueryCommands",1,["leo_lang::cli::commands::query::QueryCommands"]],["impl Sync for CLI",1,["leo_lang::cli::cli::CLI"]],["impl Sync for LeoAdd",1,["leo_lang::cli::commands::add::LeoAdd"]],["impl Sync for LeoBuild",1,["leo_lang::cli::commands::build::LeoBuild"]],["impl Sync for LeoClean",1,["leo_lang::cli::commands::clean::LeoClean"]],["impl Sync for Deploy",1,["leo_lang::cli::commands::deploy::Deploy"]],["impl Sync for LeoExample",1,["leo_lang::cli::commands::example::LeoExample"]],["impl Sync for LeoExecute",1,["leo_lang::cli::commands::execute::LeoExecute"]],["impl Sync for LeoNew",1,["leo_lang::cli::commands::new::LeoNew"]],["impl Sync for LeoBlock",1,["leo_lang::cli::commands::query::block::LeoBlock"]],["impl Sync for LeoCommittee",1,["leo_lang::cli::commands::query::committee::LeoCommittee"]],["impl Sync for LeoMempool",1,["leo_lang::cli::commands::query::mempool::LeoMempool"]],["impl Sync for LeoPeers",1,["leo_lang::cli::commands::query::peers::LeoPeers"]],["impl Sync for LeoProgram",1,["leo_lang::cli::commands::query::program::LeoProgram"]],["impl Sync for StateRoot",1,["leo_lang::cli::commands::query::state_root::StateRoot"]],["impl Sync for LeoQuery",1,["leo_lang::cli::commands::query::LeoQuery"]],["impl Sync for LeoTransaction",1,["leo_lang::cli::commands::query::transaction::LeoTransaction"]],["impl Sync for LeoRemove",1,["leo_lang::cli::commands::remove::LeoRemove"]],["impl Sync for LeoRun",1,["leo_lang::cli::commands::run::LeoRun"]],["impl Sync for BuildOptions",1,["leo_lang::cli::commands::BuildOptions"]],["impl Sync for FeeOptions",1,["leo_lang::cli::commands::FeeOptions"]],["impl Sync for LeoUpdate",1,["leo_lang::cli::commands::update::LeoUpdate"]],["impl Sync for Context",1,["leo_lang::cli::helpers::context::Context"]],["impl Sync for Updater",1,["leo_lang::cli::helpers::updater::Updater"]],["impl<F, T> Sync for Format<F, T>
where\n F: Sync,\n T: Sync,
",1,["leo_lang::cli::helpers::logger::Format"]]]],["leo_package",[["impl Sync for Snapshot",1,["leo_package::outputs::ast_snapshot::Snapshot"]],["impl Sync for BuildDirectory",1,["leo_package::build::directory::BuildDirectory"]],["impl Sync for ImportsDirectory",1,["leo_package::imports::directory::ImportsDirectory"]],["impl Sync for InputsDirectory",1,["leo_package::inputs::directory::InputsDirectory"]],["impl Sync for SnapshotFile",1,["leo_package::outputs::ast_snapshot::SnapshotFile"]],["impl Sync for ChecksumFile",1,["leo_package::outputs::checksum::ChecksumFile"]],["impl Sync for CircuitFile",1,["leo_package::outputs::circuit::CircuitFile"]],["impl Sync for OutputsDirectory",1,["leo_package::outputs::directory::OutputsDirectory"]],["impl Sync for Package",1,["leo_package::package::Package"]],["impl Sync for Gitignore",1,["leo_package::root::gitignore::Gitignore"]],["impl Sync for SourceDirectory",1,["leo_package::source::directory::SourceDirectory"]],["impl Sync for MainFile",1,["leo_package::source::main::MainFile"]],["impl<N> Sync for Env<N>",1,["leo_package::root::env::Env"]]]],["leo_parser",[["impl Sync for Delimiter",1,["leo_parser::tokenizer::token::Delimiter"]],["impl Sync for Token",1,["leo_parser::tokenizer::token::Token"]],["impl Sync for SpannedToken",1,["leo_parser::tokenizer::lexer::SpannedToken"]],["impl<'a, N> !Sync for ParserContext<'a, N>",1,["leo_parser::parser::context::ParserContext"]]]],["leo_passes",[["impl !Sync for Assigner",1,["leo_passes::common::assigner::Assigner"]],["impl !Sync for ConstantPropagationTable",1,["leo_passes::common::constant_propagation_table::ConstantPropagationTable"]],["impl !Sync for SymbolTable",1,["leo_passes::common::symbol_table::SymbolTable"]],["impl !Sync for TypeTable",1,["leo_passes::common::type_table::TypeTable"]],["impl Sync for VariableType",1,["leo_passes::common::symbol_table::variable_symbol::VariableType"]],["impl Sync for Guard",1,["leo_passes::flattening::flattener::Guard"]],["impl Sync for ReturnGuard",1,["leo_passes::flattening::flattener::ReturnGuard"]],["impl Sync for Clusivity",1,["leo_passes::loop_unrolling::range_iterator::Clusivity"]],["impl Sync for AssignerInner",1,["leo_passes::common::assigner::AssignerInner"]],["impl Sync for RenameTable",1,["leo_passes::common::rename_table::RenameTable"]],["impl Sync for FunctionSymbol",1,["leo_passes::common::symbol_table::function_symbol::FunctionSymbol"]],["impl Sync for VariableSymbol",1,["leo_passes::common::symbol_table::variable_symbol::VariableSymbol"]],["impl Sync for AwaitChecker",1,["leo_passes::static_analysis::await_checker::AwaitChecker"]],["impl Sync for ScopeState",1,["leo_passes::type_checking::scope_state::ScopeState"]],["impl<'a> !Sync for CodeGenerator<'a>",1,["leo_passes::code_generation::generator::CodeGenerator"]],["impl<'a> !Sync for DeadCodeEliminator<'a>",1,["leo_passes::dead_code_elimination::dead_code_eliminator::DeadCodeEliminator"]],["impl<'a> !Sync for Destructurer<'a>",1,["leo_passes::destructuring::destructurer::Destructurer"]],["impl<'a> !Sync for Flattener<'a>",1,["leo_passes::flattening::flattener::Flattener"]],["impl<'a> !Sync for AssignmentRenamer<'a>",1,["leo_passes::function_inlining::assignment_renamer::AssignmentRenamer"]],["impl<'a> !Sync for FunctionInliner<'a>",1,["leo_passes::function_inlining::function_inliner::FunctionInliner"]],["impl<'a> !Sync for Unroller<'a>",1,["leo_passes::loop_unrolling::unroller::Unroller"]],["impl<'a> !Sync for StaticSingleAssigner<'a>",1,["leo_passes::static_single_assignment::static_single_assigner::StaticSingleAssigner"]],["impl<'a> !Sync for SymbolTableCreator<'a>",1,["leo_passes::symbol_table_creation::creator::SymbolTableCreator"]],["impl<'a, N> !Sync for StaticAnalyzer<'a, N>",1,["leo_passes::static_analysis::analyzer::StaticAnalyzer"]],["impl<'a, N> !Sync for TypeChecker<'a, N>",1,["leo_passes::type_checking::checker::TypeChecker"]],["impl<F> Sync for Replacer<F>
where\n F: Sync,
",1,["leo_passes::common::replacer::Replacer"]],["impl<I> Sync for RangeIterator<I>
where\n I: Sync,
",1,["leo_passes::loop_unrolling::range_iterator::RangeIterator"]],["impl<N> Sync for DiGraphError<N>
where\n N: Sync,
",1,["leo_passes::common::graph::DiGraphError"]],["impl<N> Sync for DiGraph<N>
where\n N: Sync,
",1,["leo_passes::common::graph::DiGraph"]],["impl<N> Sync for TreeNode<N>
where\n N: Sync,
",1,["leo_passes::common::tree_node::TreeNode"]]]],["leo_retriever",[["impl Sync for Location",1,["leo_retriever::program_context::location::Location"]],["impl Sync for NetworkName",1,["leo_retriever::program_context::network_name::NetworkName"]],["impl Sync for Dependency",1,["leo_retriever::program_context::dependency::Dependency"]],["impl Sync for LockFileEntry",1,["leo_retriever::program_context::lock_file_entry::LockFileEntry"]],["impl Sync for Manifest",1,["leo_retriever::program_context::manifest::Manifest"]],["impl Sync for ProgramContext",1,["leo_retriever::program_context::ProgramContext"]],["impl<N> Sync for Retriever<N>",1,["leo_retriever::retriever::Retriever"]]]],["leo_span",[["impl !Sync for LineCol",1,["leo_span::source_map::LineCol"]],["impl !Sync for SourceMap",1,["leo_span::source_map::SourceMap"]],["impl !Sync for SourceMapInner",1,["leo_span::source_map::SourceMapInner"]],["impl !Sync for SpanLocation",1,["leo_span::source_map::SpanLocation"]],["impl !Sync for Interner",1,["leo_span::symbol::Interner"]],["impl !Sync for SessionGlobals",1,["leo_span::symbol::SessionGlobals"]],["impl Sync for FileName",1,["leo_span::source_map::FileName"]],["impl Sync for InternedStr",1,["leo_span::symbol::InternedStr"]],["impl Sync for MultiByteChar",1,["leo_span::source_map::MultiByteChar"]],["impl Sync for SourceFile",1,["leo_span::source_map::SourceFile"]],["impl Sync for BytePos",1,["leo_span::span::BytePos"]],["impl Sync for CharPos",1,["leo_span::span::CharPos"]],["impl Sync for Span",1,["leo_span::span::Span"]],["impl Sync for SpanMapVisitor",1,["leo_span::span_json::SpanMapVisitor"]],["impl Sync for InnerInterner",1,["leo_span::symbol::InnerInterner"]],["impl Sync for Symbol",1,["leo_span::symbol::Symbol"]]]],["leo_test_framework",[["impl Sync for TestError",1,["leo_test_framework::error::TestError"]],["impl Sync for ParseType",1,["leo_test_framework::runner::ParseType"]],["impl Sync for TestExpectationMode",1,["leo_test_framework::test::TestExpectationMode"]],["impl Sync for TestFailure",1,["leo_test_framework::error::TestFailure"]],["impl Sync for TestExpectation",1,["leo_test_framework::output::TestExpectation"]],["impl Sync for Test",1,["leo_test_framework::runner::Test"]],["impl Sync for TestCases",1,["leo_test_framework::runner::TestCases"]],["impl Sync for TestConfig",1,["leo_test_framework::test::TestConfig"]]]]]); + var implementors = Object.fromEntries([["leo_abnf",[["impl Sync for Scope",1,["leo_abnf::Scope"]],["impl<'a> Sync for Processor<'a>",1,["leo_abnf::Processor"]]]],["leo_ast",[["impl !Sync for Statement",1,["leo_ast::statement::Statement"]],["impl !Sync for NodeBuilder",1,["leo_ast::common::node_builder::NodeBuilder"]],["impl !Sync for Function",1,["leo_ast::functions::Function"]],["impl !Sync for ProgramScope",1,["leo_ast::program::program_scope::ProgramScope"]],["impl !Sync for Program",1,["leo_ast::program::Program"]],["impl !Sync for Block",1,["leo_ast::statement::block::Block"]],["impl !Sync for ConditionalStatement",1,["leo_ast::statement::conditional::ConditionalStatement"]],["impl !Sync for IterationStatement",1,["leo_ast::statement::iteration::IterationStatement"]],["impl !Sync for Ast",1,["leo_ast::Ast"]],["impl Sync for AccessExpression",1,["leo_ast::expressions::access::AccessExpression"]],["impl Sync for BinaryOperation",1,["leo_ast::expressions::binary::BinaryOperation"]],["impl Sync for Expression",1,["leo_ast::expressions::Expression"]],["impl Sync for Literal",1,["leo_ast::expressions::literal::Literal"]],["impl Sync for UnaryOperation",1,["leo_ast::expressions::unary::UnaryOperation"]],["impl Sync for CoreFunction",1,["leo_ast::functions::core_function::CoreFunction"]],["impl Sync for Mode",1,["leo_ast::functions::mode::Mode"]],["impl Sync for Variant",1,["leo_ast::functions::variant::Variant"]],["impl Sync for GroupCoordinate",1,["leo_ast::groups::group_coordinate::GroupCoordinate"]],["impl Sync for GroupLiteral",1,["leo_ast::groups::group_literal::GroupLiteral"]],["impl Sync for AssertVariant",1,["leo_ast::statement::assert::AssertVariant"]],["impl Sync for ConsoleFunction",1,["leo_ast::statement::console::console_function::ConsoleFunction"]],["impl Sync for DeclarationType",1,["leo_ast::statement::definition::declaration_type::DeclarationType"]],["impl Sync for CoreConstant",1,["leo_ast::types::core_constant::CoreConstant"]],["impl Sync for IntegerType",1,["leo_ast::types::integer_type::IntegerType"]],["impl Sync for Type",1,["leo_ast::types::type_::Type"]],["impl Sync for Value",1,["leo_ast::value::Value"]],["impl Sync for ArrayAccess",1,["leo_ast::access::array_access::ArrayAccess"]],["impl Sync for AssociatedConstant",1,["leo_ast::access::associated_constant_access::AssociatedConstant"]],["impl Sync for AssociatedFunction",1,["leo_ast::access::associated_function_access::AssociatedFunction"]],["impl Sync for MemberAccess",1,["leo_ast::access::member_access::MemberAccess"]],["impl Sync for TupleAccess",1,["leo_ast::access::tuple_access::TupleAccess"]],["impl Sync for Identifier",1,["leo_ast::common::identifier::Identifier"]],["impl Sync for Location",1,["leo_ast::common::location::Location"]],["impl Sync for NodeBuilderInner",1,["leo_ast::common::node_builder::NodeBuilderInner"]],["impl Sync for NonNegativeNumber",1,["leo_ast::common::positive_number::NonNegativeNumber"]],["impl Sync for StaticString",1,["leo_ast::common::static_string::StaticString"]],["impl Sync for ArrayExpression",1,["leo_ast::expressions::array::ArrayExpression"]],["impl Sync for BinaryExpression",1,["leo_ast::expressions::binary::BinaryExpression"]],["impl Sync for CallExpression",1,["leo_ast::expressions::call::CallExpression"]],["impl Sync for CastExpression",1,["leo_ast::expressions::cast::CastExpression"]],["impl Sync for ErrExpression",1,["leo_ast::expressions::err::ErrExpression"]],["impl Sync for LocatorExpression",1,["leo_ast::expressions::locator::LocatorExpression"]],["impl Sync for StructExpression",1,["leo_ast::expressions::struct_init::StructExpression"]],["impl Sync for StructVariableInitializer",1,["leo_ast::expressions::struct_init::StructVariableInitializer"]],["impl Sync for TernaryExpression",1,["leo_ast::expressions::ternary::TernaryExpression"]],["impl Sync for TupleExpression",1,["leo_ast::expressions::tuple::TupleExpression"]],["impl Sync for UnaryExpression",1,["leo_ast::expressions::unary::UnaryExpression"]],["impl Sync for UnitExpression",1,["leo_ast::expressions::unit::UnitExpression"]],["impl Sync for Annotation",1,["leo_ast::functions::annotation::Annotation"]],["impl Sync for Input",1,["leo_ast::functions::input::Input"]],["impl Sync for Output",1,["leo_ast::functions::output::Output"]],["impl Sync for GroupTuple",1,["leo_ast::groups::group_literal::GroupTuple"]],["impl Sync for Mapping",1,["leo_ast::mapping::Mapping"]],["impl Sync for ProgramId",1,["leo_ast::program::program_id::ProgramId"]],["impl Sync for AssertStatement",1,["leo_ast::statement::assert::AssertStatement"]],["impl Sync for AssignStatement",1,["leo_ast::statement::assign::AssignStatement"]],["impl Sync for ConsoleStatement",1,["leo_ast::statement::console::console_statement::ConsoleStatement"]],["impl Sync for ConstDeclaration",1,["leo_ast::statement::const_::ConstDeclaration"]],["impl Sync for DefinitionStatement",1,["leo_ast::statement::definition::DefinitionStatement"]],["impl Sync for ExpressionStatement",1,["leo_ast::statement::expression::ExpressionStatement"]],["impl Sync for ReturnStatement",1,["leo_ast::statement::return_::ReturnStatement"]],["impl Sync for Member",1,["leo_ast::struct::member::Member"]],["impl Sync for Composite",1,["leo_ast::struct::Composite"]],["impl Sync for FunctionStub",1,["leo_ast::stub::function_stub::FunctionStub"]],["impl Sync for Stub",1,["leo_ast::stub::Stub"]],["impl Sync for ArrayType",1,["leo_ast::types::array::ArrayType"]],["impl Sync for FutureType",1,["leo_ast::types::future::FutureType"]],["impl Sync for MappingType",1,["leo_ast::types::mapping::MappingType"]],["impl Sync for CompositeType",1,["leo_ast::types::struct_type::CompositeType"]],["impl Sync for TupleType",1,["leo_ast::types::tuple::TupleType"]],["impl<'a> Sync for DisplayDecimal<'a>",1,["leo_ast::expressions::literal::DisplayDecimal"]]]],["leo_compiler",[["impl Sync for BuildOptions",1,["leo_compiler::options::BuildOptions"]],["impl Sync for CompilerOptions",1,["leo_compiler::options::CompilerOptions"]],["impl Sync for OutputOptions",1,["leo_compiler::options::OutputOptions"]],["impl<'a, N> !Sync for Compiler<'a, N>",1,["leo_compiler::compiler::Compiler"]]]],["leo_errors",[["impl !Sync for BufferEmitter",1,["leo_errors::emitter::BufferEmitter"]],["impl !Sync for Handler",1,["leo_errors::emitter::Handler"]],["impl !Sync for HandlerInner",1,["leo_errors::emitter::HandlerInner"]],["impl Sync for AstError",1,["leo_errors::errors::ast::ast_errors::AstError"]],["impl Sync for CliError",1,["leo_errors::errors::cli::cli_errors::CliError"]],["impl Sync for CompilerError",1,["leo_errors::errors::compiler::compiler_errors::CompilerError"]],["impl Sync for LeoError",1,["leo_errors::errors::LeoError"]],["impl Sync for LeoWarning",1,["leo_errors::errors::LeoWarning"]],["impl Sync for FlattenError",1,["leo_errors::errors::flattener::flattener_errors::FlattenError"]],["impl Sync for LoopUnrollerError",1,["leo_errors::errors::loop_unroller::loop_unroller_errors::LoopUnrollerError"]],["impl Sync for PackageError",1,["leo_errors::errors::package::package_errors::PackageError"]],["impl Sync for ParserError",1,["leo_errors::errors::parser::parser_errors::ParserError"]],["impl Sync for ParserWarning",1,["leo_errors::errors::parser::parser_warnings::ParserWarning"]],["impl Sync for StaticAnalyzerError",1,["leo_errors::errors::static_analyzer::static_analyzer_error::StaticAnalyzerError"]],["impl Sync for StaticAnalyzerWarning",1,["leo_errors::errors::static_analyzer::static_analyzer_warning::StaticAnalyzerWarning"]],["impl Sync for TypeCheckerError",1,["leo_errors::errors::type_checker::type_checker_error::TypeCheckerError"]],["impl Sync for TypeCheckerWarning",1,["leo_errors::errors::type_checker::type_checker_warning::TypeCheckerWarning"]],["impl Sync for UtilError",1,["leo_errors::errors::utils::util_errors::UtilError"]],["impl Sync for Backtraced",1,["leo_errors::common::backtraced::Backtraced"]],["impl Sync for Formatted",1,["leo_errors::common::formatted::Formatted"]],["impl Sync for StderrEmitter",1,["leo_errors::emitter::StderrEmitter"]],["impl<T> Sync for Buffer<T>
where\n T: Sync,
",1,["leo_errors::emitter::Buffer"]]]],["leo_lang",[["impl Sync for Commands",1,["leo_lang::cli::cli::Commands"]],["impl Sync for Account",1,["leo_lang::cli::commands::account::Account"]],["impl Sync for ExampleVariant",1,["leo_lang::cli::commands::example::ExampleVariant"]],["impl Sync for QueryCommands",1,["leo_lang::cli::commands::query::QueryCommands"]],["impl Sync for CLI",1,["leo_lang::cli::cli::CLI"]],["impl Sync for LeoAdd",1,["leo_lang::cli::commands::add::LeoAdd"]],["impl Sync for LeoBuild",1,["leo_lang::cli::commands::build::LeoBuild"]],["impl Sync for LeoClean",1,["leo_lang::cli::commands::clean::LeoClean"]],["impl Sync for Deploy",1,["leo_lang::cli::commands::deploy::Deploy"]],["impl Sync for LeoExample",1,["leo_lang::cli::commands::example::LeoExample"]],["impl Sync for LeoExecute",1,["leo_lang::cli::commands::execute::LeoExecute"]],["impl Sync for LeoNew",1,["leo_lang::cli::commands::new::LeoNew"]],["impl Sync for LeoBlock",1,["leo_lang::cli::commands::query::block::LeoBlock"]],["impl Sync for LeoCommittee",1,["leo_lang::cli::commands::query::committee::LeoCommittee"]],["impl Sync for LeoMempool",1,["leo_lang::cli::commands::query::mempool::LeoMempool"]],["impl Sync for LeoPeers",1,["leo_lang::cli::commands::query::peers::LeoPeers"]],["impl Sync for LeoProgram",1,["leo_lang::cli::commands::query::program::LeoProgram"]],["impl Sync for StateRoot",1,["leo_lang::cli::commands::query::state_root::StateRoot"]],["impl Sync for LeoQuery",1,["leo_lang::cli::commands::query::LeoQuery"]],["impl Sync for LeoTransaction",1,["leo_lang::cli::commands::query::transaction::LeoTransaction"]],["impl Sync for LeoRemove",1,["leo_lang::cli::commands::remove::LeoRemove"]],["impl Sync for LeoRun",1,["leo_lang::cli::commands::run::LeoRun"]],["impl Sync for BuildOptions",1,["leo_lang::cli::commands::BuildOptions"]],["impl Sync for FeeOptions",1,["leo_lang::cli::commands::FeeOptions"]],["impl Sync for LeoUpdate",1,["leo_lang::cli::commands::update::LeoUpdate"]],["impl Sync for Context",1,["leo_lang::cli::helpers::context::Context"]],["impl Sync for Updater",1,["leo_lang::cli::helpers::updater::Updater"]],["impl<F, T> Sync for Format<F, T>
where\n F: Sync,\n T: Sync,
",1,["leo_lang::cli::helpers::logger::Format"]]]],["leo_package",[["impl Sync for Snapshot",1,["leo_package::outputs::ast_snapshot::Snapshot"]],["impl Sync for BuildDirectory",1,["leo_package::build::directory::BuildDirectory"]],["impl Sync for ImportsDirectory",1,["leo_package::imports::directory::ImportsDirectory"]],["impl Sync for InputsDirectory",1,["leo_package::inputs::directory::InputsDirectory"]],["impl Sync for SnapshotFile",1,["leo_package::outputs::ast_snapshot::SnapshotFile"]],["impl Sync for ChecksumFile",1,["leo_package::outputs::checksum::ChecksumFile"]],["impl Sync for CircuitFile",1,["leo_package::outputs::circuit::CircuitFile"]],["impl Sync for OutputsDirectory",1,["leo_package::outputs::directory::OutputsDirectory"]],["impl Sync for Package",1,["leo_package::package::Package"]],["impl Sync for Gitignore",1,["leo_package::root::gitignore::Gitignore"]],["impl Sync for SourceDirectory",1,["leo_package::source::directory::SourceDirectory"]],["impl Sync for MainFile",1,["leo_package::source::main::MainFile"]],["impl<N> Sync for Env<N>",1,["leo_package::root::env::Env"]]]],["leo_parser",[["impl Sync for Delimiter",1,["leo_parser::tokenizer::token::Delimiter"]],["impl Sync for Token",1,["leo_parser::tokenizer::token::Token"]],["impl Sync for SpannedToken",1,["leo_parser::tokenizer::lexer::SpannedToken"]],["impl<'a, N> !Sync for ParserContext<'a, N>",1,["leo_parser::parser::context::ParserContext"]]]],["leo_passes",[["impl !Sync for Assigner",1,["leo_passes::common::assigner::Assigner"]],["impl !Sync for ConstantPropagationTable",1,["leo_passes::common::constant_propagation_table::ConstantPropagationTable"]],["impl !Sync for SymbolTable",1,["leo_passes::common::symbol_table::SymbolTable"]],["impl !Sync for TypeTable",1,["leo_passes::common::type_table::TypeTable"]],["impl Sync for VariableType",1,["leo_passes::common::symbol_table::variable_symbol::VariableType"]],["impl Sync for Guard",1,["leo_passes::flattening::flattener::Guard"]],["impl Sync for ReturnGuard",1,["leo_passes::flattening::flattener::ReturnGuard"]],["impl Sync for Clusivity",1,["leo_passes::loop_unrolling::range_iterator::Clusivity"]],["impl Sync for AssignerInner",1,["leo_passes::common::assigner::AssignerInner"]],["impl Sync for RenameTable",1,["leo_passes::common::rename_table::RenameTable"]],["impl Sync for FunctionSymbol",1,["leo_passes::common::symbol_table::function_symbol::FunctionSymbol"]],["impl Sync for VariableSymbol",1,["leo_passes::common::symbol_table::variable_symbol::VariableSymbol"]],["impl Sync for AwaitChecker",1,["leo_passes::static_analysis::await_checker::AwaitChecker"]],["impl Sync for ScopeState",1,["leo_passes::type_checking::scope_state::ScopeState"]],["impl<'a> !Sync for CodeGenerator<'a>",1,["leo_passes::code_generation::generator::CodeGenerator"]],["impl<'a> !Sync for DeadCodeEliminator<'a>",1,["leo_passes::dead_code_elimination::dead_code_eliminator::DeadCodeEliminator"]],["impl<'a> !Sync for Destructurer<'a>",1,["leo_passes::destructuring::destructurer::Destructurer"]],["impl<'a> !Sync for Flattener<'a>",1,["leo_passes::flattening::flattener::Flattener"]],["impl<'a> !Sync for AssignmentRenamer<'a>",1,["leo_passes::function_inlining::assignment_renamer::AssignmentRenamer"]],["impl<'a> !Sync for FunctionInliner<'a>",1,["leo_passes::function_inlining::function_inliner::FunctionInliner"]],["impl<'a> !Sync for Unroller<'a>",1,["leo_passes::loop_unrolling::unroller::Unroller"]],["impl<'a> !Sync for StaticSingleAssigner<'a>",1,["leo_passes::static_single_assignment::static_single_assigner::StaticSingleAssigner"]],["impl<'a> !Sync for SymbolTableCreator<'a>",1,["leo_passes::symbol_table_creation::creator::SymbolTableCreator"]],["impl<'a, N> !Sync for StaticAnalyzer<'a, N>",1,["leo_passes::static_analysis::analyzer::StaticAnalyzer"]],["impl<'a, N> !Sync for TypeChecker<'a, N>",1,["leo_passes::type_checking::checker::TypeChecker"]],["impl<F> Sync for Replacer<F>
where\n F: Sync,
",1,["leo_passes::common::replacer::Replacer"]],["impl<I> Sync for RangeIterator<I>
where\n I: Sync,
",1,["leo_passes::loop_unrolling::range_iterator::RangeIterator"]],["impl<N> Sync for DiGraphError<N>
where\n N: Sync,
",1,["leo_passes::common::graph::DiGraphError"]],["impl<N> Sync for DiGraph<N>
where\n N: Sync,
",1,["leo_passes::common::graph::DiGraph"]],["impl<N> Sync for TreeNode<N>
where\n N: Sync,
",1,["leo_passes::common::tree_node::TreeNode"]]]],["leo_retriever",[["impl Sync for Location",1,["leo_retriever::program_context::location::Location"]],["impl Sync for NetworkName",1,["leo_retriever::program_context::network_name::NetworkName"]],["impl Sync for Dependency",1,["leo_retriever::program_context::dependency::Dependency"]],["impl Sync for LockFileEntry",1,["leo_retriever::program_context::lock_file_entry::LockFileEntry"]],["impl Sync for Manifest",1,["leo_retriever::program_context::manifest::Manifest"]],["impl Sync for ProgramContext",1,["leo_retriever::program_context::ProgramContext"]],["impl<N> Sync for Retriever<N>",1,["leo_retriever::retriever::Retriever"]]]],["leo_span",[["impl !Sync for LineCol",1,["leo_span::source_map::LineCol"]],["impl !Sync for SourceMap",1,["leo_span::source_map::SourceMap"]],["impl !Sync for SourceMapInner",1,["leo_span::source_map::SourceMapInner"]],["impl !Sync for SpanLocation",1,["leo_span::source_map::SpanLocation"]],["impl !Sync for Interner",1,["leo_span::symbol::Interner"]],["impl !Sync for SessionGlobals",1,["leo_span::symbol::SessionGlobals"]],["impl Sync for FileName",1,["leo_span::source_map::FileName"]],["impl Sync for InternedStr",1,["leo_span::symbol::InternedStr"]],["impl Sync for MultiByteChar",1,["leo_span::source_map::MultiByteChar"]],["impl Sync for SourceFile",1,["leo_span::source_map::SourceFile"]],["impl Sync for BytePos",1,["leo_span::span::BytePos"]],["impl Sync for CharPos",1,["leo_span::span::CharPos"]],["impl Sync for Span",1,["leo_span::span::Span"]],["impl Sync for SpanMapVisitor",1,["leo_span::span_json::SpanMapVisitor"]],["impl Sync for InnerInterner",1,["leo_span::symbol::InnerInterner"]],["impl Sync for Symbol",1,["leo_span::symbol::Symbol"]]]],["leo_test_framework",[["impl Sync for TestError",1,["leo_test_framework::error::TestError"]],["impl Sync for ParseType",1,["leo_test_framework::runner::ParseType"]],["impl Sync for TestExpectationMode",1,["leo_test_framework::test::TestExpectationMode"]],["impl Sync for TestFailure",1,["leo_test_framework::error::TestFailure"]],["impl Sync for TestExpectation",1,["leo_test_framework::output::TestExpectation"]],["impl Sync for Test",1,["leo_test_framework::runner::Test"]],["impl Sync for TestCases",1,["leo_test_framework::runner::TestCases"]],["impl Sync for TestConfig",1,["leo_test_framework::test::TestConfig"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/marker/trait.Unpin.js b/trait.impl/core/marker/trait.Unpin.js index 5760bebc31..456b9521a6 100644 --- a/trait.impl/core/marker/trait.Unpin.js +++ b/trait.impl/core/marker/trait.Unpin.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_abnf",[["impl Unpin for Scope",1,["leo_abnf::Scope"]],["impl<'a> Unpin for Processor<'a>",1,["leo_abnf::Processor"]]]],["leo_ast",[["impl Unpin for AccessExpression",1,["leo_ast::expressions::access::AccessExpression"]],["impl Unpin for BinaryOperation",1,["leo_ast::expressions::binary::BinaryOperation"]],["impl Unpin for Expression",1,["leo_ast::expressions::Expression"]],["impl Unpin for Literal",1,["leo_ast::expressions::literal::Literal"]],["impl Unpin for UnaryOperation",1,["leo_ast::expressions::unary::UnaryOperation"]],["impl Unpin for CoreFunction",1,["leo_ast::functions::core_function::CoreFunction"]],["impl Unpin for Mode",1,["leo_ast::functions::mode::Mode"]],["impl Unpin for Variant",1,["leo_ast::functions::variant::Variant"]],["impl Unpin for GroupCoordinate",1,["leo_ast::groups::group_coordinate::GroupCoordinate"]],["impl Unpin for GroupLiteral",1,["leo_ast::groups::group_literal::GroupLiteral"]],["impl Unpin for AssertVariant",1,["leo_ast::statement::assert::AssertVariant"]],["impl Unpin for ConsoleFunction",1,["leo_ast::statement::console::console_function::ConsoleFunction"]],["impl Unpin for DeclarationType",1,["leo_ast::statement::definition::declaration_type::DeclarationType"]],["impl Unpin for Statement",1,["leo_ast::statement::Statement"]],["impl Unpin for CoreConstant",1,["leo_ast::types::core_constant::CoreConstant"]],["impl Unpin for IntegerType",1,["leo_ast::types::integer_type::IntegerType"]],["impl Unpin for Type",1,["leo_ast::types::type_::Type"]],["impl Unpin for Value",1,["leo_ast::value::Value"]],["impl Unpin for ArrayAccess",1,["leo_ast::access::array_access::ArrayAccess"]],["impl Unpin for AssociatedConstant",1,["leo_ast::access::associated_constant_access::AssociatedConstant"]],["impl Unpin for AssociatedFunction",1,["leo_ast::access::associated_function_access::AssociatedFunction"]],["impl Unpin for MemberAccess",1,["leo_ast::access::member_access::MemberAccess"]],["impl Unpin for TupleAccess",1,["leo_ast::access::tuple_access::TupleAccess"]],["impl Unpin for Identifier",1,["leo_ast::common::identifier::Identifier"]],["impl Unpin for Location",1,["leo_ast::common::location::Location"]],["impl Unpin for NodeBuilder",1,["leo_ast::common::node_builder::NodeBuilder"]],["impl Unpin for NodeBuilderInner",1,["leo_ast::common::node_builder::NodeBuilderInner"]],["impl Unpin for NonNegativeNumber",1,["leo_ast::common::positive_number::NonNegativeNumber"]],["impl Unpin for StaticString",1,["leo_ast::common::static_string::StaticString"]],["impl Unpin for ArrayExpression",1,["leo_ast::expressions::array::ArrayExpression"]],["impl Unpin for BinaryExpression",1,["leo_ast::expressions::binary::BinaryExpression"]],["impl Unpin for CallExpression",1,["leo_ast::expressions::call::CallExpression"]],["impl Unpin for CastExpression",1,["leo_ast::expressions::cast::CastExpression"]],["impl Unpin for ErrExpression",1,["leo_ast::expressions::err::ErrExpression"]],["impl Unpin for LocatorExpression",1,["leo_ast::expressions::locator::LocatorExpression"]],["impl Unpin for StructExpression",1,["leo_ast::expressions::struct_init::StructExpression"]],["impl Unpin for StructVariableInitializer",1,["leo_ast::expressions::struct_init::StructVariableInitializer"]],["impl Unpin for TernaryExpression",1,["leo_ast::expressions::ternary::TernaryExpression"]],["impl Unpin for TupleExpression",1,["leo_ast::expressions::tuple::TupleExpression"]],["impl Unpin for UnaryExpression",1,["leo_ast::expressions::unary::UnaryExpression"]],["impl Unpin for UnitExpression",1,["leo_ast::expressions::unit::UnitExpression"]],["impl Unpin for Annotation",1,["leo_ast::functions::annotation::Annotation"]],["impl Unpin for Input",1,["leo_ast::functions::input::Input"]],["impl Unpin for Output",1,["leo_ast::functions::output::Output"]],["impl Unpin for Function",1,["leo_ast::functions::Function"]],["impl Unpin for GroupTuple",1,["leo_ast::groups::group_literal::GroupTuple"]],["impl Unpin for Mapping",1,["leo_ast::mapping::Mapping"]],["impl Unpin for ProgramId",1,["leo_ast::program::program_id::ProgramId"]],["impl Unpin for ProgramScope",1,["leo_ast::program::program_scope::ProgramScope"]],["impl Unpin for Program",1,["leo_ast::program::Program"]],["impl Unpin for AssertStatement",1,["leo_ast::statement::assert::AssertStatement"]],["impl Unpin for AssignStatement",1,["leo_ast::statement::assign::AssignStatement"]],["impl Unpin for Block",1,["leo_ast::statement::block::Block"]],["impl Unpin for ConditionalStatement",1,["leo_ast::statement::conditional::ConditionalStatement"]],["impl Unpin for ConsoleStatement",1,["leo_ast::statement::console::console_statement::ConsoleStatement"]],["impl Unpin for ConstDeclaration",1,["leo_ast::statement::const_::ConstDeclaration"]],["impl Unpin for DefinitionStatement",1,["leo_ast::statement::definition::DefinitionStatement"]],["impl Unpin for ExpressionStatement",1,["leo_ast::statement::expression::ExpressionStatement"]],["impl Unpin for IterationStatement",1,["leo_ast::statement::iteration::IterationStatement"]],["impl Unpin for ReturnStatement",1,["leo_ast::statement::return_::ReturnStatement"]],["impl Unpin for Ast",1,["leo_ast::Ast"]],["impl Unpin for Member",1,["leo_ast::struct::member::Member"]],["impl Unpin for Composite",1,["leo_ast::struct::Composite"]],["impl Unpin for FunctionStub",1,["leo_ast::stub::function_stub::FunctionStub"]],["impl Unpin for Stub",1,["leo_ast::stub::Stub"]],["impl Unpin for ArrayType",1,["leo_ast::types::array::ArrayType"]],["impl Unpin for FutureType",1,["leo_ast::types::future::FutureType"]],["impl Unpin for MappingType",1,["leo_ast::types::mapping::MappingType"]],["impl Unpin for CompositeType",1,["leo_ast::types::struct_type::CompositeType"]],["impl Unpin for TupleType",1,["leo_ast::types::tuple::TupleType"]],["impl<'a> Unpin for DisplayDecimal<'a>",1,["leo_ast::expressions::literal::DisplayDecimal"]]]],["leo_compiler",[["impl Unpin for BuildOptions",1,["leo_compiler::options::BuildOptions"]],["impl Unpin for CompilerOptions",1,["leo_compiler::options::CompilerOptions"]],["impl Unpin for OutputOptions",1,["leo_compiler::options::OutputOptions"]],["impl<'a, N> Unpin for Compiler<'a, N>
where\n N: Unpin,
",1,["leo_compiler::compiler::Compiler"]]]],["leo_errors",[["impl Unpin for AstError",1,["leo_errors::errors::ast::ast_errors::AstError"]],["impl Unpin for CliError",1,["leo_errors::errors::cli::cli_errors::CliError"]],["impl Unpin for CompilerError",1,["leo_errors::errors::compiler::compiler_errors::CompilerError"]],["impl Unpin for LeoError",1,["leo_errors::errors::LeoError"]],["impl Unpin for LeoWarning",1,["leo_errors::errors::LeoWarning"]],["impl Unpin for FlattenError",1,["leo_errors::errors::flattener::flattener_errors::FlattenError"]],["impl Unpin for LoopUnrollerError",1,["leo_errors::errors::loop_unroller::loop_unroller_errors::LoopUnrollerError"]],["impl Unpin for PackageError",1,["leo_errors::errors::package::package_errors::PackageError"]],["impl Unpin for ParserError",1,["leo_errors::errors::parser::parser_errors::ParserError"]],["impl Unpin for ParserWarning",1,["leo_errors::errors::parser::parser_warnings::ParserWarning"]],["impl Unpin for StaticAnalyzerError",1,["leo_errors::errors::static_analyzer::static_analyzer_error::StaticAnalyzerError"]],["impl Unpin for StaticAnalyzerWarning",1,["leo_errors::errors::static_analyzer::static_analyzer_warning::StaticAnalyzerWarning"]],["impl Unpin for TypeCheckerError",1,["leo_errors::errors::type_checker::type_checker_error::TypeCheckerError"]],["impl Unpin for TypeCheckerWarning",1,["leo_errors::errors::type_checker::type_checker_warning::TypeCheckerWarning"]],["impl Unpin for UtilError",1,["leo_errors::errors::utils::util_errors::UtilError"]],["impl Unpin for Backtraced",1,["leo_errors::common::backtraced::Backtraced"]],["impl Unpin for Formatted",1,["leo_errors::common::formatted::Formatted"]],["impl Unpin for BufferEmitter",1,["leo_errors::emitter::BufferEmitter"]],["impl Unpin for Handler",1,["leo_errors::emitter::Handler"]],["impl Unpin for HandlerInner",1,["leo_errors::emitter::HandlerInner"]],["impl Unpin for StderrEmitter",1,["leo_errors::emitter::StderrEmitter"]],["impl<T> Unpin for Buffer<T>
where\n T: Unpin,
",1,["leo_errors::emitter::Buffer"]]]],["leo_lang",[["impl Unpin for Commands",1,["leo_lang::cli::cli::Commands"]],["impl Unpin for Account",1,["leo_lang::cli::commands::account::Account"]],["impl Unpin for ExampleVariant",1,["leo_lang::cli::commands::example::ExampleVariant"]],["impl Unpin for QueryCommands",1,["leo_lang::cli::commands::query::QueryCommands"]],["impl Unpin for CLI",1,["leo_lang::cli::cli::CLI"]],["impl Unpin for LeoAdd",1,["leo_lang::cli::commands::add::LeoAdd"]],["impl Unpin for LeoBuild",1,["leo_lang::cli::commands::build::LeoBuild"]],["impl Unpin for LeoClean",1,["leo_lang::cli::commands::clean::LeoClean"]],["impl Unpin for Deploy",1,["leo_lang::cli::commands::deploy::Deploy"]],["impl Unpin for LeoExample",1,["leo_lang::cli::commands::example::LeoExample"]],["impl Unpin for LeoExecute",1,["leo_lang::cli::commands::execute::LeoExecute"]],["impl Unpin for LeoNew",1,["leo_lang::cli::commands::new::LeoNew"]],["impl Unpin for LeoBlock",1,["leo_lang::cli::commands::query::block::LeoBlock"]],["impl Unpin for LeoCommittee",1,["leo_lang::cli::commands::query::committee::LeoCommittee"]],["impl Unpin for LeoMempool",1,["leo_lang::cli::commands::query::mempool::LeoMempool"]],["impl Unpin for LeoPeers",1,["leo_lang::cli::commands::query::peers::LeoPeers"]],["impl Unpin for LeoProgram",1,["leo_lang::cli::commands::query::program::LeoProgram"]],["impl Unpin for StateRoot",1,["leo_lang::cli::commands::query::state_root::StateRoot"]],["impl Unpin for LeoQuery",1,["leo_lang::cli::commands::query::LeoQuery"]],["impl Unpin for LeoTransaction",1,["leo_lang::cli::commands::query::transaction::LeoTransaction"]],["impl Unpin for LeoRemove",1,["leo_lang::cli::commands::remove::LeoRemove"]],["impl Unpin for LeoRun",1,["leo_lang::cli::commands::run::LeoRun"]],["impl Unpin for BuildOptions",1,["leo_lang::cli::commands::BuildOptions"]],["impl Unpin for FeeOptions",1,["leo_lang::cli::commands::FeeOptions"]],["impl Unpin for LeoUpdate",1,["leo_lang::cli::commands::update::LeoUpdate"]],["impl Unpin for Context",1,["leo_lang::cli::helpers::context::Context"]],["impl Unpin for Updater",1,["leo_lang::cli::helpers::updater::Updater"]],["impl<F, T> Unpin for Format<F, T>
where\n F: Unpin,\n T: Unpin,
",1,["leo_lang::cli::helpers::logger::Format"]]]],["leo_package",[["impl Unpin for Snapshot",1,["leo_package::outputs::ast_snapshot::Snapshot"]],["impl Unpin for BuildDirectory",1,["leo_package::build::directory::BuildDirectory"]],["impl Unpin for ImportsDirectory",1,["leo_package::imports::directory::ImportsDirectory"]],["impl Unpin for InputsDirectory",1,["leo_package::inputs::directory::InputsDirectory"]],["impl Unpin for SnapshotFile",1,["leo_package::outputs::ast_snapshot::SnapshotFile"]],["impl Unpin for ChecksumFile",1,["leo_package::outputs::checksum::ChecksumFile"]],["impl Unpin for CircuitFile",1,["leo_package::outputs::circuit::CircuitFile"]],["impl Unpin for OutputsDirectory",1,["leo_package::outputs::directory::OutputsDirectory"]],["impl Unpin for Package",1,["leo_package::package::Package"]],["impl Unpin for Gitignore",1,["leo_package::root::gitignore::Gitignore"]],["impl Unpin for SourceDirectory",1,["leo_package::source::directory::SourceDirectory"]],["impl Unpin for MainFile",1,["leo_package::source::main::MainFile"]],["impl<N> Unpin for Env<N>
where\n <N as Environment>::Field: Unpin,\n <N as Environment>::Scalar: Unpin,
",1,["leo_package::root::env::Env"]]]],["leo_parser",[["impl Unpin for Delimiter",1,["leo_parser::tokenizer::token::Delimiter"]],["impl Unpin for Token",1,["leo_parser::tokenizer::token::Token"]],["impl Unpin for SpannedToken",1,["leo_parser::tokenizer::lexer::SpannedToken"]],["impl<'a, N> Unpin for ParserContext<'a, N>
where\n N: Unpin,
",1,["leo_parser::parser::context::ParserContext"]]]],["leo_passes",[["impl Unpin for VariableType",1,["leo_passes::common::symbol_table::variable_symbol::VariableType"]],["impl Unpin for Guard",1,["leo_passes::flattening::flattener::Guard"]],["impl Unpin for ReturnGuard",1,["leo_passes::flattening::flattener::ReturnGuard"]],["impl Unpin for Clusivity",1,["leo_passes::loop_unrolling::range_iterator::Clusivity"]],["impl Unpin for Assigner",1,["leo_passes::common::assigner::Assigner"]],["impl Unpin for AssignerInner",1,["leo_passes::common::assigner::AssignerInner"]],["impl Unpin for ConstantPropagationTable",1,["leo_passes::common::constant_propagation_table::ConstantPropagationTable"]],["impl Unpin for RenameTable",1,["leo_passes::common::rename_table::RenameTable"]],["impl Unpin for FunctionSymbol",1,["leo_passes::common::symbol_table::function_symbol::FunctionSymbol"]],["impl Unpin for SymbolTable",1,["leo_passes::common::symbol_table::SymbolTable"]],["impl Unpin for VariableSymbol",1,["leo_passes::common::symbol_table::variable_symbol::VariableSymbol"]],["impl Unpin for TypeTable",1,["leo_passes::common::type_table::TypeTable"]],["impl Unpin for AwaitChecker",1,["leo_passes::static_analysis::await_checker::AwaitChecker"]],["impl Unpin for ScopeState",1,["leo_passes::type_checking::scope_state::ScopeState"]],["impl<'a> Unpin for CodeGenerator<'a>",1,["leo_passes::code_generation::generator::CodeGenerator"]],["impl<'a> Unpin for DeadCodeEliminator<'a>",1,["leo_passes::dead_code_elimination::dead_code_eliminator::DeadCodeEliminator"]],["impl<'a> Unpin for Destructurer<'a>",1,["leo_passes::destructuring::destructurer::Destructurer"]],["impl<'a> Unpin for Flattener<'a>",1,["leo_passes::flattening::flattener::Flattener"]],["impl<'a> Unpin for AssignmentRenamer<'a>",1,["leo_passes::function_inlining::assignment_renamer::AssignmentRenamer"]],["impl<'a> Unpin for FunctionInliner<'a>",1,["leo_passes::function_inlining::function_inliner::FunctionInliner"]],["impl<'a> Unpin for Unroller<'a>",1,["leo_passes::loop_unrolling::unroller::Unroller"]],["impl<'a> Unpin for StaticSingleAssigner<'a>",1,["leo_passes::static_single_assignment::static_single_assigner::StaticSingleAssigner"]],["impl<'a> Unpin for SymbolTableCreator<'a>",1,["leo_passes::symbol_table_creation::creator::SymbolTableCreator"]],["impl<'a, N> Unpin for StaticAnalyzer<'a, N>
where\n N: Unpin,
",1,["leo_passes::static_analysis::analyzer::StaticAnalyzer"]],["impl<'a, N> Unpin for TypeChecker<'a, N>
where\n N: Unpin,
",1,["leo_passes::type_checking::checker::TypeChecker"]],["impl<F> Unpin for Replacer<F>
where\n F: Unpin,
",1,["leo_passes::common::replacer::Replacer"]],["impl<I> Unpin for RangeIterator<I>
where\n I: Unpin,
",1,["leo_passes::loop_unrolling::range_iterator::RangeIterator"]],["impl<N> Unpin for DiGraphError<N>
where\n N: Unpin,
",1,["leo_passes::common::graph::DiGraphError"]],["impl<N> Unpin for DiGraph<N>
where\n N: Unpin,
",1,["leo_passes::common::graph::DiGraph"]],["impl<N> Unpin for TreeNode<N>
where\n N: Unpin,
",1,["leo_passes::common::tree_node::TreeNode"]]]],["leo_retriever",[["impl Unpin for Location",1,["leo_retriever::program_context::location::Location"]],["impl Unpin for NetworkName",1,["leo_retriever::program_context::network_name::NetworkName"]],["impl Unpin for Dependency",1,["leo_retriever::program_context::dependency::Dependency"]],["impl Unpin for LockFileEntry",1,["leo_retriever::program_context::lock_file_entry::LockFileEntry"]],["impl Unpin for Manifest",1,["leo_retriever::program_context::manifest::Manifest"]],["impl Unpin for ProgramContext",1,["leo_retriever::program_context::ProgramContext"]],["impl<N> Unpin for Retriever<N>
where\n N: Unpin,
",1,["leo_retriever::retriever::Retriever"]]]],["leo_span",[["impl Unpin for FileName",1,["leo_span::source_map::FileName"]],["impl Unpin for InternedStr",1,["leo_span::symbol::InternedStr"]],["impl Unpin for LineCol",1,["leo_span::source_map::LineCol"]],["impl Unpin for MultiByteChar",1,["leo_span::source_map::MultiByteChar"]],["impl Unpin for SourceFile",1,["leo_span::source_map::SourceFile"]],["impl Unpin for SourceMap",1,["leo_span::source_map::SourceMap"]],["impl Unpin for SourceMapInner",1,["leo_span::source_map::SourceMapInner"]],["impl Unpin for SpanLocation",1,["leo_span::source_map::SpanLocation"]],["impl Unpin for BytePos",1,["leo_span::span::BytePos"]],["impl Unpin for CharPos",1,["leo_span::span::CharPos"]],["impl Unpin for Span",1,["leo_span::span::Span"]],["impl Unpin for SpanMapVisitor",1,["leo_span::span_json::SpanMapVisitor"]],["impl Unpin for InnerInterner",1,["leo_span::symbol::InnerInterner"]],["impl Unpin for Interner",1,["leo_span::symbol::Interner"]],["impl Unpin for SessionGlobals",1,["leo_span::symbol::SessionGlobals"]],["impl Unpin for Symbol",1,["leo_span::symbol::Symbol"]]]],["leo_test_framework",[["impl Unpin for TestError",1,["leo_test_framework::error::TestError"]],["impl Unpin for ParseType",1,["leo_test_framework::runner::ParseType"]],["impl Unpin for TestExpectationMode",1,["leo_test_framework::test::TestExpectationMode"]],["impl Unpin for TestFailure",1,["leo_test_framework::error::TestFailure"]],["impl Unpin for TestExpectation",1,["leo_test_framework::output::TestExpectation"]],["impl Unpin for Test",1,["leo_test_framework::runner::Test"]],["impl Unpin for TestCases",1,["leo_test_framework::runner::TestCases"]],["impl Unpin for TestConfig",1,["leo_test_framework::test::TestConfig"]]]]]); + var implementors = Object.fromEntries([["leo_abnf",[["impl Unpin for Scope",1,["leo_abnf::Scope"]],["impl<'a> Unpin for Processor<'a>",1,["leo_abnf::Processor"]]]],["leo_ast",[["impl Unpin for AccessExpression",1,["leo_ast::expressions::access::AccessExpression"]],["impl Unpin for BinaryOperation",1,["leo_ast::expressions::binary::BinaryOperation"]],["impl Unpin for Expression",1,["leo_ast::expressions::Expression"]],["impl Unpin for Literal",1,["leo_ast::expressions::literal::Literal"]],["impl Unpin for UnaryOperation",1,["leo_ast::expressions::unary::UnaryOperation"]],["impl Unpin for CoreFunction",1,["leo_ast::functions::core_function::CoreFunction"]],["impl Unpin for Mode",1,["leo_ast::functions::mode::Mode"]],["impl Unpin for Variant",1,["leo_ast::functions::variant::Variant"]],["impl Unpin for GroupCoordinate",1,["leo_ast::groups::group_coordinate::GroupCoordinate"]],["impl Unpin for GroupLiteral",1,["leo_ast::groups::group_literal::GroupLiteral"]],["impl Unpin for AssertVariant",1,["leo_ast::statement::assert::AssertVariant"]],["impl Unpin for ConsoleFunction",1,["leo_ast::statement::console::console_function::ConsoleFunction"]],["impl Unpin for DeclarationType",1,["leo_ast::statement::definition::declaration_type::DeclarationType"]],["impl Unpin for Statement",1,["leo_ast::statement::Statement"]],["impl Unpin for CoreConstant",1,["leo_ast::types::core_constant::CoreConstant"]],["impl Unpin for IntegerType",1,["leo_ast::types::integer_type::IntegerType"]],["impl Unpin for Type",1,["leo_ast::types::type_::Type"]],["impl Unpin for Value",1,["leo_ast::value::Value"]],["impl Unpin for ArrayAccess",1,["leo_ast::access::array_access::ArrayAccess"]],["impl Unpin for AssociatedConstant",1,["leo_ast::access::associated_constant_access::AssociatedConstant"]],["impl Unpin for AssociatedFunction",1,["leo_ast::access::associated_function_access::AssociatedFunction"]],["impl Unpin for MemberAccess",1,["leo_ast::access::member_access::MemberAccess"]],["impl Unpin for TupleAccess",1,["leo_ast::access::tuple_access::TupleAccess"]],["impl Unpin for Identifier",1,["leo_ast::common::identifier::Identifier"]],["impl Unpin for Location",1,["leo_ast::common::location::Location"]],["impl Unpin for NodeBuilder",1,["leo_ast::common::node_builder::NodeBuilder"]],["impl Unpin for NodeBuilderInner",1,["leo_ast::common::node_builder::NodeBuilderInner"]],["impl Unpin for NonNegativeNumber",1,["leo_ast::common::positive_number::NonNegativeNumber"]],["impl Unpin for StaticString",1,["leo_ast::common::static_string::StaticString"]],["impl Unpin for ArrayExpression",1,["leo_ast::expressions::array::ArrayExpression"]],["impl Unpin for BinaryExpression",1,["leo_ast::expressions::binary::BinaryExpression"]],["impl Unpin for CallExpression",1,["leo_ast::expressions::call::CallExpression"]],["impl Unpin for CastExpression",1,["leo_ast::expressions::cast::CastExpression"]],["impl Unpin for ErrExpression",1,["leo_ast::expressions::err::ErrExpression"]],["impl Unpin for LocatorExpression",1,["leo_ast::expressions::locator::LocatorExpression"]],["impl Unpin for StructExpression",1,["leo_ast::expressions::struct_init::StructExpression"]],["impl Unpin for StructVariableInitializer",1,["leo_ast::expressions::struct_init::StructVariableInitializer"]],["impl Unpin for TernaryExpression",1,["leo_ast::expressions::ternary::TernaryExpression"]],["impl Unpin for TupleExpression",1,["leo_ast::expressions::tuple::TupleExpression"]],["impl Unpin for UnaryExpression",1,["leo_ast::expressions::unary::UnaryExpression"]],["impl Unpin for UnitExpression",1,["leo_ast::expressions::unit::UnitExpression"]],["impl Unpin for Annotation",1,["leo_ast::functions::annotation::Annotation"]],["impl Unpin for Input",1,["leo_ast::functions::input::Input"]],["impl Unpin for Output",1,["leo_ast::functions::output::Output"]],["impl Unpin for Function",1,["leo_ast::functions::Function"]],["impl Unpin for GroupTuple",1,["leo_ast::groups::group_literal::GroupTuple"]],["impl Unpin for Mapping",1,["leo_ast::mapping::Mapping"]],["impl Unpin for ProgramId",1,["leo_ast::program::program_id::ProgramId"]],["impl Unpin for ProgramScope",1,["leo_ast::program::program_scope::ProgramScope"]],["impl Unpin for Program",1,["leo_ast::program::Program"]],["impl Unpin for AssertStatement",1,["leo_ast::statement::assert::AssertStatement"]],["impl Unpin for AssignStatement",1,["leo_ast::statement::assign::AssignStatement"]],["impl Unpin for Block",1,["leo_ast::statement::block::Block"]],["impl Unpin for ConditionalStatement",1,["leo_ast::statement::conditional::ConditionalStatement"]],["impl Unpin for ConsoleStatement",1,["leo_ast::statement::console::console_statement::ConsoleStatement"]],["impl Unpin for ConstDeclaration",1,["leo_ast::statement::const_::ConstDeclaration"]],["impl Unpin for DefinitionStatement",1,["leo_ast::statement::definition::DefinitionStatement"]],["impl Unpin for ExpressionStatement",1,["leo_ast::statement::expression::ExpressionStatement"]],["impl Unpin for IterationStatement",1,["leo_ast::statement::iteration::IterationStatement"]],["impl Unpin for ReturnStatement",1,["leo_ast::statement::return_::ReturnStatement"]],["impl Unpin for Ast",1,["leo_ast::Ast"]],["impl Unpin for Member",1,["leo_ast::struct::member::Member"]],["impl Unpin for Composite",1,["leo_ast::struct::Composite"]],["impl Unpin for FunctionStub",1,["leo_ast::stub::function_stub::FunctionStub"]],["impl Unpin for Stub",1,["leo_ast::stub::Stub"]],["impl Unpin for ArrayType",1,["leo_ast::types::array::ArrayType"]],["impl Unpin for FutureType",1,["leo_ast::types::future::FutureType"]],["impl Unpin for MappingType",1,["leo_ast::types::mapping::MappingType"]],["impl Unpin for CompositeType",1,["leo_ast::types::struct_type::CompositeType"]],["impl Unpin for TupleType",1,["leo_ast::types::tuple::TupleType"]],["impl<'a> Unpin for DisplayDecimal<'a>",1,["leo_ast::expressions::literal::DisplayDecimal"]]]],["leo_compiler",[["impl Unpin for BuildOptions",1,["leo_compiler::options::BuildOptions"]],["impl Unpin for CompilerOptions",1,["leo_compiler::options::CompilerOptions"]],["impl Unpin for OutputOptions",1,["leo_compiler::options::OutputOptions"]],["impl<'a, N> Unpin for Compiler<'a, N>
where\n N: Unpin,
",1,["leo_compiler::compiler::Compiler"]]]],["leo_errors",[["impl Unpin for AstError",1,["leo_errors::errors::ast::ast_errors::AstError"]],["impl Unpin for CliError",1,["leo_errors::errors::cli::cli_errors::CliError"]],["impl Unpin for CompilerError",1,["leo_errors::errors::compiler::compiler_errors::CompilerError"]],["impl Unpin for LeoError",1,["leo_errors::errors::LeoError"]],["impl Unpin for LeoWarning",1,["leo_errors::errors::LeoWarning"]],["impl Unpin for FlattenError",1,["leo_errors::errors::flattener::flattener_errors::FlattenError"]],["impl Unpin for LoopUnrollerError",1,["leo_errors::errors::loop_unroller::loop_unroller_errors::LoopUnrollerError"]],["impl Unpin for PackageError",1,["leo_errors::errors::package::package_errors::PackageError"]],["impl Unpin for ParserError",1,["leo_errors::errors::parser::parser_errors::ParserError"]],["impl Unpin for ParserWarning",1,["leo_errors::errors::parser::parser_warnings::ParserWarning"]],["impl Unpin for StaticAnalyzerError",1,["leo_errors::errors::static_analyzer::static_analyzer_error::StaticAnalyzerError"]],["impl Unpin for StaticAnalyzerWarning",1,["leo_errors::errors::static_analyzer::static_analyzer_warning::StaticAnalyzerWarning"]],["impl Unpin for TypeCheckerError",1,["leo_errors::errors::type_checker::type_checker_error::TypeCheckerError"]],["impl Unpin for TypeCheckerWarning",1,["leo_errors::errors::type_checker::type_checker_warning::TypeCheckerWarning"]],["impl Unpin for UtilError",1,["leo_errors::errors::utils::util_errors::UtilError"]],["impl Unpin for Backtraced",1,["leo_errors::common::backtraced::Backtraced"]],["impl Unpin for Formatted",1,["leo_errors::common::formatted::Formatted"]],["impl Unpin for BufferEmitter",1,["leo_errors::emitter::BufferEmitter"]],["impl Unpin for Handler",1,["leo_errors::emitter::Handler"]],["impl Unpin for HandlerInner",1,["leo_errors::emitter::HandlerInner"]],["impl Unpin for StderrEmitter",1,["leo_errors::emitter::StderrEmitter"]],["impl<T> Unpin for Buffer<T>
where\n T: Unpin,
",1,["leo_errors::emitter::Buffer"]]]],["leo_lang",[["impl Unpin for Commands",1,["leo_lang::cli::cli::Commands"]],["impl Unpin for Account",1,["leo_lang::cli::commands::account::Account"]],["impl Unpin for ExampleVariant",1,["leo_lang::cli::commands::example::ExampleVariant"]],["impl Unpin for QueryCommands",1,["leo_lang::cli::commands::query::QueryCommands"]],["impl Unpin for CLI",1,["leo_lang::cli::cli::CLI"]],["impl Unpin for LeoAdd",1,["leo_lang::cli::commands::add::LeoAdd"]],["impl Unpin for LeoBuild",1,["leo_lang::cli::commands::build::LeoBuild"]],["impl Unpin for LeoClean",1,["leo_lang::cli::commands::clean::LeoClean"]],["impl Unpin for Deploy",1,["leo_lang::cli::commands::deploy::Deploy"]],["impl Unpin for LeoExample",1,["leo_lang::cli::commands::example::LeoExample"]],["impl Unpin for LeoExecute",1,["leo_lang::cli::commands::execute::LeoExecute"]],["impl Unpin for LeoNew",1,["leo_lang::cli::commands::new::LeoNew"]],["impl Unpin for LeoBlock",1,["leo_lang::cli::commands::query::block::LeoBlock"]],["impl Unpin for LeoCommittee",1,["leo_lang::cli::commands::query::committee::LeoCommittee"]],["impl Unpin for LeoMempool",1,["leo_lang::cli::commands::query::mempool::LeoMempool"]],["impl Unpin for LeoPeers",1,["leo_lang::cli::commands::query::peers::LeoPeers"]],["impl Unpin for LeoProgram",1,["leo_lang::cli::commands::query::program::LeoProgram"]],["impl Unpin for StateRoot",1,["leo_lang::cli::commands::query::state_root::StateRoot"]],["impl Unpin for LeoQuery",1,["leo_lang::cli::commands::query::LeoQuery"]],["impl Unpin for LeoTransaction",1,["leo_lang::cli::commands::query::transaction::LeoTransaction"]],["impl Unpin for LeoRemove",1,["leo_lang::cli::commands::remove::LeoRemove"]],["impl Unpin for LeoRun",1,["leo_lang::cli::commands::run::LeoRun"]],["impl Unpin for BuildOptions",1,["leo_lang::cli::commands::BuildOptions"]],["impl Unpin for FeeOptions",1,["leo_lang::cli::commands::FeeOptions"]],["impl Unpin for LeoUpdate",1,["leo_lang::cli::commands::update::LeoUpdate"]],["impl Unpin for Context",1,["leo_lang::cli::helpers::context::Context"]],["impl Unpin for Updater",1,["leo_lang::cli::helpers::updater::Updater"]],["impl<F, T> Unpin for Format<F, T>
where\n F: Unpin,\n T: Unpin,
",1,["leo_lang::cli::helpers::logger::Format"]]]],["leo_package",[["impl Unpin for Snapshot",1,["leo_package::outputs::ast_snapshot::Snapshot"]],["impl Unpin for BuildDirectory",1,["leo_package::build::directory::BuildDirectory"]],["impl Unpin for ImportsDirectory",1,["leo_package::imports::directory::ImportsDirectory"]],["impl Unpin for InputsDirectory",1,["leo_package::inputs::directory::InputsDirectory"]],["impl Unpin for SnapshotFile",1,["leo_package::outputs::ast_snapshot::SnapshotFile"]],["impl Unpin for ChecksumFile",1,["leo_package::outputs::checksum::ChecksumFile"]],["impl Unpin for CircuitFile",1,["leo_package::outputs::circuit::CircuitFile"]],["impl Unpin for OutputsDirectory",1,["leo_package::outputs::directory::OutputsDirectory"]],["impl Unpin for Package",1,["leo_package::package::Package"]],["impl Unpin for Gitignore",1,["leo_package::root::gitignore::Gitignore"]],["impl Unpin for SourceDirectory",1,["leo_package::source::directory::SourceDirectory"]],["impl Unpin for MainFile",1,["leo_package::source::main::MainFile"]],["impl<N> Unpin for Env<N>
where\n <N as Environment>::Field: Unpin,\n <N as Environment>::Scalar: Unpin,
",1,["leo_package::root::env::Env"]]]],["leo_parser",[["impl Unpin for Delimiter",1,["leo_parser::tokenizer::token::Delimiter"]],["impl Unpin for Token",1,["leo_parser::tokenizer::token::Token"]],["impl Unpin for SpannedToken",1,["leo_parser::tokenizer::lexer::SpannedToken"]],["impl<'a, N> Unpin for ParserContext<'a, N>
where\n N: Unpin,
",1,["leo_parser::parser::context::ParserContext"]]]],["leo_passes",[["impl Unpin for VariableType",1,["leo_passes::common::symbol_table::variable_symbol::VariableType"]],["impl Unpin for Guard",1,["leo_passes::flattening::flattener::Guard"]],["impl Unpin for ReturnGuard",1,["leo_passes::flattening::flattener::ReturnGuard"]],["impl Unpin for Clusivity",1,["leo_passes::loop_unrolling::range_iterator::Clusivity"]],["impl Unpin for Assigner",1,["leo_passes::common::assigner::Assigner"]],["impl Unpin for AssignerInner",1,["leo_passes::common::assigner::AssignerInner"]],["impl Unpin for ConstantPropagationTable",1,["leo_passes::common::constant_propagation_table::ConstantPropagationTable"]],["impl Unpin for RenameTable",1,["leo_passes::common::rename_table::RenameTable"]],["impl Unpin for FunctionSymbol",1,["leo_passes::common::symbol_table::function_symbol::FunctionSymbol"]],["impl Unpin for SymbolTable",1,["leo_passes::common::symbol_table::SymbolTable"]],["impl Unpin for VariableSymbol",1,["leo_passes::common::symbol_table::variable_symbol::VariableSymbol"]],["impl Unpin for TypeTable",1,["leo_passes::common::type_table::TypeTable"]],["impl Unpin for AwaitChecker",1,["leo_passes::static_analysis::await_checker::AwaitChecker"]],["impl Unpin for ScopeState",1,["leo_passes::type_checking::scope_state::ScopeState"]],["impl<'a> Unpin for CodeGenerator<'a>",1,["leo_passes::code_generation::generator::CodeGenerator"]],["impl<'a> Unpin for DeadCodeEliminator<'a>",1,["leo_passes::dead_code_elimination::dead_code_eliminator::DeadCodeEliminator"]],["impl<'a> Unpin for Destructurer<'a>",1,["leo_passes::destructuring::destructurer::Destructurer"]],["impl<'a> Unpin for Flattener<'a>",1,["leo_passes::flattening::flattener::Flattener"]],["impl<'a> Unpin for AssignmentRenamer<'a>",1,["leo_passes::function_inlining::assignment_renamer::AssignmentRenamer"]],["impl<'a> Unpin for FunctionInliner<'a>",1,["leo_passes::function_inlining::function_inliner::FunctionInliner"]],["impl<'a> Unpin for Unroller<'a>",1,["leo_passes::loop_unrolling::unroller::Unroller"]],["impl<'a> Unpin for StaticSingleAssigner<'a>",1,["leo_passes::static_single_assignment::static_single_assigner::StaticSingleAssigner"]],["impl<'a> Unpin for SymbolTableCreator<'a>",1,["leo_passes::symbol_table_creation::creator::SymbolTableCreator"]],["impl<'a, N> Unpin for StaticAnalyzer<'a, N>
where\n N: Unpin,
",1,["leo_passes::static_analysis::analyzer::StaticAnalyzer"]],["impl<'a, N> Unpin for TypeChecker<'a, N>
where\n N: Unpin,
",1,["leo_passes::type_checking::checker::TypeChecker"]],["impl<F> Unpin for Replacer<F>
where\n F: Unpin,
",1,["leo_passes::common::replacer::Replacer"]],["impl<I> Unpin for RangeIterator<I>
where\n I: Unpin,
",1,["leo_passes::loop_unrolling::range_iterator::RangeIterator"]],["impl<N> Unpin for DiGraphError<N>
where\n N: Unpin,
",1,["leo_passes::common::graph::DiGraphError"]],["impl<N> Unpin for DiGraph<N>
where\n N: Unpin,
",1,["leo_passes::common::graph::DiGraph"]],["impl<N> Unpin for TreeNode<N>
where\n N: Unpin,
",1,["leo_passes::common::tree_node::TreeNode"]]]],["leo_retriever",[["impl Unpin for Location",1,["leo_retriever::program_context::location::Location"]],["impl Unpin for NetworkName",1,["leo_retriever::program_context::network_name::NetworkName"]],["impl Unpin for Dependency",1,["leo_retriever::program_context::dependency::Dependency"]],["impl Unpin for LockFileEntry",1,["leo_retriever::program_context::lock_file_entry::LockFileEntry"]],["impl Unpin for Manifest",1,["leo_retriever::program_context::manifest::Manifest"]],["impl Unpin for ProgramContext",1,["leo_retriever::program_context::ProgramContext"]],["impl<N> Unpin for Retriever<N>
where\n N: Unpin,
",1,["leo_retriever::retriever::Retriever"]]]],["leo_span",[["impl Unpin for FileName",1,["leo_span::source_map::FileName"]],["impl Unpin for InternedStr",1,["leo_span::symbol::InternedStr"]],["impl Unpin for LineCol",1,["leo_span::source_map::LineCol"]],["impl Unpin for MultiByteChar",1,["leo_span::source_map::MultiByteChar"]],["impl Unpin for SourceFile",1,["leo_span::source_map::SourceFile"]],["impl Unpin for SourceMap",1,["leo_span::source_map::SourceMap"]],["impl Unpin for SourceMapInner",1,["leo_span::source_map::SourceMapInner"]],["impl Unpin for SpanLocation",1,["leo_span::source_map::SpanLocation"]],["impl Unpin for BytePos",1,["leo_span::span::BytePos"]],["impl Unpin for CharPos",1,["leo_span::span::CharPos"]],["impl Unpin for Span",1,["leo_span::span::Span"]],["impl Unpin for SpanMapVisitor",1,["leo_span::span_json::SpanMapVisitor"]],["impl Unpin for InnerInterner",1,["leo_span::symbol::InnerInterner"]],["impl Unpin for Interner",1,["leo_span::symbol::Interner"]],["impl Unpin for SessionGlobals",1,["leo_span::symbol::SessionGlobals"]],["impl Unpin for Symbol",1,["leo_span::symbol::Symbol"]]]],["leo_test_framework",[["impl Unpin for TestError",1,["leo_test_framework::error::TestError"]],["impl Unpin for ParseType",1,["leo_test_framework::runner::ParseType"]],["impl Unpin for TestExpectationMode",1,["leo_test_framework::test::TestExpectationMode"]],["impl Unpin for TestFailure",1,["leo_test_framework::error::TestFailure"]],["impl Unpin for TestExpectation",1,["leo_test_framework::output::TestExpectation"]],["impl Unpin for Test",1,["leo_test_framework::runner::Test"]],["impl Unpin for TestCases",1,["leo_test_framework::runner::TestCases"]],["impl Unpin for TestConfig",1,["leo_test_framework::test::TestConfig"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/ops/arith/trait.Add.js b/trait.impl/core/ops/arith/trait.Add.js index d5bc4b6df2..934203967c 100644 --- a/trait.impl/core/ops/arith/trait.Add.js +++ b/trait.impl/core/ops/arith/trait.Add.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_span",[["impl Add for &Span"],["impl Add for BytePos"],["impl Add for CharPos"],["impl Add for Span"]]]]); + var implementors = Object.fromEntries([["leo_span",[["impl Add for &Span"],["impl Add for BytePos"],["impl Add for CharPos"],["impl Add for Span"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/ops/arith/trait.Sub.js b/trait.impl/core/ops/arith/trait.Sub.js index 5aa313e306..fb3732de65 100644 --- a/trait.impl/core/ops/arith/trait.Sub.js +++ b/trait.impl/core/ops/arith/trait.Sub.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_span",[["impl Sub for BytePos"],["impl Sub for CharPos"]]]]); + var implementors = Object.fromEntries([["leo_span",[["impl Sub for BytePos"],["impl Sub for CharPos"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/ops/deref/trait.Deref.js b/trait.impl/core/ops/deref/trait.Deref.js index 8773e9d812..ba76c3a385 100644 --- a/trait.impl/core/ops/deref/trait.Deref.js +++ b/trait.impl/core/ops/deref/trait.Deref.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_span",[["impl Deref for InternedStr"]]]]); + var implementors = Object.fromEntries([["leo_span",[["impl Deref for InternedStr"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js b/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js index a32ff0b88b..62bf9dce4c 100644 --- a/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js +++ b/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_abnf",[["impl RefUnwindSafe for Scope",1,["leo_abnf::Scope"]],["impl<'a> RefUnwindSafe for Processor<'a>",1,["leo_abnf::Processor"]]]],["leo_ast",[["impl !RefUnwindSafe for Statement",1,["leo_ast::statement::Statement"]],["impl !RefUnwindSafe for NodeBuilder",1,["leo_ast::common::node_builder::NodeBuilder"]],["impl !RefUnwindSafe for Function",1,["leo_ast::functions::Function"]],["impl !RefUnwindSafe for ProgramScope",1,["leo_ast::program::program_scope::ProgramScope"]],["impl !RefUnwindSafe for Program",1,["leo_ast::program::Program"]],["impl !RefUnwindSafe for Block",1,["leo_ast::statement::block::Block"]],["impl !RefUnwindSafe for ConditionalStatement",1,["leo_ast::statement::conditional::ConditionalStatement"]],["impl !RefUnwindSafe for IterationStatement",1,["leo_ast::statement::iteration::IterationStatement"]],["impl !RefUnwindSafe for Ast",1,["leo_ast::Ast"]],["impl RefUnwindSafe for AccessExpression",1,["leo_ast::expressions::access::AccessExpression"]],["impl RefUnwindSafe for BinaryOperation",1,["leo_ast::expressions::binary::BinaryOperation"]],["impl RefUnwindSafe for Expression",1,["leo_ast::expressions::Expression"]],["impl RefUnwindSafe for Literal",1,["leo_ast::expressions::literal::Literal"]],["impl RefUnwindSafe for UnaryOperation",1,["leo_ast::expressions::unary::UnaryOperation"]],["impl RefUnwindSafe for CoreFunction",1,["leo_ast::functions::core_function::CoreFunction"]],["impl RefUnwindSafe for Mode",1,["leo_ast::functions::mode::Mode"]],["impl RefUnwindSafe for Variant",1,["leo_ast::functions::variant::Variant"]],["impl RefUnwindSafe for GroupCoordinate",1,["leo_ast::groups::group_coordinate::GroupCoordinate"]],["impl RefUnwindSafe for GroupLiteral",1,["leo_ast::groups::group_literal::GroupLiteral"]],["impl RefUnwindSafe for AssertVariant",1,["leo_ast::statement::assert::AssertVariant"]],["impl RefUnwindSafe for ConsoleFunction",1,["leo_ast::statement::console::console_function::ConsoleFunction"]],["impl RefUnwindSafe for DeclarationType",1,["leo_ast::statement::definition::declaration_type::DeclarationType"]],["impl RefUnwindSafe for CoreConstant",1,["leo_ast::types::core_constant::CoreConstant"]],["impl RefUnwindSafe for IntegerType",1,["leo_ast::types::integer_type::IntegerType"]],["impl RefUnwindSafe for Type",1,["leo_ast::types::type_::Type"]],["impl RefUnwindSafe for Value",1,["leo_ast::value::Value"]],["impl RefUnwindSafe for ArrayAccess",1,["leo_ast::access::array_access::ArrayAccess"]],["impl RefUnwindSafe for AssociatedConstant",1,["leo_ast::access::associated_constant_access::AssociatedConstant"]],["impl RefUnwindSafe for AssociatedFunction",1,["leo_ast::access::associated_function_access::AssociatedFunction"]],["impl RefUnwindSafe for MemberAccess",1,["leo_ast::access::member_access::MemberAccess"]],["impl RefUnwindSafe for TupleAccess",1,["leo_ast::access::tuple_access::TupleAccess"]],["impl RefUnwindSafe for Identifier",1,["leo_ast::common::identifier::Identifier"]],["impl RefUnwindSafe for Location",1,["leo_ast::common::location::Location"]],["impl RefUnwindSafe for NodeBuilderInner",1,["leo_ast::common::node_builder::NodeBuilderInner"]],["impl RefUnwindSafe for NonNegativeNumber",1,["leo_ast::common::positive_number::NonNegativeNumber"]],["impl RefUnwindSafe for StaticString",1,["leo_ast::common::static_string::StaticString"]],["impl RefUnwindSafe for ArrayExpression",1,["leo_ast::expressions::array::ArrayExpression"]],["impl RefUnwindSafe for BinaryExpression",1,["leo_ast::expressions::binary::BinaryExpression"]],["impl RefUnwindSafe for CallExpression",1,["leo_ast::expressions::call::CallExpression"]],["impl RefUnwindSafe for CastExpression",1,["leo_ast::expressions::cast::CastExpression"]],["impl RefUnwindSafe for ErrExpression",1,["leo_ast::expressions::err::ErrExpression"]],["impl RefUnwindSafe for LocatorExpression",1,["leo_ast::expressions::locator::LocatorExpression"]],["impl RefUnwindSafe for StructExpression",1,["leo_ast::expressions::struct_init::StructExpression"]],["impl RefUnwindSafe for StructVariableInitializer",1,["leo_ast::expressions::struct_init::StructVariableInitializer"]],["impl RefUnwindSafe for TernaryExpression",1,["leo_ast::expressions::ternary::TernaryExpression"]],["impl RefUnwindSafe for TupleExpression",1,["leo_ast::expressions::tuple::TupleExpression"]],["impl RefUnwindSafe for UnaryExpression",1,["leo_ast::expressions::unary::UnaryExpression"]],["impl RefUnwindSafe for UnitExpression",1,["leo_ast::expressions::unit::UnitExpression"]],["impl RefUnwindSafe for Annotation",1,["leo_ast::functions::annotation::Annotation"]],["impl RefUnwindSafe for Input",1,["leo_ast::functions::input::Input"]],["impl RefUnwindSafe for Output",1,["leo_ast::functions::output::Output"]],["impl RefUnwindSafe for GroupTuple",1,["leo_ast::groups::group_literal::GroupTuple"]],["impl RefUnwindSafe for Mapping",1,["leo_ast::mapping::Mapping"]],["impl RefUnwindSafe for ProgramId",1,["leo_ast::program::program_id::ProgramId"]],["impl RefUnwindSafe for AssertStatement",1,["leo_ast::statement::assert::AssertStatement"]],["impl RefUnwindSafe for AssignStatement",1,["leo_ast::statement::assign::AssignStatement"]],["impl RefUnwindSafe for ConsoleStatement",1,["leo_ast::statement::console::console_statement::ConsoleStatement"]],["impl RefUnwindSafe for ConstDeclaration",1,["leo_ast::statement::const_::ConstDeclaration"]],["impl RefUnwindSafe for DefinitionStatement",1,["leo_ast::statement::definition::DefinitionStatement"]],["impl RefUnwindSafe for ExpressionStatement",1,["leo_ast::statement::expression::ExpressionStatement"]],["impl RefUnwindSafe for ReturnStatement",1,["leo_ast::statement::return_::ReturnStatement"]],["impl RefUnwindSafe for Member",1,["leo_ast::struct::member::Member"]],["impl RefUnwindSafe for Composite",1,["leo_ast::struct::Composite"]],["impl RefUnwindSafe for FunctionStub",1,["leo_ast::stub::function_stub::FunctionStub"]],["impl RefUnwindSafe for Stub",1,["leo_ast::stub::Stub"]],["impl RefUnwindSafe for ArrayType",1,["leo_ast::types::array::ArrayType"]],["impl RefUnwindSafe for FutureType",1,["leo_ast::types::future::FutureType"]],["impl RefUnwindSafe for MappingType",1,["leo_ast::types::mapping::MappingType"]],["impl RefUnwindSafe for CompositeType",1,["leo_ast::types::struct_type::CompositeType"]],["impl RefUnwindSafe for TupleType",1,["leo_ast::types::tuple::TupleType"]],["impl<'a> RefUnwindSafe for DisplayDecimal<'a>",1,["leo_ast::expressions::literal::DisplayDecimal"]]]],["leo_compiler",[["impl RefUnwindSafe for BuildOptions",1,["leo_compiler::options::BuildOptions"]],["impl RefUnwindSafe for CompilerOptions",1,["leo_compiler::options::CompilerOptions"]],["impl RefUnwindSafe for OutputOptions",1,["leo_compiler::options::OutputOptions"]],["impl<'a, N> !RefUnwindSafe for Compiler<'a, N>",1,["leo_compiler::compiler::Compiler"]]]],["leo_errors",[["impl !RefUnwindSafe for BufferEmitter",1,["leo_errors::emitter::BufferEmitter"]],["impl !RefUnwindSafe for Handler",1,["leo_errors::emitter::Handler"]],["impl !RefUnwindSafe for HandlerInner",1,["leo_errors::emitter::HandlerInner"]],["impl RefUnwindSafe for AstError",1,["leo_errors::errors::ast::ast_errors::AstError"]],["impl RefUnwindSafe for CliError",1,["leo_errors::errors::cli::cli_errors::CliError"]],["impl RefUnwindSafe for CompilerError",1,["leo_errors::errors::compiler::compiler_errors::CompilerError"]],["impl RefUnwindSafe for LeoError",1,["leo_errors::errors::LeoError"]],["impl RefUnwindSafe for LeoWarning",1,["leo_errors::errors::LeoWarning"]],["impl RefUnwindSafe for FlattenError",1,["leo_errors::errors::flattener::flattener_errors::FlattenError"]],["impl RefUnwindSafe for LoopUnrollerError",1,["leo_errors::errors::loop_unroller::loop_unroller_errors::LoopUnrollerError"]],["impl RefUnwindSafe for PackageError",1,["leo_errors::errors::package::package_errors::PackageError"]],["impl RefUnwindSafe for ParserError",1,["leo_errors::errors::parser::parser_errors::ParserError"]],["impl RefUnwindSafe for ParserWarning",1,["leo_errors::errors::parser::parser_warnings::ParserWarning"]],["impl RefUnwindSafe for StaticAnalyzerError",1,["leo_errors::errors::static_analyzer::static_analyzer_error::StaticAnalyzerError"]],["impl RefUnwindSafe for StaticAnalyzerWarning",1,["leo_errors::errors::static_analyzer::static_analyzer_warning::StaticAnalyzerWarning"]],["impl RefUnwindSafe for TypeCheckerError",1,["leo_errors::errors::type_checker::type_checker_error::TypeCheckerError"]],["impl RefUnwindSafe for TypeCheckerWarning",1,["leo_errors::errors::type_checker::type_checker_warning::TypeCheckerWarning"]],["impl RefUnwindSafe for UtilError",1,["leo_errors::errors::utils::util_errors::UtilError"]],["impl RefUnwindSafe for Backtraced",1,["leo_errors::common::backtraced::Backtraced"]],["impl RefUnwindSafe for Formatted",1,["leo_errors::common::formatted::Formatted"]],["impl RefUnwindSafe for StderrEmitter",1,["leo_errors::emitter::StderrEmitter"]],["impl<T> RefUnwindSafe for Buffer<T>
where\n T: RefUnwindSafe,
",1,["leo_errors::emitter::Buffer"]]]],["leo_lang",[["impl RefUnwindSafe for Commands",1,["leo_lang::cli::cli::Commands"]],["impl RefUnwindSafe for Account",1,["leo_lang::cli::commands::account::Account"]],["impl RefUnwindSafe for ExampleVariant",1,["leo_lang::cli::commands::example::ExampleVariant"]],["impl RefUnwindSafe for QueryCommands",1,["leo_lang::cli::commands::query::QueryCommands"]],["impl RefUnwindSafe for CLI",1,["leo_lang::cli::cli::CLI"]],["impl RefUnwindSafe for LeoAdd",1,["leo_lang::cli::commands::add::LeoAdd"]],["impl RefUnwindSafe for LeoBuild",1,["leo_lang::cli::commands::build::LeoBuild"]],["impl RefUnwindSafe for LeoClean",1,["leo_lang::cli::commands::clean::LeoClean"]],["impl RefUnwindSafe for Deploy",1,["leo_lang::cli::commands::deploy::Deploy"]],["impl RefUnwindSafe for LeoExample",1,["leo_lang::cli::commands::example::LeoExample"]],["impl RefUnwindSafe for LeoExecute",1,["leo_lang::cli::commands::execute::LeoExecute"]],["impl RefUnwindSafe for LeoNew",1,["leo_lang::cli::commands::new::LeoNew"]],["impl RefUnwindSafe for LeoBlock",1,["leo_lang::cli::commands::query::block::LeoBlock"]],["impl RefUnwindSafe for LeoCommittee",1,["leo_lang::cli::commands::query::committee::LeoCommittee"]],["impl RefUnwindSafe for LeoMempool",1,["leo_lang::cli::commands::query::mempool::LeoMempool"]],["impl RefUnwindSafe for LeoPeers",1,["leo_lang::cli::commands::query::peers::LeoPeers"]],["impl RefUnwindSafe for LeoProgram",1,["leo_lang::cli::commands::query::program::LeoProgram"]],["impl RefUnwindSafe for StateRoot",1,["leo_lang::cli::commands::query::state_root::StateRoot"]],["impl RefUnwindSafe for LeoQuery",1,["leo_lang::cli::commands::query::LeoQuery"]],["impl RefUnwindSafe for LeoTransaction",1,["leo_lang::cli::commands::query::transaction::LeoTransaction"]],["impl RefUnwindSafe for LeoRemove",1,["leo_lang::cli::commands::remove::LeoRemove"]],["impl RefUnwindSafe for LeoRun",1,["leo_lang::cli::commands::run::LeoRun"]],["impl RefUnwindSafe for BuildOptions",1,["leo_lang::cli::commands::BuildOptions"]],["impl RefUnwindSafe for FeeOptions",1,["leo_lang::cli::commands::FeeOptions"]],["impl RefUnwindSafe for LeoUpdate",1,["leo_lang::cli::commands::update::LeoUpdate"]],["impl RefUnwindSafe for Context",1,["leo_lang::cli::helpers::context::Context"]],["impl RefUnwindSafe for Updater",1,["leo_lang::cli::helpers::updater::Updater"]],["impl<F, T> RefUnwindSafe for Format<F, T>
where\n F: RefUnwindSafe,\n T: RefUnwindSafe,
",1,["leo_lang::cli::helpers::logger::Format"]]]],["leo_package",[["impl RefUnwindSafe for Snapshot",1,["leo_package::outputs::ast_snapshot::Snapshot"]],["impl RefUnwindSafe for BuildDirectory",1,["leo_package::build::directory::BuildDirectory"]],["impl RefUnwindSafe for ImportsDirectory",1,["leo_package::imports::directory::ImportsDirectory"]],["impl RefUnwindSafe for InputsDirectory",1,["leo_package::inputs::directory::InputsDirectory"]],["impl RefUnwindSafe for SnapshotFile",1,["leo_package::outputs::ast_snapshot::SnapshotFile"]],["impl RefUnwindSafe for ChecksumFile",1,["leo_package::outputs::checksum::ChecksumFile"]],["impl RefUnwindSafe for CircuitFile",1,["leo_package::outputs::circuit::CircuitFile"]],["impl RefUnwindSafe for OutputsDirectory",1,["leo_package::outputs::directory::OutputsDirectory"]],["impl RefUnwindSafe for Package",1,["leo_package::package::Package"]],["impl RefUnwindSafe for Gitignore",1,["leo_package::root::gitignore::Gitignore"]],["impl RefUnwindSafe for SourceDirectory",1,["leo_package::source::directory::SourceDirectory"]],["impl RefUnwindSafe for MainFile",1,["leo_package::source::main::MainFile"]],["impl<N> RefUnwindSafe for Env<N>
where\n <N as Environment>::Field: RefUnwindSafe,\n <N as Environment>::Scalar: RefUnwindSafe,
",1,["leo_package::root::env::Env"]]]],["leo_parser",[["impl RefUnwindSafe for Delimiter",1,["leo_parser::tokenizer::token::Delimiter"]],["impl RefUnwindSafe for Token",1,["leo_parser::tokenizer::token::Token"]],["impl RefUnwindSafe for SpannedToken",1,["leo_parser::tokenizer::lexer::SpannedToken"]],["impl<'a, N> !RefUnwindSafe for ParserContext<'a, N>",1,["leo_parser::parser::context::ParserContext"]]]],["leo_passes",[["impl !RefUnwindSafe for Assigner",1,["leo_passes::common::assigner::Assigner"]],["impl !RefUnwindSafe for ConstantPropagationTable",1,["leo_passes::common::constant_propagation_table::ConstantPropagationTable"]],["impl !RefUnwindSafe for SymbolTable",1,["leo_passes::common::symbol_table::SymbolTable"]],["impl !RefUnwindSafe for TypeTable",1,["leo_passes::common::type_table::TypeTable"]],["impl RefUnwindSafe for VariableType",1,["leo_passes::common::symbol_table::variable_symbol::VariableType"]],["impl RefUnwindSafe for Guard",1,["leo_passes::flattening::flattener::Guard"]],["impl RefUnwindSafe for ReturnGuard",1,["leo_passes::flattening::flattener::ReturnGuard"]],["impl RefUnwindSafe for Clusivity",1,["leo_passes::loop_unrolling::range_iterator::Clusivity"]],["impl RefUnwindSafe for AssignerInner",1,["leo_passes::common::assigner::AssignerInner"]],["impl RefUnwindSafe for RenameTable",1,["leo_passes::common::rename_table::RenameTable"]],["impl RefUnwindSafe for FunctionSymbol",1,["leo_passes::common::symbol_table::function_symbol::FunctionSymbol"]],["impl RefUnwindSafe for VariableSymbol",1,["leo_passes::common::symbol_table::variable_symbol::VariableSymbol"]],["impl RefUnwindSafe for AwaitChecker",1,["leo_passes::static_analysis::await_checker::AwaitChecker"]],["impl RefUnwindSafe for ScopeState",1,["leo_passes::type_checking::scope_state::ScopeState"]],["impl<'a> !RefUnwindSafe for CodeGenerator<'a>",1,["leo_passes::code_generation::generator::CodeGenerator"]],["impl<'a> !RefUnwindSafe for DeadCodeEliminator<'a>",1,["leo_passes::dead_code_elimination::dead_code_eliminator::DeadCodeEliminator"]],["impl<'a> !RefUnwindSafe for Destructurer<'a>",1,["leo_passes::destructuring::destructurer::Destructurer"]],["impl<'a> !RefUnwindSafe for Flattener<'a>",1,["leo_passes::flattening::flattener::Flattener"]],["impl<'a> !RefUnwindSafe for AssignmentRenamer<'a>",1,["leo_passes::function_inlining::assignment_renamer::AssignmentRenamer"]],["impl<'a> !RefUnwindSafe for FunctionInliner<'a>",1,["leo_passes::function_inlining::function_inliner::FunctionInliner"]],["impl<'a> !RefUnwindSafe for Unroller<'a>",1,["leo_passes::loop_unrolling::unroller::Unroller"]],["impl<'a> !RefUnwindSafe for StaticSingleAssigner<'a>",1,["leo_passes::static_single_assignment::static_single_assigner::StaticSingleAssigner"]],["impl<'a> !RefUnwindSafe for SymbolTableCreator<'a>",1,["leo_passes::symbol_table_creation::creator::SymbolTableCreator"]],["impl<'a, N> !RefUnwindSafe for StaticAnalyzer<'a, N>",1,["leo_passes::static_analysis::analyzer::StaticAnalyzer"]],["impl<'a, N> !RefUnwindSafe for TypeChecker<'a, N>",1,["leo_passes::type_checking::checker::TypeChecker"]],["impl<F> RefUnwindSafe for Replacer<F>
where\n F: RefUnwindSafe,
",1,["leo_passes::common::replacer::Replacer"]],["impl<I> RefUnwindSafe for RangeIterator<I>
where\n I: RefUnwindSafe,
",1,["leo_passes::loop_unrolling::range_iterator::RangeIterator"]],["impl<N> RefUnwindSafe for DiGraphError<N>
where\n N: RefUnwindSafe,
",1,["leo_passes::common::graph::DiGraphError"]],["impl<N> RefUnwindSafe for DiGraph<N>
where\n N: RefUnwindSafe,
",1,["leo_passes::common::graph::DiGraph"]],["impl<N> RefUnwindSafe for TreeNode<N>
where\n N: RefUnwindSafe,
",1,["leo_passes::common::tree_node::TreeNode"]]]],["leo_retriever",[["impl RefUnwindSafe for Location",1,["leo_retriever::program_context::location::Location"]],["impl RefUnwindSafe for NetworkName",1,["leo_retriever::program_context::network_name::NetworkName"]],["impl RefUnwindSafe for Dependency",1,["leo_retriever::program_context::dependency::Dependency"]],["impl RefUnwindSafe for LockFileEntry",1,["leo_retriever::program_context::lock_file_entry::LockFileEntry"]],["impl RefUnwindSafe for Manifest",1,["leo_retriever::program_context::manifest::Manifest"]],["impl RefUnwindSafe for ProgramContext",1,["leo_retriever::program_context::ProgramContext"]],["impl<N> RefUnwindSafe for Retriever<N>
where\n N: RefUnwindSafe,
",1,["leo_retriever::retriever::Retriever"]]]],["leo_span",[["impl !RefUnwindSafe for SourceMap",1,["leo_span::source_map::SourceMap"]],["impl !RefUnwindSafe for Interner",1,["leo_span::symbol::Interner"]],["impl !RefUnwindSafe for SessionGlobals",1,["leo_span::symbol::SessionGlobals"]],["impl RefUnwindSafe for FileName",1,["leo_span::source_map::FileName"]],["impl RefUnwindSafe for InternedStr",1,["leo_span::symbol::InternedStr"]],["impl RefUnwindSafe for LineCol",1,["leo_span::source_map::LineCol"]],["impl RefUnwindSafe for MultiByteChar",1,["leo_span::source_map::MultiByteChar"]],["impl RefUnwindSafe for SourceFile",1,["leo_span::source_map::SourceFile"]],["impl RefUnwindSafe for SourceMapInner",1,["leo_span::source_map::SourceMapInner"]],["impl RefUnwindSafe for SpanLocation",1,["leo_span::source_map::SpanLocation"]],["impl RefUnwindSafe for BytePos",1,["leo_span::span::BytePos"]],["impl RefUnwindSafe for CharPos",1,["leo_span::span::CharPos"]],["impl RefUnwindSafe for Span",1,["leo_span::span::Span"]],["impl RefUnwindSafe for SpanMapVisitor",1,["leo_span::span_json::SpanMapVisitor"]],["impl RefUnwindSafe for InnerInterner",1,["leo_span::symbol::InnerInterner"]],["impl RefUnwindSafe for Symbol",1,["leo_span::symbol::Symbol"]]]],["leo_test_framework",[["impl RefUnwindSafe for TestError",1,["leo_test_framework::error::TestError"]],["impl RefUnwindSafe for ParseType",1,["leo_test_framework::runner::ParseType"]],["impl RefUnwindSafe for TestExpectationMode",1,["leo_test_framework::test::TestExpectationMode"]],["impl RefUnwindSafe for TestFailure",1,["leo_test_framework::error::TestFailure"]],["impl RefUnwindSafe for TestExpectation",1,["leo_test_framework::output::TestExpectation"]],["impl RefUnwindSafe for Test",1,["leo_test_framework::runner::Test"]],["impl RefUnwindSafe for TestCases",1,["leo_test_framework::runner::TestCases"]],["impl RefUnwindSafe for TestConfig",1,["leo_test_framework::test::TestConfig"]]]]]); + var implementors = Object.fromEntries([["leo_abnf",[["impl RefUnwindSafe for Scope",1,["leo_abnf::Scope"]],["impl<'a> RefUnwindSafe for Processor<'a>",1,["leo_abnf::Processor"]]]],["leo_ast",[["impl !RefUnwindSafe for Statement",1,["leo_ast::statement::Statement"]],["impl !RefUnwindSafe for NodeBuilder",1,["leo_ast::common::node_builder::NodeBuilder"]],["impl !RefUnwindSafe for Function",1,["leo_ast::functions::Function"]],["impl !RefUnwindSafe for ProgramScope",1,["leo_ast::program::program_scope::ProgramScope"]],["impl !RefUnwindSafe for Program",1,["leo_ast::program::Program"]],["impl !RefUnwindSafe for Block",1,["leo_ast::statement::block::Block"]],["impl !RefUnwindSafe for ConditionalStatement",1,["leo_ast::statement::conditional::ConditionalStatement"]],["impl !RefUnwindSafe for IterationStatement",1,["leo_ast::statement::iteration::IterationStatement"]],["impl !RefUnwindSafe for Ast",1,["leo_ast::Ast"]],["impl RefUnwindSafe for AccessExpression",1,["leo_ast::expressions::access::AccessExpression"]],["impl RefUnwindSafe for BinaryOperation",1,["leo_ast::expressions::binary::BinaryOperation"]],["impl RefUnwindSafe for Expression",1,["leo_ast::expressions::Expression"]],["impl RefUnwindSafe for Literal",1,["leo_ast::expressions::literal::Literal"]],["impl RefUnwindSafe for UnaryOperation",1,["leo_ast::expressions::unary::UnaryOperation"]],["impl RefUnwindSafe for CoreFunction",1,["leo_ast::functions::core_function::CoreFunction"]],["impl RefUnwindSafe for Mode",1,["leo_ast::functions::mode::Mode"]],["impl RefUnwindSafe for Variant",1,["leo_ast::functions::variant::Variant"]],["impl RefUnwindSafe for GroupCoordinate",1,["leo_ast::groups::group_coordinate::GroupCoordinate"]],["impl RefUnwindSafe for GroupLiteral",1,["leo_ast::groups::group_literal::GroupLiteral"]],["impl RefUnwindSafe for AssertVariant",1,["leo_ast::statement::assert::AssertVariant"]],["impl RefUnwindSafe for ConsoleFunction",1,["leo_ast::statement::console::console_function::ConsoleFunction"]],["impl RefUnwindSafe for DeclarationType",1,["leo_ast::statement::definition::declaration_type::DeclarationType"]],["impl RefUnwindSafe for CoreConstant",1,["leo_ast::types::core_constant::CoreConstant"]],["impl RefUnwindSafe for IntegerType",1,["leo_ast::types::integer_type::IntegerType"]],["impl RefUnwindSafe for Type",1,["leo_ast::types::type_::Type"]],["impl RefUnwindSafe for Value",1,["leo_ast::value::Value"]],["impl RefUnwindSafe for ArrayAccess",1,["leo_ast::access::array_access::ArrayAccess"]],["impl RefUnwindSafe for AssociatedConstant",1,["leo_ast::access::associated_constant_access::AssociatedConstant"]],["impl RefUnwindSafe for AssociatedFunction",1,["leo_ast::access::associated_function_access::AssociatedFunction"]],["impl RefUnwindSafe for MemberAccess",1,["leo_ast::access::member_access::MemberAccess"]],["impl RefUnwindSafe for TupleAccess",1,["leo_ast::access::tuple_access::TupleAccess"]],["impl RefUnwindSafe for Identifier",1,["leo_ast::common::identifier::Identifier"]],["impl RefUnwindSafe for Location",1,["leo_ast::common::location::Location"]],["impl RefUnwindSafe for NodeBuilderInner",1,["leo_ast::common::node_builder::NodeBuilderInner"]],["impl RefUnwindSafe for NonNegativeNumber",1,["leo_ast::common::positive_number::NonNegativeNumber"]],["impl RefUnwindSafe for StaticString",1,["leo_ast::common::static_string::StaticString"]],["impl RefUnwindSafe for ArrayExpression",1,["leo_ast::expressions::array::ArrayExpression"]],["impl RefUnwindSafe for BinaryExpression",1,["leo_ast::expressions::binary::BinaryExpression"]],["impl RefUnwindSafe for CallExpression",1,["leo_ast::expressions::call::CallExpression"]],["impl RefUnwindSafe for CastExpression",1,["leo_ast::expressions::cast::CastExpression"]],["impl RefUnwindSafe for ErrExpression",1,["leo_ast::expressions::err::ErrExpression"]],["impl RefUnwindSafe for LocatorExpression",1,["leo_ast::expressions::locator::LocatorExpression"]],["impl RefUnwindSafe for StructExpression",1,["leo_ast::expressions::struct_init::StructExpression"]],["impl RefUnwindSafe for StructVariableInitializer",1,["leo_ast::expressions::struct_init::StructVariableInitializer"]],["impl RefUnwindSafe for TernaryExpression",1,["leo_ast::expressions::ternary::TernaryExpression"]],["impl RefUnwindSafe for TupleExpression",1,["leo_ast::expressions::tuple::TupleExpression"]],["impl RefUnwindSafe for UnaryExpression",1,["leo_ast::expressions::unary::UnaryExpression"]],["impl RefUnwindSafe for UnitExpression",1,["leo_ast::expressions::unit::UnitExpression"]],["impl RefUnwindSafe for Annotation",1,["leo_ast::functions::annotation::Annotation"]],["impl RefUnwindSafe for Input",1,["leo_ast::functions::input::Input"]],["impl RefUnwindSafe for Output",1,["leo_ast::functions::output::Output"]],["impl RefUnwindSafe for GroupTuple",1,["leo_ast::groups::group_literal::GroupTuple"]],["impl RefUnwindSafe for Mapping",1,["leo_ast::mapping::Mapping"]],["impl RefUnwindSafe for ProgramId",1,["leo_ast::program::program_id::ProgramId"]],["impl RefUnwindSafe for AssertStatement",1,["leo_ast::statement::assert::AssertStatement"]],["impl RefUnwindSafe for AssignStatement",1,["leo_ast::statement::assign::AssignStatement"]],["impl RefUnwindSafe for ConsoleStatement",1,["leo_ast::statement::console::console_statement::ConsoleStatement"]],["impl RefUnwindSafe for ConstDeclaration",1,["leo_ast::statement::const_::ConstDeclaration"]],["impl RefUnwindSafe for DefinitionStatement",1,["leo_ast::statement::definition::DefinitionStatement"]],["impl RefUnwindSafe for ExpressionStatement",1,["leo_ast::statement::expression::ExpressionStatement"]],["impl RefUnwindSafe for ReturnStatement",1,["leo_ast::statement::return_::ReturnStatement"]],["impl RefUnwindSafe for Member",1,["leo_ast::struct::member::Member"]],["impl RefUnwindSafe for Composite",1,["leo_ast::struct::Composite"]],["impl RefUnwindSafe for FunctionStub",1,["leo_ast::stub::function_stub::FunctionStub"]],["impl RefUnwindSafe for Stub",1,["leo_ast::stub::Stub"]],["impl RefUnwindSafe for ArrayType",1,["leo_ast::types::array::ArrayType"]],["impl RefUnwindSafe for FutureType",1,["leo_ast::types::future::FutureType"]],["impl RefUnwindSafe for MappingType",1,["leo_ast::types::mapping::MappingType"]],["impl RefUnwindSafe for CompositeType",1,["leo_ast::types::struct_type::CompositeType"]],["impl RefUnwindSafe for TupleType",1,["leo_ast::types::tuple::TupleType"]],["impl<'a> RefUnwindSafe for DisplayDecimal<'a>",1,["leo_ast::expressions::literal::DisplayDecimal"]]]],["leo_compiler",[["impl RefUnwindSafe for BuildOptions",1,["leo_compiler::options::BuildOptions"]],["impl RefUnwindSafe for CompilerOptions",1,["leo_compiler::options::CompilerOptions"]],["impl RefUnwindSafe for OutputOptions",1,["leo_compiler::options::OutputOptions"]],["impl<'a, N> !RefUnwindSafe for Compiler<'a, N>",1,["leo_compiler::compiler::Compiler"]]]],["leo_errors",[["impl !RefUnwindSafe for BufferEmitter",1,["leo_errors::emitter::BufferEmitter"]],["impl !RefUnwindSafe for Handler",1,["leo_errors::emitter::Handler"]],["impl !RefUnwindSafe for HandlerInner",1,["leo_errors::emitter::HandlerInner"]],["impl RefUnwindSafe for AstError",1,["leo_errors::errors::ast::ast_errors::AstError"]],["impl RefUnwindSafe for CliError",1,["leo_errors::errors::cli::cli_errors::CliError"]],["impl RefUnwindSafe for CompilerError",1,["leo_errors::errors::compiler::compiler_errors::CompilerError"]],["impl RefUnwindSafe for LeoError",1,["leo_errors::errors::LeoError"]],["impl RefUnwindSafe for LeoWarning",1,["leo_errors::errors::LeoWarning"]],["impl RefUnwindSafe for FlattenError",1,["leo_errors::errors::flattener::flattener_errors::FlattenError"]],["impl RefUnwindSafe for LoopUnrollerError",1,["leo_errors::errors::loop_unroller::loop_unroller_errors::LoopUnrollerError"]],["impl RefUnwindSafe for PackageError",1,["leo_errors::errors::package::package_errors::PackageError"]],["impl RefUnwindSafe for ParserError",1,["leo_errors::errors::parser::parser_errors::ParserError"]],["impl RefUnwindSafe for ParserWarning",1,["leo_errors::errors::parser::parser_warnings::ParserWarning"]],["impl RefUnwindSafe for StaticAnalyzerError",1,["leo_errors::errors::static_analyzer::static_analyzer_error::StaticAnalyzerError"]],["impl RefUnwindSafe for StaticAnalyzerWarning",1,["leo_errors::errors::static_analyzer::static_analyzer_warning::StaticAnalyzerWarning"]],["impl RefUnwindSafe for TypeCheckerError",1,["leo_errors::errors::type_checker::type_checker_error::TypeCheckerError"]],["impl RefUnwindSafe for TypeCheckerWarning",1,["leo_errors::errors::type_checker::type_checker_warning::TypeCheckerWarning"]],["impl RefUnwindSafe for UtilError",1,["leo_errors::errors::utils::util_errors::UtilError"]],["impl RefUnwindSafe for Backtraced",1,["leo_errors::common::backtraced::Backtraced"]],["impl RefUnwindSafe for Formatted",1,["leo_errors::common::formatted::Formatted"]],["impl RefUnwindSafe for StderrEmitter",1,["leo_errors::emitter::StderrEmitter"]],["impl<T> RefUnwindSafe for Buffer<T>
where\n T: RefUnwindSafe,
",1,["leo_errors::emitter::Buffer"]]]],["leo_lang",[["impl RefUnwindSafe for Commands",1,["leo_lang::cli::cli::Commands"]],["impl RefUnwindSafe for Account",1,["leo_lang::cli::commands::account::Account"]],["impl RefUnwindSafe for ExampleVariant",1,["leo_lang::cli::commands::example::ExampleVariant"]],["impl RefUnwindSafe for QueryCommands",1,["leo_lang::cli::commands::query::QueryCommands"]],["impl RefUnwindSafe for CLI",1,["leo_lang::cli::cli::CLI"]],["impl RefUnwindSafe for LeoAdd",1,["leo_lang::cli::commands::add::LeoAdd"]],["impl RefUnwindSafe for LeoBuild",1,["leo_lang::cli::commands::build::LeoBuild"]],["impl RefUnwindSafe for LeoClean",1,["leo_lang::cli::commands::clean::LeoClean"]],["impl RefUnwindSafe for Deploy",1,["leo_lang::cli::commands::deploy::Deploy"]],["impl RefUnwindSafe for LeoExample",1,["leo_lang::cli::commands::example::LeoExample"]],["impl RefUnwindSafe for LeoExecute",1,["leo_lang::cli::commands::execute::LeoExecute"]],["impl RefUnwindSafe for LeoNew",1,["leo_lang::cli::commands::new::LeoNew"]],["impl RefUnwindSafe for LeoBlock",1,["leo_lang::cli::commands::query::block::LeoBlock"]],["impl RefUnwindSafe for LeoCommittee",1,["leo_lang::cli::commands::query::committee::LeoCommittee"]],["impl RefUnwindSafe for LeoMempool",1,["leo_lang::cli::commands::query::mempool::LeoMempool"]],["impl RefUnwindSafe for LeoPeers",1,["leo_lang::cli::commands::query::peers::LeoPeers"]],["impl RefUnwindSafe for LeoProgram",1,["leo_lang::cli::commands::query::program::LeoProgram"]],["impl RefUnwindSafe for StateRoot",1,["leo_lang::cli::commands::query::state_root::StateRoot"]],["impl RefUnwindSafe for LeoQuery",1,["leo_lang::cli::commands::query::LeoQuery"]],["impl RefUnwindSafe for LeoTransaction",1,["leo_lang::cli::commands::query::transaction::LeoTransaction"]],["impl RefUnwindSafe for LeoRemove",1,["leo_lang::cli::commands::remove::LeoRemove"]],["impl RefUnwindSafe for LeoRun",1,["leo_lang::cli::commands::run::LeoRun"]],["impl RefUnwindSafe for BuildOptions",1,["leo_lang::cli::commands::BuildOptions"]],["impl RefUnwindSafe for FeeOptions",1,["leo_lang::cli::commands::FeeOptions"]],["impl RefUnwindSafe for LeoUpdate",1,["leo_lang::cli::commands::update::LeoUpdate"]],["impl RefUnwindSafe for Context",1,["leo_lang::cli::helpers::context::Context"]],["impl RefUnwindSafe for Updater",1,["leo_lang::cli::helpers::updater::Updater"]],["impl<F, T> RefUnwindSafe for Format<F, T>
where\n F: RefUnwindSafe,\n T: RefUnwindSafe,
",1,["leo_lang::cli::helpers::logger::Format"]]]],["leo_package",[["impl RefUnwindSafe for Snapshot",1,["leo_package::outputs::ast_snapshot::Snapshot"]],["impl RefUnwindSafe for BuildDirectory",1,["leo_package::build::directory::BuildDirectory"]],["impl RefUnwindSafe for ImportsDirectory",1,["leo_package::imports::directory::ImportsDirectory"]],["impl RefUnwindSafe for InputsDirectory",1,["leo_package::inputs::directory::InputsDirectory"]],["impl RefUnwindSafe for SnapshotFile",1,["leo_package::outputs::ast_snapshot::SnapshotFile"]],["impl RefUnwindSafe for ChecksumFile",1,["leo_package::outputs::checksum::ChecksumFile"]],["impl RefUnwindSafe for CircuitFile",1,["leo_package::outputs::circuit::CircuitFile"]],["impl RefUnwindSafe for OutputsDirectory",1,["leo_package::outputs::directory::OutputsDirectory"]],["impl RefUnwindSafe for Package",1,["leo_package::package::Package"]],["impl RefUnwindSafe for Gitignore",1,["leo_package::root::gitignore::Gitignore"]],["impl RefUnwindSafe for SourceDirectory",1,["leo_package::source::directory::SourceDirectory"]],["impl RefUnwindSafe for MainFile",1,["leo_package::source::main::MainFile"]],["impl<N> RefUnwindSafe for Env<N>
where\n <N as Environment>::Field: RefUnwindSafe,\n <N as Environment>::Scalar: RefUnwindSafe,
",1,["leo_package::root::env::Env"]]]],["leo_parser",[["impl RefUnwindSafe for Delimiter",1,["leo_parser::tokenizer::token::Delimiter"]],["impl RefUnwindSafe for Token",1,["leo_parser::tokenizer::token::Token"]],["impl RefUnwindSafe for SpannedToken",1,["leo_parser::tokenizer::lexer::SpannedToken"]],["impl<'a, N> !RefUnwindSafe for ParserContext<'a, N>",1,["leo_parser::parser::context::ParserContext"]]]],["leo_passes",[["impl !RefUnwindSafe for Assigner",1,["leo_passes::common::assigner::Assigner"]],["impl !RefUnwindSafe for ConstantPropagationTable",1,["leo_passes::common::constant_propagation_table::ConstantPropagationTable"]],["impl !RefUnwindSafe for SymbolTable",1,["leo_passes::common::symbol_table::SymbolTable"]],["impl !RefUnwindSafe for TypeTable",1,["leo_passes::common::type_table::TypeTable"]],["impl RefUnwindSafe for VariableType",1,["leo_passes::common::symbol_table::variable_symbol::VariableType"]],["impl RefUnwindSafe for Guard",1,["leo_passes::flattening::flattener::Guard"]],["impl RefUnwindSafe for ReturnGuard",1,["leo_passes::flattening::flattener::ReturnGuard"]],["impl RefUnwindSafe for Clusivity",1,["leo_passes::loop_unrolling::range_iterator::Clusivity"]],["impl RefUnwindSafe for AssignerInner",1,["leo_passes::common::assigner::AssignerInner"]],["impl RefUnwindSafe for RenameTable",1,["leo_passes::common::rename_table::RenameTable"]],["impl RefUnwindSafe for FunctionSymbol",1,["leo_passes::common::symbol_table::function_symbol::FunctionSymbol"]],["impl RefUnwindSafe for VariableSymbol",1,["leo_passes::common::symbol_table::variable_symbol::VariableSymbol"]],["impl RefUnwindSafe for AwaitChecker",1,["leo_passes::static_analysis::await_checker::AwaitChecker"]],["impl RefUnwindSafe for ScopeState",1,["leo_passes::type_checking::scope_state::ScopeState"]],["impl<'a> !RefUnwindSafe for CodeGenerator<'a>",1,["leo_passes::code_generation::generator::CodeGenerator"]],["impl<'a> !RefUnwindSafe for DeadCodeEliminator<'a>",1,["leo_passes::dead_code_elimination::dead_code_eliminator::DeadCodeEliminator"]],["impl<'a> !RefUnwindSafe for Destructurer<'a>",1,["leo_passes::destructuring::destructurer::Destructurer"]],["impl<'a> !RefUnwindSafe for Flattener<'a>",1,["leo_passes::flattening::flattener::Flattener"]],["impl<'a> !RefUnwindSafe for AssignmentRenamer<'a>",1,["leo_passes::function_inlining::assignment_renamer::AssignmentRenamer"]],["impl<'a> !RefUnwindSafe for FunctionInliner<'a>",1,["leo_passes::function_inlining::function_inliner::FunctionInliner"]],["impl<'a> !RefUnwindSafe for Unroller<'a>",1,["leo_passes::loop_unrolling::unroller::Unroller"]],["impl<'a> !RefUnwindSafe for StaticSingleAssigner<'a>",1,["leo_passes::static_single_assignment::static_single_assigner::StaticSingleAssigner"]],["impl<'a> !RefUnwindSafe for SymbolTableCreator<'a>",1,["leo_passes::symbol_table_creation::creator::SymbolTableCreator"]],["impl<'a, N> !RefUnwindSafe for StaticAnalyzer<'a, N>",1,["leo_passes::static_analysis::analyzer::StaticAnalyzer"]],["impl<'a, N> !RefUnwindSafe for TypeChecker<'a, N>",1,["leo_passes::type_checking::checker::TypeChecker"]],["impl<F> RefUnwindSafe for Replacer<F>
where\n F: RefUnwindSafe,
",1,["leo_passes::common::replacer::Replacer"]],["impl<I> RefUnwindSafe for RangeIterator<I>
where\n I: RefUnwindSafe,
",1,["leo_passes::loop_unrolling::range_iterator::RangeIterator"]],["impl<N> RefUnwindSafe for DiGraphError<N>
where\n N: RefUnwindSafe,
",1,["leo_passes::common::graph::DiGraphError"]],["impl<N> RefUnwindSafe for DiGraph<N>
where\n N: RefUnwindSafe,
",1,["leo_passes::common::graph::DiGraph"]],["impl<N> RefUnwindSafe for TreeNode<N>
where\n N: RefUnwindSafe,
",1,["leo_passes::common::tree_node::TreeNode"]]]],["leo_retriever",[["impl RefUnwindSafe for Location",1,["leo_retriever::program_context::location::Location"]],["impl RefUnwindSafe for NetworkName",1,["leo_retriever::program_context::network_name::NetworkName"]],["impl RefUnwindSafe for Dependency",1,["leo_retriever::program_context::dependency::Dependency"]],["impl RefUnwindSafe for LockFileEntry",1,["leo_retriever::program_context::lock_file_entry::LockFileEntry"]],["impl RefUnwindSafe for Manifest",1,["leo_retriever::program_context::manifest::Manifest"]],["impl RefUnwindSafe for ProgramContext",1,["leo_retriever::program_context::ProgramContext"]],["impl<N> RefUnwindSafe for Retriever<N>
where\n N: RefUnwindSafe,
",1,["leo_retriever::retriever::Retriever"]]]],["leo_span",[["impl !RefUnwindSafe for SourceMap",1,["leo_span::source_map::SourceMap"]],["impl !RefUnwindSafe for Interner",1,["leo_span::symbol::Interner"]],["impl !RefUnwindSafe for SessionGlobals",1,["leo_span::symbol::SessionGlobals"]],["impl RefUnwindSafe for FileName",1,["leo_span::source_map::FileName"]],["impl RefUnwindSafe for InternedStr",1,["leo_span::symbol::InternedStr"]],["impl RefUnwindSafe for LineCol",1,["leo_span::source_map::LineCol"]],["impl RefUnwindSafe for MultiByteChar",1,["leo_span::source_map::MultiByteChar"]],["impl RefUnwindSafe for SourceFile",1,["leo_span::source_map::SourceFile"]],["impl RefUnwindSafe for SourceMapInner",1,["leo_span::source_map::SourceMapInner"]],["impl RefUnwindSafe for SpanLocation",1,["leo_span::source_map::SpanLocation"]],["impl RefUnwindSafe for BytePos",1,["leo_span::span::BytePos"]],["impl RefUnwindSafe for CharPos",1,["leo_span::span::CharPos"]],["impl RefUnwindSafe for Span",1,["leo_span::span::Span"]],["impl RefUnwindSafe for SpanMapVisitor",1,["leo_span::span_json::SpanMapVisitor"]],["impl RefUnwindSafe for InnerInterner",1,["leo_span::symbol::InnerInterner"]],["impl RefUnwindSafe for Symbol",1,["leo_span::symbol::Symbol"]]]],["leo_test_framework",[["impl RefUnwindSafe for TestError",1,["leo_test_framework::error::TestError"]],["impl RefUnwindSafe for ParseType",1,["leo_test_framework::runner::ParseType"]],["impl RefUnwindSafe for TestExpectationMode",1,["leo_test_framework::test::TestExpectationMode"]],["impl RefUnwindSafe for TestFailure",1,["leo_test_framework::error::TestFailure"]],["impl RefUnwindSafe for TestExpectation",1,["leo_test_framework::output::TestExpectation"]],["impl RefUnwindSafe for Test",1,["leo_test_framework::runner::Test"]],["impl RefUnwindSafe for TestCases",1,["leo_test_framework::runner::TestCases"]],["impl RefUnwindSafe for TestConfig",1,["leo_test_framework::test::TestConfig"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js b/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js index c5579cee23..9be2610a9a 100644 --- a/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js +++ b/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_abnf",[["impl UnwindSafe for Scope",1,["leo_abnf::Scope"]],["impl<'a> UnwindSafe for Processor<'a>",1,["leo_abnf::Processor"]]]],["leo_ast",[["impl UnwindSafe for AccessExpression",1,["leo_ast::expressions::access::AccessExpression"]],["impl UnwindSafe for BinaryOperation",1,["leo_ast::expressions::binary::BinaryOperation"]],["impl UnwindSafe for Expression",1,["leo_ast::expressions::Expression"]],["impl UnwindSafe for Literal",1,["leo_ast::expressions::literal::Literal"]],["impl UnwindSafe for UnaryOperation",1,["leo_ast::expressions::unary::UnaryOperation"]],["impl UnwindSafe for CoreFunction",1,["leo_ast::functions::core_function::CoreFunction"]],["impl UnwindSafe for Mode",1,["leo_ast::functions::mode::Mode"]],["impl UnwindSafe for Variant",1,["leo_ast::functions::variant::Variant"]],["impl UnwindSafe for GroupCoordinate",1,["leo_ast::groups::group_coordinate::GroupCoordinate"]],["impl UnwindSafe for GroupLiteral",1,["leo_ast::groups::group_literal::GroupLiteral"]],["impl UnwindSafe for AssertVariant",1,["leo_ast::statement::assert::AssertVariant"]],["impl UnwindSafe for ConsoleFunction",1,["leo_ast::statement::console::console_function::ConsoleFunction"]],["impl UnwindSafe for DeclarationType",1,["leo_ast::statement::definition::declaration_type::DeclarationType"]],["impl UnwindSafe for Statement",1,["leo_ast::statement::Statement"]],["impl UnwindSafe for CoreConstant",1,["leo_ast::types::core_constant::CoreConstant"]],["impl UnwindSafe for IntegerType",1,["leo_ast::types::integer_type::IntegerType"]],["impl UnwindSafe for Type",1,["leo_ast::types::type_::Type"]],["impl UnwindSafe for Value",1,["leo_ast::value::Value"]],["impl UnwindSafe for ArrayAccess",1,["leo_ast::access::array_access::ArrayAccess"]],["impl UnwindSafe for AssociatedConstant",1,["leo_ast::access::associated_constant_access::AssociatedConstant"]],["impl UnwindSafe for AssociatedFunction",1,["leo_ast::access::associated_function_access::AssociatedFunction"]],["impl UnwindSafe for MemberAccess",1,["leo_ast::access::member_access::MemberAccess"]],["impl UnwindSafe for TupleAccess",1,["leo_ast::access::tuple_access::TupleAccess"]],["impl UnwindSafe for Identifier",1,["leo_ast::common::identifier::Identifier"]],["impl UnwindSafe for Location",1,["leo_ast::common::location::Location"]],["impl UnwindSafe for NodeBuilder",1,["leo_ast::common::node_builder::NodeBuilder"]],["impl UnwindSafe for NodeBuilderInner",1,["leo_ast::common::node_builder::NodeBuilderInner"]],["impl UnwindSafe for NonNegativeNumber",1,["leo_ast::common::positive_number::NonNegativeNumber"]],["impl UnwindSafe for StaticString",1,["leo_ast::common::static_string::StaticString"]],["impl UnwindSafe for ArrayExpression",1,["leo_ast::expressions::array::ArrayExpression"]],["impl UnwindSafe for BinaryExpression",1,["leo_ast::expressions::binary::BinaryExpression"]],["impl UnwindSafe for CallExpression",1,["leo_ast::expressions::call::CallExpression"]],["impl UnwindSafe for CastExpression",1,["leo_ast::expressions::cast::CastExpression"]],["impl UnwindSafe for ErrExpression",1,["leo_ast::expressions::err::ErrExpression"]],["impl UnwindSafe for LocatorExpression",1,["leo_ast::expressions::locator::LocatorExpression"]],["impl UnwindSafe for StructExpression",1,["leo_ast::expressions::struct_init::StructExpression"]],["impl UnwindSafe for StructVariableInitializer",1,["leo_ast::expressions::struct_init::StructVariableInitializer"]],["impl UnwindSafe for TernaryExpression",1,["leo_ast::expressions::ternary::TernaryExpression"]],["impl UnwindSafe for TupleExpression",1,["leo_ast::expressions::tuple::TupleExpression"]],["impl UnwindSafe for UnaryExpression",1,["leo_ast::expressions::unary::UnaryExpression"]],["impl UnwindSafe for UnitExpression",1,["leo_ast::expressions::unit::UnitExpression"]],["impl UnwindSafe for Annotation",1,["leo_ast::functions::annotation::Annotation"]],["impl UnwindSafe for Input",1,["leo_ast::functions::input::Input"]],["impl UnwindSafe for Output",1,["leo_ast::functions::output::Output"]],["impl UnwindSafe for Function",1,["leo_ast::functions::Function"]],["impl UnwindSafe for GroupTuple",1,["leo_ast::groups::group_literal::GroupTuple"]],["impl UnwindSafe for Mapping",1,["leo_ast::mapping::Mapping"]],["impl UnwindSafe for ProgramId",1,["leo_ast::program::program_id::ProgramId"]],["impl UnwindSafe for ProgramScope",1,["leo_ast::program::program_scope::ProgramScope"]],["impl UnwindSafe for Program",1,["leo_ast::program::Program"]],["impl UnwindSafe for AssertStatement",1,["leo_ast::statement::assert::AssertStatement"]],["impl UnwindSafe for AssignStatement",1,["leo_ast::statement::assign::AssignStatement"]],["impl UnwindSafe for Block",1,["leo_ast::statement::block::Block"]],["impl UnwindSafe for ConditionalStatement",1,["leo_ast::statement::conditional::ConditionalStatement"]],["impl UnwindSafe for ConsoleStatement",1,["leo_ast::statement::console::console_statement::ConsoleStatement"]],["impl UnwindSafe for ConstDeclaration",1,["leo_ast::statement::const_::ConstDeclaration"]],["impl UnwindSafe for DefinitionStatement",1,["leo_ast::statement::definition::DefinitionStatement"]],["impl UnwindSafe for ExpressionStatement",1,["leo_ast::statement::expression::ExpressionStatement"]],["impl UnwindSafe for IterationStatement",1,["leo_ast::statement::iteration::IterationStatement"]],["impl UnwindSafe for ReturnStatement",1,["leo_ast::statement::return_::ReturnStatement"]],["impl UnwindSafe for Ast",1,["leo_ast::Ast"]],["impl UnwindSafe for Member",1,["leo_ast::struct::member::Member"]],["impl UnwindSafe for Composite",1,["leo_ast::struct::Composite"]],["impl UnwindSafe for FunctionStub",1,["leo_ast::stub::function_stub::FunctionStub"]],["impl UnwindSafe for Stub",1,["leo_ast::stub::Stub"]],["impl UnwindSafe for ArrayType",1,["leo_ast::types::array::ArrayType"]],["impl UnwindSafe for FutureType",1,["leo_ast::types::future::FutureType"]],["impl UnwindSafe for MappingType",1,["leo_ast::types::mapping::MappingType"]],["impl UnwindSafe for CompositeType",1,["leo_ast::types::struct_type::CompositeType"]],["impl UnwindSafe for TupleType",1,["leo_ast::types::tuple::TupleType"]],["impl<'a> UnwindSafe for DisplayDecimal<'a>",1,["leo_ast::expressions::literal::DisplayDecimal"]]]],["leo_compiler",[["impl UnwindSafe for BuildOptions",1,["leo_compiler::options::BuildOptions"]],["impl UnwindSafe for CompilerOptions",1,["leo_compiler::options::CompilerOptions"]],["impl UnwindSafe for OutputOptions",1,["leo_compiler::options::OutputOptions"]],["impl<'a, N> !UnwindSafe for Compiler<'a, N>",1,["leo_compiler::compiler::Compiler"]]]],["leo_errors",[["impl !UnwindSafe for BufferEmitter",1,["leo_errors::emitter::BufferEmitter"]],["impl !UnwindSafe for Handler",1,["leo_errors::emitter::Handler"]],["impl !UnwindSafe for HandlerInner",1,["leo_errors::emitter::HandlerInner"]],["impl UnwindSafe for AstError",1,["leo_errors::errors::ast::ast_errors::AstError"]],["impl UnwindSafe for CliError",1,["leo_errors::errors::cli::cli_errors::CliError"]],["impl UnwindSafe for CompilerError",1,["leo_errors::errors::compiler::compiler_errors::CompilerError"]],["impl UnwindSafe for LeoError",1,["leo_errors::errors::LeoError"]],["impl UnwindSafe for LeoWarning",1,["leo_errors::errors::LeoWarning"]],["impl UnwindSafe for FlattenError",1,["leo_errors::errors::flattener::flattener_errors::FlattenError"]],["impl UnwindSafe for LoopUnrollerError",1,["leo_errors::errors::loop_unroller::loop_unroller_errors::LoopUnrollerError"]],["impl UnwindSafe for PackageError",1,["leo_errors::errors::package::package_errors::PackageError"]],["impl UnwindSafe for ParserError",1,["leo_errors::errors::parser::parser_errors::ParserError"]],["impl UnwindSafe for ParserWarning",1,["leo_errors::errors::parser::parser_warnings::ParserWarning"]],["impl UnwindSafe for StaticAnalyzerError",1,["leo_errors::errors::static_analyzer::static_analyzer_error::StaticAnalyzerError"]],["impl UnwindSafe for StaticAnalyzerWarning",1,["leo_errors::errors::static_analyzer::static_analyzer_warning::StaticAnalyzerWarning"]],["impl UnwindSafe for TypeCheckerError",1,["leo_errors::errors::type_checker::type_checker_error::TypeCheckerError"]],["impl UnwindSafe for TypeCheckerWarning",1,["leo_errors::errors::type_checker::type_checker_warning::TypeCheckerWarning"]],["impl UnwindSafe for UtilError",1,["leo_errors::errors::utils::util_errors::UtilError"]],["impl UnwindSafe for Backtraced",1,["leo_errors::common::backtraced::Backtraced"]],["impl UnwindSafe for Formatted",1,["leo_errors::common::formatted::Formatted"]],["impl UnwindSafe for StderrEmitter",1,["leo_errors::emitter::StderrEmitter"]],["impl<T> UnwindSafe for Buffer<T>
where\n T: UnwindSafe,
",1,["leo_errors::emitter::Buffer"]]]],["leo_lang",[["impl UnwindSafe for Commands",1,["leo_lang::cli::cli::Commands"]],["impl UnwindSafe for Account",1,["leo_lang::cli::commands::account::Account"]],["impl UnwindSafe for ExampleVariant",1,["leo_lang::cli::commands::example::ExampleVariant"]],["impl UnwindSafe for QueryCommands",1,["leo_lang::cli::commands::query::QueryCommands"]],["impl UnwindSafe for CLI",1,["leo_lang::cli::cli::CLI"]],["impl UnwindSafe for LeoAdd",1,["leo_lang::cli::commands::add::LeoAdd"]],["impl UnwindSafe for LeoBuild",1,["leo_lang::cli::commands::build::LeoBuild"]],["impl UnwindSafe for LeoClean",1,["leo_lang::cli::commands::clean::LeoClean"]],["impl UnwindSafe for Deploy",1,["leo_lang::cli::commands::deploy::Deploy"]],["impl UnwindSafe for LeoExample",1,["leo_lang::cli::commands::example::LeoExample"]],["impl UnwindSafe for LeoExecute",1,["leo_lang::cli::commands::execute::LeoExecute"]],["impl UnwindSafe for LeoNew",1,["leo_lang::cli::commands::new::LeoNew"]],["impl UnwindSafe for LeoBlock",1,["leo_lang::cli::commands::query::block::LeoBlock"]],["impl UnwindSafe for LeoCommittee",1,["leo_lang::cli::commands::query::committee::LeoCommittee"]],["impl UnwindSafe for LeoMempool",1,["leo_lang::cli::commands::query::mempool::LeoMempool"]],["impl UnwindSafe for LeoPeers",1,["leo_lang::cli::commands::query::peers::LeoPeers"]],["impl UnwindSafe for LeoProgram",1,["leo_lang::cli::commands::query::program::LeoProgram"]],["impl UnwindSafe for StateRoot",1,["leo_lang::cli::commands::query::state_root::StateRoot"]],["impl UnwindSafe for LeoQuery",1,["leo_lang::cli::commands::query::LeoQuery"]],["impl UnwindSafe for LeoTransaction",1,["leo_lang::cli::commands::query::transaction::LeoTransaction"]],["impl UnwindSafe for LeoRemove",1,["leo_lang::cli::commands::remove::LeoRemove"]],["impl UnwindSafe for LeoRun",1,["leo_lang::cli::commands::run::LeoRun"]],["impl UnwindSafe for BuildOptions",1,["leo_lang::cli::commands::BuildOptions"]],["impl UnwindSafe for FeeOptions",1,["leo_lang::cli::commands::FeeOptions"]],["impl UnwindSafe for LeoUpdate",1,["leo_lang::cli::commands::update::LeoUpdate"]],["impl UnwindSafe for Context",1,["leo_lang::cli::helpers::context::Context"]],["impl UnwindSafe for Updater",1,["leo_lang::cli::helpers::updater::Updater"]],["impl<F, T> UnwindSafe for Format<F, T>
where\n F: UnwindSafe,\n T: UnwindSafe,
",1,["leo_lang::cli::helpers::logger::Format"]]]],["leo_package",[["impl UnwindSafe for Snapshot",1,["leo_package::outputs::ast_snapshot::Snapshot"]],["impl UnwindSafe for BuildDirectory",1,["leo_package::build::directory::BuildDirectory"]],["impl UnwindSafe for ImportsDirectory",1,["leo_package::imports::directory::ImportsDirectory"]],["impl UnwindSafe for InputsDirectory",1,["leo_package::inputs::directory::InputsDirectory"]],["impl UnwindSafe for SnapshotFile",1,["leo_package::outputs::ast_snapshot::SnapshotFile"]],["impl UnwindSafe for ChecksumFile",1,["leo_package::outputs::checksum::ChecksumFile"]],["impl UnwindSafe for CircuitFile",1,["leo_package::outputs::circuit::CircuitFile"]],["impl UnwindSafe for OutputsDirectory",1,["leo_package::outputs::directory::OutputsDirectory"]],["impl UnwindSafe for Package",1,["leo_package::package::Package"]],["impl UnwindSafe for Gitignore",1,["leo_package::root::gitignore::Gitignore"]],["impl UnwindSafe for SourceDirectory",1,["leo_package::source::directory::SourceDirectory"]],["impl UnwindSafe for MainFile",1,["leo_package::source::main::MainFile"]],["impl<N> UnwindSafe for Env<N>
where\n <N as Environment>::Field: UnwindSafe,\n <N as Environment>::Scalar: UnwindSafe,
",1,["leo_package::root::env::Env"]]]],["leo_parser",[["impl UnwindSafe for Delimiter",1,["leo_parser::tokenizer::token::Delimiter"]],["impl UnwindSafe for Token",1,["leo_parser::tokenizer::token::Token"]],["impl UnwindSafe for SpannedToken",1,["leo_parser::tokenizer::lexer::SpannedToken"]],["impl<'a, N> !UnwindSafe for ParserContext<'a, N>",1,["leo_parser::parser::context::ParserContext"]]]],["leo_passes",[["impl UnwindSafe for VariableType",1,["leo_passes::common::symbol_table::variable_symbol::VariableType"]],["impl UnwindSafe for Guard",1,["leo_passes::flattening::flattener::Guard"]],["impl UnwindSafe for ReturnGuard",1,["leo_passes::flattening::flattener::ReturnGuard"]],["impl UnwindSafe for Clusivity",1,["leo_passes::loop_unrolling::range_iterator::Clusivity"]],["impl UnwindSafe for Assigner",1,["leo_passes::common::assigner::Assigner"]],["impl UnwindSafe for AssignerInner",1,["leo_passes::common::assigner::AssignerInner"]],["impl UnwindSafe for ConstantPropagationTable",1,["leo_passes::common::constant_propagation_table::ConstantPropagationTable"]],["impl UnwindSafe for RenameTable",1,["leo_passes::common::rename_table::RenameTable"]],["impl UnwindSafe for FunctionSymbol",1,["leo_passes::common::symbol_table::function_symbol::FunctionSymbol"]],["impl UnwindSafe for SymbolTable",1,["leo_passes::common::symbol_table::SymbolTable"]],["impl UnwindSafe for VariableSymbol",1,["leo_passes::common::symbol_table::variable_symbol::VariableSymbol"]],["impl UnwindSafe for TypeTable",1,["leo_passes::common::type_table::TypeTable"]],["impl UnwindSafe for AwaitChecker",1,["leo_passes::static_analysis::await_checker::AwaitChecker"]],["impl UnwindSafe for ScopeState",1,["leo_passes::type_checking::scope_state::ScopeState"]],["impl<'a> !UnwindSafe for CodeGenerator<'a>",1,["leo_passes::code_generation::generator::CodeGenerator"]],["impl<'a> !UnwindSafe for DeadCodeEliminator<'a>",1,["leo_passes::dead_code_elimination::dead_code_eliminator::DeadCodeEliminator"]],["impl<'a> !UnwindSafe for Destructurer<'a>",1,["leo_passes::destructuring::destructurer::Destructurer"]],["impl<'a> !UnwindSafe for Flattener<'a>",1,["leo_passes::flattening::flattener::Flattener"]],["impl<'a> !UnwindSafe for AssignmentRenamer<'a>",1,["leo_passes::function_inlining::assignment_renamer::AssignmentRenamer"]],["impl<'a> !UnwindSafe for FunctionInliner<'a>",1,["leo_passes::function_inlining::function_inliner::FunctionInliner"]],["impl<'a> !UnwindSafe for Unroller<'a>",1,["leo_passes::loop_unrolling::unroller::Unroller"]],["impl<'a> !UnwindSafe for StaticSingleAssigner<'a>",1,["leo_passes::static_single_assignment::static_single_assigner::StaticSingleAssigner"]],["impl<'a> !UnwindSafe for SymbolTableCreator<'a>",1,["leo_passes::symbol_table_creation::creator::SymbolTableCreator"]],["impl<'a, N> !UnwindSafe for StaticAnalyzer<'a, N>",1,["leo_passes::static_analysis::analyzer::StaticAnalyzer"]],["impl<'a, N> !UnwindSafe for TypeChecker<'a, N>",1,["leo_passes::type_checking::checker::TypeChecker"]],["impl<F> UnwindSafe for Replacer<F>
where\n F: UnwindSafe,
",1,["leo_passes::common::replacer::Replacer"]],["impl<I> UnwindSafe for RangeIterator<I>
where\n I: UnwindSafe,
",1,["leo_passes::loop_unrolling::range_iterator::RangeIterator"]],["impl<N> UnwindSafe for DiGraphError<N>
where\n N: UnwindSafe,
",1,["leo_passes::common::graph::DiGraphError"]],["impl<N> UnwindSafe for DiGraph<N>
where\n N: UnwindSafe,
",1,["leo_passes::common::graph::DiGraph"]],["impl<N> UnwindSafe for TreeNode<N>
where\n N: UnwindSafe,
",1,["leo_passes::common::tree_node::TreeNode"]]]],["leo_retriever",[["impl UnwindSafe for Location",1,["leo_retriever::program_context::location::Location"]],["impl UnwindSafe for NetworkName",1,["leo_retriever::program_context::network_name::NetworkName"]],["impl UnwindSafe for Dependency",1,["leo_retriever::program_context::dependency::Dependency"]],["impl UnwindSafe for LockFileEntry",1,["leo_retriever::program_context::lock_file_entry::LockFileEntry"]],["impl UnwindSafe for Manifest",1,["leo_retriever::program_context::manifest::Manifest"]],["impl UnwindSafe for ProgramContext",1,["leo_retriever::program_context::ProgramContext"]],["impl<N> UnwindSafe for Retriever<N>
where\n N: UnwindSafe,
",1,["leo_retriever::retriever::Retriever"]]]],["leo_span",[["impl UnwindSafe for FileName",1,["leo_span::source_map::FileName"]],["impl UnwindSafe for InternedStr",1,["leo_span::symbol::InternedStr"]],["impl UnwindSafe for LineCol",1,["leo_span::source_map::LineCol"]],["impl UnwindSafe for MultiByteChar",1,["leo_span::source_map::MultiByteChar"]],["impl UnwindSafe for SourceFile",1,["leo_span::source_map::SourceFile"]],["impl UnwindSafe for SourceMap",1,["leo_span::source_map::SourceMap"]],["impl UnwindSafe for SourceMapInner",1,["leo_span::source_map::SourceMapInner"]],["impl UnwindSafe for SpanLocation",1,["leo_span::source_map::SpanLocation"]],["impl UnwindSafe for BytePos",1,["leo_span::span::BytePos"]],["impl UnwindSafe for CharPos",1,["leo_span::span::CharPos"]],["impl UnwindSafe for Span",1,["leo_span::span::Span"]],["impl UnwindSafe for SpanMapVisitor",1,["leo_span::span_json::SpanMapVisitor"]],["impl UnwindSafe for InnerInterner",1,["leo_span::symbol::InnerInterner"]],["impl UnwindSafe for Interner",1,["leo_span::symbol::Interner"]],["impl UnwindSafe for SessionGlobals",1,["leo_span::symbol::SessionGlobals"]],["impl UnwindSafe for Symbol",1,["leo_span::symbol::Symbol"]]]],["leo_test_framework",[["impl UnwindSafe for TestError",1,["leo_test_framework::error::TestError"]],["impl UnwindSafe for ParseType",1,["leo_test_framework::runner::ParseType"]],["impl UnwindSafe for TestExpectationMode",1,["leo_test_framework::test::TestExpectationMode"]],["impl UnwindSafe for TestFailure",1,["leo_test_framework::error::TestFailure"]],["impl UnwindSafe for TestExpectation",1,["leo_test_framework::output::TestExpectation"]],["impl UnwindSafe for Test",1,["leo_test_framework::runner::Test"]],["impl UnwindSafe for TestCases",1,["leo_test_framework::runner::TestCases"]],["impl UnwindSafe for TestConfig",1,["leo_test_framework::test::TestConfig"]]]]]); + var implementors = Object.fromEntries([["leo_abnf",[["impl UnwindSafe for Scope",1,["leo_abnf::Scope"]],["impl<'a> UnwindSafe for Processor<'a>",1,["leo_abnf::Processor"]]]],["leo_ast",[["impl UnwindSafe for AccessExpression",1,["leo_ast::expressions::access::AccessExpression"]],["impl UnwindSafe for BinaryOperation",1,["leo_ast::expressions::binary::BinaryOperation"]],["impl UnwindSafe for Expression",1,["leo_ast::expressions::Expression"]],["impl UnwindSafe for Literal",1,["leo_ast::expressions::literal::Literal"]],["impl UnwindSafe for UnaryOperation",1,["leo_ast::expressions::unary::UnaryOperation"]],["impl UnwindSafe for CoreFunction",1,["leo_ast::functions::core_function::CoreFunction"]],["impl UnwindSafe for Mode",1,["leo_ast::functions::mode::Mode"]],["impl UnwindSafe for Variant",1,["leo_ast::functions::variant::Variant"]],["impl UnwindSafe for GroupCoordinate",1,["leo_ast::groups::group_coordinate::GroupCoordinate"]],["impl UnwindSafe for GroupLiteral",1,["leo_ast::groups::group_literal::GroupLiteral"]],["impl UnwindSafe for AssertVariant",1,["leo_ast::statement::assert::AssertVariant"]],["impl UnwindSafe for ConsoleFunction",1,["leo_ast::statement::console::console_function::ConsoleFunction"]],["impl UnwindSafe for DeclarationType",1,["leo_ast::statement::definition::declaration_type::DeclarationType"]],["impl UnwindSafe for Statement",1,["leo_ast::statement::Statement"]],["impl UnwindSafe for CoreConstant",1,["leo_ast::types::core_constant::CoreConstant"]],["impl UnwindSafe for IntegerType",1,["leo_ast::types::integer_type::IntegerType"]],["impl UnwindSafe for Type",1,["leo_ast::types::type_::Type"]],["impl UnwindSafe for Value",1,["leo_ast::value::Value"]],["impl UnwindSafe for ArrayAccess",1,["leo_ast::access::array_access::ArrayAccess"]],["impl UnwindSafe for AssociatedConstant",1,["leo_ast::access::associated_constant_access::AssociatedConstant"]],["impl UnwindSafe for AssociatedFunction",1,["leo_ast::access::associated_function_access::AssociatedFunction"]],["impl UnwindSafe for MemberAccess",1,["leo_ast::access::member_access::MemberAccess"]],["impl UnwindSafe for TupleAccess",1,["leo_ast::access::tuple_access::TupleAccess"]],["impl UnwindSafe for Identifier",1,["leo_ast::common::identifier::Identifier"]],["impl UnwindSafe for Location",1,["leo_ast::common::location::Location"]],["impl UnwindSafe for NodeBuilder",1,["leo_ast::common::node_builder::NodeBuilder"]],["impl UnwindSafe for NodeBuilderInner",1,["leo_ast::common::node_builder::NodeBuilderInner"]],["impl UnwindSafe for NonNegativeNumber",1,["leo_ast::common::positive_number::NonNegativeNumber"]],["impl UnwindSafe for StaticString",1,["leo_ast::common::static_string::StaticString"]],["impl UnwindSafe for ArrayExpression",1,["leo_ast::expressions::array::ArrayExpression"]],["impl UnwindSafe for BinaryExpression",1,["leo_ast::expressions::binary::BinaryExpression"]],["impl UnwindSafe for CallExpression",1,["leo_ast::expressions::call::CallExpression"]],["impl UnwindSafe for CastExpression",1,["leo_ast::expressions::cast::CastExpression"]],["impl UnwindSafe for ErrExpression",1,["leo_ast::expressions::err::ErrExpression"]],["impl UnwindSafe for LocatorExpression",1,["leo_ast::expressions::locator::LocatorExpression"]],["impl UnwindSafe for StructExpression",1,["leo_ast::expressions::struct_init::StructExpression"]],["impl UnwindSafe for StructVariableInitializer",1,["leo_ast::expressions::struct_init::StructVariableInitializer"]],["impl UnwindSafe for TernaryExpression",1,["leo_ast::expressions::ternary::TernaryExpression"]],["impl UnwindSafe for TupleExpression",1,["leo_ast::expressions::tuple::TupleExpression"]],["impl UnwindSafe for UnaryExpression",1,["leo_ast::expressions::unary::UnaryExpression"]],["impl UnwindSafe for UnitExpression",1,["leo_ast::expressions::unit::UnitExpression"]],["impl UnwindSafe for Annotation",1,["leo_ast::functions::annotation::Annotation"]],["impl UnwindSafe for Input",1,["leo_ast::functions::input::Input"]],["impl UnwindSafe for Output",1,["leo_ast::functions::output::Output"]],["impl UnwindSafe for Function",1,["leo_ast::functions::Function"]],["impl UnwindSafe for GroupTuple",1,["leo_ast::groups::group_literal::GroupTuple"]],["impl UnwindSafe for Mapping",1,["leo_ast::mapping::Mapping"]],["impl UnwindSafe for ProgramId",1,["leo_ast::program::program_id::ProgramId"]],["impl UnwindSafe for ProgramScope",1,["leo_ast::program::program_scope::ProgramScope"]],["impl UnwindSafe for Program",1,["leo_ast::program::Program"]],["impl UnwindSafe for AssertStatement",1,["leo_ast::statement::assert::AssertStatement"]],["impl UnwindSafe for AssignStatement",1,["leo_ast::statement::assign::AssignStatement"]],["impl UnwindSafe for Block",1,["leo_ast::statement::block::Block"]],["impl UnwindSafe for ConditionalStatement",1,["leo_ast::statement::conditional::ConditionalStatement"]],["impl UnwindSafe for ConsoleStatement",1,["leo_ast::statement::console::console_statement::ConsoleStatement"]],["impl UnwindSafe for ConstDeclaration",1,["leo_ast::statement::const_::ConstDeclaration"]],["impl UnwindSafe for DefinitionStatement",1,["leo_ast::statement::definition::DefinitionStatement"]],["impl UnwindSafe for ExpressionStatement",1,["leo_ast::statement::expression::ExpressionStatement"]],["impl UnwindSafe for IterationStatement",1,["leo_ast::statement::iteration::IterationStatement"]],["impl UnwindSafe for ReturnStatement",1,["leo_ast::statement::return_::ReturnStatement"]],["impl UnwindSafe for Ast",1,["leo_ast::Ast"]],["impl UnwindSafe for Member",1,["leo_ast::struct::member::Member"]],["impl UnwindSafe for Composite",1,["leo_ast::struct::Composite"]],["impl UnwindSafe for FunctionStub",1,["leo_ast::stub::function_stub::FunctionStub"]],["impl UnwindSafe for Stub",1,["leo_ast::stub::Stub"]],["impl UnwindSafe for ArrayType",1,["leo_ast::types::array::ArrayType"]],["impl UnwindSafe for FutureType",1,["leo_ast::types::future::FutureType"]],["impl UnwindSafe for MappingType",1,["leo_ast::types::mapping::MappingType"]],["impl UnwindSafe for CompositeType",1,["leo_ast::types::struct_type::CompositeType"]],["impl UnwindSafe for TupleType",1,["leo_ast::types::tuple::TupleType"]],["impl<'a> UnwindSafe for DisplayDecimal<'a>",1,["leo_ast::expressions::literal::DisplayDecimal"]]]],["leo_compiler",[["impl UnwindSafe for BuildOptions",1,["leo_compiler::options::BuildOptions"]],["impl UnwindSafe for CompilerOptions",1,["leo_compiler::options::CompilerOptions"]],["impl UnwindSafe for OutputOptions",1,["leo_compiler::options::OutputOptions"]],["impl<'a, N> !UnwindSafe for Compiler<'a, N>",1,["leo_compiler::compiler::Compiler"]]]],["leo_errors",[["impl !UnwindSafe for BufferEmitter",1,["leo_errors::emitter::BufferEmitter"]],["impl !UnwindSafe for Handler",1,["leo_errors::emitter::Handler"]],["impl !UnwindSafe for HandlerInner",1,["leo_errors::emitter::HandlerInner"]],["impl UnwindSafe for AstError",1,["leo_errors::errors::ast::ast_errors::AstError"]],["impl UnwindSafe for CliError",1,["leo_errors::errors::cli::cli_errors::CliError"]],["impl UnwindSafe for CompilerError",1,["leo_errors::errors::compiler::compiler_errors::CompilerError"]],["impl UnwindSafe for LeoError",1,["leo_errors::errors::LeoError"]],["impl UnwindSafe for LeoWarning",1,["leo_errors::errors::LeoWarning"]],["impl UnwindSafe for FlattenError",1,["leo_errors::errors::flattener::flattener_errors::FlattenError"]],["impl UnwindSafe for LoopUnrollerError",1,["leo_errors::errors::loop_unroller::loop_unroller_errors::LoopUnrollerError"]],["impl UnwindSafe for PackageError",1,["leo_errors::errors::package::package_errors::PackageError"]],["impl UnwindSafe for ParserError",1,["leo_errors::errors::parser::parser_errors::ParserError"]],["impl UnwindSafe for ParserWarning",1,["leo_errors::errors::parser::parser_warnings::ParserWarning"]],["impl UnwindSafe for StaticAnalyzerError",1,["leo_errors::errors::static_analyzer::static_analyzer_error::StaticAnalyzerError"]],["impl UnwindSafe for StaticAnalyzerWarning",1,["leo_errors::errors::static_analyzer::static_analyzer_warning::StaticAnalyzerWarning"]],["impl UnwindSafe for TypeCheckerError",1,["leo_errors::errors::type_checker::type_checker_error::TypeCheckerError"]],["impl UnwindSafe for TypeCheckerWarning",1,["leo_errors::errors::type_checker::type_checker_warning::TypeCheckerWarning"]],["impl UnwindSafe for UtilError",1,["leo_errors::errors::utils::util_errors::UtilError"]],["impl UnwindSafe for Backtraced",1,["leo_errors::common::backtraced::Backtraced"]],["impl UnwindSafe for Formatted",1,["leo_errors::common::formatted::Formatted"]],["impl UnwindSafe for StderrEmitter",1,["leo_errors::emitter::StderrEmitter"]],["impl<T> UnwindSafe for Buffer<T>
where\n T: UnwindSafe,
",1,["leo_errors::emitter::Buffer"]]]],["leo_lang",[["impl UnwindSafe for Commands",1,["leo_lang::cli::cli::Commands"]],["impl UnwindSafe for Account",1,["leo_lang::cli::commands::account::Account"]],["impl UnwindSafe for ExampleVariant",1,["leo_lang::cli::commands::example::ExampleVariant"]],["impl UnwindSafe for QueryCommands",1,["leo_lang::cli::commands::query::QueryCommands"]],["impl UnwindSafe for CLI",1,["leo_lang::cli::cli::CLI"]],["impl UnwindSafe for LeoAdd",1,["leo_lang::cli::commands::add::LeoAdd"]],["impl UnwindSafe for LeoBuild",1,["leo_lang::cli::commands::build::LeoBuild"]],["impl UnwindSafe for LeoClean",1,["leo_lang::cli::commands::clean::LeoClean"]],["impl UnwindSafe for Deploy",1,["leo_lang::cli::commands::deploy::Deploy"]],["impl UnwindSafe for LeoExample",1,["leo_lang::cli::commands::example::LeoExample"]],["impl UnwindSafe for LeoExecute",1,["leo_lang::cli::commands::execute::LeoExecute"]],["impl UnwindSafe for LeoNew",1,["leo_lang::cli::commands::new::LeoNew"]],["impl UnwindSafe for LeoBlock",1,["leo_lang::cli::commands::query::block::LeoBlock"]],["impl UnwindSafe for LeoCommittee",1,["leo_lang::cli::commands::query::committee::LeoCommittee"]],["impl UnwindSafe for LeoMempool",1,["leo_lang::cli::commands::query::mempool::LeoMempool"]],["impl UnwindSafe for LeoPeers",1,["leo_lang::cli::commands::query::peers::LeoPeers"]],["impl UnwindSafe for LeoProgram",1,["leo_lang::cli::commands::query::program::LeoProgram"]],["impl UnwindSafe for StateRoot",1,["leo_lang::cli::commands::query::state_root::StateRoot"]],["impl UnwindSafe for LeoQuery",1,["leo_lang::cli::commands::query::LeoQuery"]],["impl UnwindSafe for LeoTransaction",1,["leo_lang::cli::commands::query::transaction::LeoTransaction"]],["impl UnwindSafe for LeoRemove",1,["leo_lang::cli::commands::remove::LeoRemove"]],["impl UnwindSafe for LeoRun",1,["leo_lang::cli::commands::run::LeoRun"]],["impl UnwindSafe for BuildOptions",1,["leo_lang::cli::commands::BuildOptions"]],["impl UnwindSafe for FeeOptions",1,["leo_lang::cli::commands::FeeOptions"]],["impl UnwindSafe for LeoUpdate",1,["leo_lang::cli::commands::update::LeoUpdate"]],["impl UnwindSafe for Context",1,["leo_lang::cli::helpers::context::Context"]],["impl UnwindSafe for Updater",1,["leo_lang::cli::helpers::updater::Updater"]],["impl<F, T> UnwindSafe for Format<F, T>
where\n F: UnwindSafe,\n T: UnwindSafe,
",1,["leo_lang::cli::helpers::logger::Format"]]]],["leo_package",[["impl UnwindSafe for Snapshot",1,["leo_package::outputs::ast_snapshot::Snapshot"]],["impl UnwindSafe for BuildDirectory",1,["leo_package::build::directory::BuildDirectory"]],["impl UnwindSafe for ImportsDirectory",1,["leo_package::imports::directory::ImportsDirectory"]],["impl UnwindSafe for InputsDirectory",1,["leo_package::inputs::directory::InputsDirectory"]],["impl UnwindSafe for SnapshotFile",1,["leo_package::outputs::ast_snapshot::SnapshotFile"]],["impl UnwindSafe for ChecksumFile",1,["leo_package::outputs::checksum::ChecksumFile"]],["impl UnwindSafe for CircuitFile",1,["leo_package::outputs::circuit::CircuitFile"]],["impl UnwindSafe for OutputsDirectory",1,["leo_package::outputs::directory::OutputsDirectory"]],["impl UnwindSafe for Package",1,["leo_package::package::Package"]],["impl UnwindSafe for Gitignore",1,["leo_package::root::gitignore::Gitignore"]],["impl UnwindSafe for SourceDirectory",1,["leo_package::source::directory::SourceDirectory"]],["impl UnwindSafe for MainFile",1,["leo_package::source::main::MainFile"]],["impl<N> UnwindSafe for Env<N>
where\n <N as Environment>::Field: UnwindSafe,\n <N as Environment>::Scalar: UnwindSafe,
",1,["leo_package::root::env::Env"]]]],["leo_parser",[["impl UnwindSafe for Delimiter",1,["leo_parser::tokenizer::token::Delimiter"]],["impl UnwindSafe for Token",1,["leo_parser::tokenizer::token::Token"]],["impl UnwindSafe for SpannedToken",1,["leo_parser::tokenizer::lexer::SpannedToken"]],["impl<'a, N> !UnwindSafe for ParserContext<'a, N>",1,["leo_parser::parser::context::ParserContext"]]]],["leo_passes",[["impl UnwindSafe for VariableType",1,["leo_passes::common::symbol_table::variable_symbol::VariableType"]],["impl UnwindSafe for Guard",1,["leo_passes::flattening::flattener::Guard"]],["impl UnwindSafe for ReturnGuard",1,["leo_passes::flattening::flattener::ReturnGuard"]],["impl UnwindSafe for Clusivity",1,["leo_passes::loop_unrolling::range_iterator::Clusivity"]],["impl UnwindSafe for Assigner",1,["leo_passes::common::assigner::Assigner"]],["impl UnwindSafe for AssignerInner",1,["leo_passes::common::assigner::AssignerInner"]],["impl UnwindSafe for ConstantPropagationTable",1,["leo_passes::common::constant_propagation_table::ConstantPropagationTable"]],["impl UnwindSafe for RenameTable",1,["leo_passes::common::rename_table::RenameTable"]],["impl UnwindSafe for FunctionSymbol",1,["leo_passes::common::symbol_table::function_symbol::FunctionSymbol"]],["impl UnwindSafe for SymbolTable",1,["leo_passes::common::symbol_table::SymbolTable"]],["impl UnwindSafe for VariableSymbol",1,["leo_passes::common::symbol_table::variable_symbol::VariableSymbol"]],["impl UnwindSafe for TypeTable",1,["leo_passes::common::type_table::TypeTable"]],["impl UnwindSafe for AwaitChecker",1,["leo_passes::static_analysis::await_checker::AwaitChecker"]],["impl UnwindSafe for ScopeState",1,["leo_passes::type_checking::scope_state::ScopeState"]],["impl<'a> !UnwindSafe for CodeGenerator<'a>",1,["leo_passes::code_generation::generator::CodeGenerator"]],["impl<'a> !UnwindSafe for DeadCodeEliminator<'a>",1,["leo_passes::dead_code_elimination::dead_code_eliminator::DeadCodeEliminator"]],["impl<'a> !UnwindSafe for Destructurer<'a>",1,["leo_passes::destructuring::destructurer::Destructurer"]],["impl<'a> !UnwindSafe for Flattener<'a>",1,["leo_passes::flattening::flattener::Flattener"]],["impl<'a> !UnwindSafe for AssignmentRenamer<'a>",1,["leo_passes::function_inlining::assignment_renamer::AssignmentRenamer"]],["impl<'a> !UnwindSafe for FunctionInliner<'a>",1,["leo_passes::function_inlining::function_inliner::FunctionInliner"]],["impl<'a> !UnwindSafe for Unroller<'a>",1,["leo_passes::loop_unrolling::unroller::Unroller"]],["impl<'a> !UnwindSafe for StaticSingleAssigner<'a>",1,["leo_passes::static_single_assignment::static_single_assigner::StaticSingleAssigner"]],["impl<'a> !UnwindSafe for SymbolTableCreator<'a>",1,["leo_passes::symbol_table_creation::creator::SymbolTableCreator"]],["impl<'a, N> !UnwindSafe for StaticAnalyzer<'a, N>",1,["leo_passes::static_analysis::analyzer::StaticAnalyzer"]],["impl<'a, N> !UnwindSafe for TypeChecker<'a, N>",1,["leo_passes::type_checking::checker::TypeChecker"]],["impl<F> UnwindSafe for Replacer<F>
where\n F: UnwindSafe,
",1,["leo_passes::common::replacer::Replacer"]],["impl<I> UnwindSafe for RangeIterator<I>
where\n I: UnwindSafe,
",1,["leo_passes::loop_unrolling::range_iterator::RangeIterator"]],["impl<N> UnwindSafe for DiGraphError<N>
where\n N: UnwindSafe,
",1,["leo_passes::common::graph::DiGraphError"]],["impl<N> UnwindSafe for DiGraph<N>
where\n N: UnwindSafe,
",1,["leo_passes::common::graph::DiGraph"]],["impl<N> UnwindSafe for TreeNode<N>
where\n N: UnwindSafe,
",1,["leo_passes::common::tree_node::TreeNode"]]]],["leo_retriever",[["impl UnwindSafe for Location",1,["leo_retriever::program_context::location::Location"]],["impl UnwindSafe for NetworkName",1,["leo_retriever::program_context::network_name::NetworkName"]],["impl UnwindSafe for Dependency",1,["leo_retriever::program_context::dependency::Dependency"]],["impl UnwindSafe for LockFileEntry",1,["leo_retriever::program_context::lock_file_entry::LockFileEntry"]],["impl UnwindSafe for Manifest",1,["leo_retriever::program_context::manifest::Manifest"]],["impl UnwindSafe for ProgramContext",1,["leo_retriever::program_context::ProgramContext"]],["impl<N> UnwindSafe for Retriever<N>
where\n N: UnwindSafe,
",1,["leo_retriever::retriever::Retriever"]]]],["leo_span",[["impl UnwindSafe for FileName",1,["leo_span::source_map::FileName"]],["impl UnwindSafe for InternedStr",1,["leo_span::symbol::InternedStr"]],["impl UnwindSafe for LineCol",1,["leo_span::source_map::LineCol"]],["impl UnwindSafe for MultiByteChar",1,["leo_span::source_map::MultiByteChar"]],["impl UnwindSafe for SourceFile",1,["leo_span::source_map::SourceFile"]],["impl UnwindSafe for SourceMap",1,["leo_span::source_map::SourceMap"]],["impl UnwindSafe for SourceMapInner",1,["leo_span::source_map::SourceMapInner"]],["impl UnwindSafe for SpanLocation",1,["leo_span::source_map::SpanLocation"]],["impl UnwindSafe for BytePos",1,["leo_span::span::BytePos"]],["impl UnwindSafe for CharPos",1,["leo_span::span::CharPos"]],["impl UnwindSafe for Span",1,["leo_span::span::Span"]],["impl UnwindSafe for SpanMapVisitor",1,["leo_span::span_json::SpanMapVisitor"]],["impl UnwindSafe for InnerInterner",1,["leo_span::symbol::InnerInterner"]],["impl UnwindSafe for Interner",1,["leo_span::symbol::Interner"]],["impl UnwindSafe for SessionGlobals",1,["leo_span::symbol::SessionGlobals"]],["impl UnwindSafe for Symbol",1,["leo_span::symbol::Symbol"]]]],["leo_test_framework",[["impl UnwindSafe for TestError",1,["leo_test_framework::error::TestError"]],["impl UnwindSafe for ParseType",1,["leo_test_framework::runner::ParseType"]],["impl UnwindSafe for TestExpectationMode",1,["leo_test_framework::test::TestExpectationMode"]],["impl UnwindSafe for TestFailure",1,["leo_test_framework::error::TestFailure"]],["impl UnwindSafe for TestExpectation",1,["leo_test_framework::output::TestExpectation"]],["impl UnwindSafe for Test",1,["leo_test_framework::runner::Test"]],["impl UnwindSafe for TestCases",1,["leo_test_framework::runner::TestCases"]],["impl UnwindSafe for TestConfig",1,["leo_test_framework::test::TestConfig"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/leo_ast/passes/reconstructor/trait.ExpressionReconstructor.js b/trait.impl/leo_ast/passes/reconstructor/trait.ExpressionReconstructor.js index 5b426c1477..dc6ef626a5 100644 --- a/trait.impl/leo_ast/passes/reconstructor/trait.ExpressionReconstructor.js +++ b/trait.impl/leo_ast/passes/reconstructor/trait.ExpressionReconstructor.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_passes",[["impl ExpressionReconstructor for DeadCodeEliminator<'_>"],["impl ExpressionReconstructor for Destructurer<'_>"],["impl ExpressionReconstructor for Flattener<'_>"],["impl ExpressionReconstructor for AssignmentRenamer<'_>"],["impl ExpressionReconstructor for FunctionInliner<'_>"],["impl ExpressionReconstructor for Unroller<'_>"],["impl<F> ExpressionReconstructor for Replacer<F>
where\n F: Fn(&Identifier) -> Expression,
"]]]]); + var implementors = Object.fromEntries([["leo_passes",[["impl ExpressionReconstructor for DeadCodeEliminator<'_>"],["impl ExpressionReconstructor for Destructurer<'_>"],["impl ExpressionReconstructor for Flattener<'_>"],["impl ExpressionReconstructor for AssignmentRenamer<'_>"],["impl ExpressionReconstructor for FunctionInliner<'_>"],["impl ExpressionReconstructor for Unroller<'_>"],["impl<F> ExpressionReconstructor for Replacer<F>
where\n F: Fn(&Identifier) -> Expression,
"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/leo_ast/passes/reconstructor/trait.ProgramReconstructor.js b/trait.impl/leo_ast/passes/reconstructor/trait.ProgramReconstructor.js index 2c6f53752e..327906cf6d 100644 --- a/trait.impl/leo_ast/passes/reconstructor/trait.ProgramReconstructor.js +++ b/trait.impl/leo_ast/passes/reconstructor/trait.ProgramReconstructor.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_passes",[["impl ProgramReconstructor for DeadCodeEliminator<'_>"],["impl ProgramReconstructor for Destructurer<'_>"],["impl ProgramReconstructor for Flattener<'_>"],["impl ProgramReconstructor for AssignmentRenamer<'_>"],["impl ProgramReconstructor for FunctionInliner<'_>"],["impl ProgramReconstructor for Unroller<'_>"],["impl<F> ProgramReconstructor for Replacer<F>
where\n F: Fn(&Identifier) -> Expression,
"]]]]); + var implementors = Object.fromEntries([["leo_passes",[["impl ProgramReconstructor for DeadCodeEliminator<'_>"],["impl ProgramReconstructor for Destructurer<'_>"],["impl ProgramReconstructor for Flattener<'_>"],["impl ProgramReconstructor for AssignmentRenamer<'_>"],["impl ProgramReconstructor for FunctionInliner<'_>"],["impl ProgramReconstructor for Unroller<'_>"],["impl<F> ProgramReconstructor for Replacer<F>
where\n F: Fn(&Identifier) -> Expression,
"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/leo_ast/passes/reconstructor/trait.StatementReconstructor.js b/trait.impl/leo_ast/passes/reconstructor/trait.StatementReconstructor.js index b5fb106b05..53c59eb748 100644 --- a/trait.impl/leo_ast/passes/reconstructor/trait.StatementReconstructor.js +++ b/trait.impl/leo_ast/passes/reconstructor/trait.StatementReconstructor.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["leo_passes",[["impl StatementReconstructor for DeadCodeEliminator<'_>"],["impl StatementReconstructor for Destructurer<'_>"],["impl StatementReconstructor for Flattener<'_>"],["impl StatementReconstructor for AssignmentRenamer<'_>"],["impl StatementReconstructor for FunctionInliner<'_>"],["impl StatementReconstructor for Unroller<'_>"],["impl<F> StatementReconstructor for Replacer<F>
where\n F: Fn(&Identifier) -> Expression,
"]]]]); + var implementors = Object.fromEntries([["leo_passes",[["impl StatementReconstructor for DeadCodeEliminator<'_>"],["impl StatementReconstructor for Destructurer<'_>"],["impl StatementReconstructor for Flattener<'_>"],["impl StatementReconstructor for AssignmentRenamer<'_>"],["impl StatementReconstructor for FunctionInliner<'_>"],["impl StatementReconstructor for Unroller<'_>"],["impl<F> StatementReconstructor for Replacer<F>
where\n F: Fn(&Identifier) -> Expression,
"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/type.impl/core/result/enum.Result.js b/type.impl/core/result/enum.Result.js index b72a83425b..47d9b30987 100644 --- a/type.impl/core/result/enum.Result.js +++ b/type.impl/core/result/enum.Result.js @@ -1,9 +1,9 @@ (function() { - var type_impls = Object.fromEntries([["leo_errors",[["
1.0.0 · source§

impl<T, E> Clone for Result<T, E>
where\n T: Clone,\n E: Clone,

source§

fn clone(&self) -> Result<T, E>

Returns a copy of the value. Read more
source§

fn clone_from(&mut self, source: &Result<T, E>)

Performs copy-assignment from source. Read more
","Clone","leo_errors::errors::Result"],["
source§

impl<T, E> Context<T, E> for Result<T, E>
where\n E: StdError + Send + Sync + 'static,

source§

fn context<C>(self, context: C) -> Result<T, Error>
where\n C: Display + Send + Sync + 'static,

Wrap the error value with additional context.
source§

fn with_context<C, F>(self, context: F) -> Result<T, Error>
where\n C: Display + Send + Sync + 'static,\n F: FnOnce() -> C,

Wrap the error value with additional context that is evaluated lazily\nonly once an error does occur.
","Context","leo_errors::errors::Result"],["
1.0.0 · source§

impl<T, E> Debug for Result<T, E>
where\n T: Debug,\n E: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
","Debug","leo_errors::errors::Result"],["
source§

impl<'de, T, E> Deserialize<'de> for Result<T, E>
where\n T: Deserialize<'de>,\n E: Deserialize<'de>,

source§

fn deserialize<D>(\n deserializer: D,\n) -> Result<Result<T, E>, <D as Deserializer<'de>>::Error>
where\n D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
","Deserialize<'de>","leo_errors::errors::Result"],["
source§

impl From<&StreamResult> for Result<MZStatus, MZError>

source§

fn from(res: &StreamResult) -> Result<MZStatus, MZError>

Converts to this type from the input type.
","From<&StreamResult>","leo_errors::errors::Result"],["
§

impl From<&StreamResult> for Result<MZStatus, MZError>

§

fn from(res: &StreamResult) -> Result<MZStatus, MZError>

Converts to this type from the input type.
","From<&StreamResult>","leo_errors::errors::Result"],["
source§

impl From<StreamResult> for Result<MZStatus, MZError>

source§

fn from(res: StreamResult) -> Result<MZStatus, MZError>

Converts to this type from the input type.
","From","leo_errors::errors::Result"],["
§

impl From<StreamResult> for Result<MZStatus, MZError>

§

fn from(res: StreamResult) -> Result<MZStatus, MZError>

Converts to this type from the input type.
","From","leo_errors::errors::Result"],["
1.0.0 · source§

impl<A, E, V> FromIterator<Result<A, E>> for Result<V, E>
where\n V: FromIterator<A>,

source§

fn from_iter<I>(iter: I) -> Result<V, E>
where\n I: IntoIterator<Item = Result<A, E>>,

Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err occur, a\ncontainer with the values of each Result is returned.

\n

Here is an example which increments every integer in a vector,\nchecking for overflow:

\n\n
let v = vec![1, 2];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_add(1).ok_or(\"Overflow!\")\n).collect();\nassert_eq!(res, Ok(vec![2, 3]));
\n

Here is another example that tries to subtract one from another list\nof integers, this time checking for underflow:

\n\n
let v = vec![1, 2, 0];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_sub(1).ok_or(\"Underflow!\")\n).collect();\nassert_eq!(res, Err(\"Underflow!\"));
\n

Here is a variation on the previous example, showing that no\nfurther elements are taken from iter after the first Err.

\n\n
let v = vec![3, 2, 1, 10];\nlet mut shared = 0;\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32| {\n    shared += x;\n    x.checked_sub(2).ok_or(\"Underflow!\")\n}).collect();\nassert_eq!(res, Err(\"Underflow!\"));\nassert_eq!(shared, 6);
\n

Since the third element caused an underflow, no further elements were taken,\nso the final value of shared is 6 (= 3 + 2 + 1), not 16.

\n
","FromIterator>","leo_errors::errors::Result"],["
§

impl<C, T, E> FromParallelIterator<Result<T, E>> for Result<C, E>
where\n C: FromParallelIterator<T>,\n T: Send,\n E: Send,

Collect an arbitrary Result-wrapped collection.

\n

If any item is Err, then all previous Ok items collected are\ndiscarded, and it returns that error. If there are multiple errors, the\none returned is not deterministic.

\n
§

fn from_par_iter<I>(par_iter: I) -> Result<C, E>
where\n I: IntoParallelIterator<Item = Result<T, E>>,

Creates an instance of the collection from the parallel iterator par_iter. Read more
","FromParallelIterator>","leo_errors::errors::Result"],["
source§

impl<T, E, F> FromResidual<Result<Infallible, E>> for Result<T, F>
where\n F: From<E>,

source§

fn from_residual(residual: Result<Infallible, E>) -> Result<T, F>

🔬This is a nightly-only experimental API. (try_trait_v2)
Constructs the type from a compatible Residual type. Read more
","FromResidual>","leo_errors::errors::Result"],["
source§

impl<T, E, F> FromResidual<Yeet<E>> for Result<T, F>
where\n F: From<E>,

source§

fn from_residual(_: Yeet<E>) -> Result<T, F>

🔬This is a nightly-only experimental API. (try_trait_v2)
Constructs the type from a compatible Residual type. Read more
","FromResidual>","leo_errors::errors::Result"],["
1.0.0 · source§

impl<T, E> Hash for Result<T, E>
where\n T: Hash,\n E: Hash,

source§

fn hash<__H>(&self, state: &mut __H)
where\n __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n H: Hasher,\n Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
","Hash","leo_errors::errors::Result"],["
1.0.0 · source§

impl<T, E> IntoIterator for Result<T, E>

source§

fn into_iter(self) -> IntoIter<T>

Returns a consuming iterator over the possibly contained value.

\n

The iterator yields one value if the result is Result::Ok, otherwise none.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(5);\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, [5]);\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, []);
\n
source§

type Item = T

The type of the elements being iterated over.
source§

type IntoIter = IntoIter<T>

Which kind of iterator are we turning this into?
","IntoIterator","leo_errors::errors::Result"],["
§

impl<T, E> IntoParallelIterator for Result<T, E>
where\n T: Send,

§

type Item = T

The type of item that the parallel iterator will produce.
§

type Iter = IntoIter<T>

The parallel iterator type that will be created.
§

fn into_par_iter(self) -> <Result<T, E> as IntoParallelIterator>::Iter

Converts self into a parallel iterator. Read more
","IntoParallelIterator","leo_errors::errors::Result"],["
1.0.0 · source§

impl<T, E> Ord for Result<T, E>
where\n T: Ord,\n E: Ord,

source§

fn cmp(&self, other: &Result<T, E>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where\n Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where\n Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where\n Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
","Ord","leo_errors::errors::Result"],["
1.0.0 · source§

impl<T, E> PartialEq for Result<T, E>
where\n T: PartialEq,\n E: PartialEq,

source§

fn eq(&self, other: &Result<T, E>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
","PartialEq","leo_errors::errors::Result"],["
1.0.0 · source§

impl<T, E> PartialOrd for Result<T, E>
where\n T: PartialOrd,\n E: PartialOrd,

source§

fn partial_cmp(&self, other: &Result<T, E>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the >\noperator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
","PartialOrd","leo_errors::errors::Result"],["
1.16.0 · source§

impl<T, U, E> Product<Result<U, E>> for Result<T, E>
where\n T: Product<U>,

source§

fn product<I>(iter: I) -> Result<T, E>
where\n I: Iterator<Item = Result<U, E>>,

Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the product of all elements is returned.

\n
§Examples
\n

This multiplies each number in a vector of strings,\nif a string could not be parsed the operation returns Err:

\n\n
let nums = vec![\"5\", \"10\", \"1\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert_eq!(total, Ok(100));\nlet nums = vec![\"5\", \"10\", \"one\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert!(total.is_err());
\n
","Product>","leo_errors::errors::Result"],["
source§

impl<T, E> Residual<T> for Result<Infallible, E>

source§

type TryType = Result<T, E>

🔬This is a nightly-only experimental API. (try_trait_v2_residual)
The “return” type of this meta-function.
","Residual","leo_errors::errors::Result"],["
source§

impl<T, E> Result<&T, E>

1.59.0 · source

pub fn copied(self) -> Result<T, E>
where\n T: Copy,

Maps a Result<&T, E> to a Result<T, E> by copying the contents of the\nOk part.

\n
§Examples
\n
let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
\n
1.59.0 · source

pub fn cloned(self) -> Result<T, E>
where\n T: Clone,

Maps a Result<&T, E> to a Result<T, E> by cloning the contents of the\nOk part.

\n
§Examples
\n
let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
\n
",0,"leo_errors::errors::Result"],["
source§

impl<T, E> Result<&mut T, E>

1.59.0 · source

pub fn copied(self) -> Result<T, E>
where\n T: Copy,

Maps a Result<&mut T, E> to a Result<T, E> by copying the contents of the\nOk part.

\n
§Examples
\n
let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
\n
1.59.0 · source

pub fn cloned(self) -> Result<T, E>
where\n T: Clone,

Maps a Result<&mut T, E> to a Result<T, E> by cloning the contents of the\nOk part.

\n
§Examples
\n
let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
\n
",0,"leo_errors::errors::Result"],["
source§

impl<T, E> Result<Option<T>, E>

1.33.0 (const: unstable) · source

pub fn transpose(self) -> Option<Result<T, E>>

Transposes a Result of an Option into an Option of a Result.

\n

Ok(None) will be mapped to None.\nOk(Some(_)) and Err(_) will be mapped to Some(Ok(_)) and Some(Err(_)).

\n
§Examples
\n
#[derive(Debug, Eq, PartialEq)]\nstruct SomeErr;\n\nlet x: Result<Option<i32>, SomeErr> = Ok(Some(5));\nlet y: Option<Result<i32, SomeErr>> = Some(Ok(5));\nassert_eq!(x.transpose(), y);
\n
",0,"leo_errors::errors::Result"],["
source§

impl<T, E> Result<Result<T, E>, E>

source

pub fn flatten(self) -> Result<T, E>

🔬This is a nightly-only experimental API. (result_flattening)

Converts from Result<Result<T, E>, E> to Result<T, E>

\n
§Examples
\n
#![feature(result_flattening)]\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Ok(\"hello\"));\nassert_eq!(Ok(\"hello\"), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Err(6));\nassert_eq!(Err(6), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Err(6);\nassert_eq!(Err(6), x.flatten());
\n

Flattening only removes one level of nesting at a time:

\n\n
#![feature(result_flattening)]\nlet x: Result<Result<Result<&'static str, u32>, u32>, u32> = Ok(Ok(Ok(\"hello\")));\nassert_eq!(Ok(Ok(\"hello\")), x.flatten());\nassert_eq!(Ok(\"hello\"), x.flatten().flatten());
\n
",0,"leo_errors::errors::Result"],["
source§

impl<T, E> Result<T, E>

1.0.0 (const: 1.48.0) · source

pub const fn is_ok(&self) -> bool

Returns true if the result is Ok.

\n
§Examples
\n
let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_ok(), true);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_ok(), false);
\n
1.70.0 · source

pub fn is_ok_and(self, f: impl FnOnce(T) -> bool) -> bool

Returns true if the result is Ok and the value inside of it matches a predicate.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.is_ok_and(|x| x > 1), true);\n\nlet x: Result<u32, &str> = Ok(0);\nassert_eq!(x.is_ok_and(|x| x > 1), false);\n\nlet x: Result<u32, &str> = Err(\"hey\");\nassert_eq!(x.is_ok_and(|x| x > 1), false);
\n
1.0.0 (const: 1.48.0) · source

pub const fn is_err(&self) -> bool

Returns true if the result is Err.

\n
§Examples
\n
let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_err(), false);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_err(), true);
\n
1.70.0 · source

pub fn is_err_and(self, f: impl FnOnce(E) -> bool) -> bool

Returns true if the result is Err and the value inside of it matches a predicate.

\n
§Examples
\n
use std::io::{Error, ErrorKind};\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::NotFound, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), true);\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::PermissionDenied, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);\n\nlet x: Result<u32, Error> = Ok(123);\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);
\n
1.0.0 · source

pub fn ok(self) -> Option<T>

Converts from Result<T, E> to Option<T>.

\n

Converts self into an Option<T>, consuming self,\nand discarding the error, if any.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.ok(), Some(2));\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.ok(), None);
\n
1.0.0 · source

pub fn err(self) -> Option<E>

Converts from Result<T, E> to Option<E>.

\n

Converts self into an Option<E>, consuming self,\nand discarding the success value, if any.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.err(), None);\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.err(), Some(\"Nothing here\"));
\n
1.0.0 (const: 1.48.0) · source

pub const fn as_ref(&self) -> Result<&T, &E>

Converts from &Result<T, E> to Result<&T, &E>.

\n

Produces a new Result, containing a reference\ninto the original, leaving the original in place.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.as_ref(), Ok(&2));\n\nlet x: Result<u32, &str> = Err(\"Error\");\nassert_eq!(x.as_ref(), Err(&\"Error\"));
\n
1.0.0 (const: unstable) · source

pub fn as_mut(&mut self) -> Result<&mut T, &mut E>

Converts from &mut Result<T, E> to Result<&mut T, &mut E>.

\n
§Examples
\n
fn mutate(r: &mut Result<i32, i32>) {\n    match r.as_mut() {\n        Ok(v) => *v = 42,\n        Err(e) => *e = 0,\n    }\n}\n\nlet mut x: Result<i32, i32> = Ok(2);\nmutate(&mut x);\nassert_eq!(x.unwrap(), 42);\n\nlet mut x: Result<i32, i32> = Err(13);\nmutate(&mut x);\nassert_eq!(x.unwrap_err(), 0);
\n
1.0.0 · source

pub fn map<U, F>(self, op: F) -> Result<U, E>
where\n F: FnOnce(T) -> U,

Maps a Result<T, E> to Result<U, E> by applying a function to a\ncontained Ok value, leaving an Err value untouched.

\n

This function can be used to compose the results of two functions.

\n
§Examples
\n

Print the numbers on each line of a string multiplied by two.

\n\n
let line = \"1\\n2\\n3\\n4\\n\";\n\nfor num in line.lines() {\n    match num.parse::<i32>().map(|i| i * 2) {\n        Ok(n) => println!(\"{n}\"),\n        Err(..) => {}\n    }\n}
\n
1.41.0 · source

pub fn map_or<U, F>(self, default: U, f: F) -> U
where\n F: FnOnce(T) -> U,

Returns the provided default (if Err), or\napplies a function to the contained value (if Ok).

\n

Arguments passed to map_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use map_or_else,\nwhich is lazily evaluated.

\n
§Examples
\n
let x: Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or(42, |v| v.len()), 3);\n\nlet x: Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or(42, |v| v.len()), 42);
\n
1.41.0 · source

pub fn map_or_else<U, D, F>(self, default: D, f: F) -> U
where\n D: FnOnce(E) -> U,\n F: FnOnce(T) -> U,

Maps a Result<T, E> to U by applying fallback function default to\na contained Err value, or function f to a contained Ok value.

\n

This function can be used to unpack a successful result\nwhile handling an error.

\n
§Examples
\n
let k = 21;\n\nlet x : Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 3);\n\nlet x : Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 42);
\n
1.0.0 · source

pub fn map_err<F, O>(self, op: O) -> Result<T, F>
where\n O: FnOnce(E) -> F,

Maps a Result<T, E> to Result<T, F> by applying a function to a\ncontained Err value, leaving an Ok value untouched.

\n

This function can be used to pass through a successful result while handling\nan error.

\n
§Examples
\n
fn stringify(x: u32) -> String { format!(\"error code: {x}\") }\n\nlet x: Result<u32, u32> = Ok(2);\nassert_eq!(x.map_err(stringify), Ok(2));\n\nlet x: Result<u32, u32> = Err(13);\nassert_eq!(x.map_err(stringify), Err(\"error code: 13\".to_string()));
\n
1.76.0 · source

pub fn inspect<F>(self, f: F) -> Result<T, E>
where\n F: FnOnce(&T),

Calls a function with a reference to the contained value if Ok.

\n

Returns the original result.

\n
§Examples
\n
let x: u8 = \"4\"\n    .parse::<u8>()\n    .inspect(|x| println!(\"original: {x}\"))\n    .map(|x| x.pow(3))\n    .expect(\"failed to parse number\");
\n
1.76.0 · source

pub fn inspect_err<F>(self, f: F) -> Result<T, E>
where\n F: FnOnce(&E),

Calls a function with a reference to the contained value if Err.

\n

Returns the original result.

\n
§Examples
\n
use std::{fs, io};\n\nfn read() -> io::Result<String> {\n    fs::read_to_string(\"address.txt\")\n        .inspect_err(|e| eprintln!(\"failed to read file: {e}\"))\n}
\n
1.47.0 · source

pub fn as_deref(&self) -> Result<&<T as Deref>::Target, &E>
where\n T: Deref,

Converts from Result<T, E> (or &Result<T, E>) to Result<&<T as Deref>::Target, &E>.

\n

Coerces the Ok variant of the original Result via Deref\nand returns the new Result.

\n
§Examples
\n
let x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&str, &u32> = Ok(\"hello\");\nassert_eq!(x.as_deref(), y);\n\nlet x: Result<String, u32> = Err(42);\nlet y: Result<&str, &u32> = Err(&42);\nassert_eq!(x.as_deref(), y);
\n
1.47.0 · source

pub fn as_deref_mut(&mut self) -> Result<&mut <T as Deref>::Target, &mut E>
where\n T: DerefMut,

Converts from Result<T, E> (or &mut Result<T, E>) to Result<&mut <T as DerefMut>::Target, &mut E>.

\n

Coerces the Ok variant of the original Result via DerefMut\nand returns the new Result.

\n
§Examples
\n
let mut s = \"HELLO\".to_string();\nlet mut x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&mut str, &mut u32> = Ok(&mut s);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);\n\nlet mut i = 42;\nlet mut x: Result<String, u32> = Err(42);\nlet y: Result<&mut str, &mut u32> = Err(&mut i);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);
\n
1.0.0 · source

pub fn iter(&self) -> Iter<'_, T>

Returns an iterator over the possibly contained value.

\n

The iterator yields one value if the result is Result::Ok, otherwise none.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(7);\nassert_eq!(x.iter().next(), Some(&7));\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter().next(), None);
\n
1.0.0 · source

pub fn iter_mut(&mut self) -> IterMut<'_, T>

Returns a mutable iterator over the possibly contained value.

\n

The iterator yields one value if the result is Result::Ok, otherwise none.

\n
§Examples
\n
let mut x: Result<u32, &str> = Ok(7);\nmatch x.iter_mut().next() {\n    Some(v) => *v = 40,\n    None => {},\n}\nassert_eq!(x, Ok(40));\n\nlet mut x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter_mut().next(), None);
\n
1.4.0 · source

pub fn expect(self, msg: &str) -> T
where\n E: Debug,

Returns the contained Ok value, consuming the self value.

\n

Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

\n
§Panics
\n

Panics if the value is an Err, with a panic message including the\npassed message, and the content of the Err.

\n
§Examples
\n
let x: Result<u32, &str> = Err(\"emergency failure\");\nx.expect(\"Testing expect\"); // panics with `Testing expect: emergency failure`
\n
§Recommended Message Style
\n

We recommend that expect messages are used to describe the reason you\nexpect the Result should be Ok.

\n\n
let path = std::env::var(\"IMPORTANT_PATH\")\n    .expect(\"env variable `IMPORTANT_PATH` should be set by `wrapper_script.sh`\");
\n

Hint: If you’re having trouble remembering how to phrase expect\nerror messages remember to focus on the word “should” as in “env\nvariable should be set by blah” or “the given binary should be available\nand executable by the current user”.

\n

For more detail on expect message styles and the reasoning behind our recommendation please\nrefer to the section on “Common Message\nStyles” in the\nstd::error module docs.

\n
1.0.0 · source

pub fn unwrap(self) -> T
where\n E: Debug,

Returns the contained Ok value, consuming the self value.

\n

Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

\n
§Panics
\n

Panics if the value is an Err, with a panic message provided by the\nErr’s value.

\n
§Examples
\n

Basic usage:

\n\n
let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.unwrap(), 2);
\n\n
let x: Result<u32, &str> = Err(\"emergency failure\");\nx.unwrap(); // panics with `emergency failure`
\n
1.16.0 · source

pub fn unwrap_or_default(self) -> T
where\n T: Default,

Returns the contained Ok value or a default

\n

Consumes the self argument then, if Ok, returns the contained\nvalue, otherwise if Err, returns the default value for that\ntype.

\n
§Examples
\n

Converts a string to an integer, turning poorly-formed strings\ninto 0 (the default value for integers). parse converts\na string to any other type that implements FromStr, returning an\nErr on error.

\n\n
let good_year_from_input = \"1909\";\nlet bad_year_from_input = \"190blarg\";\nlet good_year = good_year_from_input.parse().unwrap_or_default();\nlet bad_year = bad_year_from_input.parse().unwrap_or_default();\n\nassert_eq!(1909, good_year);\nassert_eq!(0, bad_year);
\n
1.17.0 · source

pub fn expect_err(self, msg: &str) -> E
where\n T: Debug,

Returns the contained Err value, consuming the self value.

\n
§Panics
\n

Panics if the value is an Ok, with a panic message including the\npassed message, and the content of the Ok.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(10);\nx.expect_err(\"Testing expect_err\"); // panics with `Testing expect_err: 10`
\n
1.0.0 · source

pub fn unwrap_err(self) -> E
where\n T: Debug,

Returns the contained Err value, consuming the self value.

\n
§Panics
\n

Panics if the value is an Ok, with a custom panic message provided\nby the Ok’s value.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(2);\nx.unwrap_err(); // panics with `2`
\n\n
let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(x.unwrap_err(), \"emergency failure\");
\n
source

pub fn into_ok(self) -> T
where\n E: Into<!>,

🔬This is a nightly-only experimental API. (unwrap_infallible)

Returns the contained Ok value, but never panics.

\n

Unlike unwrap, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap as a maintainability safeguard that will fail\nto compile if the error type of the Result is later changed\nto an error that can actually occur.

\n
§Examples
\n
\nfn only_good_news() -> Result<String, !> {\n    Ok(\"this is fine\".into())\n}\n\nlet s: String = only_good_news().into_ok();\nprintln!(\"{s}\");
\n
source

pub fn into_err(self) -> E
where\n T: Into<!>,

🔬This is a nightly-only experimental API. (unwrap_infallible)

Returns the contained Err value, but never panics.

\n

Unlike unwrap_err, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap_err as a maintainability safeguard that will fail\nto compile if the ok type of the Result is later changed\nto a type that can actually occur.

\n
§Examples
\n
\nfn only_bad_news() -> Result<!, String> {\n    Err(\"Oops, it failed\".into())\n}\n\nlet error: String = only_bad_news().into_err();\nprintln!(\"{error}\");
\n
1.0.0 · source

pub fn and<U>(self, res: Result<U, E>) -> Result<U, E>

Returns res if the result is Ok, otherwise returns the Err value of self.

\n

Arguments passed to and are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use and_then, which is\nlazily evaluated.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<&str, &str> = Ok(\"foo\");\nassert_eq!(x.and(y), Err(\"early error\"));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"not a 2\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Ok(\"different result type\");\nassert_eq!(x.and(y), Ok(\"different result type\"));
\n
1.0.0 · source

pub fn and_then<U, F>(self, op: F) -> Result<U, E>
where\n F: FnOnce(T) -> Result<U, E>,

Calls op if the result is Ok, otherwise returns the Err value of self.

\n

This function can be used for control flow based on Result values.

\n
§Examples
\n
fn sq_then_to_string(x: u32) -> Result<String, &'static str> {\n    x.checked_mul(x).map(|sq| sq.to_string()).ok_or(\"overflowed\")\n}\n\nassert_eq!(Ok(2).and_then(sq_then_to_string), Ok(4.to_string()));\nassert_eq!(Ok(1_000_000).and_then(sq_then_to_string), Err(\"overflowed\"));\nassert_eq!(Err(\"not a number\").and_then(sq_then_to_string), Err(\"not a number\"));
\n

Often used to chain fallible operations that may return Err.

\n\n
use std::{io::ErrorKind, path::Path};\n\n// Note: on Windows \"/\" maps to \"C:\\\"\nlet root_modified_time = Path::new(\"/\").metadata().and_then(|md| md.modified());\nassert!(root_modified_time.is_ok());\n\nlet should_fail = Path::new(\"/bad/path\").metadata().and_then(|md| md.modified());\nassert!(should_fail.is_err());\nassert_eq!(should_fail.unwrap_err().kind(), ErrorKind::NotFound);
\n
1.0.0 · source

pub fn or<F>(self, res: Result<T, F>) -> Result<T, F>

Returns res if the result is Err, otherwise returns the Ok value of self.

\n

Arguments passed to or are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use or_else, which is\nlazily evaluated.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<u32, &str> = Ok(2);\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Ok(100);\nassert_eq!(x.or(y), Ok(2));
\n
1.0.0 · source

pub fn or_else<F, O>(self, op: O) -> Result<T, F>
where\n O: FnOnce(E) -> Result<T, F>,

Calls op if the result is Err, otherwise returns the Ok value of self.

\n

This function can be used for control flow based on result values.

\n
§Examples
\n
fn sq(x: u32) -> Result<u32, u32> { Ok(x * x) }\nfn err(x: u32) -> Result<u32, u32> { Err(x) }\n\nassert_eq!(Ok(2).or_else(sq).or_else(sq), Ok(2));\nassert_eq!(Ok(2).or_else(err).or_else(sq), Ok(2));\nassert_eq!(Err(3).or_else(sq).or_else(err), Ok(9));\nassert_eq!(Err(3).or_else(err).or_else(err), Err(3));
\n
1.0.0 · source

pub fn unwrap_or(self, default: T) -> T

Returns the contained Ok value or a provided default.

\n

Arguments passed to unwrap_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use unwrap_or_else,\nwhich is lazily evaluated.

\n
§Examples
\n
let default = 2;\nlet x: Result<u32, &str> = Ok(9);\nassert_eq!(x.unwrap_or(default), 9);\n\nlet x: Result<u32, &str> = Err(\"error\");\nassert_eq!(x.unwrap_or(default), default);
\n
1.0.0 · source

pub fn unwrap_or_else<F>(self, op: F) -> T
where\n F: FnOnce(E) -> T,

Returns the contained Ok value or computes it from a closure.

\n
§Examples
\n
fn count(x: &str) -> usize { x.len() }\n\nassert_eq!(Ok(2).unwrap_or_else(count), 2);\nassert_eq!(Err(\"foo\").unwrap_or_else(count), 3);
\n
1.58.0 · source

pub unsafe fn unwrap_unchecked(self) -> T

Returns the contained Ok value, consuming the self value,\nwithout checking that the value is not an Err.

\n
§Safety
\n

Calling this method on an Err is undefined behavior.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(2);\nassert_eq!(unsafe { x.unwrap_unchecked() }, 2);
\n\n
let x: Result<u32, &str> = Err(\"emergency failure\");\nunsafe { x.unwrap_unchecked(); } // Undefined behavior!
\n
1.58.0 · source

pub unsafe fn unwrap_err_unchecked(self) -> E

Returns the contained Err value, consuming the self value,\nwithout checking that the value is not an Ok.

\n
§Safety
\n

Calling this method on an Ok is undefined behavior.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(2);\nunsafe { x.unwrap_err_unchecked() }; // Undefined behavior!
\n\n
let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(unsafe { x.unwrap_err_unchecked() }, \"emergency failure\");
\n
",0,"leo_errors::errors::Result"],["
source§

impl<T, E> Serialize for Result<T, E>
where\n T: Serialize,\n E: Serialize,

source§

fn serialize<S>(\n &self,\n serializer: S,\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where\n S: Serializer,

Serialize this value into the given Serde serializer. Read more
","Serialize","leo_errors::errors::Result"],["
1.16.0 · source§

impl<T, U, E> Sum<Result<U, E>> for Result<T, E>
where\n T: Sum<U>,

source§

fn sum<I>(iter: I) -> Result<T, E>
where\n I: Iterator<Item = Result<U, E>>,

Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the sum of all elements is returned.

\n
§Examples
\n

This sums up every integer in a vector, rejecting the sum if a negative\nelement is encountered:

\n\n
let f = |&x: &i32| if x < 0 { Err(\"Negative element found\") } else { Ok(x) };\nlet v = vec![1, 2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Ok(3));\nlet v = vec![1, -2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Err(\"Negative element found\"));
\n
","Sum>","leo_errors::errors::Result"],["
1.61.0 · source§

impl<T, E> Termination for Result<T, E>
where\n T: Termination,\n E: Debug,

source§

fn report(self) -> ExitCode

Is called to get the representation of the value as status code.\nThis status code is returned to the operating system.
","Termination","leo_errors::errors::Result"],["
source§

impl<T, E> Try for Result<T, E>

source§

type Output = T

🔬This is a nightly-only experimental API. (try_trait_v2)
The type of the value produced by ? when not short-circuiting.
source§

type Residual = Result<Infallible, E>

🔬This is a nightly-only experimental API. (try_trait_v2)
The type of the value passed to FromResidual::from_residual\nas part of ? when short-circuiting. Read more
source§

fn from_output(output: <Result<T, E> as Try>::Output) -> Result<T, E>

🔬This is a nightly-only experimental API. (try_trait_v2)
Constructs the type from its Output type. Read more
source§

fn branch(\n self,\n) -> ControlFlow<<Result<T, E> as Try>::Residual, <Result<T, E> as Try>::Output>

🔬This is a nightly-only experimental API. (try_trait_v2)
Used in ? to decide whether the operator should produce a value\n(because this returned ControlFlow::Continue)\nor propagate a value back to the caller\n(because this returned ControlFlow::Break). Read more
","Try","leo_errors::errors::Result"],["
1.0.0 · source§

impl<T, E> Copy for Result<T, E>
where\n T: Copy,\n E: Copy,

","Copy","leo_errors::errors::Result"],["
1.0.0 · source§

impl<T, E> Eq for Result<T, E>
where\n T: Eq,\n E: Eq,

","Eq","leo_errors::errors::Result"],["
1.0.0 · source§

impl<T, E> StructuralPartialEq for Result<T, E>

","StructuralPartialEq","leo_errors::errors::Result"]]]]); + var type_impls = Object.fromEntries([["leo_errors",[["
1.0.0 · source§

impl<T, E> Clone for Result<T, E>
where\n T: Clone,\n E: Clone,

source§

fn clone(&self) -> Result<T, E>

Returns a copy of the value. Read more
source§

fn clone_from(&mut self, source: &Result<T, E>)

Performs copy-assignment from source. Read more
","Clone","leo_errors::errors::Result"],["
source§

impl<T, E> Context<T, E> for Result<T, E>
where\n E: StdError + Send + Sync + 'static,

source§

fn context<C>(self, context: C) -> Result<T, Error>
where\n C: Display + Send + Sync + 'static,

Wrap the error value with additional context.
source§

fn with_context<C, F>(self, context: F) -> Result<T, Error>
where\n C: Display + Send + Sync + 'static,\n F: FnOnce() -> C,

Wrap the error value with additional context that is evaluated lazily\nonly once an error does occur.
","Context","leo_errors::errors::Result"],["
1.0.0 · source§

impl<T, E> Debug for Result<T, E>
where\n T: Debug,\n E: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
","Debug","leo_errors::errors::Result"],["
source§

impl<'de, T, E> Deserialize<'de> for Result<T, E>
where\n T: Deserialize<'de>,\n E: Deserialize<'de>,

source§

fn deserialize<D>(\n deserializer: D,\n) -> Result<Result<T, E>, <D as Deserializer<'de>>::Error>
where\n D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
","Deserialize<'de>","leo_errors::errors::Result"],["
source§

impl From<&StreamResult> for Result<MZStatus, MZError>

source§

fn from(res: &StreamResult) -> Result<MZStatus, MZError>

Converts to this type from the input type.
","From<&StreamResult>","leo_errors::errors::Result"],["
§

impl From<&StreamResult> for Result<MZStatus, MZError>

§

fn from(res: &StreamResult) -> Result<MZStatus, MZError>

Converts to this type from the input type.
","From<&StreamResult>","leo_errors::errors::Result"],["
source§

impl From<StreamResult> for Result<MZStatus, MZError>

source§

fn from(res: StreamResult) -> Result<MZStatus, MZError>

Converts to this type from the input type.
","From","leo_errors::errors::Result"],["
§

impl From<StreamResult> for Result<MZStatus, MZError>

§

fn from(res: StreamResult) -> Result<MZStatus, MZError>

Converts to this type from the input type.
","From","leo_errors::errors::Result"],["
1.0.0 · source§

impl<A, E, V> FromIterator<Result<A, E>> for Result<V, E>
where\n V: FromIterator<A>,

source§

fn from_iter<I>(iter: I) -> Result<V, E>
where\n I: IntoIterator<Item = Result<A, E>>,

Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err occur, a\ncontainer with the values of each Result is returned.

\n

Here is an example which increments every integer in a vector,\nchecking for overflow:

\n\n
let v = vec![1, 2];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_add(1).ok_or(\"Overflow!\")\n).collect();\nassert_eq!(res, Ok(vec![2, 3]));
\n

Here is another example that tries to subtract one from another list\nof integers, this time checking for underflow:

\n\n
let v = vec![1, 2, 0];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_sub(1).ok_or(\"Underflow!\")\n).collect();\nassert_eq!(res, Err(\"Underflow!\"));
\n

Here is a variation on the previous example, showing that no\nfurther elements are taken from iter after the first Err.

\n\n
let v = vec![3, 2, 1, 10];\nlet mut shared = 0;\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32| {\n    shared += x;\n    x.checked_sub(2).ok_or(\"Underflow!\")\n}).collect();\nassert_eq!(res, Err(\"Underflow!\"));\nassert_eq!(shared, 6);
\n

Since the third element caused an underflow, no further elements were taken,\nso the final value of shared is 6 (= 3 + 2 + 1), not 16.

\n
","FromIterator>","leo_errors::errors::Result"],["
§

impl<C, T, E> FromParallelIterator<Result<T, E>> for Result<C, E>
where\n C: FromParallelIterator<T>,\n T: Send,\n E: Send,

Collect an arbitrary Result-wrapped collection.

\n

If any item is Err, then all previous Ok items collected are\ndiscarded, and it returns that error. If there are multiple errors, the\none returned is not deterministic.

\n
§

fn from_par_iter<I>(par_iter: I) -> Result<C, E>
where\n I: IntoParallelIterator<Item = Result<T, E>>,

Creates an instance of the collection from the parallel iterator par_iter. Read more
","FromParallelIterator>","leo_errors::errors::Result"],["
source§

impl<T, E, F> FromResidual<Result<Infallible, E>> for Result<T, F>
where\n F: From<E>,

source§

fn from_residual(residual: Result<Infallible, E>) -> Result<T, F>

🔬This is a nightly-only experimental API. (try_trait_v2)
Constructs the type from a compatible Residual type. Read more
","FromResidual>","leo_errors::errors::Result"],["
source§

impl<T, E, F> FromResidual<Yeet<E>> for Result<T, F>
where\n F: From<E>,

source§

fn from_residual(_: Yeet<E>) -> Result<T, F>

🔬This is a nightly-only experimental API. (try_trait_v2)
Constructs the type from a compatible Residual type. Read more
","FromResidual>","leo_errors::errors::Result"],["
1.0.0 · source§

impl<T, E> Hash for Result<T, E>
where\n T: Hash,\n E: Hash,

source§

fn hash<__H>(&self, state: &mut __H)
where\n __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n H: Hasher,\n Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
","Hash","leo_errors::errors::Result"],["
1.0.0 · source§

impl<T, E> IntoIterator for Result<T, E>

source§

fn into_iter(self) -> IntoIter<T>

Returns a consuming iterator over the possibly contained value.

\n

The iterator yields one value if the result is Result::Ok, otherwise none.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(5);\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, [5]);\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, []);
\n
source§

type Item = T

The type of the elements being iterated over.
source§

type IntoIter = IntoIter<T>

Which kind of iterator are we turning this into?
","IntoIterator","leo_errors::errors::Result"],["
§

impl<T, E> IntoParallelIterator for Result<T, E>
where\n T: Send,

§

type Item = T

The type of item that the parallel iterator will produce.
§

type Iter = IntoIter<T>

The parallel iterator type that will be created.
§

fn into_par_iter(self) -> <Result<T, E> as IntoParallelIterator>::Iter

Converts self into a parallel iterator. Read more
","IntoParallelIterator","leo_errors::errors::Result"],["
1.0.0 · source§

impl<T, E> Ord for Result<T, E>
where\n T: Ord,\n E: Ord,

source§

fn cmp(&self, other: &Result<T, E>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where\n Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where\n Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where\n Self: Sized,

Restrict a value to a certain interval. Read more
","Ord","leo_errors::errors::Result"],["
1.0.0 · source§

impl<T, E> PartialEq for Result<T, E>
where\n T: PartialEq,\n E: PartialEq,

source§

fn eq(&self, other: &Result<T, E>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
","PartialEq","leo_errors::errors::Result"],["
1.0.0 · source§

impl<T, E> PartialOrd for Result<T, E>
where\n T: PartialOrd,\n E: PartialOrd,

source§

fn partial_cmp(&self, other: &Result<T, E>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the >\noperator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
","PartialOrd","leo_errors::errors::Result"],["
1.16.0 · source§

impl<T, U, E> Product<Result<U, E>> for Result<T, E>
where\n T: Product<U>,

source§

fn product<I>(iter: I) -> Result<T, E>
where\n I: Iterator<Item = Result<U, E>>,

Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the product of all elements is returned.

\n
§Examples
\n

This multiplies each number in a vector of strings,\nif a string could not be parsed the operation returns Err:

\n\n
let nums = vec![\"5\", \"10\", \"1\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert_eq!(total, Ok(100));\nlet nums = vec![\"5\", \"10\", \"one\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert!(total.is_err());
\n
","Product>","leo_errors::errors::Result"],["
source§

impl<T, E> Residual<T> for Result<Infallible, E>

source§

type TryType = Result<T, E>

🔬This is a nightly-only experimental API. (try_trait_v2_residual)
The “return” type of this meta-function.
","Residual","leo_errors::errors::Result"],["
source§

impl<T, E> Result<&T, E>

1.59.0 (const: 1.83.0) · source

pub const fn copied(self) -> Result<T, E>
where\n T: Copy,

Maps a Result<&T, E> to a Result<T, E> by copying the contents of the\nOk part.

\n
§Examples
\n
let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
\n
1.59.0 · source

pub fn cloned(self) -> Result<T, E>
where\n T: Clone,

Maps a Result<&T, E> to a Result<T, E> by cloning the contents of the\nOk part.

\n
§Examples
\n
let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
\n
",0,"leo_errors::errors::Result"],["
source§

impl<T, E> Result<&mut T, E>

1.59.0 (const: 1.83.0) · source

pub const fn copied(self) -> Result<T, E>
where\n T: Copy,

Maps a Result<&mut T, E> to a Result<T, E> by copying the contents of the\nOk part.

\n
§Examples
\n
let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
\n
1.59.0 · source

pub fn cloned(self) -> Result<T, E>
where\n T: Clone,

Maps a Result<&mut T, E> to a Result<T, E> by cloning the contents of the\nOk part.

\n
§Examples
\n
let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
\n
",0,"leo_errors::errors::Result"],["
source§

impl<T, E> Result<Option<T>, E>

1.33.0 (const: 1.83.0) · source

pub const fn transpose(self) -> Option<Result<T, E>>

Transposes a Result of an Option into an Option of a Result.

\n

Ok(None) will be mapped to None.\nOk(Some(_)) and Err(_) will be mapped to Some(Ok(_)) and Some(Err(_)).

\n
§Examples
\n
#[derive(Debug, Eq, PartialEq)]\nstruct SomeErr;\n\nlet x: Result<Option<i32>, SomeErr> = Ok(Some(5));\nlet y: Option<Result<i32, SomeErr>> = Some(Ok(5));\nassert_eq!(x.transpose(), y);
\n
",0,"leo_errors::errors::Result"],["
source§

impl<T, E> Result<Result<T, E>, E>

source

pub const fn flatten(self) -> Result<T, E>

🔬This is a nightly-only experimental API. (result_flattening)

Converts from Result<Result<T, E>, E> to Result<T, E>

\n
§Examples
\n
#![feature(result_flattening)]\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Ok(\"hello\"));\nassert_eq!(Ok(\"hello\"), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Err(6));\nassert_eq!(Err(6), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Err(6);\nassert_eq!(Err(6), x.flatten());
\n

Flattening only removes one level of nesting at a time:

\n\n
#![feature(result_flattening)]\nlet x: Result<Result<Result<&'static str, u32>, u32>, u32> = Ok(Ok(Ok(\"hello\")));\nassert_eq!(Ok(Ok(\"hello\")), x.flatten());\nassert_eq!(Ok(\"hello\"), x.flatten().flatten());
\n
",0,"leo_errors::errors::Result"],["
source§

impl<T, E> Result<T, E>

1.0.0 (const: 1.48.0) · source

pub const fn is_ok(&self) -> bool

Returns true if the result is Ok.

\n
§Examples
\n
let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_ok(), true);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_ok(), false);
\n
1.70.0 · source

pub fn is_ok_and(self, f: impl FnOnce(T) -> bool) -> bool

Returns true if the result is Ok and the value inside of it matches a predicate.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.is_ok_and(|x| x > 1), true);\n\nlet x: Result<u32, &str> = Ok(0);\nassert_eq!(x.is_ok_and(|x| x > 1), false);\n\nlet x: Result<u32, &str> = Err(\"hey\");\nassert_eq!(x.is_ok_and(|x| x > 1), false);
\n
1.0.0 (const: 1.48.0) · source

pub const fn is_err(&self) -> bool

Returns true if the result is Err.

\n
§Examples
\n
let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_err(), false);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_err(), true);
\n
1.70.0 · source

pub fn is_err_and(self, f: impl FnOnce(E) -> bool) -> bool

Returns true if the result is Err and the value inside of it matches a predicate.

\n
§Examples
\n
use std::io::{Error, ErrorKind};\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::NotFound, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), true);\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::PermissionDenied, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);\n\nlet x: Result<u32, Error> = Ok(123);\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);
\n
1.0.0 · source

pub fn ok(self) -> Option<T>

Converts from Result<T, E> to Option<T>.

\n

Converts self into an Option<T>, consuming self,\nand discarding the error, if any.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.ok(), Some(2));\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.ok(), None);
\n
1.0.0 · source

pub fn err(self) -> Option<E>

Converts from Result<T, E> to Option<E>.

\n

Converts self into an Option<E>, consuming self,\nand discarding the success value, if any.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.err(), None);\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.err(), Some(\"Nothing here\"));
\n
1.0.0 (const: 1.48.0) · source

pub const fn as_ref(&self) -> Result<&T, &E>

Converts from &Result<T, E> to Result<&T, &E>.

\n

Produces a new Result, containing a reference\ninto the original, leaving the original in place.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.as_ref(), Ok(&2));\n\nlet x: Result<u32, &str> = Err(\"Error\");\nassert_eq!(x.as_ref(), Err(&\"Error\"));
\n
1.0.0 (const: 1.83.0) · source

pub const fn as_mut(&mut self) -> Result<&mut T, &mut E>

Converts from &mut Result<T, E> to Result<&mut T, &mut E>.

\n
§Examples
\n
fn mutate(r: &mut Result<i32, i32>) {\n    match r.as_mut() {\n        Ok(v) => *v = 42,\n        Err(e) => *e = 0,\n    }\n}\n\nlet mut x: Result<i32, i32> = Ok(2);\nmutate(&mut x);\nassert_eq!(x.unwrap(), 42);\n\nlet mut x: Result<i32, i32> = Err(13);\nmutate(&mut x);\nassert_eq!(x.unwrap_err(), 0);
\n
1.0.0 · source

pub fn map<U, F>(self, op: F) -> Result<U, E>
where\n F: FnOnce(T) -> U,

Maps a Result<T, E> to Result<U, E> by applying a function to a\ncontained Ok value, leaving an Err value untouched.

\n

This function can be used to compose the results of two functions.

\n
§Examples
\n

Print the numbers on each line of a string multiplied by two.

\n\n
let line = \"1\\n2\\n3\\n4\\n\";\n\nfor num in line.lines() {\n    match num.parse::<i32>().map(|i| i * 2) {\n        Ok(n) => println!(\"{n}\"),\n        Err(..) => {}\n    }\n}
\n
1.41.0 · source

pub fn map_or<U, F>(self, default: U, f: F) -> U
where\n F: FnOnce(T) -> U,

Returns the provided default (if Err), or\napplies a function to the contained value (if Ok).

\n

Arguments passed to map_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use map_or_else,\nwhich is lazily evaluated.

\n
§Examples
\n
let x: Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or(42, |v| v.len()), 3);\n\nlet x: Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or(42, |v| v.len()), 42);
\n
1.41.0 · source

pub fn map_or_else<U, D, F>(self, default: D, f: F) -> U
where\n D: FnOnce(E) -> U,\n F: FnOnce(T) -> U,

Maps a Result<T, E> to U by applying fallback function default to\na contained Err value, or function f to a contained Ok value.

\n

This function can be used to unpack a successful result\nwhile handling an error.

\n
§Examples
\n
let k = 21;\n\nlet x : Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 3);\n\nlet x : Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 42);
\n
1.0.0 · source

pub fn map_err<F, O>(self, op: O) -> Result<T, F>
where\n O: FnOnce(E) -> F,

Maps a Result<T, E> to Result<T, F> by applying a function to a\ncontained Err value, leaving an Ok value untouched.

\n

This function can be used to pass through a successful result while handling\nan error.

\n
§Examples
\n
fn stringify(x: u32) -> String { format!(\"error code: {x}\") }\n\nlet x: Result<u32, u32> = Ok(2);\nassert_eq!(x.map_err(stringify), Ok(2));\n\nlet x: Result<u32, u32> = Err(13);\nassert_eq!(x.map_err(stringify), Err(\"error code: 13\".to_string()));
\n
1.76.0 · source

pub fn inspect<F>(self, f: F) -> Result<T, E>
where\n F: FnOnce(&T),

Calls a function with a reference to the contained value if Ok.

\n

Returns the original result.

\n
§Examples
\n
let x: u8 = \"4\"\n    .parse::<u8>()\n    .inspect(|x| println!(\"original: {x}\"))\n    .map(|x| x.pow(3))\n    .expect(\"failed to parse number\");
\n
1.76.0 · source

pub fn inspect_err<F>(self, f: F) -> Result<T, E>
where\n F: FnOnce(&E),

Calls a function with a reference to the contained value if Err.

\n

Returns the original result.

\n
§Examples
\n
use std::{fs, io};\n\nfn read() -> io::Result<String> {\n    fs::read_to_string(\"address.txt\")\n        .inspect_err(|e| eprintln!(\"failed to read file: {e}\"))\n}
\n
1.47.0 · source

pub fn as_deref(&self) -> Result<&<T as Deref>::Target, &E>
where\n T: Deref,

Converts from Result<T, E> (or &Result<T, E>) to Result<&<T as Deref>::Target, &E>.

\n

Coerces the Ok variant of the original Result via Deref\nand returns the new Result.

\n
§Examples
\n
let x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&str, &u32> = Ok(\"hello\");\nassert_eq!(x.as_deref(), y);\n\nlet x: Result<String, u32> = Err(42);\nlet y: Result<&str, &u32> = Err(&42);\nassert_eq!(x.as_deref(), y);
\n
1.47.0 · source

pub fn as_deref_mut(&mut self) -> Result<&mut <T as Deref>::Target, &mut E>
where\n T: DerefMut,

Converts from Result<T, E> (or &mut Result<T, E>) to Result<&mut <T as DerefMut>::Target, &mut E>.

\n

Coerces the Ok variant of the original Result via DerefMut\nand returns the new Result.

\n
§Examples
\n
let mut s = \"HELLO\".to_string();\nlet mut x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&mut str, &mut u32> = Ok(&mut s);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);\n\nlet mut i = 42;\nlet mut x: Result<String, u32> = Err(42);\nlet y: Result<&mut str, &mut u32> = Err(&mut i);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);
\n
1.0.0 · source

pub fn iter(&self) -> Iter<'_, T>

Returns an iterator over the possibly contained value.

\n

The iterator yields one value if the result is Result::Ok, otherwise none.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(7);\nassert_eq!(x.iter().next(), Some(&7));\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter().next(), None);
\n
1.0.0 · source

pub fn iter_mut(&mut self) -> IterMut<'_, T>

Returns a mutable iterator over the possibly contained value.

\n

The iterator yields one value if the result is Result::Ok, otherwise none.

\n
§Examples
\n
let mut x: Result<u32, &str> = Ok(7);\nmatch x.iter_mut().next() {\n    Some(v) => *v = 40,\n    None => {},\n}\nassert_eq!(x, Ok(40));\n\nlet mut x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter_mut().next(), None);
\n
1.4.0 · source

pub fn expect(self, msg: &str) -> T
where\n E: Debug,

Returns the contained Ok value, consuming the self value.

\n

Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

\n
§Panics
\n

Panics if the value is an Err, with a panic message including the\npassed message, and the content of the Err.

\n
§Examples
\n
let x: Result<u32, &str> = Err(\"emergency failure\");\nx.expect(\"Testing expect\"); // panics with `Testing expect: emergency failure`
\n
§Recommended Message Style
\n

We recommend that expect messages are used to describe the reason you\nexpect the Result should be Ok.

\n\n
let path = std::env::var(\"IMPORTANT_PATH\")\n    .expect(\"env variable `IMPORTANT_PATH` should be set by `wrapper_script.sh`\");
\n

Hint: If you’re having trouble remembering how to phrase expect\nerror messages remember to focus on the word “should” as in “env\nvariable should be set by blah” or “the given binary should be available\nand executable by the current user”.

\n

For more detail on expect message styles and the reasoning behind our recommendation please\nrefer to the section on “Common Message\nStyles” in the\nstd::error module docs.

\n
1.0.0 · source

pub fn unwrap(self) -> T
where\n E: Debug,

Returns the contained Ok value, consuming the self value.

\n

Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

\n
§Panics
\n

Panics if the value is an Err, with a panic message provided by the\nErr’s value.

\n
§Examples
\n

Basic usage:

\n\n
let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.unwrap(), 2);
\n\n
let x: Result<u32, &str> = Err(\"emergency failure\");\nx.unwrap(); // panics with `emergency failure`
\n
1.16.0 · source

pub fn unwrap_or_default(self) -> T
where\n T: Default,

Returns the contained Ok value or a default

\n

Consumes the self argument then, if Ok, returns the contained\nvalue, otherwise if Err, returns the default value for that\ntype.

\n
§Examples
\n

Converts a string to an integer, turning poorly-formed strings\ninto 0 (the default value for integers). parse converts\na string to any other type that implements FromStr, returning an\nErr on error.

\n\n
let good_year_from_input = \"1909\";\nlet bad_year_from_input = \"190blarg\";\nlet good_year = good_year_from_input.parse().unwrap_or_default();\nlet bad_year = bad_year_from_input.parse().unwrap_or_default();\n\nassert_eq!(1909, good_year);\nassert_eq!(0, bad_year);
\n
1.17.0 · source

pub fn expect_err(self, msg: &str) -> E
where\n T: Debug,

Returns the contained Err value, consuming the self value.

\n
§Panics
\n

Panics if the value is an Ok, with a panic message including the\npassed message, and the content of the Ok.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(10);\nx.expect_err(\"Testing expect_err\"); // panics with `Testing expect_err: 10`
\n
1.0.0 · source

pub fn unwrap_err(self) -> E
where\n T: Debug,

Returns the contained Err value, consuming the self value.

\n
§Panics
\n

Panics if the value is an Ok, with a custom panic message provided\nby the Ok’s value.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(2);\nx.unwrap_err(); // panics with `2`
\n\n
let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(x.unwrap_err(), \"emergency failure\");
\n
source

pub fn into_ok(self) -> T
where\n E: Into<!>,

🔬This is a nightly-only experimental API. (unwrap_infallible)

Returns the contained Ok value, but never panics.

\n

Unlike unwrap, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap as a maintainability safeguard that will fail\nto compile if the error type of the Result is later changed\nto an error that can actually occur.

\n
§Examples
\n
\nfn only_good_news() -> Result<String, !> {\n    Ok(\"this is fine\".into())\n}\n\nlet s: String = only_good_news().into_ok();\nprintln!(\"{s}\");
\n
source

pub fn into_err(self) -> E
where\n T: Into<!>,

🔬This is a nightly-only experimental API. (unwrap_infallible)

Returns the contained Err value, but never panics.

\n

Unlike unwrap_err, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap_err as a maintainability safeguard that will fail\nto compile if the ok type of the Result is later changed\nto a type that can actually occur.

\n
§Examples
\n
\nfn only_bad_news() -> Result<!, String> {\n    Err(\"Oops, it failed\".into())\n}\n\nlet error: String = only_bad_news().into_err();\nprintln!(\"{error}\");
\n
1.0.0 · source

pub fn and<U>(self, res: Result<U, E>) -> Result<U, E>

Returns res if the result is Ok, otherwise returns the Err value of self.

\n

Arguments passed to and are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use and_then, which is\nlazily evaluated.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<&str, &str> = Ok(\"foo\");\nassert_eq!(x.and(y), Err(\"early error\"));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"not a 2\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Ok(\"different result type\");\nassert_eq!(x.and(y), Ok(\"different result type\"));
\n
1.0.0 · source

pub fn and_then<U, F>(self, op: F) -> Result<U, E>
where\n F: FnOnce(T) -> Result<U, E>,

Calls op if the result is Ok, otherwise returns the Err value of self.

\n

This function can be used for control flow based on Result values.

\n
§Examples
\n
fn sq_then_to_string(x: u32) -> Result<String, &'static str> {\n    x.checked_mul(x).map(|sq| sq.to_string()).ok_or(\"overflowed\")\n}\n\nassert_eq!(Ok(2).and_then(sq_then_to_string), Ok(4.to_string()));\nassert_eq!(Ok(1_000_000).and_then(sq_then_to_string), Err(\"overflowed\"));\nassert_eq!(Err(\"not a number\").and_then(sq_then_to_string), Err(\"not a number\"));
\n

Often used to chain fallible operations that may return Err.

\n\n
use std::{io::ErrorKind, path::Path};\n\n// Note: on Windows \"/\" maps to \"C:\\\"\nlet root_modified_time = Path::new(\"/\").metadata().and_then(|md| md.modified());\nassert!(root_modified_time.is_ok());\n\nlet should_fail = Path::new(\"/bad/path\").metadata().and_then(|md| md.modified());\nassert!(should_fail.is_err());\nassert_eq!(should_fail.unwrap_err().kind(), ErrorKind::NotFound);
\n
1.0.0 · source

pub fn or<F>(self, res: Result<T, F>) -> Result<T, F>

Returns res if the result is Err, otherwise returns the Ok value of self.

\n

Arguments passed to or are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use or_else, which is\nlazily evaluated.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<u32, &str> = Ok(2);\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Ok(100);\nassert_eq!(x.or(y), Ok(2));
\n
1.0.0 · source

pub fn or_else<F, O>(self, op: O) -> Result<T, F>
where\n O: FnOnce(E) -> Result<T, F>,

Calls op if the result is Err, otherwise returns the Ok value of self.

\n

This function can be used for control flow based on result values.

\n
§Examples
\n
fn sq(x: u32) -> Result<u32, u32> { Ok(x * x) }\nfn err(x: u32) -> Result<u32, u32> { Err(x) }\n\nassert_eq!(Ok(2).or_else(sq).or_else(sq), Ok(2));\nassert_eq!(Ok(2).or_else(err).or_else(sq), Ok(2));\nassert_eq!(Err(3).or_else(sq).or_else(err), Ok(9));\nassert_eq!(Err(3).or_else(err).or_else(err), Err(3));
\n
1.0.0 · source

pub fn unwrap_or(self, default: T) -> T

Returns the contained Ok value or a provided default.

\n

Arguments passed to unwrap_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use unwrap_or_else,\nwhich is lazily evaluated.

\n
§Examples
\n
let default = 2;\nlet x: Result<u32, &str> = Ok(9);\nassert_eq!(x.unwrap_or(default), 9);\n\nlet x: Result<u32, &str> = Err(\"error\");\nassert_eq!(x.unwrap_or(default), default);
\n
1.0.0 · source

pub fn unwrap_or_else<F>(self, op: F) -> T
where\n F: FnOnce(E) -> T,

Returns the contained Ok value or computes it from a closure.

\n
§Examples
\n
fn count(x: &str) -> usize { x.len() }\n\nassert_eq!(Ok(2).unwrap_or_else(count), 2);\nassert_eq!(Err(\"foo\").unwrap_or_else(count), 3);
\n
1.58.0 · source

pub unsafe fn unwrap_unchecked(self) -> T

Returns the contained Ok value, consuming the self value,\nwithout checking that the value is not an Err.

\n
§Safety
\n

Calling this method on an Err is undefined behavior.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(2);\nassert_eq!(unsafe { x.unwrap_unchecked() }, 2);
\n\n
let x: Result<u32, &str> = Err(\"emergency failure\");\nunsafe { x.unwrap_unchecked(); } // Undefined behavior!
\n
1.58.0 · source

pub unsafe fn unwrap_err_unchecked(self) -> E

Returns the contained Err value, consuming the self value,\nwithout checking that the value is not an Ok.

\n
§Safety
\n

Calling this method on an Ok is undefined behavior.

\n
§Examples
\n
let x: Result<u32, &str> = Ok(2);\nunsafe { x.unwrap_err_unchecked() }; // Undefined behavior!
\n\n
let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(unsafe { x.unwrap_err_unchecked() }, \"emergency failure\");
\n
",0,"leo_errors::errors::Result"],["
source§

impl<T, E> Serialize for Result<T, E>
where\n T: Serialize,\n E: Serialize,

source§

fn serialize<S>(\n &self,\n serializer: S,\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where\n S: Serializer,

Serialize this value into the given Serde serializer. Read more
","Serialize","leo_errors::errors::Result"],["
1.16.0 · source§

impl<T, U, E> Sum<Result<U, E>> for Result<T, E>
where\n T: Sum<U>,

source§

fn sum<I>(iter: I) -> Result<T, E>
where\n I: Iterator<Item = Result<U, E>>,

Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the sum of all elements is returned.

\n
§Examples
\n

This sums up every integer in a vector, rejecting the sum if a negative\nelement is encountered:

\n\n
let f = |&x: &i32| if x < 0 { Err(\"Negative element found\") } else { Ok(x) };\nlet v = vec![1, 2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Ok(3));\nlet v = vec![1, -2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Err(\"Negative element found\"));
\n
","Sum>","leo_errors::errors::Result"],["
1.61.0 · source§

impl<T, E> Termination for Result<T, E>
where\n T: Termination,\n E: Debug,

source§

fn report(self) -> ExitCode

Is called to get the representation of the value as status code.\nThis status code is returned to the operating system.
","Termination","leo_errors::errors::Result"],["
source§

impl<T, E> Try for Result<T, E>

source§

type Output = T

🔬This is a nightly-only experimental API. (try_trait_v2)
The type of the value produced by ? when not short-circuiting.
source§

type Residual = Result<Infallible, E>

🔬This is a nightly-only experimental API. (try_trait_v2)
The type of the value passed to FromResidual::from_residual\nas part of ? when short-circuiting. Read more
source§

fn from_output(output: <Result<T, E> as Try>::Output) -> Result<T, E>

🔬This is a nightly-only experimental API. (try_trait_v2)
Constructs the type from its Output type. Read more
source§

fn branch(\n self,\n) -> ControlFlow<<Result<T, E> as Try>::Residual, <Result<T, E> as Try>::Output>

🔬This is a nightly-only experimental API. (try_trait_v2)
Used in ? to decide whether the operator should produce a value\n(because this returned ControlFlow::Continue)\nor propagate a value back to the caller\n(because this returned ControlFlow::Break). Read more
","Try","leo_errors::errors::Result"],["
1.0.0 · source§

impl<T, E> Copy for Result<T, E>
where\n T: Copy,\n E: Copy,

","Copy","leo_errors::errors::Result"],["
1.0.0 · source§

impl<T, E> Eq for Result<T, E>
where\n T: Eq,\n E: Eq,

","Eq","leo_errors::errors::Result"],["
1.0.0 · source§

impl<T, E> StructuralPartialEq for Result<T, E>

","StructuralPartialEq","leo_errors::errors::Result"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { window.pending_type_impls = type_impls; } })() -//{"start":55,"fragment_lengths":[180710]} \ No newline at end of file +//{"start":55,"fragment_lengths":[180464]} \ No newline at end of file diff --git a/type.impl/leo_errors/emitter/struct.Buffer.js b/type.impl/leo_errors/emitter/struct.Buffer.js index 9ccb930856..07625fecec 100644 --- a/type.impl/leo_errors/emitter/struct.Buffer.js +++ b/type.impl/leo_errors/emitter/struct.Buffer.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["leo_errors",[["
source§

impl<T> Buffer<T>

source

pub fn push(&mut self, x: T)

Push x to the buffer.

\n
source

pub fn into_inner(self) -> Vec<T>

Extract the underlying list of Ts.

\n
source

pub fn last_entry(&self) -> Option<&T>

Last entry to the buffer.

\n
",0,"leo_errors::emitter::ErrBuffer","leo_errors::emitter::WarningBuffer"],["
source§

impl<T: Debug> Debug for Buffer<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
","Debug","leo_errors::emitter::ErrBuffer","leo_errors::emitter::WarningBuffer"],["
source§

impl<T> Default for Buffer<T>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
","Default","leo_errors::emitter::ErrBuffer","leo_errors::emitter::WarningBuffer"],["
source§

impl<T: Display> Display for Buffer<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
","Display","leo_errors::emitter::ErrBuffer","leo_errors::emitter::WarningBuffer"]]]]); + var type_impls = Object.fromEntries([["leo_errors",[["
source§

impl<T> Buffer<T>

source

pub fn push(&mut self, x: T)

Push x to the buffer.

\n
source

pub fn into_inner(self) -> Vec<T>

Extract the underlying list of Ts.

\n
source

pub fn last_entry(&self) -> Option<&T>

Last entry to the buffer.

\n
",0,"leo_errors::emitter::ErrBuffer","leo_errors::emitter::WarningBuffer"],["
source§

impl<T: Debug> Debug for Buffer<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
","Debug","leo_errors::emitter::ErrBuffer","leo_errors::emitter::WarningBuffer"],["
source§

impl<T> Default for Buffer<T>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
","Default","leo_errors::emitter::ErrBuffer","leo_errors::emitter::WarningBuffer"],["
source§

impl<T: Display> Display for Buffer<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
","Display","leo_errors::emitter::ErrBuffer","leo_errors::emitter::WarningBuffer"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/leo_passes/common/graph/struct.DiGraph.js b/type.impl/leo_passes/common/graph/struct.DiGraph.js index d31e6fe706..cf2916a4e4 100644 --- a/type.impl/leo_passes/common/graph/struct.DiGraph.js +++ b/type.impl/leo_passes/common/graph/struct.DiGraph.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["leo_passes",[["
source§

impl<N: Debug + Node> Debug for DiGraph<N>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
","Debug","leo_passes::common::graph::StructGraph","leo_passes::common::graph::CallGraph","leo_passes::common::graph::ImportGraph"],["
source§

impl<N: Node> DiGraph<N>

source

pub fn new(nodes: IndexSet<N>) -> Self

Initializes a new DiGraph from a vector of source nodes.

\n
source

pub fn add_edge(&mut self, from: N, to: N)

Adds an edge to the graph.

\n
source

pub fn contains_node(&self, node: N) -> bool

Returns true if the graph contains the given node.

\n
source

pub fn post_order(&self) -> Result<IndexSet<N>, DiGraphError<N>>

Returns the post-order ordering of the graph.\nDetects if there is a cycle in the graph.

\n
source

pub fn retain_nodes(&mut self, nodes: &IndexSet<N>)

Retains a subset of the nodes, and removes all edges in which the source or destination is not in the subset.

\n
source

fn contains_cycle_from(\n &self,\n node: N,\n discovered: &mut IndexSet<N>,\n finished: &mut IndexSet<N>,\n) -> Option<N>

",0,"leo_passes::common::graph::StructGraph","leo_passes::common::graph::CallGraph","leo_passes::common::graph::ImportGraph"],["
source§

impl<N: PartialEq + Node> PartialEq for DiGraph<N>

source§

fn eq(&self, other: &DiGraph<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
","PartialEq","leo_passes::common::graph::StructGraph","leo_passes::common::graph::CallGraph","leo_passes::common::graph::ImportGraph"],["
source§

impl<N: Eq + Node> Eq for DiGraph<N>

","Eq","leo_passes::common::graph::StructGraph","leo_passes::common::graph::CallGraph","leo_passes::common::graph::ImportGraph"],["
source§

impl<N: Node> StructuralPartialEq for DiGraph<N>

","StructuralPartialEq","leo_passes::common::graph::StructGraph","leo_passes::common::graph::CallGraph","leo_passes::common::graph::ImportGraph"]]]]); + var type_impls = Object.fromEntries([["leo_passes",[["
source§

impl<N: Debug + Node> Debug for DiGraph<N>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
","Debug","leo_passes::common::graph::StructGraph","leo_passes::common::graph::CallGraph","leo_passes::common::graph::ImportGraph"],["
source§

impl<N: Node> DiGraph<N>

source

pub fn new(nodes: IndexSet<N>) -> Self

Initializes a new DiGraph from a vector of source nodes.

\n
source

pub fn add_edge(&mut self, from: N, to: N)

Adds an edge to the graph.

\n
source

pub fn contains_node(&self, node: N) -> bool

Returns true if the graph contains the given node.

\n
source

pub fn post_order(&self) -> Result<IndexSet<N>, DiGraphError<N>>

Returns the post-order ordering of the graph.\nDetects if there is a cycle in the graph.

\n
source

pub fn retain_nodes(&mut self, nodes: &IndexSet<N>)

Retains a subset of the nodes, and removes all edges in which the source or destination is not in the subset.

\n
source

fn contains_cycle_from(\n &self,\n node: N,\n discovered: &mut IndexSet<N>,\n finished: &mut IndexSet<N>,\n) -> Option<N>

",0,"leo_passes::common::graph::StructGraph","leo_passes::common::graph::CallGraph","leo_passes::common::graph::ImportGraph"],["
source§

impl<N: PartialEq + Node> PartialEq for DiGraph<N>

source§

fn eq(&self, other: &DiGraph<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
","PartialEq","leo_passes::common::graph::StructGraph","leo_passes::common::graph::CallGraph","leo_passes::common::graph::ImportGraph"],["
source§

impl<N: Eq + Node> Eq for DiGraph<N>

","Eq","leo_passes::common::graph::StructGraph","leo_passes::common::graph::CallGraph","leo_passes::common::graph::ImportGraph"],["
source§

impl<N: Node> StructuralPartialEq for DiGraph<N>

","StructuralPartialEq","leo_passes::common::graph::StructGraph","leo_passes::common::graph::CallGraph","leo_passes::common::graph::ImportGraph"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/leo_passes/common/tree_node/struct.TreeNode.js b/type.impl/leo_passes/common/tree_node/struct.TreeNode.js index 163509f81f..6522a35506 100644 --- a/type.impl/leo_passes/common/tree_node/struct.TreeNode.js +++ b/type.impl/leo_passes/common/tree_node/struct.TreeNode.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["leo_passes",[["
source§

impl<N: Clone + Node> Clone for TreeNode<N>

source§

fn clone(&self) -> TreeNode<N>

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
","Clone","leo_passes::common::tree_node::ConditionalTreeNode"],["
source§

impl<N: Debug + Node> Debug for TreeNode<N>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
","Debug","leo_passes::common::tree_node::ConditionalTreeNode"],["
source§

impl<N: PartialEq + Node> PartialEq for TreeNode<N>

source§

fn eq(&self, other: &TreeNode<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
","PartialEq","leo_passes::common::tree_node::ConditionalTreeNode"],["
source§

impl<N: Node> TreeNode<N>

source

pub fn new(elements: IndexSet<N>) -> Self

Initializes a new TreeNode from a vector of starting elements.

\n
source

pub fn create_child(&mut self) -> TreeNode<N>

Adds a child to the current node.

\n
source

pub fn remove_element(&mut self, element: &N) -> bool

Removes an element from the current node.\nIf the element does not exist, increment an internal counter which later used to generate an error that the user attempted to await a future twice.\nReturns true if the element was removed but not the first one in the node.

\n
",0,"leo_passes::common::tree_node::ConditionalTreeNode"],["
source§

impl<N: Eq + Node> Eq for TreeNode<N>

","Eq","leo_passes::common::tree_node::ConditionalTreeNode"],["
source§

impl<N: Node> StructuralPartialEq for TreeNode<N>

","StructuralPartialEq","leo_passes::common::tree_node::ConditionalTreeNode"]]]]); + var type_impls = Object.fromEntries([["leo_passes",[["
source§

impl<N: Clone + Node> Clone for TreeNode<N>

source§

fn clone(&self) -> TreeNode<N>

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
","Clone","leo_passes::common::tree_node::ConditionalTreeNode"],["
source§

impl<N: Debug + Node> Debug for TreeNode<N>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
","Debug","leo_passes::common::tree_node::ConditionalTreeNode"],["
source§

impl<N: PartialEq + Node> PartialEq for TreeNode<N>

source§

fn eq(&self, other: &TreeNode<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
","PartialEq","leo_passes::common::tree_node::ConditionalTreeNode"],["
source§

impl<N: Node> TreeNode<N>

source

pub fn new(elements: IndexSet<N>) -> Self

Initializes a new TreeNode from a vector of starting elements.

\n
source

pub fn create_child(&mut self) -> TreeNode<N>

Adds a child to the current node.

\n
source

pub fn remove_element(&mut self, element: &N) -> bool

Removes an element from the current node.\nIf the element does not exist, increment an internal counter which later used to generate an error that the user attempted to await a future twice.\nReturns true if the element was removed but not the first one in the node.

\n
",0,"leo_passes::common::tree_node::ConditionalTreeNode"],["
source§

impl<N: Eq + Node> Eq for TreeNode<N>

","Eq","leo_passes::common::tree_node::ConditionalTreeNode"],["
source§

impl<N: Node> StructuralPartialEq for TreeNode<N>

","StructuralPartialEq","leo_passes::common::tree_node::ConditionalTreeNode"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else {