From 90f1974c174bfe191595b275ed143d6231f8ee12 Mon Sep 17 00:00:00 2001 From: "github-merge-queue[bot]" Date: Wed, 18 Dec 2024 13:35:30 +0000 Subject: [PATCH] deploy: 7ec1e3cfb3ccbd2c6c26ec9223ded02991bda4c7 --- cairo_native/all.html | 2 +- cairo_native/cache/aot/index.html | 2 +- .../cache/aot/struct.AotProgramCache.html | 324 +++++++------- cairo_native/cache/enum.ProgramCache.html | 324 +++++++------- cairo_native/cache/index.html | 2 +- cairo_native/cache/jit/index.html | 2 +- .../cache/jit/struct.JitProgramCache.html | 324 +++++++------- cairo_native/context/fn.initialize_mlir.html | 2 +- cairo_native/context/index.html | 2 +- .../context/struct.NativeContext.html | 326 +++++++------- cairo_native/debug/fn.libfunc_to_name.html | 2 +- cairo_native/debug/index.html | 2 +- cairo_native/docs/index.html | 2 +- cairo_native/docs/section01/index.html | 8 +- cairo_native/docs/section02/index.html | 11 +- cairo_native/docs/section03/index.html | 5 +- cairo_native/docs/section04/index.html | 17 +- cairo_native/docs/section05/index.html | 2 +- cairo_native/docs/section06/index.html | 44 +- cairo_native/docs/section07/index.html | 2 +- cairo_native/docs/section08/index.html | 2 +- cairo_native/enum.OptLevel.html | 346 +++++++-------- cairo_native/enum.Value.html | 376 ++++++++-------- cairo_native/error/enum.CompilerError.html | 312 +++++++------- cairo_native/error/enum.Error.html | 324 +++++++------- .../error/enum.SierraAssertError.html | 310 ++++++------- cairo_native/error/index.html | 2 +- cairo_native/error/panic/index.html | 2 +- .../error/panic/struct.NativeAssertError.html | 308 ++++++------- .../panic/trait.ToNativeAssertError.html | 6 +- cairo_native/error/type.Result.html | 2 +- cairo_native/execution_result/index.html | 2 +- .../execution_result/struct.BuiltinStats.html | 368 ++++++++-------- .../struct.ContractExecutionResult.html | 360 ++++++++-------- .../struct.ExecutionResult.html | 332 +++++++------- cairo_native/executor/index.html | 2 +- .../executor/struct.AotContractExecutor.html | 322 +++++++------- .../executor/struct.AotNativeExecutor.html | 320 +++++++------- .../executor/struct.JitNativeExecutor.html | 318 +++++++------- cairo_native/fn.compile.html | 6 +- cairo_native/fn.module_to_object.html | 4 +- cairo_native/fn.object_to_shared_lib.html | 2 +- cairo_native/index.html | 59 +-- cairo_native/macro.native_assert.html | 2 +- cairo_native/macro.native_panic.html | 2 +- .../auto_breakpoint/enum.BreakpointEvent.html | 332 +++++++------- .../metadata/auto_breakpoint/index.html | 2 +- .../struct.AutoBreakpoint.html | 312 +++++++------- cairo_native/metadata/debug_utils/index.html | 2 +- .../debug_utils/struct.DebugUtils.html | 332 +++++++------- .../metadata/drop_overrides/index.html | 5 +- .../struct.DropOverridesMeta.html | 304 ++++++------- .../metadata/dup_overrides/index.html | 5 +- .../struct.DupOverridesMeta.html | 304 ++++++------- .../enum_snapshot_variants/index.html | 2 +- .../struct.EnumSnapshotVariantsMeta.html | 306 ++++++------- .../metadata/gas/enum.GasMetadataError.html | 324 +++++++------- cairo_native/metadata/gas/index.html | 2 +- cairo_native/metadata/gas/struct.GasCost.html | 328 +++++++------- .../metadata/gas/struct.GasMetadata.html | 340 +++++++-------- .../gas/struct.MetadataComputationConfig.html | 318 +++++++------- cairo_native/metadata/index.html | 2 +- .../metadata/realloc_bindings/index.html | 2 +- .../struct.ReallocBindingsMeta.html | 310 ++++++------- .../metadata/runtime_bindings/index.html | 2 +- .../struct.RuntimeBindingsMeta.html | 308 ++++++------- .../metadata/struct.MetadataStorage.html | 324 +++++++------- .../metadata/tail_recursion/index.html | 2 +- .../struct.TailRecursionMeta.html | 308 ++++++------- cairo_native/module/index.html | 2 +- cairo_native/module/struct.NativeModule.html | 318 +++++++------- .../constant.SYSCALL_HANDLER_VTABLE.html | 2 +- .../fn.cairo_native__vtable_cheatcode.html | 2 +- cairo_native/starknet/index.html | 4 +- cairo_native/starknet/struct.ArrayAbi.html | 318 +++++++------- cairo_native/starknet/struct.BlockInfo.html | 354 +++++++-------- .../starknet/struct.DummySyscallHandler.html | 396 ++++++++--------- .../starknet/struct.ExecutionInfo.html | 350 +++++++-------- .../starknet/struct.ExecutionInfoV2.html | 350 +++++++-------- cairo_native/starknet/struct.Felt252Abi.html | 312 +++++++------- .../starknet/struct.ResourceBounds.html | 354 +++++++-------- .../starknet/struct.Secp256k1Point.html | 348 +++++++-------- .../starknet/struct.Secp256r1Point.html | 348 +++++++-------- cairo_native/starknet/struct.TxInfo.html | 354 +++++++-------- cairo_native/starknet/struct.TxV2Info.html | 366 ++++++++-------- cairo_native/starknet/struct.U256.html | 354 +++++++-------- .../trait.StarknetSyscallHandler.html | 186 ++++---- cairo_native/starknet/type.SyscallResult.html | 6 +- .../starknet_stub/fn.big4int_to_u256.html | 2 +- .../starknet_stub/fn.decode_felts_as_str.html | 2 +- .../starknet_stub/fn.encode_str_as_felts.html | 2 +- .../starknet_stub/fn.u256_to_biguint.html | 2 +- cairo_native/starknet_stub/index.html | 2 +- .../starknet_stub/struct.ContractLogs.html | 316 +++++++------- .../starknet_stub/struct.StubEvent.html | 316 +++++++------- .../struct.StubSyscallHandler.html | 408 +++++++++--------- .../utils/constant.SHARED_LIBRARY_EXT.html | 2 +- cairo_native/utils/fn.cairo_to_sierra.html | 2 +- cairo_native/utils/fn.create_engine.html | 2 +- cairo_native/utils/fn.debug_with.html | 4 +- .../utils/fn.decode_error_message.html | 2 +- cairo_native/utils/fn.felt252_bigint.html | 2 +- cairo_native/utils/fn.felt252_short_str.html | 2 +- cairo_native/utils/fn.felt252_str.html | 2 +- cairo_native/utils/fn.find_entry_point.html | 6 +- .../utils/fn.find_entry_point_by_idx.html | 6 +- cairo_native/utils/fn.find_function_id.html | 6 +- .../utils/fn.generate_function_name.html | 6 +- cairo_native/utils/fn.get_integer_layout.html | 2 +- cairo_native/utils/fn.layout_repeat.html | 8 +- cairo_native/utils/fn.padding_needed_for.html | 2 +- .../utils/fn.register_runtime_symbols.html | 2 +- cairo_native/utils/fn.run_pass_manager.html | 4 +- cairo_native/utils/index.html | 2 +- .../utils/mem_tracing/fn.report_stats.html | 2 +- cairo_native/utils/mem_tracing/index.html | 2 +- cairo_native/utils/static.HALF_PRIME.html | 2 +- cairo_native/utils/static.PRIME.html | 2 +- cairo_native/utils/struct.BuiltinCosts.html | 330 +++++++------- cairo_native/utils/struct.LayoutError.html | 328 +++++++------- cairo_native_compile/all.html | 2 +- cairo_native_compile/enum.RunMode.html | 312 +++++++------- cairo_native_compile/fn.main.html | 2 +- cairo_native_compile/index.html | 2 +- cairo_native_compile/struct.Args.html | 358 +++++++-------- cairo_native_dump/all.html | 2 +- cairo_native_dump/enum.CompilerOutput.html | 314 +++++++------- cairo_native_dump/fn.load_program.html | 8 +- cairo_native_dump/fn.main.html | 2 +- cairo_native_dump/fn.parse_input.html | 2 +- cairo_native_dump/fn.parse_output.html | 2 +- cairo_native_dump/index.html | 2 +- cairo_native_dump/struct.CmdLine.html | 342 +++++++-------- cairo_native_run/all.html | 2 +- cairo_native_run/enum.RunMode.html | 312 +++++++------- cairo_native_run/fn.main.html | 2 +- cairo_native_run/index.html | 2 +- cairo_native_run/struct.Args.html | 350 +++++++-------- cairo_native_run/utils/enum.RunMode.html | 312 +++++++------- cairo_native_run/utils/fn.find_function.html | 4 +- .../utils/fn.format_for_panic.html | 2 +- .../utils/fn.jitvalue_to_felt.html | 2 +- .../utils/fn.result_to_runresult.html | 2 +- cairo_native_run/utils/index.html | 2 +- cairo_native_run/utils/struct.RunArgs.html | 308 ++++++------- .../utils/test/enum.TestStatus.html | 306 ++++++------- .../utils/test/fn.display_tests_summary.html | 2 +- .../utils/test/fn.filter_test_cases.html | 10 +- .../utils/test/fn.find_testable_targets.html | 2 +- cairo_native_run/utils/test/fn.run_tests.html | 6 +- cairo_native_run/utils/test/index.html | 2 +- .../utils/test/struct.TestResult.html | 310 ++++++------- .../utils/test/struct.TestsSummary.html | 314 +++++++------- cairo_native_runtime/all.html | 2 +- .../constant.BYTES_IN_WORD.html | 2 +- .../constant.BYTE_ARRAY_MAGIC.html | 2 +- .../fn.as_cairo_short_string.html | 2 +- .../fn.as_cairo_short_string_ex.html | 2 +- .../fn.cairo_native__dict_drop.html | 6 +- .../fn.cairo_native__dict_dup.html | 8 +- .../fn.cairo_native__dict_gas_refund.html | 6 +- .../fn.cairo_native__dict_get.html | 6 +- .../fn.cairo_native__dict_new.html | 6 +- .../fn.cairo_native__get_costs_builtin.html | 4 +- ...n.cairo_native__libfunc__debug__print.html | 10 +- ...tive__libfunc__ec__ec_point_from_x_nz.html | 6 +- ...ive__libfunc__ec__ec_point_try_new_nz.html | 6 +- ...iro_native__libfunc__ec__ec_state_add.html | 6 +- ...native__libfunc__ec__ec_state_add_mul.html | 8 +- ...ro_native__libfunc__ec__ec_state_init.html | 4 +- ...libfunc__ec__ec_state_try_finalize_nz.html | 8 +- ...ro_native__libfunc__hades_permutation.html | 8 +- .../fn.cairo_native__libfunc__pedersen.html | 8 +- .../fn.cairo_native__set_costs_builtin.html | 6 +- cairo_native_runtime/fn.format_next_item.html | 4 +- cairo_native_runtime/index.html | 2 +- .../struct.DICT_GAS_REFUND_PER_ACCESS.html | 30 +- cairo_native_runtime/struct.FeltDict.html | 38 +- .../struct.FormattedItem.html | 36 +- cairo_native_runtime/struct.HALF_PRIME.html | 60 +-- cairo_native_stress/all.html | 2 +- .../constant.AOT_CACHE_DIR.html | 2 +- .../constant.UNIQUE_CONTRACT_VALUE.html | 2 +- .../fn.directory_get_size.html | 2 +- .../fn.directory_is_empty.html | 2 +- .../fn.generate_starknet_contract.html | 4 +- cairo_native_stress/fn.main.html | 2 +- .../fn.modify_starknet_contract.html | 6 +- .../fn.set_global_subscriber.html | 2 +- cairo_native_stress/index.html | 6 +- cairo_native_stress/static.GLOBAL_ALLOC.html | 2 +- cairo_native_stress/struct.NaiveAotCache.html | 326 +++++++------- .../struct.StressTestCommand.html | 338 +++++++-------- cairo_native_test/all.html | 2 +- cairo_native_test/fn.main.html | 2 +- cairo_native_test/index.html | 2 +- cairo_native_test/struct.Args.html | 362 ++++++++-------- cairo_native_test/utils/enum.RunMode.html | 312 +++++++------- cairo_native_test/utils/fn.find_function.html | 4 +- .../utils/fn.format_for_panic.html | 2 +- .../utils/fn.jitvalue_to_felt.html | 2 +- .../utils/fn.result_to_runresult.html | 2 +- cairo_native_test/utils/index.html | 2 +- cairo_native_test/utils/struct.RunArgs.html | 308 ++++++------- .../utils/test/enum.TestStatus.html | 306 ++++++------- .../utils/test/fn.display_tests_summary.html | 2 +- .../utils/test/fn.filter_test_cases.html | 10 +- .../utils/test/fn.find_testable_targets.html | 2 +- .../utils/test/fn.run_tests.html | 6 +- cairo_native_test/utils/test/index.html | 2 +- .../utils/test/struct.TestResult.html | 310 ++++++------- .../utils/test/struct.TestsSummary.html | 314 +++++++------- help.html | 2 +- scarb_native_dump/all.html | 2 +- scarb_native_dump/fn.main.html | 2 +- scarb_native_dump/index.html | 2 +- scarb_native_dump/utils/enum.RunMode.html | 312 +++++++------- scarb_native_dump/utils/fn.find_function.html | 4 +- .../utils/fn.format_for_panic.html | 2 +- .../utils/fn.jitvalue_to_felt.html | 2 +- .../utils/fn.result_to_runresult.html | 2 +- scarb_native_dump/utils/index.html | 2 +- scarb_native_dump/utils/struct.RunArgs.html | 308 ++++++------- .../utils/test/enum.TestStatus.html | 306 ++++++------- .../utils/test/fn.display_tests_summary.html | 2 +- .../utils/test/fn.filter_test_cases.html | 10 +- .../utils/test/fn.find_testable_targets.html | 2 +- .../utils/test/fn.run_tests.html | 6 +- scarb_native_dump/utils/test/index.html | 2 +- .../utils/test/struct.TestResult.html | 310 ++++++------- .../utils/test/struct.TestsSummary.html | 314 +++++++------- scarb_native_test/all.html | 2 +- scarb_native_test/enum.TestKind.html | 312 +++++++------- .../fn.deserialize_test_compilation.html | 6 +- scarb_native_test/fn.main.html | 2 +- scarb_native_test/index.html | 2 +- scarb_native_test/struct.Args.html | 356 +++++++-------- .../struct.TargetGroupDeduplicator.html | 310 ++++++------- scarb_native_test/utils/enum.RunMode.html | 312 +++++++------- scarb_native_test/utils/fn.find_function.html | 4 +- .../utils/fn.format_for_panic.html | 2 +- .../utils/fn.jitvalue_to_felt.html | 2 +- .../utils/fn.result_to_runresult.html | 2 +- scarb_native_test/utils/index.html | 2 +- scarb_native_test/utils/struct.RunArgs.html | 308 ++++++------- .../utils/test/enum.TestStatus.html | 306 ++++++------- .../utils/test/fn.display_tests_summary.html | 2 +- .../utils/test/fn.filter_test_cases.html | 10 +- .../utils/test/fn.find_testable_targets.html | 2 +- .../utils/test/fn.run_tests.html | 6 +- scarb_native_test/utils/test/index.html | 2 +- .../utils/test/struct.TestResult.html | 310 ++++++------- .../utils/test/struct.TestsSummary.html | 314 +++++++------- settings.html | 2 +- src/cairo_native/arch.rs.html | 8 +- src/cairo_native/arch/x86_64.rs.html | 6 +- src/cairo_native/cache.rs.html | 6 +- src/cairo_native/cache/aot.rs.html | 8 +- src/cairo_native/cache/jit.rs.html | 8 +- src/cairo_native/compiler.rs.html | 6 +- src/cairo_native/context.rs.html | 6 +- src/cairo_native/debug.rs.html | 6 +- src/cairo_native/docs.rs.html | 6 +- src/cairo_native/error.rs.html | 6 +- src/cairo_native/execution_result.rs.html | 6 +- src/cairo_native/executor.rs.html | 6 +- src/cairo_native/executor/aot.rs.html | 6 +- src/cairo_native/executor/contract.rs.html | 6 +- src/cairo_native/executor/jit.rs.html | 10 +- src/cairo_native/ffi.rs.html | 6 +- src/cairo_native/lib.rs.html | 6 +- src/cairo_native/libfuncs.rs.html | 8 +- src/cairo_native/libfuncs/array.rs.html | 6 +- src/cairo_native/libfuncs/bool.rs.html | 6 +- src/cairo_native/libfuncs/bounded_int.rs.html | 6 +- src/cairo_native/libfuncs/box.rs.html | 6 +- src/cairo_native/libfuncs/bytes31.rs.html | 6 +- src/cairo_native/libfuncs/cast.rs.html | 6 +- src/cairo_native/libfuncs/circuit.rs.html | 6 +- src/cairo_native/libfuncs/const.rs.html | 6 +- src/cairo_native/libfuncs/coupon.rs.html | 6 +- src/cairo_native/libfuncs/debug.rs.html | 6 +- src/cairo_native/libfuncs/drop.rs.html | 6 +- src/cairo_native/libfuncs/dup.rs.html | 6 +- src/cairo_native/libfuncs/ec.rs.html | 6 +- src/cairo_native/libfuncs/enum.rs.html | 6 +- src/cairo_native/libfuncs/felt252.rs.html | 6 +- .../libfuncs/felt252_dict.rs.html | 6 +- .../libfuncs/felt252_dict_entry.rs.html | 6 +- .../libfuncs/function_call.rs.html | 8 +- src/cairo_native/libfuncs/gas.rs.html | 6 +- src/cairo_native/libfuncs/int.rs.html | 6 +- src/cairo_native/libfuncs/int_range.rs.html | 6 +- src/cairo_native/libfuncs/mem.rs.html | 6 +- src/cairo_native/libfuncs/nullable.rs.html | 6 +- src/cairo_native/libfuncs/pedersen.rs.html | 6 +- src/cairo_native/libfuncs/poseidon.rs.html | 6 +- src/cairo_native/libfuncs/starknet.rs.html | 6 +- .../libfuncs/starknet/secp256.rs.html | 6 +- .../libfuncs/starknet/testing.rs.html | 6 +- src/cairo_native/libfuncs/struct.rs.html | 6 +- src/cairo_native/libfuncs/uint256.rs.html | 6 +- src/cairo_native/libfuncs/uint512.rs.html | 6 +- src/cairo_native/metadata.rs.html | 6 +- .../metadata/auto_breakpoint.rs.html | 6 +- src/cairo_native/metadata/debug_utils.rs.html | 6 +- .../metadata/drop_overrides.rs.html | 6 +- .../metadata/dup_overrides.rs.html | 6 +- .../metadata/enum_snapshot_variants.rs.html | 6 +- src/cairo_native/metadata/gas.rs.html | 6 +- .../metadata/realloc_bindings.rs.html | 6 +- .../metadata/runtime_bindings.rs.html | 6 +- .../metadata/tail_recursion.rs.html | 6 +- src/cairo_native/module.rs.html | 6 +- src/cairo_native/starknet.rs.html | 6 +- src/cairo_native/starknet_stub.rs.html | 6 +- src/cairo_native/types.rs.html | 10 +- src/cairo_native/types/array.rs.html | 6 +- src/cairo_native/types/bitwise.rs.html | 6 +- src/cairo_native/types/bounded_int.rs.html | 6 +- src/cairo_native/types/box.rs.html | 6 +- src/cairo_native/types/builtin_costs.rs.html | 6 +- src/cairo_native/types/bytes31.rs.html | 6 +- src/cairo_native/types/circuit.rs.html | 6 +- src/cairo_native/types/coupon.rs.html | 6 +- src/cairo_native/types/ec_op.rs.html | 6 +- src/cairo_native/types/ec_point.rs.html | 6 +- src/cairo_native/types/ec_state.rs.html | 6 +- src/cairo_native/types/enum.rs.html | 6 +- src/cairo_native/types/felt252.rs.html | 6 +- src/cairo_native/types/felt252_dict.rs.html | 6 +- .../types/felt252_dict_entry.rs.html | 6 +- src/cairo_native/types/gas_builtin.rs.html | 6 +- src/cairo_native/types/int_range.rs.html | 6 +- src/cairo_native/types/non_zero.rs.html | 6 +- src/cairo_native/types/nullable.rs.html | 6 +- src/cairo_native/types/pedersen.rs.html | 6 +- src/cairo_native/types/poseidon.rs.html | 6 +- src/cairo_native/types/range_check.rs.html | 6 +- src/cairo_native/types/segment_arena.rs.html | 6 +- src/cairo_native/types/snapshot.rs.html | 6 +- .../types/squashed_felt252_dict.rs.html | 6 +- src/cairo_native/types/starknet.rs.html | 6 +- src/cairo_native/types/struct.rs.html | 6 +- src/cairo_native/types/uint128.rs.html | 6 +- .../types/uint128_mul_guarantee.rs.html | 6 +- src/cairo_native/types/uint16.rs.html | 6 +- src/cairo_native/types/uint32.rs.html | 6 +- src/cairo_native/types/uint64.rs.html | 6 +- src/cairo_native/types/uint8.rs.html | 6 +- src/cairo_native/types/uninitialized.rs.html | 6 +- src/cairo_native/utils.rs.html | 6 +- src/cairo_native/utils/block_ext.rs.html | 6 +- src/cairo_native/utils/mem_tracing.rs.html | 6 +- .../utils/program_registry_ext.rs.html | 6 +- src/cairo_native/utils/range_ext.rs.html | 6 +- src/cairo_native/values.rs.html | 6 +- .../cairo-native-compile.rs.html | 6 +- .../cairo-native-dump.rs.html | 6 +- src/cairo_native_run/cairo-native-run.rs.html | 6 +- src/cairo_native_run/utils/mod.rs.html | 6 +- src/cairo_native_run/utils/test.rs.html | 6 +- src/cairo_native_runtime/lib.rs.html | 6 +- src/cairo_native_stress/main.rs.html | 6 +- .../cairo-native-test.rs.html | 6 +- src/cairo_native_test/utils/mod.rs.html | 6 +- src/cairo_native_test/utils/test.rs.html | 6 +- .../scarb-native-dump.rs.html | 6 +- src/scarb_native_dump/utils/mod.rs.html | 6 +- src/scarb_native_dump/utils/test.rs.html | 6 +- .../scarb-native-test.rs.html | 6 +- src/scarb_native_test/utils/mod.rs.html | 6 +- src/scarb_native_test/utils/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/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.From.js | 2 +- 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 | 4 +- trait.impl/core/fmt/trait.Display.js | 2 +- trait.impl/core/hash/trait.Hash.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 | 4 +- .../core/marker/trait.StructuralPartialEq.js | 2 +- trait.impl/core/marker/trait.Sync.js | 4 +- trait.impl/core/marker/trait.Unpin.js | 2 +- trait.impl/core/ops/deref/trait.Deref.js | 2 +- trait.impl/core/ops/drop/trait.Drop.js | 2 +- .../panic/unwind_safe/trait.RefUnwindSafe.js | 2 +- .../panic/unwind_safe/trait.UnwindSafe.js | 2 +- type.impl/core/result/enum.Result.js | 4 +- 408 files changed, 14041 insertions(+), 14081 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/cairo_native/all.html b/cairo_native/all.html index 218f4db05..ccc2fe5e2 100644 --- a/cairo_native/all.html +++ b/cairo_native/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Structs

Enums

Traits

Macros

Functions

Type Aliases

Statics

Constants

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

List of all items

Structs

Enums

Traits

Macros

Functions

Type Aliases

Statics

Constants

\ No newline at end of file diff --git a/cairo_native/cache/aot/index.html b/cairo_native/cache/aot/index.html index 3f4a22364..c48fec71e 100644 --- a/cairo_native/cache/aot/index.html +++ b/cairo_native/cache/aot/index.html @@ -1 +1 @@ -cairo_native::cache::aot - Rust

Module cairo_native::cache::aot

source ·

Structs§

\ No newline at end of file +cairo_native::cache::aot - Rust
cairo_native::cache

Module aot

source

Structs§

\ No newline at end of file diff --git a/cairo_native/cache/aot/struct.AotProgramCache.html b/cairo_native/cache/aot/struct.AotProgramCache.html index dff31cd98..008ccf45a 100644 --- a/cairo_native/cache/aot/struct.AotProgramCache.html +++ b/cairo_native/cache/aot/struct.AotProgramCache.html @@ -1,52 +1,52 @@ -AotProgramCache in cairo_native::cache::aot - Rust

Struct cairo_native::cache::aot::AotProgramCache

source ·
pub struct AotProgramCache<'a, K>
where - K: PartialEq + Eq + Hash,
{ /* private fields */ }

Implementations§

source§

impl<'a, K> AotProgramCache<'a, K>
where - K: PartialEq + Eq + Hash,

source

pub fn new(context: &'a NativeContext) -> Self

source

pub fn get(&self, key: &K) -> Option<Arc<AotNativeExecutor>>

source

pub fn compile_and_insert( +AotProgramCache in cairo_native::cache::aot - Rust
cairo_native::cache::aot

Struct AotProgramCache

source
pub struct AotProgramCache<'a, K>
where + K: PartialEq + Eq + Hash,
{ /* private fields */ }

Implementations§

source§

impl<'a, K> AotProgramCache<'a, K>
where + K: PartialEq + Eq + Hash,

source

pub fn new(context: &'a NativeContext) -> Self

source

pub fn get(&self, key: &K) -> Option<Arc<AotNativeExecutor>>

source

pub fn compile_and_insert( &mut self, key: K, program: &Program, opt_level: OptLevel, -) -> Result<Arc<AotNativeExecutor>>

Trait Implementations§

source§

impl<'a, K> Debug for AotProgramCache<'a, K>
where - K: PartialEq + Eq + Hash,

source§

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

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

impl<'a, K> From<AotProgramCache<'a, K>> for ProgramCache<'a, K>
where - K: PartialEq + Eq + Hash,

source§

fn from(value: AotProgramCache<'a, K>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'a, K> Freeze for AotProgramCache<'a, K>

§

impl<'a, K> RefUnwindSafe for AotProgramCache<'a, K>
where - K: RefUnwindSafe,

§

impl<'a, K> Send for AotProgramCache<'a, K>
where - K: Send,

§

impl<'a, K> Sync for AotProgramCache<'a, K>
where - K: Sync,

§

impl<'a, K> Unpin for AotProgramCache<'a, K>
where - K: Unpin,

§

impl<'a, K> UnwindSafe for AotProgramCache<'a, K>
where - K: 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<T> Conv for T

§

fn conv<T>(self) -> T
where - Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where - Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where - Self: Display,

Causes self to use its Display implementation when +) -> Result<Arc<AotNativeExecutor>>

Trait Implementations§

source§

impl<K> Debug for AotProgramCache<'_, K>
where + K: PartialEq + Eq + Hash,

source§

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

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

impl<'a, K> From<AotProgramCache<'a, K>> for ProgramCache<'a, K>
where + K: PartialEq + Eq + Hash,

source§

fn from(value: AotProgramCache<'a, K>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'a, K> Freeze for AotProgramCache<'a, K>

§

impl<'a, K> RefUnwindSafe for AotProgramCache<'a, K>
where + K: RefUnwindSafe,

§

impl<'a, K> Send for AotProgramCache<'a, K>
where + K: Send,

§

impl<'a, K> Sync for AotProgramCache<'a, K>
where + K: Sync,

§

impl<'a, K> Unpin for AotProgramCache<'a, K>
where + K: Unpin,

§

impl<'a, K> UnwindSafe for AotProgramCache<'a, K>
where + K: 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<T> Conv for T

§

fn conv<T>(self) -> T
where + Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where + Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where + Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where - Self: LowerExp,

Causes self to use its LowerExp implementation when + Self: LowerExp,
Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where - Self: LowerHex,

Causes self to use its LowerHex implementation when + Self: LowerHex,
Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where - Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where - Self: Pointer,

Causes self to use its Pointer implementation when + Self: Octal,
Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where + Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where - Self: UpperExp,

Causes self to use its UpperExp implementation when + Self: UpperExp,
Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where - Self: UpperHex,

Causes self to use its UpperHex implementation when + Self: UpperHex,
Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where - &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ &'a Self: for<'a> IntoIterator,
Formats each item in a sequence. 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> Paint for T
where - T: ?Sized,

§

fn fg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the foreground set to + T: ?Sized,

§

fn fg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the foreground set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -63,121 +63,121 @@

§Example
use yansi::Paint;
 
 painted.white();
-
§

fn primary(&self) -> Painted<&T>

Returns self with the +

§

fn primary(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Primary].

§Example
println!("{}", value.primary());
-
§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the +

§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the fg() set to [Color::Fixed].

§Example
println!("{}", value.fixed(color));
-
§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the +

§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the fg() set to [Color::Rgb].

§Example
println!("{}", value.rgb(r, g, b));
-
§

fn black(&self) -> Painted<&T>

Returns self with the +

§

fn black(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Black].

§Example
println!("{}", value.black());
-
§

fn red(&self) -> Painted<&T>

Returns self with the +

§

fn red(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Red].

§Example
println!("{}", value.red());
-
§

fn green(&self) -> Painted<&T>

Returns self with the +

§

fn green(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Green].

§Example
println!("{}", value.green());
-
§

fn yellow(&self) -> Painted<&T>

Returns self with the +

§

fn yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Yellow].

§Example
println!("{}", value.yellow());
-
§

fn blue(&self) -> Painted<&T>

Returns self with the +

§

fn blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Blue].

§Example
println!("{}", value.blue());
-
§

fn magenta(&self) -> Painted<&T>

Returns self with the +

§

fn magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Magenta].

§Example
println!("{}", value.magenta());
-
§

fn cyan(&self) -> Painted<&T>

Returns self with the +

§

fn cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Cyan].

§Example
println!("{}", value.cyan());
-
§

fn white(&self) -> Painted<&T>

Returns self with the +

§

fn white(&self) -> Painted<&T>

Returns self with the fg() set to [Color::White].

§Example
println!("{}", value.white());
-
§

fn bright_black(&self) -> Painted<&T>

Returns self with the +

§

fn bright_black(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightBlack].

§Example
println!("{}", value.bright_black());
-
§

fn bright_red(&self) -> Painted<&T>

Returns self with the +

§

fn bright_red(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightRed].

§Example
println!("{}", value.bright_red());
-
§

fn bright_green(&self) -> Painted<&T>

Returns self with the +

§

fn bright_green(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightGreen].

§Example
println!("{}", value.bright_green());
-
§

fn bright_yellow(&self) -> Painted<&T>

Returns self with the +

§

fn bright_yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightYellow].

§Example
println!("{}", value.bright_yellow());
-
§

fn bright_blue(&self) -> Painted<&T>

Returns self with the +

§

fn bright_blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightBlue].

§Example
println!("{}", value.bright_blue());
-
§

fn bright_magenta(&self) -> Painted<&T>

Returns self with the +

§

fn bright_magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightMagenta].

§Example
println!("{}", value.bright_magenta());
-
§

fn bright_cyan(&self) -> Painted<&T>

Returns self with the +

§

fn bright_cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightCyan].

§Example
println!("{}", value.bright_cyan());
-
§

fn bright_white(&self) -> Painted<&T>

Returns self with the +

§

fn bright_white(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightWhite].

§Example
println!("{}", value.bright_white());
-
§

fn bg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the background set to +

§

fn bg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the background set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -194,121 +194,121 @@

§Example
use yansi::Paint;
 
 painted.on_red();
-
§

fn on_primary(&self) -> Painted<&T>

Returns self with the +

§

fn on_primary(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Primary].

§Example
println!("{}", value.on_primary());
-
§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the +

§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the bg() set to [Color::Fixed].

§Example
println!("{}", value.on_fixed(color));
-
§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the +

§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the bg() set to [Color::Rgb].

§Example
println!("{}", value.on_rgb(r, g, b));
-
§

fn on_black(&self) -> Painted<&T>

Returns self with the +

§

fn on_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Black].

§Example
println!("{}", value.on_black());
-
§

fn on_red(&self) -> Painted<&T>

Returns self with the +

§

fn on_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Red].

§Example
println!("{}", value.on_red());
-
§

fn on_green(&self) -> Painted<&T>

Returns self with the +

§

fn on_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Green].

§Example
println!("{}", value.on_green());
-
§

fn on_yellow(&self) -> Painted<&T>

Returns self with the +

§

fn on_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Yellow].

§Example
println!("{}", value.on_yellow());
-
§

fn on_blue(&self) -> Painted<&T>

Returns self with the +

§

fn on_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Blue].

§Example
println!("{}", value.on_blue());
-
§

fn on_magenta(&self) -> Painted<&T>

Returns self with the +

§

fn on_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Magenta].

§Example
println!("{}", value.on_magenta());
-
§

fn on_cyan(&self) -> Painted<&T>

Returns self with the +

§

fn on_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Cyan].

§Example
println!("{}", value.on_cyan());
-
§

fn on_white(&self) -> Painted<&T>

Returns self with the +

§

fn on_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color::White].

§Example
println!("{}", value.on_white());
-
§

fn on_bright_black(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightBlack].

§Example
println!("{}", value.on_bright_black());
-
§

fn on_bright_red(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightRed].

§Example
println!("{}", value.on_bright_red());
-
§

fn on_bright_green(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightGreen].

§Example
println!("{}", value.on_bright_green());
-
§

fn on_bright_yellow(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightYellow].

§Example
println!("{}", value.on_bright_yellow());
-
§

fn on_bright_blue(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightBlue].

§Example
println!("{}", value.on_bright_blue());
-
§

fn on_bright_magenta(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightMagenta].

§Example
println!("{}", value.on_bright_magenta());
-
§

fn on_bright_cyan(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightCyan].

§Example
println!("{}", value.on_bright_cyan());
-
§

fn on_bright_white(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightWhite].

§Example
println!("{}", value.on_bright_white());
-
§

fn attr(&self, value: Attribute) -> Painted<&T>

Enables the styling [Attribute] value.

+
§

fn attr(&self, value: Attribute) -> Painted<&T>

Enables the styling [Attribute] value.

This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -324,61 +324,61 @@

§Example
use yansi::Paint;
 
 painted.bold();
-
§

fn bold(&self) -> Painted<&T>

Returns self with the +

§

fn bold(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Bold].

§Example
println!("{}", value.bold());
-
§

fn dim(&self) -> Painted<&T>

Returns self with the +

§

fn dim(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Dim].

§Example
println!("{}", value.dim());
-
§

fn italic(&self) -> Painted<&T>

Returns self with the +

§

fn italic(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Italic].

§Example
println!("{}", value.italic());
-
§

fn underline(&self) -> Painted<&T>

Returns self with the +

§

fn underline(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Underline].

§Example
println!("{}", value.underline());
-

Returns self with the +

Returns self with the attr() set to [Attribute::Blink].

§Example
println!("{}", value.blink());
-

Returns self with the +

Returns self with the attr() set to [Attribute::RapidBlink].

§Example
println!("{}", value.rapid_blink());
-
§

fn invert(&self) -> Painted<&T>

Returns self with the +

§

fn invert(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Invert].

§Example
println!("{}", value.invert());
-
§

fn conceal(&self) -> Painted<&T>

Returns self with the +

§

fn conceal(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Conceal].

§Example
println!("{}", value.conceal());
-
§

fn strike(&self) -> Painted<&T>

Returns self with the +

§

fn strike(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Strike].

§Example
println!("{}", value.strike());
-
§

fn quirk(&self, value: Quirk) -> Painted<&T>

Enables the yansi [Quirk] value.

+
§

fn quirk(&self, value: Quirk) -> Painted<&T>

Enables the yansi [Quirk] value.

This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -394,50 +394,50 @@

§Example
use yansi::Paint;
 
 painted.wrap();
-
§

fn mask(&self) -> Painted<&T>

Returns self with the +

§

fn mask(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Mask].

§Example
println!("{}", value.mask());
-
§

fn wrap(&self) -> Painted<&T>

Returns self with the +

§

fn wrap(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Wrap].

§Example
println!("{}", value.wrap());
-
§

fn linger(&self) -> Painted<&T>

Returns self with the +

§

fn linger(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Linger].

§Example
println!("{}", value.linger());
-
§

fn clear(&self) -> Painted<&T>

👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
§

fn clear(&self) -> Painted<&T>

👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

Returns self with the quirk() set to [Quirk::Clear].

§Example
println!("{}", value.clear());
-
§

fn resetting(&self) -> Painted<&T>

Returns self with the +

§

fn resetting(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Resetting].

§Example
println!("{}", value.resetting());
-
§

fn bright(&self) -> Painted<&T>

Returns self with the +

§

fn bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Bright].

§Example
println!("{}", value.bright());
-
§

fn on_bright(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::OnBright].

§Example
println!("{}", value.on_bright());
-
§

fn whenever(&self, value: Condition) -> Painted<&T>

Conditionally enable styling based on whether the [Condition] value +

§

fn whenever(&self, value: Condition) -> Painted<&T>

Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

See the crate level docs for more details.

§Example
@@ -447,98 +447,98 @@
§Example
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
§

fn new(self) -> Painted<Self>
where - Self: Sized,

Create a new [Painted] with a default [Style]. Read more
§

fn paint<S>(&self, style: S) -> Painted<&Self>
where - S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
§

impl<T> Pipe for T
where - T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where - Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where - R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where - R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

Create a new [Painted] with a default [Style]. Read more
§

fn paint<S>(&self, style: S) -> Painted<&Self>
where + S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
§

impl<T> Pipe for T
where + T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where + Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where + R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where + R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe -function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe -function.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

§

fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
where - TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
where +function.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

§

fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
where + TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
where TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

§

fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
where +) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
where TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
where TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where - Self: Borrow<B>, - B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where - Self: BorrowMut<B>, - B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where - Self: AsRef<R>, - R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where - Self: AsMut<R>, - R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where - Self: Deref<Target = T>, - T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release -builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where - Self: Borrow<B>, - B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release -builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where - Self: BorrowMut<B>, - B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where - Self: AsRef<R>, - R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release -builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where - Self: AsMut<R>, - R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where - Self: Deref<Target = T>, - T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release -builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where - Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

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

source§

type Error = Infallible

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

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

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.
§

impl<T> Upcast<T> for T
where - T: ?Sized,

§

fn upcast(&self) -> &T

§

impl<T> UpcastMut<T> for T
where - T: ?Sized,

§

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

§

impl<V, T> VZip<V> for T
where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where + Self: Borrow<B>, + B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where + Self: BorrowMut<B>, + B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where + Self: AsRef<R>, + R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where + Self: AsMut<R>, + R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where + Self: Deref<Target = T>, + T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release +builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where + Self: Borrow<B>, + B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release +builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where + Self: BorrowMut<B>, + B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where + Self: AsRef<R>, + R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release +builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where + Self: AsMut<R>, + R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where + Self: Deref<Target = T>, + T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release +builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where + Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

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

source§

type Error = Infallible

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

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

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.
§

impl<T> Upcast<T> for T
where + T: ?Sized,

§

fn upcast(&self) -> &T

§

impl<T> UpcastMut<T> for T
where + T: ?Sized,

§

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

§

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/cairo_native/cache/enum.ProgramCache.html b/cairo_native/cache/enum.ProgramCache.html index 8d70f3450..b5d6ad115 100644 --- a/cairo_native/cache/enum.ProgramCache.html +++ b/cairo_native/cache/enum.ProgramCache.html @@ -1,50 +1,50 @@ -ProgramCache in cairo_native::cache - Rust

Enum cairo_native::cache::ProgramCache

source ·
pub enum ProgramCache<'a, K>
where - K: PartialEq + Eq + Hash,
{ +ProgramCache in cairo_native::cache - Rust
cairo_native::cache

Enum ProgramCache

source
pub enum ProgramCache<'a, K>
where + K: PartialEq + Eq + Hash,
{ Aot(AotProgramCache<'a, K>), Jit(JitProgramCache<'a, K>), -}

Variants§

§

Aot(AotProgramCache<'a, K>)

§

Jit(JitProgramCache<'a, K>)

Trait Implementations§

source§

impl<'a, K> Debug for ProgramCache<'a, K>
where - K: PartialEq + Eq + Hash + Debug,

source§

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

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

impl<'a, K> From<AotProgramCache<'a, K>> for ProgramCache<'a, K>
where - K: PartialEq + Eq + Hash,

source§

fn from(value: AotProgramCache<'a, K>) -> Self

Converts to this type from the input type.
source§

impl<'a, K> From<JitProgramCache<'a, K>> for ProgramCache<'a, K>
where - K: PartialEq + Eq + Hash,

source§

fn from(value: JitProgramCache<'a, K>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'a, K> Freeze for ProgramCache<'a, K>

§

impl<'a, K> RefUnwindSafe for ProgramCache<'a, K>
where - K: RefUnwindSafe,

§

impl<'a, K> Send for ProgramCache<'a, K>
where - K: Send,

§

impl<'a, K> Sync for ProgramCache<'a, K>
where - K: Sync,

§

impl<'a, K> Unpin for ProgramCache<'a, K>
where - K: Unpin,

§

impl<'a, K> UnwindSafe for ProgramCache<'a, K>
where - K: 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<T> Conv for T

§

fn conv<T>(self) -> T
where - Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where - Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where - Self: Display,

Causes self to use its Display implementation when +}

Variants§

§

Aot(AotProgramCache<'a, K>)

§

Jit(JitProgramCache<'a, K>)

Trait Implementations§

source§

impl<'a, K> Debug for ProgramCache<'a, K>
where + K: PartialEq + Eq + Hash + Debug,

source§

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

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

impl<'a, K> From<AotProgramCache<'a, K>> for ProgramCache<'a, K>
where + K: PartialEq + Eq + Hash,

source§

fn from(value: AotProgramCache<'a, K>) -> Self

Converts to this type from the input type.
source§

impl<'a, K> From<JitProgramCache<'a, K>> for ProgramCache<'a, K>
where + K: PartialEq + Eq + Hash,

source§

fn from(value: JitProgramCache<'a, K>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'a, K> Freeze for ProgramCache<'a, K>

§

impl<'a, K> RefUnwindSafe for ProgramCache<'a, K>
where + K: RefUnwindSafe,

§

impl<'a, K> Send for ProgramCache<'a, K>
where + K: Send,

§

impl<'a, K> Sync for ProgramCache<'a, K>
where + K: Sync,

§

impl<'a, K> Unpin for ProgramCache<'a, K>
where + K: Unpin,

§

impl<'a, K> UnwindSafe for ProgramCache<'a, K>
where + K: 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<T> Conv for T

§

fn conv<T>(self) -> T
where + Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where + Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where + Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where - Self: LowerExp,

Causes self to use its LowerExp implementation when + Self: LowerExp,
Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where - Self: LowerHex,

Causes self to use its LowerHex implementation when + Self: LowerHex,
Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where - Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where - Self: Pointer,

Causes self to use its Pointer implementation when + Self: Octal,
Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where + Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where - Self: UpperExp,

Causes self to use its UpperExp implementation when + Self: UpperExp,
Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where - Self: UpperHex,

Causes self to use its UpperHex implementation when + Self: UpperHex,
Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where - &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ &'a Self: for<'a> IntoIterator,
Formats each item in a sequence. 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> Paint for T
where - T: ?Sized,

§

fn fg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the foreground set to + T: ?Sized,

§

fn fg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the foreground set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -61,121 +61,121 @@

§Example
use yansi::Paint;
 
 painted.white();
-
§

fn primary(&self) -> Painted<&T>

Returns self with the +

§

fn primary(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Primary].

§Example
println!("{}", value.primary());
-
§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the +

§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the fg() set to [Color::Fixed].

§Example
println!("{}", value.fixed(color));
-
§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the +

§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the fg() set to [Color::Rgb].

§Example
println!("{}", value.rgb(r, g, b));
-
§

fn black(&self) -> Painted<&T>

Returns self with the +

§

fn black(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Black].

§Example
println!("{}", value.black());
-
§

fn red(&self) -> Painted<&T>

Returns self with the +

§

fn red(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Red].

§Example
println!("{}", value.red());
-
§

fn green(&self) -> Painted<&T>

Returns self with the +

§

fn green(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Green].

§Example
println!("{}", value.green());
-
§

fn yellow(&self) -> Painted<&T>

Returns self with the +

§

fn yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Yellow].

§Example
println!("{}", value.yellow());
-
§

fn blue(&self) -> Painted<&T>

Returns self with the +

§

fn blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Blue].

§Example
println!("{}", value.blue());
-
§

fn magenta(&self) -> Painted<&T>

Returns self with the +

§

fn magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Magenta].

§Example
println!("{}", value.magenta());
-
§

fn cyan(&self) -> Painted<&T>

Returns self with the +

§

fn cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Cyan].

§Example
println!("{}", value.cyan());
-
§

fn white(&self) -> Painted<&T>

Returns self with the +

§

fn white(&self) -> Painted<&T>

Returns self with the fg() set to [Color::White].

§Example
println!("{}", value.white());
-
§

fn bright_black(&self) -> Painted<&T>

Returns self with the +

§

fn bright_black(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightBlack].

§Example
println!("{}", value.bright_black());
-
§

fn bright_red(&self) -> Painted<&T>

Returns self with the +

§

fn bright_red(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightRed].

§Example
println!("{}", value.bright_red());
-
§

fn bright_green(&self) -> Painted<&T>

Returns self with the +

§

fn bright_green(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightGreen].

§Example
println!("{}", value.bright_green());
-
§

fn bright_yellow(&self) -> Painted<&T>

Returns self with the +

§

fn bright_yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightYellow].

§Example
println!("{}", value.bright_yellow());
-
§

fn bright_blue(&self) -> Painted<&T>

Returns self with the +

§

fn bright_blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightBlue].

§Example
println!("{}", value.bright_blue());
-
§

fn bright_magenta(&self) -> Painted<&T>

Returns self with the +

§

fn bright_magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightMagenta].

§Example
println!("{}", value.bright_magenta());
-
§

fn bright_cyan(&self) -> Painted<&T>

Returns self with the +

§

fn bright_cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightCyan].

§Example
println!("{}", value.bright_cyan());
-
§

fn bright_white(&self) -> Painted<&T>

Returns self with the +

§

fn bright_white(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightWhite].

§Example
println!("{}", value.bright_white());
-
§

fn bg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the background set to +

§

fn bg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the background set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -192,121 +192,121 @@

§Example
use yansi::Paint;
 
 painted.on_red();
-
§

fn on_primary(&self) -> Painted<&T>

Returns self with the +

§

fn on_primary(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Primary].

§Example
println!("{}", value.on_primary());
-
§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the +

§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the bg() set to [Color::Fixed].

§Example
println!("{}", value.on_fixed(color));
-
§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the +

§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the bg() set to [Color::Rgb].

§Example
println!("{}", value.on_rgb(r, g, b));
-
§

fn on_black(&self) -> Painted<&T>

Returns self with the +

§

fn on_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Black].

§Example
println!("{}", value.on_black());
-
§

fn on_red(&self) -> Painted<&T>

Returns self with the +

§

fn on_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Red].

§Example
println!("{}", value.on_red());
-
§

fn on_green(&self) -> Painted<&T>

Returns self with the +

§

fn on_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Green].

§Example
println!("{}", value.on_green());
-
§

fn on_yellow(&self) -> Painted<&T>

Returns self with the +

§

fn on_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Yellow].

§Example
println!("{}", value.on_yellow());
-
§

fn on_blue(&self) -> Painted<&T>

Returns self with the +

§

fn on_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Blue].

§Example
println!("{}", value.on_blue());
-
§

fn on_magenta(&self) -> Painted<&T>

Returns self with the +

§

fn on_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Magenta].

§Example
println!("{}", value.on_magenta());
-
§

fn on_cyan(&self) -> Painted<&T>

Returns self with the +

§

fn on_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Cyan].

§Example
println!("{}", value.on_cyan());
-
§

fn on_white(&self) -> Painted<&T>

Returns self with the +

§

fn on_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color::White].

§Example
println!("{}", value.on_white());
-
§

fn on_bright_black(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightBlack].

§Example
println!("{}", value.on_bright_black());
-
§

fn on_bright_red(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightRed].

§Example
println!("{}", value.on_bright_red());
-
§

fn on_bright_green(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightGreen].

§Example
println!("{}", value.on_bright_green());
-
§

fn on_bright_yellow(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightYellow].

§Example
println!("{}", value.on_bright_yellow());
-
§

fn on_bright_blue(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightBlue].

§Example
println!("{}", value.on_bright_blue());
-
§

fn on_bright_magenta(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightMagenta].

§Example
println!("{}", value.on_bright_magenta());
-
§

fn on_bright_cyan(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightCyan].

§Example
println!("{}", value.on_bright_cyan());
-
§

fn on_bright_white(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightWhite].

§Example
println!("{}", value.on_bright_white());
-
§

fn attr(&self, value: Attribute) -> Painted<&T>

Enables the styling [Attribute] value.

+
§

fn attr(&self, value: Attribute) -> Painted<&T>

Enables the styling [Attribute] value.

This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -322,61 +322,61 @@

§Example
use yansi::Paint;
 
 painted.bold();
-
§

fn bold(&self) -> Painted<&T>

Returns self with the +

§

fn bold(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Bold].

§Example
println!("{}", value.bold());
-
§

fn dim(&self) -> Painted<&T>

Returns self with the +

§

fn dim(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Dim].

§Example
println!("{}", value.dim());
-
§

fn italic(&self) -> Painted<&T>

Returns self with the +

§

fn italic(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Italic].

§Example
println!("{}", value.italic());
-
§

fn underline(&self) -> Painted<&T>

Returns self with the +

§

fn underline(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Underline].

§Example
println!("{}", value.underline());
-

Returns self with the +

Returns self with the attr() set to [Attribute::Blink].

§Example
println!("{}", value.blink());
-

Returns self with the +

Returns self with the attr() set to [Attribute::RapidBlink].

§Example
println!("{}", value.rapid_blink());
-
§

fn invert(&self) -> Painted<&T>

Returns self with the +

§

fn invert(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Invert].

§Example
println!("{}", value.invert());
-
§

fn conceal(&self) -> Painted<&T>

Returns self with the +

§

fn conceal(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Conceal].

§Example
println!("{}", value.conceal());
-
§

fn strike(&self) -> Painted<&T>

Returns self with the +

§

fn strike(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Strike].

§Example
println!("{}", value.strike());
-
§

fn quirk(&self, value: Quirk) -> Painted<&T>

Enables the yansi [Quirk] value.

+
§

fn quirk(&self, value: Quirk) -> Painted<&T>

Enables the yansi [Quirk] value.

This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -392,50 +392,50 @@

§Example
use yansi::Paint;
 
 painted.wrap();
-
§

fn mask(&self) -> Painted<&T>

Returns self with the +

§

fn mask(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Mask].

§Example
println!("{}", value.mask());
-
§

fn wrap(&self) -> Painted<&T>

Returns self with the +

§

fn wrap(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Wrap].

§Example
println!("{}", value.wrap());
-
§

fn linger(&self) -> Painted<&T>

Returns self with the +

§

fn linger(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Linger].

§Example
println!("{}", value.linger());
-
§

fn clear(&self) -> Painted<&T>

👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
§

fn clear(&self) -> Painted<&T>

👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

Returns self with the quirk() set to [Quirk::Clear].

§Example
println!("{}", value.clear());
-
§

fn resetting(&self) -> Painted<&T>

Returns self with the +

§

fn resetting(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Resetting].

§Example
println!("{}", value.resetting());
-
§

fn bright(&self) -> Painted<&T>

Returns self with the +

§

fn bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Bright].

§Example
println!("{}", value.bright());
-
§

fn on_bright(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::OnBright].

§Example
println!("{}", value.on_bright());
-
§

fn whenever(&self, value: Condition) -> Painted<&T>

Conditionally enable styling based on whether the [Condition] value +

§

fn whenever(&self, value: Condition) -> Painted<&T>

Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

See the crate level docs for more details.

§Example
@@ -445,98 +445,98 @@
§Example
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
§

fn new(self) -> Painted<Self>
where - Self: Sized,

Create a new [Painted] with a default [Style]. Read more
§

fn paint<S>(&self, style: S) -> Painted<&Self>
where - S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
§

impl<T> Pipe for T
where - T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where - Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where - R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where - R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

Create a new [Painted] with a default [Style]. Read more
§

fn paint<S>(&self, style: S) -> Painted<&Self>
where + S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
§

impl<T> Pipe for T
where + T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where + Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where + R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where + R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe -function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe -function.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

§

fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
where - TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
where +function.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

§

fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
where + TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
where TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

§

fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
where +) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
where TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
where TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where - Self: Borrow<B>, - B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where - Self: BorrowMut<B>, - B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where - Self: AsRef<R>, - R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where - Self: AsMut<R>, - R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where - Self: Deref<Target = T>, - T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release -builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where - Self: Borrow<B>, - B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release -builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where - Self: BorrowMut<B>, - B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where - Self: AsRef<R>, - R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release -builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where - Self: AsMut<R>, - R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where - Self: Deref<Target = T>, - T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release -builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where - Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

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

source§

type Error = Infallible

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

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

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.
§

impl<T> Upcast<T> for T
where - T: ?Sized,

§

fn upcast(&self) -> &T

§

impl<T> UpcastMut<T> for T
where - T: ?Sized,

§

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

§

impl<V, T> VZip<V> for T
where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where + Self: Borrow<B>, + B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where + Self: BorrowMut<B>, + B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where + Self: AsRef<R>, + R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where + Self: AsMut<R>, + R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where + Self: Deref<Target = T>, + T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release +builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where + Self: Borrow<B>, + B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release +builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where + Self: BorrowMut<B>, + B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where + Self: AsRef<R>, + R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release +builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where + Self: AsMut<R>, + R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where + Self: Deref<Target = T>, + T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release +builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where + Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

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

source§

type Error = Infallible

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

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

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.
§

impl<T> Upcast<T> for T
where + T: ?Sized,

§

fn upcast(&self) -> &T

§

impl<T> UpcastMut<T> for T
where + T: ?Sized,

§

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

§

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/cairo_native/cache/index.html b/cairo_native/cache/index.html index 9d0aa4620..12430fb83 100644 --- a/cairo_native/cache/index.html +++ b/cairo_native/cache/index.html @@ -1 +1 @@ -cairo_native::cache - Rust

Module cairo_native::cache

source ·

Re-exports§

Modules§

Enums§

\ No newline at end of file +cairo_native::cache - Rust
cairo_native

Module cache

source

Re-exports§

Modules§

Enums§

\ No newline at end of file diff --git a/cairo_native/cache/jit/index.html b/cairo_native/cache/jit/index.html index 39920b9e9..44c6b3a68 100644 --- a/cairo_native/cache/jit/index.html +++ b/cairo_native/cache/jit/index.html @@ -1 +1 @@ -cairo_native::cache::jit - Rust

Module cairo_native::cache::jit

source ·

Structs§

\ No newline at end of file +cairo_native::cache::jit - Rust
cairo_native::cache

Module jit

source

Structs§

\ No newline at end of file diff --git a/cairo_native/cache/jit/struct.JitProgramCache.html b/cairo_native/cache/jit/struct.JitProgramCache.html index b96a6a3cb..27dac9764 100644 --- a/cairo_native/cache/jit/struct.JitProgramCache.html +++ b/cairo_native/cache/jit/struct.JitProgramCache.html @@ -1,53 +1,53 @@ -JitProgramCache in cairo_native::cache::jit - Rust

Struct cairo_native::cache::jit::JitProgramCache

source ·
pub struct JitProgramCache<'a, K>
where - K: Eq + Hash + PartialEq,
{ /* private fields */ }
Expand description

A Cache for programs with the same context.

+JitProgramCache in cairo_native::cache::jit - Rust
cairo_native::cache::jit

Struct JitProgramCache

source
pub struct JitProgramCache<'a, K>
where + K: Eq + Hash + PartialEq,
{ /* private fields */ }
Expand description

A Cache for programs with the same context.

Implementations§

source§

impl<'a, K> JitProgramCache<'a, K>
where - K: Eq + Hash + PartialEq,

source

pub fn new(context: &'a NativeContext) -> Self

source

pub const fn context(&self) -> &'a NativeContext

source

pub fn get(&self, key: &K) -> Option<Arc<JitNativeExecutor<'a>>>

source

pub fn compile_and_insert( + K: Eq + Hash + PartialEq,

source

pub fn new(context: &'a NativeContext) -> Self

source

pub const fn context(&self) -> &'a NativeContext

source

pub fn get(&self, key: &K) -> Option<Arc<JitNativeExecutor<'a>>>

source

pub fn compile_and_insert( &mut self, key: K, program: &Program, opt_level: OptLevel, -) -> Result<Arc<JitNativeExecutor<'a>>>

Trait Implementations§

source§

impl<'a, K> Debug for JitProgramCache<'a, K>
where - K: Eq + Hash + PartialEq,

source§

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

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

impl<'a, K> From<JitProgramCache<'a, K>> for ProgramCache<'a, K>
where - K: PartialEq + Eq + Hash,

source§

fn from(value: JitProgramCache<'a, K>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'a, K> Freeze for JitProgramCache<'a, K>

§

impl<'a, K> RefUnwindSafe for JitProgramCache<'a, K>
where - K: RefUnwindSafe,

§

impl<'a, K> Send for JitProgramCache<'a, K>
where - K: Send,

§

impl<'a, K> Sync for JitProgramCache<'a, K>
where - K: Sync,

§

impl<'a, K> Unpin for JitProgramCache<'a, K>
where - K: Unpin,

§

impl<'a, K> UnwindSafe for JitProgramCache<'a, K>
where - K: 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<T> Conv for T

§

fn conv<T>(self) -> T
where - Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where - Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where - Self: Display,

Causes self to use its Display implementation when +) -> Result<Arc<JitNativeExecutor<'a>>>

Trait Implementations§

source§

impl<K> Debug for JitProgramCache<'_, K>
where + K: Eq + Hash + PartialEq,

source§

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

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

impl<'a, K> From<JitProgramCache<'a, K>> for ProgramCache<'a, K>
where + K: PartialEq + Eq + Hash,

source§

fn from(value: JitProgramCache<'a, K>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'a, K> Freeze for JitProgramCache<'a, K>

§

impl<'a, K> RefUnwindSafe for JitProgramCache<'a, K>
where + K: RefUnwindSafe,

§

impl<'a, K> Send for JitProgramCache<'a, K>
where + K: Send,

§

impl<'a, K> Sync for JitProgramCache<'a, K>
where + K: Sync,

§

impl<'a, K> Unpin for JitProgramCache<'a, K>
where + K: Unpin,

§

impl<'a, K> UnwindSafe for JitProgramCache<'a, K>
where + K: 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<T> Conv for T

§

fn conv<T>(self) -> T
where + Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where + Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where + Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where - Self: LowerExp,

Causes self to use its LowerExp implementation when + Self: LowerExp,
Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where - Self: LowerHex,

Causes self to use its LowerHex implementation when + Self: LowerHex,
Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where - Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where - Self: Pointer,

Causes self to use its Pointer implementation when + Self: Octal,
Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where + Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where - Self: UpperExp,

Causes self to use its UpperExp implementation when + Self: UpperExp,
Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where - Self: UpperHex,

Causes self to use its UpperHex implementation when + Self: UpperHex,
Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where - &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ &'a Self: for<'a> IntoIterator,
Formats each item in a sequence. 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> Paint for T
where - T: ?Sized,

§

fn fg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the foreground set to + T: ?Sized,

§

fn fg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the foreground set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -64,121 +64,121 @@

§Example
use yansi::Paint;
 
 painted.white();
-
§

fn primary(&self) -> Painted<&T>

Returns self with the +

§

fn primary(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Primary].

§Example
println!("{}", value.primary());
-
§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the +

§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the fg() set to [Color::Fixed].

§Example
println!("{}", value.fixed(color));
-
§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the +

§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the fg() set to [Color::Rgb].

§Example
println!("{}", value.rgb(r, g, b));
-
§

fn black(&self) -> Painted<&T>

Returns self with the +

§

fn black(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Black].

§Example
println!("{}", value.black());
-
§

fn red(&self) -> Painted<&T>

Returns self with the +

§

fn red(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Red].

§Example
println!("{}", value.red());
-
§

fn green(&self) -> Painted<&T>

Returns self with the +

§

fn green(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Green].

§Example
println!("{}", value.green());
-
§

fn yellow(&self) -> Painted<&T>

Returns self with the +

§

fn yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Yellow].

§Example
println!("{}", value.yellow());
-
§

fn blue(&self) -> Painted<&T>

Returns self with the +

§

fn blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Blue].

§Example
println!("{}", value.blue());
-
§

fn magenta(&self) -> Painted<&T>

Returns self with the +

§

fn magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Magenta].

§Example
println!("{}", value.magenta());
-
§

fn cyan(&self) -> Painted<&T>

Returns self with the +

§

fn cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Cyan].

§Example
println!("{}", value.cyan());
-
§

fn white(&self) -> Painted<&T>

Returns self with the +

§

fn white(&self) -> Painted<&T>

Returns self with the fg() set to [Color::White].

§Example
println!("{}", value.white());
-
§

fn bright_black(&self) -> Painted<&T>

Returns self with the +

§

fn bright_black(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightBlack].

§Example
println!("{}", value.bright_black());
-
§

fn bright_red(&self) -> Painted<&T>

Returns self with the +

§

fn bright_red(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightRed].

§Example
println!("{}", value.bright_red());
-
§

fn bright_green(&self) -> Painted<&T>

Returns self with the +

§

fn bright_green(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightGreen].

§Example
println!("{}", value.bright_green());
-
§

fn bright_yellow(&self) -> Painted<&T>

Returns self with the +

§

fn bright_yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightYellow].

§Example
println!("{}", value.bright_yellow());
-
§

fn bright_blue(&self) -> Painted<&T>

Returns self with the +

§

fn bright_blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightBlue].

§Example
println!("{}", value.bright_blue());
-
§

fn bright_magenta(&self) -> Painted<&T>

Returns self with the +

§

fn bright_magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightMagenta].

§Example
println!("{}", value.bright_magenta());
-
§

fn bright_cyan(&self) -> Painted<&T>

Returns self with the +

§

fn bright_cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightCyan].

§Example
println!("{}", value.bright_cyan());
-
§

fn bright_white(&self) -> Painted<&T>

Returns self with the +

§

fn bright_white(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightWhite].

§Example
println!("{}", value.bright_white());
-
§

fn bg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the background set to +

§

fn bg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the background set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -195,121 +195,121 @@

§Example
use yansi::Paint;
 
 painted.on_red();
-
§

fn on_primary(&self) -> Painted<&T>

Returns self with the +

§

fn on_primary(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Primary].

§Example
println!("{}", value.on_primary());
-
§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the +

§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the bg() set to [Color::Fixed].

§Example
println!("{}", value.on_fixed(color));
-
§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the +

§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the bg() set to [Color::Rgb].

§Example
println!("{}", value.on_rgb(r, g, b));
-
§

fn on_black(&self) -> Painted<&T>

Returns self with the +

§

fn on_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Black].

§Example
println!("{}", value.on_black());
-
§

fn on_red(&self) -> Painted<&T>

Returns self with the +

§

fn on_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Red].

§Example
println!("{}", value.on_red());
-
§

fn on_green(&self) -> Painted<&T>

Returns self with the +

§

fn on_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Green].

§Example
println!("{}", value.on_green());
-
§

fn on_yellow(&self) -> Painted<&T>

Returns self with the +

§

fn on_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Yellow].

§Example
println!("{}", value.on_yellow());
-
§

fn on_blue(&self) -> Painted<&T>

Returns self with the +

§

fn on_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Blue].

§Example
println!("{}", value.on_blue());
-
§

fn on_magenta(&self) -> Painted<&T>

Returns self with the +

§

fn on_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Magenta].

§Example
println!("{}", value.on_magenta());
-
§

fn on_cyan(&self) -> Painted<&T>

Returns self with the +

§

fn on_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Cyan].

§Example
println!("{}", value.on_cyan());
-
§

fn on_white(&self) -> Painted<&T>

Returns self with the +

§

fn on_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color::White].

§Example
println!("{}", value.on_white());
-
§

fn on_bright_black(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightBlack].

§Example
println!("{}", value.on_bright_black());
-
§

fn on_bright_red(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightRed].

§Example
println!("{}", value.on_bright_red());
-
§

fn on_bright_green(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightGreen].

§Example
println!("{}", value.on_bright_green());
-
§

fn on_bright_yellow(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightYellow].

§Example
println!("{}", value.on_bright_yellow());
-
§

fn on_bright_blue(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightBlue].

§Example
println!("{}", value.on_bright_blue());
-
§

fn on_bright_magenta(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightMagenta].

§Example
println!("{}", value.on_bright_magenta());
-
§

fn on_bright_cyan(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightCyan].

§Example
println!("{}", value.on_bright_cyan());
-
§

fn on_bright_white(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightWhite].

§Example
println!("{}", value.on_bright_white());
-
§

fn attr(&self, value: Attribute) -> Painted<&T>

Enables the styling [Attribute] value.

+
§

fn attr(&self, value: Attribute) -> Painted<&T>

Enables the styling [Attribute] value.

This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -325,61 +325,61 @@

§Example
use yansi::Paint;
 
 painted.bold();
-
§

fn bold(&self) -> Painted<&T>

Returns self with the +

§

fn bold(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Bold].

§Example
println!("{}", value.bold());
-
§

fn dim(&self) -> Painted<&T>

Returns self with the +

§

fn dim(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Dim].

§Example
println!("{}", value.dim());
-
§

fn italic(&self) -> Painted<&T>

Returns self with the +

§

fn italic(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Italic].

§Example
println!("{}", value.italic());
-
§

fn underline(&self) -> Painted<&T>

Returns self with the +

§

fn underline(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Underline].

§Example
println!("{}", value.underline());
-

Returns self with the +

Returns self with the attr() set to [Attribute::Blink].

§Example
println!("{}", value.blink());
-

Returns self with the +

Returns self with the attr() set to [Attribute::RapidBlink].

§Example
println!("{}", value.rapid_blink());
-
§

fn invert(&self) -> Painted<&T>

Returns self with the +

§

fn invert(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Invert].

§Example
println!("{}", value.invert());
-
§

fn conceal(&self) -> Painted<&T>

Returns self with the +

§

fn conceal(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Conceal].

§Example
println!("{}", value.conceal());
-
§

fn strike(&self) -> Painted<&T>

Returns self with the +

§

fn strike(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Strike].

§Example
println!("{}", value.strike());
-
§

fn quirk(&self, value: Quirk) -> Painted<&T>

Enables the yansi [Quirk] value.

+
§

fn quirk(&self, value: Quirk) -> Painted<&T>

Enables the yansi [Quirk] value.

This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -395,50 +395,50 @@

§Example
use yansi::Paint;
 
 painted.wrap();
-
§

fn mask(&self) -> Painted<&T>

Returns self with the +

§

fn mask(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Mask].

§Example
println!("{}", value.mask());
-
§

fn wrap(&self) -> Painted<&T>

Returns self with the +

§

fn wrap(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Wrap].

§Example
println!("{}", value.wrap());
-
§

fn linger(&self) -> Painted<&T>

Returns self with the +

§

fn linger(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Linger].

§Example
println!("{}", value.linger());
-
§

fn clear(&self) -> Painted<&T>

👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
§

fn clear(&self) -> Painted<&T>

👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

Returns self with the quirk() set to [Quirk::Clear].

§Example
println!("{}", value.clear());
-
§

fn resetting(&self) -> Painted<&T>

Returns self with the +

§

fn resetting(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Resetting].

§Example
println!("{}", value.resetting());
-
§

fn bright(&self) -> Painted<&T>

Returns self with the +

§

fn bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Bright].

§Example
println!("{}", value.bright());
-
§

fn on_bright(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::OnBright].

§Example
println!("{}", value.on_bright());
-
§

fn whenever(&self, value: Condition) -> Painted<&T>

Conditionally enable styling based on whether the [Condition] value +

§

fn whenever(&self, value: Condition) -> Painted<&T>

Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

See the crate level docs for more details.

§Example
@@ -448,98 +448,98 @@
§Example
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
§

fn new(self) -> Painted<Self>
where - Self: Sized,

Create a new [Painted] with a default [Style]. Read more
§

fn paint<S>(&self, style: S) -> Painted<&Self>
where - S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
§

impl<T> Pipe for T
where - T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where - Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where - R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where - R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

Create a new [Painted] with a default [Style]. Read more
§

fn paint<S>(&self, style: S) -> Painted<&Self>
where + S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
§

impl<T> Pipe for T
where + T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where + Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where + R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where + R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe -function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe -function.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

§

fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
where - TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
where +function.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

§

fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
where + TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
where TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

§

fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
where +) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
where TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
where TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where - Self: Borrow<B>, - B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where - Self: BorrowMut<B>, - B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where - Self: AsRef<R>, - R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where - Self: AsMut<R>, - R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where - Self: Deref<Target = T>, - T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release -builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where - Self: Borrow<B>, - B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release -builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where - Self: BorrowMut<B>, - B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where - Self: AsRef<R>, - R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release -builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where - Self: AsMut<R>, - R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where - Self: Deref<Target = T>, - T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release -builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where - Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

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

source§

type Error = Infallible

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

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

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.
§

impl<T> Upcast<T> for T
where - T: ?Sized,

§

fn upcast(&self) -> &T

§

impl<T> UpcastMut<T> for T
where - T: ?Sized,

§

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

§

impl<V, T> VZip<V> for T
where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where + Self: Borrow<B>, + B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where + Self: BorrowMut<B>, + B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where + Self: AsRef<R>, + R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where + Self: AsMut<R>, + R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where + Self: Deref<Target = T>, + T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release +builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where + Self: Borrow<B>, + B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release +builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where + Self: BorrowMut<B>, + B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where + Self: AsRef<R>, + R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release +builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where + Self: AsMut<R>, + R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where + Self: Deref<Target = T>, + T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release +builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where + Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

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

source§

type Error = Infallible

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

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

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.
§

impl<T> Upcast<T> for T
where + T: ?Sized,

§

fn upcast(&self) -> &T

§

impl<T> UpcastMut<T> for T
where + T: ?Sized,

§

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

§

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/cairo_native/context/fn.initialize_mlir.html b/cairo_native/context/fn.initialize_mlir.html index abe2538c6..63b4342b9 100644 --- a/cairo_native/context/fn.initialize_mlir.html +++ b/cairo_native/context/fn.initialize_mlir.html @@ -1,2 +1,2 @@ -initialize_mlir in cairo_native::context - Rust

Function cairo_native::context::initialize_mlir

source ·
pub fn initialize_mlir() -> Context
Expand description

Initialize an MLIR context.

+initialize_mlir in cairo_native::context - Rust
cairo_native::context

Function initialize_mlir

source
pub fn initialize_mlir() -> Context
Expand description

Initialize an MLIR context.

\ No newline at end of file diff --git a/cairo_native/context/index.html b/cairo_native/context/index.html index 5f87c10bc..5f9c7d246 100644 --- a/cairo_native/context/index.html +++ b/cairo_native/context/index.html @@ -1 +1 @@ -cairo_native::context - Rust

Module cairo_native::context

source ·

Structs§

  • Context of IRs, dialects and passes for Cairo programs compilation.

Functions§

\ No newline at end of file +cairo_native::context - Rust
cairo_native

Module context

source

Structs§

  • Context of IRs, dialects and passes for Cairo programs compilation.

Functions§

\ No newline at end of file diff --git a/cairo_native/context/struct.NativeContext.html b/cairo_native/context/struct.NativeContext.html index 16f0751ab..75e3e40a7 100644 --- a/cairo_native/context/struct.NativeContext.html +++ b/cairo_native/context/struct.NativeContext.html @@ -1,55 +1,55 @@ -NativeContext in cairo_native::context - Rust

Struct cairo_native::context::NativeContext

source ·
pub struct NativeContext { /* private fields */ }
Expand description

Context of IRs, dialects and passes for Cairo programs compilation.

+NativeContext in cairo_native::context - Rust
cairo_native::context

Struct NativeContext

source
pub struct NativeContext { /* private fields */ }
Expand description

Context of IRs, dialects and passes for Cairo programs compilation.

Implementations§

source§

impl NativeContext

source

pub fn new() -> Self

source

pub const fn context(&self) -> &Context

source

pub fn compile( &self, program: &Program, - ignore_debug_names: bool, - gas_metadata_config: Option<MetadataComputationConfig>, -) -> Result<NativeModule<'_>, Error>

Compiles a sierra program into MLIR and then lowers to LLVM. + ignore_debug_names: bool, + gas_metadata_config: Option<MetadataComputationConfig>, +) -> Result<NativeModule<'_>, Error>

Compiles a sierra program into MLIR and then lowers to LLVM. Returns the corresponding NativeModule struct.

If ignore_debug_names is true then debug names will not be added to function names. Mainly useful for the ContractExecutor.

-

Trait Implementations§

source§

impl Debug for NativeContext

source§

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

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

impl Default for NativeContext

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl PartialEq for NativeContext

source§

fn eq(&self, other: &NativeContext) -> 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 NativeContext

source§

impl Send for NativeContext

source§

impl StructuralPartialEq for NativeContext

source§

impl Sync for NativeContext

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where - T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<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<T> Conv for T

§

fn conv<T>(self) -> T
where - Self: Into<T>,

Converts self into T using Into<T>. Read more
source§

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

source§

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

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
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where - Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where - Self: Display,

Causes self to use its Display implementation when +

Trait Implementations§

source§

impl Debug for NativeContext

source§

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

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

impl Default for NativeContext

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl PartialEq for NativeContext

source§

fn eq(&self, other: &NativeContext) -> 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 NativeContext

source§

impl Send for NativeContext

source§

impl StructuralPartialEq for NativeContext

source§

impl Sync for NativeContext

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<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<T> Conv for T

§

fn conv<T>(self) -> T
where + Self: Into<T>,

Converts self into T using Into<T>. Read more
source§

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

source§

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

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
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where + Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where + Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where - Self: LowerExp,

Causes self to use its LowerExp implementation when + Self: LowerExp,
Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where - Self: LowerHex,

Causes self to use its LowerHex implementation when + Self: LowerHex,
Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where - Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where - Self: Pointer,

Causes self to use its Pointer implementation when + Self: Octal,
Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where + Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where - Self: UpperExp,

Causes self to use its UpperExp implementation when + Self: UpperExp,
Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where - Self: UpperHex,

Causes self to use its UpperHex implementation when + Self: UpperHex,
Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where - &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ &'a Self: for<'a> IntoIterator,
Formats each item in a sequence. 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> Paint for T
where - T: ?Sized,

§

fn fg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the foreground set to + T: ?Sized,

§

fn fg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the foreground set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -66,121 +66,121 @@

§Example
use yansi::Paint;
 
 painted.white();
-
§

fn primary(&self) -> Painted<&T>

Returns self with the +

§

fn primary(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Primary].

§Example
println!("{}", value.primary());
-
§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the +

§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the fg() set to [Color::Fixed].

§Example
println!("{}", value.fixed(color));
-
§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the +

§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the fg() set to [Color::Rgb].

§Example
println!("{}", value.rgb(r, g, b));
-
§

fn black(&self) -> Painted<&T>

Returns self with the +

§

fn black(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Black].

§Example
println!("{}", value.black());
-
§

fn red(&self) -> Painted<&T>

Returns self with the +

§

fn red(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Red].

§Example
println!("{}", value.red());
-
§

fn green(&self) -> Painted<&T>

Returns self with the +

§

fn green(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Green].

§Example
println!("{}", value.green());
-
§

fn yellow(&self) -> Painted<&T>

Returns self with the +

§

fn yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Yellow].

§Example
println!("{}", value.yellow());
-
§

fn blue(&self) -> Painted<&T>

Returns self with the +

§

fn blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Blue].

§Example
println!("{}", value.blue());
-
§

fn magenta(&self) -> Painted<&T>

Returns self with the +

§

fn magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Magenta].

§Example
println!("{}", value.magenta());
-
§

fn cyan(&self) -> Painted<&T>

Returns self with the +

§

fn cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Cyan].

§Example
println!("{}", value.cyan());
-
§

fn white(&self) -> Painted<&T>

Returns self with the +

§

fn white(&self) -> Painted<&T>

Returns self with the fg() set to [Color::White].

§Example
println!("{}", value.white());
-
§

fn bright_black(&self) -> Painted<&T>

Returns self with the +

§

fn bright_black(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightBlack].

§Example
println!("{}", value.bright_black());
-
§

fn bright_red(&self) -> Painted<&T>

Returns self with the +

§

fn bright_red(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightRed].

§Example
println!("{}", value.bright_red());
-
§

fn bright_green(&self) -> Painted<&T>

Returns self with the +

§

fn bright_green(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightGreen].

§Example
println!("{}", value.bright_green());
-
§

fn bright_yellow(&self) -> Painted<&T>

Returns self with the +

§

fn bright_yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightYellow].

§Example
println!("{}", value.bright_yellow());
-
§

fn bright_blue(&self) -> Painted<&T>

Returns self with the +

§

fn bright_blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightBlue].

§Example
println!("{}", value.bright_blue());
-
§

fn bright_magenta(&self) -> Painted<&T>

Returns self with the +

§

fn bright_magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightMagenta].

§Example
println!("{}", value.bright_magenta());
-
§

fn bright_cyan(&self) -> Painted<&T>

Returns self with the +

§

fn bright_cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightCyan].

§Example
println!("{}", value.bright_cyan());
-
§

fn bright_white(&self) -> Painted<&T>

Returns self with the +

§

fn bright_white(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightWhite].

§Example
println!("{}", value.bright_white());
-
§

fn bg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the background set to +

§

fn bg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the background set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -197,121 +197,121 @@

§Example
use yansi::Paint;
 
 painted.on_red();
-
§

fn on_primary(&self) -> Painted<&T>

Returns self with the +

§

fn on_primary(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Primary].

§Example
println!("{}", value.on_primary());
-
§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the +

§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the bg() set to [Color::Fixed].

§Example
println!("{}", value.on_fixed(color));
-
§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the +

§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the bg() set to [Color::Rgb].

§Example
println!("{}", value.on_rgb(r, g, b));
-
§

fn on_black(&self) -> Painted<&T>

Returns self with the +

§

fn on_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Black].

§Example
println!("{}", value.on_black());
-
§

fn on_red(&self) -> Painted<&T>

Returns self with the +

§

fn on_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Red].

§Example
println!("{}", value.on_red());
-
§

fn on_green(&self) -> Painted<&T>

Returns self with the +

§

fn on_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Green].

§Example
println!("{}", value.on_green());
-
§

fn on_yellow(&self) -> Painted<&T>

Returns self with the +

§

fn on_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Yellow].

§Example
println!("{}", value.on_yellow());
-
§

fn on_blue(&self) -> Painted<&T>

Returns self with the +

§

fn on_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Blue].

§Example
println!("{}", value.on_blue());
-
§

fn on_magenta(&self) -> Painted<&T>

Returns self with the +

§

fn on_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Magenta].

§Example
println!("{}", value.on_magenta());
-
§

fn on_cyan(&self) -> Painted<&T>

Returns self with the +

§

fn on_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Cyan].

§Example
println!("{}", value.on_cyan());
-
§

fn on_white(&self) -> Painted<&T>

Returns self with the +

§

fn on_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color::White].

§Example
println!("{}", value.on_white());
-
§

fn on_bright_black(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightBlack].

§Example
println!("{}", value.on_bright_black());
-
§

fn on_bright_red(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightRed].

§Example
println!("{}", value.on_bright_red());
-
§

fn on_bright_green(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightGreen].

§Example
println!("{}", value.on_bright_green());
-
§

fn on_bright_yellow(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightYellow].

§Example
println!("{}", value.on_bright_yellow());
-
§

fn on_bright_blue(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightBlue].

§Example
println!("{}", value.on_bright_blue());
-
§

fn on_bright_magenta(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightMagenta].

§Example
println!("{}", value.on_bright_magenta());
-
§

fn on_bright_cyan(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightCyan].

§Example
println!("{}", value.on_bright_cyan());
-
§

fn on_bright_white(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightWhite].

§Example
println!("{}", value.on_bright_white());
-
§

fn attr(&self, value: Attribute) -> Painted<&T>

Enables the styling [Attribute] value.

+
§

fn attr(&self, value: Attribute) -> Painted<&T>

Enables the styling [Attribute] value.

This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -327,61 +327,61 @@

§Example
use yansi::Paint;
 
 painted.bold();
-
§

fn bold(&self) -> Painted<&T>

Returns self with the +

§

fn bold(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Bold].

§Example
println!("{}", value.bold());
-
§

fn dim(&self) -> Painted<&T>

Returns self with the +

§

fn dim(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Dim].

§Example
println!("{}", value.dim());
-
§

fn italic(&self) -> Painted<&T>

Returns self with the +

§

fn italic(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Italic].

§Example
println!("{}", value.italic());
-
§

fn underline(&self) -> Painted<&T>

Returns self with the +

§

fn underline(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Underline].

§Example
println!("{}", value.underline());
-

Returns self with the +

Returns self with the attr() set to [Attribute::Blink].

§Example
println!("{}", value.blink());
-

Returns self with the +

Returns self with the attr() set to [Attribute::RapidBlink].

§Example
println!("{}", value.rapid_blink());
-
§

fn invert(&self) -> Painted<&T>

Returns self with the +

§

fn invert(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Invert].

§Example
println!("{}", value.invert());
-
§

fn conceal(&self) -> Painted<&T>

Returns self with the +

§

fn conceal(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Conceal].

§Example
println!("{}", value.conceal());
-
§

fn strike(&self) -> Painted<&T>

Returns self with the +

§

fn strike(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Strike].

§Example
println!("{}", value.strike());
-
§

fn quirk(&self, value: Quirk) -> Painted<&T>

Enables the yansi [Quirk] value.

+
§

fn quirk(&self, value: Quirk) -> Painted<&T>

Enables the yansi [Quirk] value.

This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -397,50 +397,50 @@

§Example
use yansi::Paint;
 
 painted.wrap();
-
§

fn mask(&self) -> Painted<&T>

Returns self with the +

§

fn mask(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Mask].

§Example
println!("{}", value.mask());
-
§

fn wrap(&self) -> Painted<&T>

Returns self with the +

§

fn wrap(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Wrap].

§Example
println!("{}", value.wrap());
-
§

fn linger(&self) -> Painted<&T>

Returns self with the +

§

fn linger(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Linger].

§Example
println!("{}", value.linger());
-
§

fn clear(&self) -> Painted<&T>

👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
§

fn clear(&self) -> Painted<&T>

👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

Returns self with the quirk() set to [Quirk::Clear].

§Example
println!("{}", value.clear());
-
§

fn resetting(&self) -> Painted<&T>

Returns self with the +

§

fn resetting(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Resetting].

§Example
println!("{}", value.resetting());
-
§

fn bright(&self) -> Painted<&T>

Returns self with the +

§

fn bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Bright].

§Example
println!("{}", value.bright());
-
§

fn on_bright(&self) -> Painted<&T>

Returns self with the +

§

fn on_bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::OnBright].

§Example
println!("{}", value.on_bright());
-
§

fn whenever(&self, value: Condition) -> Painted<&T>

Conditionally enable styling based on whether the [Condition] value +

§

fn whenever(&self, value: Condition) -> Painted<&T>

Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

See the crate level docs for more details.

§Example
@@ -450,98 +450,98 @@
§Example
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
§

fn new(self) -> Painted<Self>
where - Self: Sized,

Create a new [Painted] with a default [Style]. Read more
§

fn paint<S>(&self, style: S) -> Painted<&Self>
where - S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
§

impl<T> Pipe for T
where - T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where - Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where - R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where - R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

Create a new [Painted] with a default [Style]. Read more
§

fn paint<S>(&self, style: S) -> Painted<&Self>
where + S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
§

impl<T> Pipe for T
where + T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where + Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where + R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where + R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe -function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe -function.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

§

fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
where - TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
where +function.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

§

fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
where + TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
where TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

§

fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
where +) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
where TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
where TRewriter: SemanticRewriter<T, E>,

§

fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where - Self: Borrow<B>, - B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where - Self: BorrowMut<B>, - B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where - Self: AsRef<R>, - R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where - Self: AsMut<R>, - R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where - Self: Deref<Target = T>, - T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release -builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where - Self: Borrow<B>, - B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release -builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where - Self: BorrowMut<B>, - B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where - Self: AsRef<R>, - R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release -builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where - Self: AsMut<R>, - R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where - Self: Deref<Target = T>, - T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release -builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where - Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

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

source§

type Error = Infallible

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

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

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.
§

impl<T> Upcast<T> for T
where - T: ?Sized,

§

fn upcast(&self) -> &T

§

impl<T> UpcastMut<T> for T
where - T: ?Sized,

§

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

§

impl<V, T> VZip<V> for T
where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

§

fn rewrite(&mut self, value: T) -> Result<T, Error>

§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where + Self: Borrow<B>, + B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where + Self: BorrowMut<B>, + B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where + Self: AsRef<R>, + R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where + Self: AsMut<R>, + R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where + Self: Deref<Target = T>, + T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release +builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where + Self: Borrow<B>, + B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release +builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where + Self: BorrowMut<B>, + B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where + Self: AsRef<R>, + R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release +builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where + Self: AsMut<R>, + R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where + Self: Deref<Target = T>, + T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release +builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where + Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

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

source§

type Error = Infallible

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

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

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.
§

impl<T> Upcast<T> for T
where + T: ?Sized,

§

fn upcast(&self) -> &T

§

impl<T> UpcastMut<T> for T
where + T: ?Sized,

§

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

§

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/cairo_native/debug/fn.libfunc_to_name.html b/cairo_native/debug/fn.libfunc_to_name.html index ad96f1c30..38e9aaf17 100644 --- a/cairo_native/debug/fn.libfunc_to_name.html +++ b/cairo_native/debug/fn.libfunc_to_name.html @@ -1 +1 @@ -libfunc_to_name in cairo_native::debug - Rust

Function cairo_native::debug::libfunc_to_name

source ·
pub const fn libfunc_to_name(value: &CoreConcreteLibfunc) -> &'static str
\ No newline at end of file +libfunc_to_name in cairo_native::debug - Rust
cairo_native::debug

Function libfunc_to_name

source
pub const fn libfunc_to_name(value: &CoreConcreteLibfunc) -> &'static str
\ No newline at end of file diff --git a/cairo_native/debug/index.html b/cairo_native/debug/index.html index 9a34f271c..f39a7fad0 100644 --- a/cairo_native/debug/index.html +++ b/cairo_native/debug/index.html @@ -1 +1 @@ -cairo_native::debug - Rust

Module cairo_native::debug

source ·

Functions§

\ No newline at end of file +cairo_native::debug - Rust
cairo_native

Module debug

source

Functions§

\ No newline at end of file diff --git a/cairo_native/docs/index.html b/cairo_native/docs/index.html index 52d577ca0..e96da499a 100644 --- a/cairo_native/docs/index.html +++ b/cairo_native/docs/index.html @@ -1 +1 @@ -cairo_native::docs - Rust

Module cairo_native::docs

source ·
Expand description

§Cairo Native Compiler and Execution Engine

Modules§

\ No newline at end of file +cairo_native::docs - Rust
cairo_native

Module docs

source
Expand description

§Cairo Native Compiler and Execution Engine

Modules§

\ No newline at end of file diff --git a/cairo_native/docs/section01/index.html b/cairo_native/docs/section01/index.html index a14f6b653..096d6115e 100644 --- a/cairo_native/docs/section01/index.html +++ b/cairo_native/docs/section01/index.html @@ -1,4 +1,4 @@ -cairo_native::docs::section01 - Rust

Module cairo_native::docs::section01

source ·
Expand description

§Overview

+cairo_native::docs::section01 - Rust
cairo_native::docs

Module section01

source
Expand description

§Overview

This crate is a compiler and JIT engine that transforms Sierra (or Cairo) sources into MLIR, which can be JIT-executed or further @@ -26,8 +26,7 @@

§Basic make check # Check it passes all tests -make test -

+make test

Then you are free to go and make a PR!

§High level project overview

This will explain how the project is structured, without going into much details @@ -88,8 +87,7 @@

§Proje ├─ starknet_stub.rs ├─ types.rs Cairo to MLIR type information, ├─ utils.rs Internal utilities. - └─ values.rs JIT serialization. -

§Library functions

+ └─ values.rs JIT serialization.

§Library functions

Path: src/libfuncs

Here are stored all the library function implementations in MLIR, this contains the majority of the code.

diff --git a/cairo_native/docs/section02/index.html b/cairo_native/docs/section02/index.html index 416c655c4..4e6493c0b 100644 --- a/cairo_native/docs/section02/index.html +++ b/cairo_native/docs/section02/index.html @@ -1,4 +1,4 @@ -cairo_native::docs::section02 - Rust

Module cairo_native::docs::section02

source ·
Expand description

§Compilation Walkthrough

+cairo_native::docs::section02 - Rust
cairo_native::docs

Module section02

source
Expand description

§Compilation Walkthrough

This section describes the entire process Cairo Native goes through to compile a Cairo program to either a shared library (and how to use it) or a MLIR module for use in the JIT engine.

@@ -51,8 +51,7 @@

§General f } Compile --> passes passes --> Output - Output --> [*] -

§Loading a Cairo Program

+ Output --> [*]

§Loading a Cairo Program

The first step is to get the sierra code from the given cairo program, this is done using the relevant methods from the cairo_lang_compiler crate.

This gives us a cairo_lang_sierra::program::Program which has the following @@ -196,8 +195,7 @@

§Loading the native library and using it

+ E --> |Link the object file| G[Shared Library]

§Loading the native library and using it

To load the library, we use the crate libloading, passing it the path to our shared library.

Then we initialize the AotNativeExecutor with the loaded library and the @@ -226,8 +224,7 @@

§Addendum

§About canonicalization in MLIR:

+ G --> H[Cleanup and deallocate]

§Addendum

§About canonicalization in MLIR:

MLIR has a single canonicalization pass, which iteratively applies the canonicalization patterns of all loaded dialects in a greedy way. Canonicalization is best-effort and not guaranteed to bring the entire IR in diff --git a/cairo_native/docs/section03/index.html b/cairo_native/docs/section03/index.html index 24402159e..54d311982 100644 --- a/cairo_native/docs/section03/index.html +++ b/cairo_native/docs/section03/index.html @@ -1,4 +1,4 @@ -cairo_native::docs::section03 - Rust

Module cairo_native::docs::section03

source ·
Expand description

§Execution Walkthrough

+cairo_native::docs::section03 - Rust
cairo_native::docs

Module section03

source
Expand description

§Execution Walkthrough

Given the following Cairo program:

// This is the cairo program. It just adds two numbers together and returns the
@@ -161,8 +161,7 @@ 

§Contracts

JitValue::Felt252(1), JitValue::Felt252(5555), ] -Builtin stats: BuiltinStats { bitwise: 1, ec_op: 0, range_check: 1, pedersen: 0, poseidon: 0, segment_arena: 0 } -

§The Cairo Native runtime

+Builtin stats: BuiltinStats { bitwise: 1, ec_op: 0, range_check: 1, pedersen: 0, poseidon: 0, segment_arena: 0 }

§The Cairo Native runtime

Sometimes we need to use stuff that would be too complicated or error-prone to implement in MLIR, but that we have readily available from Rust. That’s when we use the runtime library.

When using the JIT it’ll be automatically linked (if compiled with support for it, which is enabled by default). If using the AOT, the CAIRO_NATIVE_RUNTIME_LIBRARY environment variable will have to be modified to point to the libcairo_native_runtime.a file, which is built and placed in said folder by make build.

Although it’s implemented in Rust, its functions use the C ABI and have Rust’s name mangling disabled. This means that to the extern observer it’s technically indistinguishible from a library written in C. By doing this we’re making the functions callable from MLIR.

diff --git a/cairo_native/docs/section04/index.html b/cairo_native/docs/section04/index.html index 3062bac8a..2c1c2c8e8 100644 --- a/cairo_native/docs/section04/index.html +++ b/cairo_native/docs/section04/index.html @@ -1,4 +1,4 @@ -cairo_native::docs::section04 - Rust

Module cairo_native::docs::section04

source ·
Expand description

§Gas and Builtins Accounting

+cairo_native::docs::section04 - Rust
cairo_native::docs

Module section04

source
Expand description

§Gas and Builtins Accounting

This section documents how programs generated by Cairo Native keep track of gas and builtins during execution.

§Gas

§Introduction

@@ -67,8 +67,7 @@

§Example

StatementIdx(26), Poseidon, ): 0, -... -
+...

For statement 26, the cost of the Const token type (a combination of step, memory hole, and range check costs) is 2680, while other costs are 0. Let’s see which libfunc is called at statement 26:

@@ -77,8 +76,7 @@

§Example

withdraw_gas([0], [1]) { fallthrough([4], [5]) 84([6], [7]) }; // 26 branch_align() -> (); // 27 const_as_immediate<Const<u8, 5>>() -> ([8]); // 28 -... -
+...

When the Cairo native compiler reaches statement 26, it combines all costs into gas using the Cairo compiler code. In this example, the total cost is 2680 gas. This value is used in the withdraw_gas libfunc and the compiled @@ -95,8 +93,7 @@

§Example

%32 = llvm.icmp "uge" %28, %13 : i128 loc(#loc13) %33 = llvm.intr.usub.sat(%28, %13) : (i128, i128) -> i128 loc(#loc13) llvm.cond_br %32, ^bb2(%29 : i8), ^bb7(%5, %23, %23, %31 : i252, !llvm.ptr, !llvm.ptr, i64) loc(#loc13) - ... -
+ ...

Here, we see the constant 2680 defined at the begining of the function. In basic block 1, the withdraw_gas operations are performed: by comparing %28 (remaining gas) and %13 (gas cost), the result stored in %32 @@ -163,8 +160,7 @@

§Example

store_temp<Pedersen>([3]) -> ([3]); // 6 return([3]); // 7 -contracts::run_test@0([0]: Pedersen) -> (Pedersen); -
+contracts::run_test@0([0]: Pedersen) -> (Pedersen);

In the compiled Sierra, we can see that the pedersen builtin is passed with the call to the run_test which starts at statement 0. It is then used in the call to the pedersen libfunc. We would expect to see the @@ -186,8 +182,7 @@

§Example

llvm.call @cairo_native__libfunc__pedersen(%5, %3, %4) : (!llvm.ptr, !llvm.ptr, !llvm.ptr) -> () loc(#loc2) llvm.return %6 : i64 loc(#loc3) } loc(#loc1) - ... - + ...

The compiled MLIR function run_test takes a single argument as input, the pedersen counter and returns the incremented counter at the end of the call. The counter is incremented by 1 in the MLIR code, in the statement diff --git a/cairo_native/docs/section05/index.html b/cairo_native/docs/section05/index.html index 11661fa05..08044e5bf 100644 --- a/cairo_native/docs/section05/index.html +++ b/cairo_native/docs/section05/index.html @@ -1,4 +1,4 @@ -cairo_native::docs::section05 - Rust

Module cairo_native::docs::section05

source ·
Expand description

§Implementing Libfuncs

+cairo_native::docs::section05 - Rust
cairo_native::docs

Module section05

source
Expand description

§Implementing Libfuncs

🚧 WIP

§A libfunc implementation.

A libfunc usually works with a type, such as felt252. The compiler diff --git a/cairo_native/docs/section06/index.html b/cairo_native/docs/section06/index.html index e5054298d..c136ea571 100644 --- a/cairo_native/docs/section06/index.html +++ b/cairo_native/docs/section06/index.html @@ -1,4 +1,4 @@ -cairo_native::docs::section06 - Rust

Module cairo_native::docs::section06

source ·
Expand description

§Debugging

§Useful environment variables

+cairo_native::docs::section06 - Rust
cairo_native::docs

Module section06

source
Expand description

§Debugging

§Useful environment variables

These 2 env vars will dump the generated MLIR code from any compilation on the current working directory as:

  • dump.mlir: The MLIR code after passes without locations.
  • @@ -8,14 +8,11 @@

Do note that the MLIR with locations is in pretty form and thus not suitable to pass to mlir-opt.

export NATIVE_DEBUG_DUMP_PREPASS=1
-export NATIVE_DEBUG_DUMP=1
-

§Debugging with LLDB

+export NATIVE_DEBUG_DUMP=1

§Debugging with LLDB

To debug with LLDB (or another debugger), we must compile the binary with the with-debug-utils feature.

-
cargo build --bin cairo-native-run --features with-debug-utils
-
+
cargo build --bin cairo-native-run --features with-debug-utils

Then, we can add the a debugger breakpoint trap. To add it at a given sierra statement, we can set the following env var:

-
export NATIVE_DEBUG_TRAP_AT_STMT=10
-
+
export NATIVE_DEBUG_TRAP_AT_STMT=10

The trap instruction may not end up exactly where the statement is.

If we want to manually set the breakpoint (for example, when executing a particular libfunc), then we can use the DebugUtils metadata in the code.

@@ -26,8 +23,7 @@ .debug_breakpoint_trap(block, location)?; }

Now, we need to execute cairo-native-run from our debugger (LLDB). If we want to see the source locations, we also need to set the NATIVE_DEBUG_DUMP env var and execute the program with AOT.

-
lldb -- target/debug/cairo-native-run -s programs/recursion.cairo --available-gas 99999999 --run-mode aot
-
+
lldb -- target/debug/cairo-native-run -s programs/recursion.cairo --available-gas 99999999 --run-mode aot

Some usefull lldb commands:

  • process launch: starts the program
  • @@ -38,8 +34,7 @@

§Logging

Enable logging to see the compilation process:

-
export RUST_LOG="cairo_native=trace"
-

§Other tips:

+
export RUST_LOG="cairo_native=trace"

§Other tips:

  • Try to find the minimal program to reproduce an issue, the more isolated the easier to test.
  • Use the debug_utils print utilities, more info here:
  • @@ -77,8 +72,7 @@

    §Obtaining Sierra Emulator Trace in Starknet Replay

    1. Checkout starknet-replay trace-dump branch.
    2. -
    3. Execute a single transaction with the use-sierra-emu feature
      cargo run --features use-sierra-emu tx <HASH> <CHAIN> <BLOCK>
      -
    4. +
    5. Execute a single transaction with the use-sierra-emu feature
      cargo run --features use-sierra-emu tx <HASH> <CHAIN> <BLOCK>
    6. Once finished, it will have written the traces of each inner contract inside of traces/emu, relative to the current working directory.

    As a single transaction can invoke multiple contracts (by contract and library calls), this generates a trace file for each contract executed, numbered in ascending order: trace_0.json, trace_1.json, etc.

    §Obtaining Cairo Native Trace in Starknet Replay
    1. Checkout starknet-replay trace-dump branch.
    2. -
    3. Execute a single transaction with the with-trace-dump feature
      cargo run --features with-trace-dump tx <HASH> <CHAIN> <BLOCK>
      -
    4. +
    5. Execute a single transaction with the with-trace-dump feature
      cargo run --features with-trace-dump tx <HASH> <CHAIN> <BLOCK>
    6. Once finished, it will have written the traces of each inner contract inside of traces/native, relative to the current working directory.
    §Patching Dependencies
    @@ -284,13 +276,11 @@
    [patch.'https://github.com/lambdaclass/cairo_native']
     cairo-native = { path = "../cairo_native" }
     [patch.'https://github.com/lambdaclass/sierra-emu']
    -sierra-emu = { path = "../sierra-emu" }
    -
§Comparing Traces
+sierra-emu = { path = "../sierra-emu" }
§Comparing Traces

Once you have generated the traces for both the Sierra emulator and Cairo Native, you can begin debugging.

  1. Compare the traces of the same contract with the favorite tool:
    diff "traces/{emu,native}/trace_0.json" # or
    -delta "traces/{emu,native}/trace_0.json" --side-by-side
    -
  2. +delta "traces/{emu,native}/trace_0.json" --side-by-side
  • Look for the first significant difference between the traces. Not all the differences are significant, for example:
    1. Sometimes the emulator and Cairo Native differ in the Gas builtin. It usually doesn’t affect the outcome of the contract.
    2. @@ -313,14 +303,10 @@
      §Usefu difference: ./traces/emu/trace_0.json ./traces/native/trace_0.json difference: ./traces/emu/trace_1.json ./traces/native/trace_1.json difference: ./traces/emu/trace_3.json ./traces/native/trace_3.json -missing file: ./traces/native/trace_4.json -
  • -
  • diff-trace: Receives a trace number, and executes delta to compare that trace.
    ./scripts/diff-trace.sh 1
    -
  • -
  • diff-trace-flow: Like diff-trace, but only diffs (with delta) the statement indexes. It can be used to visualize the control flow difference.
    ./scripts/diff-trace-flow.sh 1
    -
  • +missing file: ./traces/native/trace_4.json
    +
  • diff-trace: Receives a trace number, and executes delta to compare that trace.
    ./scripts/diff-trace.sh 1
  • +
  • diff-trace-flow: Like diff-trace, but only diffs (with delta) the statement indexes. It can be used to visualize the control flow difference.
    ./scripts/diff-trace-flow.sh 1
  • string-to-felt: Converts the given string to a felt. Can be used to search in the code where a specific error message was generated.
    > ./scripts/string-to-felt.sh "u256_mul Overflow"
    -753235365f6d756c204f766572666c6f77
    -
  • +753235365f6d756c204f766572666c6f77
    \ No newline at end of file diff --git a/cairo_native/docs/section07/index.html b/cairo_native/docs/section07/index.html index 897f57e65..0634f84a9 100644 --- a/cairo_native/docs/section07/index.html +++ b/cairo_native/docs/section07/index.html @@ -1,4 +1,4 @@ -cairo_native::docs::section07 - Rust

    Module cairo_native::docs::section07

    source ·
    Expand description

    §Sierra Resources

    +cairo_native::docs::section07 - Rust
    cairo_native::docs

    Module section07

    source
    Expand description

    §Sierra Resources

    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -74,121 +74,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -205,121 +205,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -335,61 +335,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -405,50 +405,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -458,99 +458,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/enum.Value.html b/cairo_native/enum.Value.html index f6998f4e1..df6744fb8 100644 --- a/cairo_native/enum.Value.html +++ b/cairo_native/enum.Value.html @@ -1,30 +1,30 @@ -Value in cairo_native - Rust

    Enum cairo_native::Value

    source ·
    pub enum Value {
    +Value in cairo_native - Rust
    cairo_native

    Enum Value

    source
    pub enum Value {
     
    Show 23 variants Felt252(Felt), - Bytes31([u8; 31]), - Array(Vec<Self>), + Bytes31([u8; 31]), + Array(Vec<Self>), Struct { - fields: Vec<Self>, - debug_name: Option<String>, + fields: Vec<Self>, + debug_name: Option<String>, }, Enum { - tag: usize, - value: Box<Self>, - debug_name: Option<String>, + tag: usize, + value: Box<Self>, + debug_name: Option<String>, }, Felt252Dict { - value: HashMap<Felt, Self>, - debug_name: Option<String>, + value: HashMap<Felt, Self>, + debug_name: Option<String>, }, - Uint8(u8), - Uint16(u16), - Uint32(u32), - Uint64(u64), - Uint128(u128), - Sint8(i8), - Sint16(i16), - Sint32(i32), - Sint64(i64), - Sint128(i128), + Uint8(u8), + Uint16(u16), + Uint32(u32), + Uint64(u64), + Uint128(u128), + Sint8(i8), + Sint16(i16), + Sint32(i32), + Sint64(i64), + Sint128(i128), EcPoint(Felt, Felt), EcState(Felt, Felt, Felt, Felt), Secp256K1Point(Secp256k1Point), @@ -34,62 +34,62 @@ range: Range, }, IntRange { - x: Box<Value>, - y: Box<Value>, + x: Box<Value>, + y: Box<Value>, }, Null,
    }
    Expand description

    A Value is a value that can be passed to either the JIT engine or a compiled program as an argument or received as a result.

    They map to the cairo/sierra types.

    The debug_name field on some variants is Some when receiving a Value as a result.

    A Boxed value or a non-null Nullable value is returned with it’s inner value.

    -

    Variants§

    §

    Felt252(Felt)

    §

    Bytes31([u8; 31])

    §

    Array(Vec<Self>)

    all elements need to be same type

    -
    §

    Struct

    Fields

    §fields: Vec<Self>
    §debug_name: Option<String>
    §

    Enum

    Fields

    §tag: usize
    §value: Box<Self>
    §debug_name: Option<String>
    §

    Felt252Dict

    Fields

    §value: HashMap<Felt, Self>
    §debug_name: Option<String>
    §

    Uint8(u8)

    §

    Uint16(u16)

    §

    Uint32(u32)

    §

    Uint64(u64)

    §

    Uint128(u128)

    §

    Sint8(i8)

    §

    Sint16(i16)

    §

    Sint32(i32)

    §

    Sint64(i64)

    §

    Sint128(i128)

    §

    EcPoint(Felt, Felt)

    §

    EcState(Felt, Felt, Felt, Felt)

    §

    Secp256K1Point(Secp256k1Point)

    §

    Secp256R1Point(Secp256r1Point)

    §

    BoundedInt

    Fields

    §value: Felt
    §range: Range
    §

    IntRange

    Fields

    §

    Null

    Used as return value for Nullables that are null.

    -

    Trait Implementations§

    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<'de> Deserialize<'de> for Value

    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<T: Into<Value> + Clone> From<&[T]> for Value

    source§

    fn from(value: &[T]) -> Self

    Converts to this type from the input type.
    source§

    impl<T: Into<Value>, const N: usize> From<[T; N]> for Value

    source§

    fn from(value: [T; N]) -> Self

    Converts to this type from the input type.
    source§

    impl From<Felt> for Value

    source§

    fn from(value: Felt) -> Self

    Converts to this type from the input type.
    source§

    impl<T: Into<Value>> From<Vec<T>> for Value

    source§

    fn from(value: Vec<T>) -> Self

    Converts to this type from the input type.
    source§

    impl From<i128> for Value

    source§

    fn from(value: i128) -> Self

    Converts to this type from the input type.
    source§

    impl From<i16> for Value

    source§

    fn from(value: i16) -> Self

    Converts to this type from the input type.
    source§

    impl From<i32> for Value

    source§

    fn from(value: i32) -> Self

    Converts to this type from the input type.
    source§

    impl From<i64> for Value

    source§

    fn from(value: i64) -> Self

    Converts to this type from the input type.
    source§

    impl From<i8> for Value

    source§

    fn from(value: i8) -> Self

    Converts to this type from the input type.
    source§

    impl From<u128> for Value

    source§

    fn from(value: u128) -> Self

    Converts to this type from the input type.
    source§

    impl From<u16> for Value

    source§

    fn from(value: u16) -> Self

    Converts to this type from the input type.
    source§

    impl From<u32> for Value

    source§

    fn from(value: u32) -> Self

    Converts to this type from the input type.
    source§

    impl From<u64> for Value

    source§

    fn from(value: u64) -> Self

    Converts to this type from the input type.
    source§

    impl From<u8> for Value

    source§

    fn from(value: u8) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq for Value

    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 Value

    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<Value> for Felt

    source§

    type Error = Value

    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 = Value

    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 i16

    source§

    type Error = Value

    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 i32

    source§

    type Error = Value

    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 i64

    source§

    type Error = Value

    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 i8

    source§

    type Error = Value

    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 = Value

    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 u16

    source§

    type Error = Value

    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 u32

    source§

    type Error = Value

    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 u64

    source§

    type Error = Value

    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 u8

    source§

    type Error = Value

    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

    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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

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

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +

    Variants§

    §

    Felt252(Felt)

    §

    Bytes31([u8; 31])

    §

    Array(Vec<Self>)

    all elements need to be same type

    +
    §

    Struct

    Fields

    §fields: Vec<Self>
    §debug_name: Option<String>
    §

    Enum

    Fields

    §tag: usize
    §value: Box<Self>
    §debug_name: Option<String>
    §

    Felt252Dict

    Fields

    §value: HashMap<Felt, Self>
    §debug_name: Option<String>
    §

    Uint8(u8)

    §

    Uint16(u16)

    §

    Uint32(u32)

    §

    Uint64(u64)

    §

    Uint128(u128)

    §

    Sint8(i8)

    §

    Sint16(i16)

    §

    Sint32(i32)

    §

    Sint64(i64)

    §

    Sint128(i128)

    §

    EcPoint(Felt, Felt)

    §

    EcState(Felt, Felt, Felt, Felt)

    §

    Secp256K1Point(Secp256k1Point)

    §

    Secp256R1Point(Secp256r1Point)

    §

    BoundedInt

    Fields

    §value: Felt
    §range: Range
    §

    IntRange

    Fields

    §

    Null

    Used as return value for Nullables that are null.

    +

    Trait Implementations§

    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<'de> Deserialize<'de> for Value

    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<T: Into<Value> + Clone> From<&[T]> for Value

    source§

    fn from(value: &[T]) -> Self

    Converts to this type from the input type.
    source§

    impl<T: Into<Value>, const N: usize> From<[T; N]> for Value

    source§

    fn from(value: [T; N]) -> Self

    Converts to this type from the input type.
    source§

    impl From<Felt> for Value

    source§

    fn from(value: Felt) -> Self

    Converts to this type from the input type.
    source§

    impl<T: Into<Value>> From<Vec<T>> for Value

    source§

    fn from(value: Vec<T>) -> Self

    Converts to this type from the input type.
    source§

    impl From<i128> for Value

    source§

    fn from(value: i128) -> Self

    Converts to this type from the input type.
    source§

    impl From<i16> for Value

    source§

    fn from(value: i16) -> Self

    Converts to this type from the input type.
    source§

    impl From<i32> for Value

    source§

    fn from(value: i32) -> Self

    Converts to this type from the input type.
    source§

    impl From<i64> for Value

    source§

    fn from(value: i64) -> Self

    Converts to this type from the input type.
    source§

    impl From<i8> for Value

    source§

    fn from(value: i8) -> Self

    Converts to this type from the input type.
    source§

    impl From<u128> for Value

    source§

    fn from(value: u128) -> Self

    Converts to this type from the input type.
    source§

    impl From<u16> for Value

    source§

    fn from(value: u16) -> Self

    Converts to this type from the input type.
    source§

    impl From<u32> for Value

    source§

    fn from(value: u32) -> Self

    Converts to this type from the input type.
    source§

    impl From<u64> for Value

    source§

    fn from(value: u64) -> Self

    Converts to this type from the input type.
    source§

    impl From<u8> for Value

    source§

    fn from(value: u8) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq for Value

    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 Value

    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<Value> for Felt

    source§

    type Error = Value

    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 = Value

    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 i16

    source§

    type Error = Value

    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 i32

    source§

    type Error = Value

    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 i64

    source§

    type Error = Value

    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 i8

    source§

    type Error = Value

    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 = Value

    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 u16

    source§

    type Error = Value

    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 u32

    source§

    type Error = Value

    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 u64

    source§

    type Error = Value

    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 u8

    source§

    type Error = Value

    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

    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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

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

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -106,121 +106,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -237,121 +237,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -367,61 +367,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -437,50 +437,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -490,100 +490,100 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/error/enum.CompilerError.html b/cairo_native/error/enum.CompilerError.html index 7788ec6d4..5c8d4cc22 100644 --- a/cairo_native/error/enum.CompilerError.html +++ b/cairo_native/error/enum.CompilerError.html @@ -1,43 +1,43 @@ -CompilerError in cairo_native::error - Rust

    Enum cairo_native::error::CompilerError

    source ·
    pub enum CompilerError {
    +CompilerError in cairo_native::error - Rust
    cairo_native::error

    Enum CompilerError

    source
    pub enum CompilerError {
         BoundedIntOutOfRange {
    -        value: Box<BigInt>,
    -        range: Box<(BigInt, BigInt)>,
    +        value: Box<BigInt>,
    +        range: Box<(BigInt, BigInt)>,
         },
    -}

    Variants§

    §

    BoundedIntOutOfRange

    Fields

    §value: Box<BigInt>
    §range: Box<(BigInt, BigInt)>

    Trait Implementations§

    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

    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 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<CompilerError> for Error

    source§

    fn from(source: CompilerError) -> 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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +}

    Variants§

    §

    BoundedIntOutOfRange

    Fields

    §value: Box<BigInt>
    §range: Box<(BigInt, BigInt)>

    Trait Implementations§

    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

    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 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<CompilerError> for Error

    source§

    fn from(source: CompilerError) -> 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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -54,121 +54,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -185,121 +185,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -315,61 +315,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -385,50 +385,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -438,100 +438,100 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>
    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
    §

    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
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> 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
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/error/enum.Error.html b/cairo_native/error/enum.Error.html index be19e7983..ddc0259ce 100644 --- a/cairo_native/error/enum.Error.html +++ b/cairo_native/error/enum.Error.html @@ -1,12 +1,12 @@ -Error in cairo_native::error - Rust

    Enum cairo_native::error::Error

    source ·
    pub enum Error {
    -
    Show 25 variants LayoutError(LayoutError), +Error in cairo_native::error - Rust
    cairo_native::error

    Enum Error

    source
    pub enum Error {
    +
    Show 25 variants LayoutError(LayoutError), MlirError(Error), - MissingParameter(String), - UnexpectedValue(String), + MissingParameter(String), + UnexpectedValue(String), MissingSyscallHandler, LayoutErrorPolyfill(LayoutError), - ProgramRegistryErrorBoxed(Box<ProgramRegistryError>), - TryFromIntError(TryFromIntError), + ProgramRegistryErrorBoxed(Box<ProgramRegistryError>), + TryFromIntError(TryFromIntError), ParseAttributeError, MissingMetadata, SierraAssert(SierraAssertError), @@ -14,51 +14,51 @@ Compiler(CompilerError), EditStateError(EditStateError), GasMetadataError(GasMetadataError), - LLVMCompileError(String), - LinkError(String), + LLVMCompileError(String), + LinkError(String), ConstDataMismatch, IntegerLikeTypeExpected, IntegerConversion, MissingBuiltinCostsSymbol, SelectorNotFound, - IoError(Error), + IoError(Error), LibraryLoadError(Error), SerdeJsonError(Error), -
    }

    Variants§

    §

    LayoutError(LayoutError)

    §

    MlirError(Error)

    §

    MissingParameter(String)

    §

    UnexpectedValue(String)

    §

    MissingSyscallHandler

    §

    LayoutErrorPolyfill(LayoutError)

    §

    ProgramRegistryErrorBoxed(Box<ProgramRegistryError>)

    §

    TryFromIntError(TryFromIntError)

    §

    ParseAttributeError

    §

    MissingMetadata

    §

    SierraAssert(SierraAssertError)

    §

    NativeAssert(NativeAssertError)

    §

    Compiler(CompilerError)

    §

    EditStateError(EditStateError)

    §

    GasMetadataError(GasMetadataError)

    §

    LLVMCompileError(String)

    §

    LinkError(String)

    §

    ConstDataMismatch

    §

    IntegerLikeTypeExpected

    §

    IntegerConversion

    §

    MissingBuiltinCostsSymbol

    §

    SelectorNotFound

    §

    IoError(Error)

    §

    LibraryLoadError(Error)

    §

    SerdeJsonError(Error)

    Implementations§

    source§

    impl Error

    source

    pub fn make_missing_parameter(ty: &ConcreteTypeId) -> Self

    Trait Implementations§

    source§

    impl Debug for Error

    source§

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

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

    impl Display for Error

    source§

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

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

    impl Error for Error

    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<Box<ProgramRegistryError>> for Error

    source§

    fn from(source: Box<ProgramRegistryError>) -> Self

    Converts to this type from the input type.
    source§

    impl From<CompilerError> for Error

    source§

    fn from(source: CompilerError) -> Self

    Converts to this type from the input type.
    source§

    impl From<EditStateError> for Error

    source§

    fn from(source: EditStateError) -> Self

    Converts to this type from the input type.
    source§

    impl From<Error> for Error

    source§

    fn from(source: Error) -> Self

    Converts to this type from the input type.
    source§

    impl From<Error> for Error

    source§

    fn from(source: Error) -> Self

    Converts to this type from the input type.
    source§

    impl From<Error> for Error

    source§

    fn from(source: Error) -> Self

    Converts to this type from the input type.
    source§

    impl From<Error> for Error

    source§

    fn from(source: Error) -> Self

    Converts to this type from the input type.
    source§

    impl From<GasMetadataError> for Error

    source§

    fn from(source: GasMetadataError) -> Self

    Converts to this type from the input type.
    source§

    impl From<LayoutError> for Error

    source§

    fn from(source: LayoutError) -> Self

    Converts to this type from the input type.
    source§

    impl From<LayoutError> for Error

    source§

    fn from(source: LayoutError) -> Self

    Converts to this type from the input type.
    source§

    impl From<NativeAssertError> for Error

    source§

    fn from(source: NativeAssertError) -> Self

    Converts to this type from the input type.
    source§

    impl From<SierraAssertError> for Error

    source§

    fn from(source: SierraAssertError) -> Self

    Converts to this type from the input type.
    source§

    impl From<TryFromIntError> for Error

    source§

    fn from(source: TryFromIntError) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    §

    impl !Freeze for Error

    §

    impl !RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl !UnwindSafe for Error

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +
    }

    Variants§

    §

    LayoutError(LayoutError)

    §

    MlirError(Error)

    §

    MissingParameter(String)

    §

    UnexpectedValue(String)

    §

    MissingSyscallHandler

    §

    LayoutErrorPolyfill(LayoutError)

    §

    ProgramRegistryErrorBoxed(Box<ProgramRegistryError>)

    §

    TryFromIntError(TryFromIntError)

    §

    ParseAttributeError

    §

    MissingMetadata

    §

    SierraAssert(SierraAssertError)

    §

    NativeAssert(NativeAssertError)

    §

    Compiler(CompilerError)

    §

    EditStateError(EditStateError)

    §

    GasMetadataError(GasMetadataError)

    §

    LLVMCompileError(String)

    §

    LinkError(String)

    §

    ConstDataMismatch

    §

    IntegerLikeTypeExpected

    §

    IntegerConversion

    §

    MissingBuiltinCostsSymbol

    §

    SelectorNotFound

    §

    IoError(Error)

    §

    LibraryLoadError(Error)

    §

    SerdeJsonError(Error)

    Implementations§

    source§

    impl Error

    source

    pub fn make_missing_parameter(ty: &ConcreteTypeId) -> Self

    Trait Implementations§

    source§

    impl Debug for Error

    source§

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

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

    impl Display for Error

    source§

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

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

    impl Error for Error

    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<Box<ProgramRegistryError>> for Error

    source§

    fn from(source: Box<ProgramRegistryError>) -> Self

    Converts to this type from the input type.
    source§

    impl From<CompilerError> for Error

    source§

    fn from(source: CompilerError) -> Self

    Converts to this type from the input type.
    source§

    impl From<EditStateError> for Error

    source§

    fn from(source: EditStateError) -> Self

    Converts to this type from the input type.
    source§

    impl From<Error> for Error

    source§

    fn from(source: Error) -> Self

    Converts to this type from the input type.
    source§

    impl From<Error> for Error

    source§

    fn from(source: Error) -> Self

    Converts to this type from the input type.
    source§

    impl From<Error> for Error

    source§

    fn from(source: Error) -> Self

    Converts to this type from the input type.
    source§

    impl From<Error> for Error

    source§

    fn from(source: Error) -> Self

    Converts to this type from the input type.
    source§

    impl From<GasMetadataError> for Error

    source§

    fn from(source: GasMetadataError) -> Self

    Converts to this type from the input type.
    source§

    impl From<LayoutError> for Error

    source§

    fn from(source: LayoutError) -> Self

    Converts to this type from the input type.
    source§

    impl From<LayoutError> for Error

    source§

    fn from(source: LayoutError) -> Self

    Converts to this type from the input type.
    source§

    impl From<NativeAssertError> for Error

    source§

    fn from(source: NativeAssertError) -> Self

    Converts to this type from the input type.
    source§

    impl From<SierraAssertError> for Error

    source§

    fn from(source: SierraAssertError) -> Self

    Converts to this type from the input type.
    source§

    impl From<TryFromIntError> for Error

    source§

    fn from(source: TryFromIntError) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    §

    impl !Freeze for Error

    §

    impl !RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl !UnwindSafe for Error

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -75,121 +75,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -206,121 +206,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -336,61 +336,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -406,50 +406,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -459,100 +459,100 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>
    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
    §

    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
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> 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
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/error/enum.SierraAssertError.html b/cairo_native/error/enum.SierraAssertError.html index 03af8ba7b..427be443c 100644 --- a/cairo_native/error/enum.SierraAssertError.html +++ b/cairo_native/error/enum.SierraAssertError.html @@ -1,46 +1,46 @@ -SierraAssertError in cairo_native::error - Rust

    Enum cairo_native::error::SierraAssertError

    source ·
    pub enum SierraAssertError {
    +SierraAssertError in cairo_native::error - Rust
    cairo_native::error

    Enum SierraAssertError

    source
    pub enum SierraAssertError {
         Cast,
         Range {
    -        ranges: Box<(Range, Range)>,
    +        ranges: Box<(Range, Range)>,
         },
         BadTypeInit(ConcreteTypeId),
         BadTypeInfo,
         ImpossibleCircuit,
    -}

    Variants§

    §

    Cast

    §

    Range

    Fields

    §ranges: Box<(Range, Range)>
    §

    BadTypeInit(ConcreteTypeId)

    §

    BadTypeInfo

    §

    ImpossibleCircuit

    Trait Implementations§

    source§

    impl Debug for SierraAssertError

    source§

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

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

    impl Display for SierraAssertError

    source§

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

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

    impl Error for SierraAssertError

    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 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<SierraAssertError> for Error

    source§

    fn from(source: SierraAssertError) -> 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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +}

    Variants§

    §

    Cast

    §

    Range

    Fields

    §ranges: Box<(Range, Range)>
    §

    BadTypeInit(ConcreteTypeId)

    §

    BadTypeInfo

    §

    ImpossibleCircuit

    Trait Implementations§

    source§

    impl Debug for SierraAssertError

    source§

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

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

    impl Display for SierraAssertError

    source§

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

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

    impl Error for SierraAssertError

    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 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<SierraAssertError> for Error

    source§

    fn from(source: SierraAssertError) -> 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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -57,121 +57,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -188,121 +188,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -318,61 +318,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -388,50 +388,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -441,100 +441,100 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>
    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
    §

    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
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> 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
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/error/index.html b/cairo_native/error/index.html index 37d2dc8da..b0a2e04eb 100644 --- a/cairo_native/error/index.html +++ b/cairo_native/error/index.html @@ -1,3 +1,3 @@ -cairo_native::error - Rust

    Module cairo_native::error

    source ·
    Expand description

    Various error types used thorough the crate.

    +cairo_native::error - Rust
    cairo_native

    Module error

    source
    Expand description

    Various error types used thorough the crate.

    Modules§

    • In Cairo Native we want to avoid the use of panic, even in situation where it should never happen. The downside of this is that we lose:

    Enums§

    Type Aliases§

    \ No newline at end of file diff --git a/cairo_native/error/panic/index.html b/cairo_native/error/panic/index.html index 49b2e3f44..1a0321203 100644 --- a/cairo_native/error/panic/index.html +++ b/cairo_native/error/panic/index.html @@ -1,4 +1,4 @@ -cairo_native::error::panic - Rust

    Module cairo_native::error::panic

    source ·
    Expand description

    In Cairo Native we want to avoid the use of panic, even in situation where +cairo_native::error::panic - Rust

    cairo_native::error

    Module panic

    source
    Expand description

    In Cairo Native we want to avoid the use of panic, even in situation where it should never happen. The downside of this is that we lose:

    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -52,121 +52,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -183,121 +183,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -313,61 +313,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -383,50 +383,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -436,100 +436,100 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>
    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
    §

    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
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> 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
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/error/panic/trait.ToNativeAssertError.html b/cairo_native/error/panic/trait.ToNativeAssertError.html index f808fbcbd..613f19daf 100644 --- a/cairo_native/error/panic/trait.ToNativeAssertError.html +++ b/cairo_native/error/panic/trait.ToNativeAssertError.html @@ -1,5 +1,5 @@ -ToNativeAssertError in cairo_native::error::panic - Rust

    Trait cairo_native::error::panic::ToNativeAssertError

    source ·
    pub trait ToNativeAssertError<T> {
    +ToNativeAssertError in cairo_native::error::panic - Rust
    cairo_native::error::panic

    Trait ToNativeAssertError

    source
    pub trait ToNativeAssertError<T> {
         // Required method
    -    fn to_native_assert_error(self, msg: &str) -> Result<T>;
    +    fn to_native_assert_error(self, msg: &str) -> Result<T>;
     }
    Expand description

    Extension trait used to easly convert Results and Options to NativeAssertError

    -

    Required Methods§

    Implementations on Foreign Types§

    source§

    impl<T> ToNativeAssertError<T> for Option<T>

    source§

    impl<T, E> ToNativeAssertError<T> for Result<T, E>

    Implementors§

    \ No newline at end of file +

    Required Methods§

    Implementations on Foreign Types§

    source§

    impl<T> ToNativeAssertError<T> for Option<T>

    source§

    impl<T, E> ToNativeAssertError<T> for Result<T, E>

    Implementors§

    \ No newline at end of file diff --git a/cairo_native/error/type.Result.html b/cairo_native/error/type.Result.html index b21e6b262..05b82201a 100644 --- a/cairo_native/error/type.Result.html +++ b/cairo_native/error/type.Result.html @@ -1,4 +1,4 @@ -Result in cairo_native::error - Rust

    Type Alias cairo_native::error::Result

    source ·
    pub type Result<T> = Result<T, Error>;

    Aliased Type§

    enum Result<T> {
    +Result in cairo_native::error - Rust
    cairo_native::error

    Type Alias Result

    source
    pub type Result<T> = Result<T, Error>;

    Aliased Type§

    enum Result<T> {
         Ok(T),
         Err(Error),
     }

    Variants§

    §1.0.0

    Ok(T)

    Contains the success value

    diff --git a/cairo_native/execution_result/index.html b/cairo_native/execution_result/index.html index 9cf23874f..7e539eea0 100644 --- a/cairo_native/execution_result/index.html +++ b/cairo_native/execution_result/index.html @@ -1 +1 @@ -cairo_native::execution_result - Rust

    Module cairo_native::execution_result

    source ·

    Structs§

    \ No newline at end of file +cairo_native::execution_result - Rust
    cairo_native

    Module execution_result

    source

    Structs§

    \ No newline at end of file diff --git a/cairo_native/execution_result/struct.BuiltinStats.html b/cairo_native/execution_result/struct.BuiltinStats.html index a7d780ebb..86b2ad5a2 100644 --- a/cairo_native/execution_result/struct.BuiltinStats.html +++ b/cairo_native/execution_result/struct.BuiltinStats.html @@ -1,69 +1,69 @@ -BuiltinStats in cairo_native::execution_result - Rust

    Struct cairo_native::execution_result::BuiltinStats

    source ·
    pub struct BuiltinStats {
    -    pub bitwise: usize,
    -    pub ec_op: usize,
    -    pub range_check: usize,
    -    pub pedersen: usize,
    -    pub poseidon: usize,
    -    pub segment_arena: usize,
    -    pub range_check_96: usize,
    -    pub circuit_add: usize,
    -    pub circuit_mul: usize,
    -}

    Fields§

    §bitwise: usize§ec_op: usize§range_check: usize§pedersen: usize§poseidon: usize§segment_arena: usize§range_check_96: usize§circuit_add: usize§circuit_mul: usize

    Trait Implementations§

    source§

    impl Clone for BuiltinStats

    source§

    fn clone(&self) -> BuiltinStats

    Returns a copy of 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 BuiltinStats

    source§

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

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

    impl Default for BuiltinStats

    source§

    fn default() -> BuiltinStats

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for BuiltinStats

    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 BuiltinStats

    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 BuiltinStats

    source§

    fn cmp(&self, other: &BuiltinStats) -> 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 BuiltinStats

    source§

    fn eq(&self, other: &BuiltinStats) -> 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 BuiltinStats

    source§

    fn partial_cmp(&self, other: &BuiltinStats) -> 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 BuiltinStats

    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 BuiltinStats

    source§

    impl Eq for BuiltinStats

    source§

    impl StructuralPartialEq for BuiltinStats

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

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

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

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

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +BuiltinStats in cairo_native::execution_result - Rust
    cairo_native::execution_result

    Struct BuiltinStats

    source
    pub struct BuiltinStats {
    +    pub bitwise: usize,
    +    pub ec_op: usize,
    +    pub range_check: usize,
    +    pub pedersen: usize,
    +    pub poseidon: usize,
    +    pub segment_arena: usize,
    +    pub range_check_96: usize,
    +    pub circuit_add: usize,
    +    pub circuit_mul: usize,
    +}

    Fields§

    §bitwise: usize§ec_op: usize§range_check: usize§pedersen: usize§poseidon: usize§segment_arena: usize§range_check_96: usize§circuit_add: usize§circuit_mul: usize

    Trait Implementations§

    source§

    impl Clone for BuiltinStats

    source§

    fn clone(&self) -> BuiltinStats

    Returns a copy of 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 BuiltinStats

    source§

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

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

    impl Default for BuiltinStats

    source§

    fn default() -> BuiltinStats

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for BuiltinStats

    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 BuiltinStats

    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 BuiltinStats

    source§

    fn cmp(&self, other: &BuiltinStats) -> 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 BuiltinStats

    source§

    fn eq(&self, other: &BuiltinStats) -> 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 BuiltinStats

    source§

    fn partial_cmp(&self, other: &BuiltinStats) -> 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 BuiltinStats

    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 BuiltinStats

    source§

    impl Eq for BuiltinStats

    source§

    impl StructuralPartialEq for BuiltinStats

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

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

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

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

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -80,121 +80,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -211,121 +211,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -341,61 +341,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -411,50 +411,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -464,100 +464,100 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/execution_result/struct.ContractExecutionResult.html b/cairo_native/execution_result/struct.ContractExecutionResult.html index 53656c1f7..07f81cea4 100644 --- a/cairo_native/execution_result/struct.ContractExecutionResult.html +++ b/cairo_native/execution_result/struct.ContractExecutionResult.html @@ -1,66 +1,66 @@ -ContractExecutionResult in cairo_native::execution_result - Rust
    pub struct ContractExecutionResult {
    -    pub remaining_gas: u64,
    -    pub failure_flag: bool,
    -    pub return_values: Vec<Felt>,
    -    pub error_msg: Option<String>,
    +ContractExecutionResult in cairo_native::execution_result - Rust
    cairo_native::execution_result

    Struct ContractExecutionResult

    source
    pub struct ContractExecutionResult {
    +    pub remaining_gas: u64,
    +    pub failure_flag: bool,
    +    pub return_values: Vec<Felt>,
    +    pub error_msg: Option<String>,
     }
    Expand description

    Starknet contract execution result.

    -

    Fields§

    §remaining_gas: u64§failure_flag: bool§return_values: Vec<Felt>§error_msg: Option<String>

    Implementations§

    Trait Implementations§

    source§

    impl Clone for ContractExecutionResult

    source§

    fn clone(&self) -> ContractExecutionResult

    Returns a copy of 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 ContractExecutionResult

    source§

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

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

    impl Default for ContractExecutionResult

    source§

    fn default() -> ContractExecutionResult

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for ContractExecutionResult

    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 ContractExecutionResult

    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 ContractExecutionResult

    source§

    fn cmp(&self, other: &ContractExecutionResult) -> 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 ContractExecutionResult

    source§

    fn eq(&self, other: &ContractExecutionResult) -> 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 ContractExecutionResult

    source§

    fn partial_cmp(&self, other: &ContractExecutionResult) -> 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 ContractExecutionResult

    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 ContractExecutionResult

    source§

    impl StructuralPartialEq for ContractExecutionResult

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

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

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

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

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +

    Fields§

    §remaining_gas: u64§failure_flag: bool§return_values: Vec<Felt>§error_msg: Option<String>

    Implementations§

    Trait Implementations§

    source§

    impl Clone for ContractExecutionResult

    source§

    fn clone(&self) -> ContractExecutionResult

    Returns a copy of 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 ContractExecutionResult

    source§

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

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

    impl Default for ContractExecutionResult

    source§

    fn default() -> ContractExecutionResult

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for ContractExecutionResult

    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 ContractExecutionResult

    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 ContractExecutionResult

    source§

    fn cmp(&self, other: &ContractExecutionResult) -> 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 ContractExecutionResult

    source§

    fn eq(&self, other: &ContractExecutionResult) -> 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 ContractExecutionResult

    source§

    fn partial_cmp(&self, other: &ContractExecutionResult) -> 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 ContractExecutionResult

    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 ContractExecutionResult

    source§

    impl StructuralPartialEq for ContractExecutionResult

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

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

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

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

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -77,121 +77,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -208,121 +208,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -338,61 +338,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -408,50 +408,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -461,100 +461,100 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/execution_result/struct.ExecutionResult.html b/cairo_native/execution_result/struct.ExecutionResult.html index 2a9b523f3..a3e5fb611 100644 --- a/cairo_native/execution_result/struct.ExecutionResult.html +++ b/cairo_native/execution_result/struct.ExecutionResult.html @@ -1,54 +1,54 @@ -ExecutionResult in cairo_native::execution_result - Rust

    Struct cairo_native::execution_result::ExecutionResult

    source ·
    pub struct ExecutionResult {
    -    pub remaining_gas: Option<u64>,
    +ExecutionResult in cairo_native::execution_result - Rust
    cairo_native::execution_result

    Struct ExecutionResult

    source
    pub struct ExecutionResult {
    +    pub remaining_gas: Option<u64>,
         pub return_value: Value,
         pub builtin_stats: BuiltinStats,
     }
    Expand description

    The result of the JIT execution.

    -

    Fields§

    §remaining_gas: Option<u64>§return_value: Value§builtin_stats: BuiltinStats

    Trait Implementations§

    source§

    impl Clone for ExecutionResult

    source§

    fn clone(&self) -> ExecutionResult

    Returns a copy of 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 ExecutionResult

    source§

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

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

    impl<'de> Deserialize<'de> for ExecutionResult

    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 ExecutionResult

    source§

    fn eq(&self, other: &ExecutionResult) -> 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 ExecutionResult

    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 ExecutionResult

    source§

    impl StructuralPartialEq for ExecutionResult

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

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

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

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

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +

    Fields§

    §remaining_gas: Option<u64>§return_value: Value§builtin_stats: BuiltinStats

    Trait Implementations§

    source§

    impl Clone for ExecutionResult

    source§

    fn clone(&self) -> ExecutionResult

    Returns a copy of 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 ExecutionResult

    source§

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

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

    impl<'de> Deserialize<'de> for ExecutionResult

    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 ExecutionResult

    source§

    fn eq(&self, other: &ExecutionResult) -> 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 ExecutionResult

    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 ExecutionResult

    source§

    impl StructuralPartialEq for ExecutionResult

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

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

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

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

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -65,121 +65,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -196,121 +196,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -326,61 +326,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -396,50 +396,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -449,100 +449,100 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/executor/index.html b/cairo_native/executor/index.html index 26b2255d8..15e083265 100644 --- a/cairo_native/executor/index.html +++ b/cairo_native/executor/index.html @@ -1,4 +1,4 @@ -cairo_native::executor - Rust

    Module cairo_native::executor

    source ·
    Expand description

    §Executors

    +cairo_native::executor - Rust
    cairo_native

    Module executor

    source
    Expand description

    §Executors

    This module provides methods to execute the programs, either via JIT or compiled ahead of time. It also provides a cache to avoid recompiling previously compiled programs.

    Structs§

    \ No newline at end of file diff --git a/cairo_native/executor/struct.AotContractExecutor.html b/cairo_native/executor/struct.AotContractExecutor.html index bf1084dfc..b0e9edb25 100644 --- a/cairo_native/executor/struct.AotContractExecutor.html +++ b/cairo_native/executor/struct.AotContractExecutor.html @@ -1,4 +1,4 @@ -AotContractExecutor in cairo_native::executor - Rust

    Struct cairo_native::executor::AotContractExecutor

    source ·
    pub struct AotContractExecutor { /* private fields */ }
    Expand description

    Please look at the module level docs.

    +AotContractExecutor in cairo_native::executor - Rust
    cairo_native::executor

    Struct AotContractExecutor

    source
    pub struct AotContractExecutor { /* private fields */ }
    Expand description

    Please look at the module level docs.

    Implementations§

    source§

    impl AotContractExecutor

    source

    pub fn new( sierra_program: &Program, entry_points: &ContractEntryPoints, @@ -8,14 +8,14 @@ If not saved, the path is treated as a temporary file an deleted when dropped. If you loaded a ContractExecutor using [load] then it will not be treated as a temp file.

    -

    source

    pub fn save(&mut self, to: impl AsRef<Path>) -> Result<()>

    Save the library to the desired path, alongside it is saved also a json file with additional info.

    -
    source

    pub fn load(library_path: &Path) -> Result<Self>

    Load the executor from an already compiled library with the additional info json file.

    +
    source

    pub fn save(&mut self, to: impl AsRef<Path>) -> Result<()>

    Save the library to the desired path, alongside it is saved also a json file with additional info.

    +
    source

    pub fn load(library_path: &Path) -> Result<Self>

    Load the executor from an already compiled library with the additional info json file.

    source

    pub fn run( &self, selector: Felt, args: &[Felt], - gas: u64, - builtin_costs: Option<BuiltinCosts>, + gas: u64, + builtin_costs: Option<BuiltinCosts>, syscall_handler: impl StarknetSyscallHandler, ) -> Result<ContractExecutionResult>

    Runs the entry point by the given selector.

      @@ -29,44 +29,44 @@
    source

    pub fn find_function_ptr( &self, function_id: &FunctionId, - is_for_contract_executor: bool, -) -> Result<*mut c_void>

    source

    pub fn find_symbol_ptr(&self, name: &str) -> Option<*mut c_void>

    Trait Implementations§

    source§

    impl Clone for AotContractExecutor

    source§

    fn clone(&self) -> AotContractExecutor

    Returns a copy of 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 AotContractExecutor

    source§

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

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

    impl Drop for AotContractExecutor

    source§

    fn drop(&mut self)

    Executes the destructor for this 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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when + is_for_contract_executor: bool, +) -> Result<*mut c_void>
    source

    pub fn find_symbol_ptr(&self, name: &str) -> Option<*mut c_void>

    Trait Implementations§

    source§

    impl Clone for AotContractExecutor

    source§

    fn clone(&self) -> AotContractExecutor

    Returns a copy of 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 AotContractExecutor

    source§

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

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

    impl Drop for AotContractExecutor

    source§

    fn drop(&mut self)

    Executes the destructor for this 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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -83,121 +83,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -214,121 +214,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -344,61 +344,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -414,50 +414,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -467,99 +467,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/executor/struct.AotNativeExecutor.html b/cairo_native/executor/struct.AotNativeExecutor.html index d6d9da2ad..dd4e3bae2 100644 --- a/cairo_native/executor/struct.AotNativeExecutor.html +++ b/cairo_native/executor/struct.AotNativeExecutor.html @@ -1,66 +1,66 @@ -AotNativeExecutor in cairo_native::executor - Rust

    Struct cairo_native::executor::AotNativeExecutor

    source ·
    pub struct AotNativeExecutor { /* private fields */ }

    Implementations§

    source§

    impl AotNativeExecutor

    source

    pub const fn new( +AotNativeExecutor in cairo_native::executor - Rust
    cairo_native::executor

    Struct AotNativeExecutor

    source
    pub struct AotNativeExecutor { /* private fields */ }

    Implementations§

    source§

    impl AotNativeExecutor

    source

    pub const fn new( library: Library, registry: ProgramRegistry<CoreType, CoreLibfunc>, gas_metadata: GasMetadata, ) -> Self

    source

    pub fn from_native_module( module: NativeModule<'_>, opt_level: OptLevel, -) -> Result<Self, Error>

    Utility to convert a NativeModule into an AotNativeExecutor.

    +) -> Result<Self, Error>

    Utility to convert a NativeModule into an AotNativeExecutor.

    source

    pub fn invoke_dynamic( &self, function_id: &FunctionId, args: &[Value], - gas: Option<u64>, -) -> Result<ExecutionResult, Error>

    source

    pub fn invoke_dynamic_with_syscall_handler( + gas: Option<u64>, +) -> Result<ExecutionResult, Error>

    source

    pub fn invoke_dynamic_with_syscall_handler( &self, function_id: &FunctionId, args: &[Value], - gas: Option<u64>, + gas: Option<u64>, syscall_handler: impl StarknetSyscallHandler, -) -> Result<ExecutionResult, Error>

    source

    pub fn invoke_contract_dynamic( +) -> Result<ExecutionResult, Error>

    source

    pub fn invoke_contract_dynamic( &self, function_id: &FunctionId, args: &[Felt], - gas: Option<u64>, + gas: Option<u64>, syscall_handler: impl StarknetSyscallHandler, -) -> Result<ContractExecutionResult, Error>

    source

    pub fn find_function_ptr( +) -> Result<ContractExecutionResult, Error>

    source

    pub fn find_function_ptr( &self, function_id: &FunctionId, -) -> Result<*mut c_void, Error>

    source

    pub fn find_symbol_ptr(&self, name: &str) -> Option<*mut c_void>

    Trait Implementations§

    source§

    impl Debug for AotNativeExecutor

    source§

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

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

    impl Send for AotNativeExecutor

    source§

    impl Sync for AotNativeExecutor

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +) -> Result<*mut c_void, Error>
    source

    pub fn find_symbol_ptr(&self, name: &str) -> Option<*mut c_void>

    Trait Implementations§

    source§

    impl Debug for AotNativeExecutor

    source§

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

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

    impl Send for AotNativeExecutor

    source§

    impl Sync for AotNativeExecutor

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -77,121 +77,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -208,121 +208,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -338,61 +338,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -408,50 +408,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -461,98 +461,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/executor/struct.JitNativeExecutor.html b/cairo_native/executor/struct.JitNativeExecutor.html index ec66e69e3..4bb7e4ac8 100644 --- a/cairo_native/executor/struct.JitNativeExecutor.html +++ b/cairo_native/executor/struct.JitNativeExecutor.html @@ -1,61 +1,61 @@ -JitNativeExecutor in cairo_native::executor - Rust

    Struct cairo_native::executor::JitNativeExecutor

    source ·
    pub struct JitNativeExecutor<'m> { /* private fields */ }
    Expand description

    A MLIR JIT execution engine in the context of Cairo Native.

    +JitNativeExecutor in cairo_native::executor - Rust
    cairo_native::executor

    Struct JitNativeExecutor

    source
    pub struct JitNativeExecutor<'m> { /* private fields */ }
    Expand description

    A MLIR JIT execution engine in the context of Cairo Native.

    Implementations§

    source§

    impl<'m> JitNativeExecutor<'m>

    source

    pub fn from_native_module( native_module: NativeModule<'m>, opt_level: OptLevel, -) -> Result<Self, Error>

    source

    pub const fn program_registry(&self) -> &ProgramRegistry<CoreType, CoreLibfunc>

    source

    pub const fn module(&self) -> &Module<'m>

    source

    pub fn invoke_dynamic( +) -> Result<Self, Error>

    source

    pub const fn program_registry(&self) -> &ProgramRegistry<CoreType, CoreLibfunc>

    source

    pub const fn module(&self) -> &Module<'m>

    source

    pub fn invoke_dynamic( &self, function_id: &FunctionId, args: &[Value], - gas: Option<u64>, -) -> Result<ExecutionResult, Error>

    Execute a program with the given params.

    + gas: Option<u64>, +) -> Result<ExecutionResult, Error>

    Execute a program with the given params.

    source

    pub fn invoke_dynamic_with_syscall_handler( &self, function_id: &FunctionId, args: &[Value], - gas: Option<u64>, + gas: Option<u64>, syscall_handler: impl StarknetSyscallHandler, -) -> Result<ExecutionResult, Error>

    Execute a program with the given params.

    +) -> Result<ExecutionResult, Error>

    Execute a program with the given params.

    source

    pub fn invoke_contract_dynamic( &self, function_id: &FunctionId, args: &[Felt], - gas: Option<u64>, + gas: Option<u64>, syscall_handler: impl StarknetSyscallHandler, -) -> Result<ContractExecutionResult, Error>

    source

    pub fn find_function_ptr(&self, function_id: &FunctionId) -> *mut c_void

    source

    pub fn find_symbol_ptr(&self, name: &str) -> Option<*mut c_void>

    Trait Implementations§

    source§

    impl Debug for JitNativeExecutor<'_>

    source§

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

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

    impl<'a> Send for JitNativeExecutor<'a>

    source§

    impl<'a> Sync for JitNativeExecutor<'a>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +) -> Result<ContractExecutionResult, Error>
    source

    pub fn find_function_ptr(&self, function_id: &FunctionId) -> *mut c_void

    source

    pub fn find_symbol_ptr(&self, name: &str) -> Option<*mut c_void>

    Trait Implementations§

    source§

    impl Debug for JitNativeExecutor<'_>

    source§

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

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

    impl Send for JitNativeExecutor<'_>

    source§

    impl Sync for JitNativeExecutor<'_>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -72,121 +72,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -203,121 +203,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -333,61 +333,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -403,50 +403,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -456,98 +456,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/fn.compile.html b/cairo_native/fn.compile.html index d265784ac..8064f9707 100644 --- a/cairo_native/fn.compile.html +++ b/cairo_native/fn.compile.html @@ -1,12 +1,12 @@ -compile in cairo_native - Rust

    Function cairo_native::compile

    source ·
    pub fn compile(
    +compile in cairo_native - Rust
    cairo_native

    Function compile

    source
    pub fn compile(
         context: &Context,
         module: &Module<'_>,
         program: &Program,
         registry: &ProgramRegistry<CoreType, CoreLibfunc>,
         metadata: &mut MetadataStorage,
         di_compile_unit_id: Attribute<'_>,
    -    ignore_debug_names: bool,
    -) -> Result<(), Error>
    Expand description

    Run the compiler on a program. The compiled program is stored in the MLIR module.

    + ignore_debug_names: bool, +) -> Result<(), Error>
    Expand description

    Run the compiler on a program. The compiled program is stored in the MLIR module.

    The generics TType and TLibfunc contain the information required to generate the MLIR types and statement operations. Most of the time you’ll want to use the default ones, which are CoreType and diff --git a/cairo_native/fn.module_to_object.html b/cairo_native/fn.module_to_object.html index d87064021..d2eefae1b 100644 --- a/cairo_native/fn.module_to_object.html +++ b/cairo_native/fn.module_to_object.html @@ -1,5 +1,5 @@ -module_to_object in cairo_native - Rust

    Function cairo_native::module_to_object

    source ·
    pub fn module_to_object(
    +module_to_object in cairo_native - Rust
    cairo_native

    Function module_to_object

    source
    pub fn module_to_object(
         module: &Module<'_>,
         opt_level: OptLevel,
    -) -> Result<Vec<u8>>
    Expand description

    Converts a MLIR module to a compile object, that can be linked with a linker.

    +) -> Result<Vec<u8>>
    Expand description

    Converts a MLIR module to a compile object, that can be linked with a linker.

    \ No newline at end of file diff --git a/cairo_native/fn.object_to_shared_lib.html b/cairo_native/fn.object_to_shared_lib.html index 05386468c..2adb840d8 100644 --- a/cairo_native/fn.object_to_shared_lib.html +++ b/cairo_native/fn.object_to_shared_lib.html @@ -1,2 +1,2 @@ -object_to_shared_lib in cairo_native - Rust

    Function cairo_native::object_to_shared_lib

    source ·
    pub fn object_to_shared_lib(object: &[u8], output_filename: &Path) -> Result<()>
    Expand description

    Links the passed object into a shared library, stored on the given path.

    +object_to_shared_lib in cairo_native - Rust
    cairo_native

    Function object_to_shared_lib

    source
    pub fn object_to_shared_lib(object: &[u8], output_filename: &Path) -> Result<()>
    Expand description

    Links the passed object into a shared library, stored on the given path.

    \ No newline at end of file diff --git a/cairo_native/index.html b/cairo_native/index.html index f9674bb66..d55f0bcd1 100644 --- a/cairo_native/index.html +++ b/cairo_native/index.html @@ -1,4 +1,4 @@ -cairo_native - Rust

    Crate cairo_native

    source ·
    Expand description
    +cairo_native - Rust

    Crate cairo_native

    source
    Expand description

    §⚡ Cairo Native ⚡

    A compiler to convert Cairo’s intermediate representation “Sierra” code
    to machine code via MLIR and LLVM.

    @@ -47,14 +47,12 @@

    §Setup

    This step applies to all operating systems.

    Run the following make target to install the dependencies (both Linux and macOS):

    -
    make deps
    -
    §Linux
    +
    make deps
    §Linux

    Since Linux distributions change widely, you need to install LLVM 19 via your package manager, compile it or check if the current release has a Linux binary.

    If you are on Debian/Ubuntu, check out the repository https://apt.llvm.org/ Then you can install with:

    -
    sudo apt-get install llvm-19 llvm-19-dev llvm-19-runtime clang-19 clang-tools-19 lld-19 libpolly-19-dev libmlir-19-dev mlir-19-tools
    -
    +
    sudo apt-get install llvm-19 llvm-19-dev llvm-19-runtime clang-19 clang-tools-19 lld-19 libpolly-19-dev libmlir-19-dev mlir-19-tools

    If you decide to build from source, here are some indications:

    Install LLVM from source instructions
    # Go to https://github.com/llvm/llvm-project/releases
    @@ -81,24 +79,20 @@ 

    §Setup

    -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLLVM_ENABLE_LLD=ON \ -DLLVM_ENABLE_ASSERTIONS=OFF -ninja install -
    +ninja install

    Setup a environment variable called MLIR_SYS_190_PREFIX, LLVM_SYS_191_PREFIX and TABLEGEN_190_PREFIX pointing to the llvm directory:

    # For Debian/Ubuntu using the repository, the path will be /usr/lib/llvm-19
     export MLIR_SYS_190_PREFIX=/usr/lib/llvm-19
     export LLVM_SYS_191_PREFIX=/usr/lib/llvm-19
    -export TABLEGEN_190_PREFIX=/usr/lib/llvm-19
    -
    +export TABLEGEN_190_PREFIX=/usr/lib/llvm-19

    Alternatively, if installed from Debian/Ubuntu repository, then you can use env.sh to automatically setup the environment variables.

    -
    source env.sh
    -
    §MacOS
    +
    source env.sh
    §MacOS

    The makefile deps target (which you should have ran before) installs LLVM 19 with brew for you, afterwards you need to execute the env.sh script to setup the needed environment variables.

    -
    source env.sh
    -

    §Make targets:

    +
    source env.sh

    §Make targets:

    Running make by itself will check whether the required LLVM installation and corelib is found, and then list available targets.

    % make
    @@ -122,8 +116,7 @@ 

    §Setup

    clean: Cleans the built artifacts. stress-test Runs a command which runs stress tests. stress-plot Plots the results of the stress test command. - stress-clean Clean the cache of AOT compiled code of the stress test command. -

    §Included Tools

    + stress-clean Clean the cache of AOT compiled code of the stress test command.

    §Included Tools

    Aside from the compilation and execution engine library, Cairo Native includes a few command-line tools to aid development, and some useful scripts.

    These are:

    @@ -153,8 +146,7 @@

    §cairo-native-dump

    Usage: cairo-native-dump [OPTIONS] <INPUT>
    +  -V, --version                Print version

    §cairo-native-dump

    Usage: cairo-native-dump [OPTIONS] <INPUT>
     
     Arguments:
       <INPUT>
    @@ -162,8 +154,7 @@ 

    §cairo-native-run

    + -h, --help Print help

    §cairo-native-run

    This tool allows to run programs using the JIT engine, like the cairo-run tool, the parameters can only be felt values.

    Example: echo '1' | cairo-native-run 'program.cairo' 'program::program::main' --inputs - --outputs -

    @@ -181,8 +172,7 @@

    §cairo-native-test

    + -V, --version Print version

    §cairo-native-test

    This tool mimics the cairo-test tool and is identical to it in interface, the only feature it doesn’t have is the profiler.

    @@ -204,16 +194,14 @@

    + -V, --version Print version

    For single files, you can use the -s, --single-file option.

    For a project, it needs to have a cairo_project.toml specifying the crate_roots. You can find an example under the cairo-tests/ folder, which is a cairo project that works with this tool.

    cairo-native-test -s myfile.cairo
     
    -cairo-native-test ./cairo-tests/
    -
    +cairo-native-test ./cairo-tests/

    This will run all the tests (functions marked with the #[test] attribute).

    §cairo-native-stress

    This tool runs a stress test on Cairo Native.

    @@ -232,19 +220,15 @@

    Output file for JSON formatted logs -h, --help - Print help (see a summary with '-h') - + Print help (see a summary with '-h')

    To quickly run a stress test and save logs as json, run:

    -
    make stress-test
    -
    +
    make stress-test

    This takes a lot of time to finish (it will probably crash first), you can kill the program at any time.

    To plot the results, run:

    -
    make stress-plot
    -
    +
    make stress-plot

    To clear the cache directory, run:

    -
    make stress-clean
    -

    §scarb-native-dump

    +
    make stress-clean

    §scarb-native-dump

    This tool mimics the scarb build command. You can download it on our releases page.

    This tool should be run at the directory where a Scarb.toml file is and it will @@ -268,8 +252,7 @@

    §

    §Benchmarking

    §Requirements

    + -V, --version Print version

    §Benchmarking

    §Requirements

    \ No newline at end of file diff --git a/cairo_native/metadata/auto_breakpoint/index.html b/cairo_native/metadata/auto_breakpoint/index.html index 8c8f0a10c..a657968bf 100644 --- a/cairo_native/metadata/auto_breakpoint/index.html +++ b/cairo_native/metadata/auto_breakpoint/index.html @@ -1 +1 @@ -cairo_native::metadata::auto_breakpoint - Rust
    \ No newline at end of file +cairo_native::metadata::auto_breakpoint - Rust
    cairo_native::metadata

    Module auto_breakpoint

    source

    Structs§

    Enums§

    \ No newline at end of file diff --git a/cairo_native/metadata/auto_breakpoint/struct.AutoBreakpoint.html b/cairo_native/metadata/auto_breakpoint/struct.AutoBreakpoint.html index 673e98a50..695c59755 100644 --- a/cairo_native/metadata/auto_breakpoint/struct.AutoBreakpoint.html +++ b/cairo_native/metadata/auto_breakpoint/struct.AutoBreakpoint.html @@ -1,46 +1,46 @@ -AutoBreakpoint in cairo_native::metadata::auto_breakpoint - Rust
    pub struct AutoBreakpoint { /* private fields */ }

    Implementations§

    source§

    impl AutoBreakpoint

    source

    pub fn add_event(&mut self, event: BreakpointEvent)

    source

    pub fn has_event(&self, event: &BreakpointEvent) -> bool

    source

    pub fn maybe_breakpoint( +AutoBreakpoint in cairo_native::metadata::auto_breakpoint - Rust
    cairo_native::metadata::auto_breakpoint

    Struct AutoBreakpoint

    source
    pub struct AutoBreakpoint { /* private fields */ }

    Implementations§

    source§

    impl AutoBreakpoint

    source

    pub fn add_event(&mut self, event: BreakpointEvent)

    source

    pub fn has_event(&self, event: &BreakpointEvent) -> bool

    source

    pub fn maybe_breakpoint( &self, block: &Block<'_>, location: Location<'_>, metadata: &MetadataStorage, event: &BreakpointEvent, -) -> Result<(), Error>

    Trait Implementations§

    source§

    impl Clone for AutoBreakpoint

    source§

    fn clone(&self) -> AutoBreakpoint

    Returns a copy of 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 AutoBreakpoint

    source§

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

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

    impl Default for AutoBreakpoint

    source§

    fn default() -> AutoBreakpoint

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +) -> Result<(), Error>

    Trait Implementations§

    source§

    impl Clone for AutoBreakpoint

    source§

    fn clone(&self) -> AutoBreakpoint

    Returns a copy of 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 AutoBreakpoint

    source§

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

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

    impl Default for AutoBreakpoint

    source§

    fn default() -> AutoBreakpoint

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -57,121 +57,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -188,121 +188,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -318,61 +318,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -388,50 +388,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -441,99 +441,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/metadata/debug_utils/index.html b/cairo_native/metadata/debug_utils/index.html index 6ee9bdc25..596ea1bad 100644 --- a/cairo_native/metadata/debug_utils/index.html +++ b/cairo_native/metadata/debug_utils/index.html @@ -1,4 +1,4 @@ -cairo_native::metadata::debug_utils - Rust

    Module cairo_native::metadata::debug_utils

    source ·
    Expand description

    §Debug utilities

    +cairo_native::metadata::debug_utils - Rust
    cairo_native::metadata

    Module debug_utils

    source
    Expand description

    §Debug utilities

    A collection of utilities to debug values in MLIR in execution.

    §Example

    
    diff --git a/cairo_native/metadata/debug_utils/struct.DebugUtils.html b/cairo_native/metadata/debug_utils/struct.DebugUtils.html
    index 11b5faccb..22cd9bb42 100644
    --- a/cairo_native/metadata/debug_utils/struct.DebugUtils.html
    +++ b/cairo_native/metadata/debug_utils/struct.DebugUtils.html
    @@ -1,115 +1,115 @@
    -DebugUtils in cairo_native::metadata::debug_utils - Rust

    Struct cairo_native::metadata::debug_utils::DebugUtils

    source ·
    pub struct DebugUtils { /* private fields */ }

    Implementations§

    source§

    impl DebugUtils

    source

    pub fn breakpoint_marker( +DebugUtils in cairo_native::metadata::debug_utils - Rust
    cairo_native::metadata::debug_utils

    Struct DebugUtils

    source
    pub struct DebugUtils { /* private fields */ }

    Implementations§

    source§

    impl DebugUtils

    source

    pub fn breakpoint_marker( &mut self, context: &Context, module: &Module<'_>, block: &Block<'_>, location: Location<'_>, -) -> Result<()>

    source

    pub fn debug_print( +) -> Result<()>

    source

    pub fn debug_print( &mut self, context: &Context, module: &Module<'_>, block: &Block<'_>, - message: &str, + message: &str, location: Location<'_>, -) -> Result<()>

    Prints the given &str.

    +) -> Result<()>

    Prints the given &str.

    source

    pub fn debug_breakpoint_trap( &self, block: &Block<'_>, location: Location<'_>, -) -> Result<()>

    source

    pub fn print_pointer( +) -> Result<()>

    source

    pub fn print_pointer( &mut self, context: &Context, module: &Module<'_>, block: &Block<'_>, value: Value<'_, '_>, location: Location<'_>, -) -> Result<()>

    source

    pub fn print_i1( +) -> Result<()>

    source

    pub fn print_i1( &mut self, context: &Context, module: &Module<'_>, block: &Block<'_>, value: Value<'_, '_>, location: Location<'_>, -) -> Result<()>

    source

    pub fn print_felt252( +) -> Result<()>

    source

    pub fn print_felt252( &mut self, context: &Context, module: &Module<'_>, block: &Block<'_>, value: Value<'_, '_>, location: Location<'_>, -) -> Result<()>

    source

    pub fn print_i8( +) -> Result<()>

    source

    pub fn print_i8( &mut self, context: &Context, module: &Module<'_>, block: &Block<'_>, value: Value<'_, '_>, location: Location<'_>, -) -> Result<()>

    source

    pub fn print_i32( +) -> Result<()>

    source

    pub fn print_i32( &mut self, context: &Context, module: &Module<'_>, block: &Block<'_>, value: Value<'_, '_>, location: Location<'_>, -) -> Result<()>

    source

    pub fn print_i64( +) -> Result<()>

    source

    pub fn print_i64( &mut self, context: &Context, module: &Module<'_>, block: &Block<'_>, value: Value<'_, '_>, location: Location<'_>, -) -> Result<()>

    source

    pub fn print_i128( +) -> Result<()>

    source

    pub fn print_i128( &mut self, context: &Context, module: &Module<'_>, block: &Block<'_>, value: Value<'_, '_>, location: Location<'_>, -) -> Result<()>

    source

    pub fn dump_mem( +) -> Result<()>

    source

    pub fn dump_mem( &mut self, context: &Context, module: &Module<'_>, block: &Block<'_>, ptr: Value<'_, '_>, - len: usize, + len: usize, location: Location<'_>, -) -> Result<()>

    Dump a memory region at runtime.

    +) -> Result<()>

    Dump a memory region at runtime.

    Requires the pointer (at runtime) and its length in bytes (at compile-time).

    -
    source

    pub fn register_impls(&self, engine: &ExecutionEngine)

    Trait Implementations§

    source§

    impl Debug for DebugUtils

    source§

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

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

    impl Default for DebugUtils

    source§

    fn default() -> DebugUtils

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +
    source

    pub fn register_impls(&self, engine: &ExecutionEngine)

    Trait Implementations§

    source§

    impl Debug for DebugUtils

    source§

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

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

    impl Default for DebugUtils

    source§

    fn default() -> DebugUtils

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -126,121 +126,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -257,121 +257,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -387,61 +387,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -457,50 +457,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -510,98 +510,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/metadata/drop_overrides/index.html b/cairo_native/metadata/drop_overrides/index.html index 8caef8808..5ae1957f6 100644 --- a/cairo_native/metadata/drop_overrides/index.html +++ b/cairo_native/metadata/drop_overrides/index.html @@ -1,4 +1,4 @@ -cairo_native::metadata::drop_overrides - Rust

    Module cairo_native::metadata::drop_overrides

    source ·
    Expand description

    §Dropping logic overrides

    +cairo_native::metadata::drop_overrides - Rust
    cairo_native::metadata

    Module drop_overrides

    source
    Expand description

    §Dropping logic overrides

    By default, values are discarded, but some cases (like arrays, boxes, nullables, dictionaries and some structs and enums) need a drop implementation instad. This metadata is a register of types that require a drop implementation as well as the logic to register and invoke those @@ -9,7 +9,6 @@

    The generated functions are not public (they are internal) and follow this naming convention:

    -
    drop${type id}
    -
    +
    drop${type id}

    where {type id} is the numeric value of the ConcreteTypeId.

    Structs§

    \ No newline at end of file diff --git a/cairo_native/metadata/drop_overrides/struct.DropOverridesMeta.html b/cairo_native/metadata/drop_overrides/struct.DropOverridesMeta.html index df9ac374d..d018e536b 100644 --- a/cairo_native/metadata/drop_overrides/struct.DropOverridesMeta.html +++ b/cairo_native/metadata/drop_overrides/struct.DropOverridesMeta.html @@ -1,38 +1,38 @@ -DropOverridesMeta in cairo_native::metadata::drop_overrides - Rust
    pub struct DropOverridesMeta { /* private fields */ }

    Trait Implementations§

    source§

    impl Debug for DropOverridesMeta

    source§

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

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

    impl Default for DropOverridesMeta

    source§

    fn default() -> DropOverridesMeta

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +DropOverridesMeta in cairo_native::metadata::drop_overrides - Rust
    cairo_native::metadata::drop_overrides

    Struct DropOverridesMeta

    source
    pub struct DropOverridesMeta { /* private fields */ }

    Trait Implementations§

    source§

    impl Debug for DropOverridesMeta

    source§

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

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

    impl Default for DropOverridesMeta

    source§

    fn default() -> DropOverridesMeta

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -49,121 +49,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -180,121 +180,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -310,61 +310,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -380,50 +380,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -433,98 +433,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/metadata/dup_overrides/index.html b/cairo_native/metadata/dup_overrides/index.html index 4403b6483..95249f066 100644 --- a/cairo_native/metadata/dup_overrides/index.html +++ b/cairo_native/metadata/dup_overrides/index.html @@ -1,4 +1,4 @@ -cairo_native::metadata::dup_overrides - Rust

    Module cairo_native::metadata::dup_overrides

    source ·
    Expand description

    §Duplication logic overrides

    +cairo_native::metadata::dup_overrides - Rust
    cairo_native::metadata

    Module dup_overrides

    source
    Expand description

    §Duplication logic overrides

    By default, values are copied (aka. memcpy’d), but some cases (like arrays, boxes, nullables, dictionaries and some structs and enums) need a clone implementation instad. This metadata is a register of types that require a clone implementation as well as the logic to register and @@ -9,7 +9,6 @@

    dup${type id}
    -

    +
    dup${type id}

    where {type id} is the numeric value of the ConcreteTypeId.

    Structs§

    \ No newline at end of file diff --git a/cairo_native/metadata/dup_overrides/struct.DupOverridesMeta.html b/cairo_native/metadata/dup_overrides/struct.DupOverridesMeta.html index 38561df16..b416666c2 100644 --- a/cairo_native/metadata/dup_overrides/struct.DupOverridesMeta.html +++ b/cairo_native/metadata/dup_overrides/struct.DupOverridesMeta.html @@ -1,38 +1,38 @@ -DupOverridesMeta in cairo_native::metadata::dup_overrides - Rust
    pub struct DupOverridesMeta { /* private fields */ }

    Trait Implementations§

    source§

    impl Debug for DupOverridesMeta

    source§

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

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

    impl Default for DupOverridesMeta

    source§

    fn default() -> DupOverridesMeta

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +DupOverridesMeta in cairo_native::metadata::dup_overrides - Rust
    cairo_native::metadata::dup_overrides

    Struct DupOverridesMeta

    source
    pub struct DupOverridesMeta { /* private fields */ }

    Trait Implementations§

    source§

    impl Debug for DupOverridesMeta

    source§

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

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

    impl Default for DupOverridesMeta

    source§

    fn default() -> DupOverridesMeta

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -49,121 +49,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -180,121 +180,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -310,61 +310,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -380,50 +380,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -433,98 +433,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/metadata/enum_snapshot_variants/index.html b/cairo_native/metadata/enum_snapshot_variants/index.html index 1a2a0a454..8dd4c04fd 100644 --- a/cairo_native/metadata/enum_snapshot_variants/index.html +++ b/cairo_native/metadata/enum_snapshot_variants/index.html @@ -1 +1 @@ -cairo_native::metadata::enum_snapshot_variants - Rust
    \ No newline at end of file +cairo_native::metadata::enum_snapshot_variants - Rust
    cairo_native::metadata

    Module enum_snapshot_variants

    source

    Structs§

    \ No newline at end of file diff --git a/cairo_native/metadata/enum_snapshot_variants/struct.EnumSnapshotVariantsMeta.html b/cairo_native/metadata/enum_snapshot_variants/struct.EnumSnapshotVariantsMeta.html index 1aedcdfad..90b51e15a 100644 --- a/cairo_native/metadata/enum_snapshot_variants/struct.EnumSnapshotVariantsMeta.html +++ b/cairo_native/metadata/enum_snapshot_variants/struct.EnumSnapshotVariantsMeta.html @@ -1,45 +1,45 @@ -EnumSnapshotVariantsMeta in cairo_native::metadata::enum_snapshot_variants - Rust
    pub struct EnumSnapshotVariantsMeta { /* private fields */ }

    Implementations§

    source§

    impl EnumSnapshotVariantsMeta

    source

    pub fn set_mapping( +EnumSnapshotVariantsMeta in cairo_native::metadata::enum_snapshot_variants - Rust
    cairo_native::metadata::enum_snapshot_variants

    Struct EnumSnapshotVariantsMeta

    source
    pub struct EnumSnapshotVariantsMeta { /* private fields */ }

    Implementations§

    source§

    impl EnumSnapshotVariantsMeta

    source

    pub fn set_mapping( &mut self, snapshot_id: &ConcreteTypeId, variants: &[ConcreteTypeId], )

    source

    pub fn get_variants( &self, snapshot_id: &ConcreteTypeId, -) -> Option<&Vec<ConcreteTypeId>>

    Trait Implementations§

    source§

    impl Default for EnumSnapshotVariantsMeta

    source§

    fn default() -> EnumSnapshotVariantsMeta

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +) -> Option<&Vec<ConcreteTypeId>>

    Trait Implementations§

    source§

    impl Default for EnumSnapshotVariantsMeta

    source§

    fn default() -> EnumSnapshotVariantsMeta

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -56,121 +56,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -187,121 +187,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -317,61 +317,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -387,50 +387,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -440,98 +440,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/metadata/gas/enum.GasMetadataError.html b/cairo_native/metadata/gas/enum.GasMetadataError.html index fc841dc1a..43fb696d5 100644 --- a/cairo_native/metadata/gas/enum.GasMetadataError.html +++ b/cairo_native/metadata/gas/enum.GasMetadataError.html @@ -1,52 +1,52 @@ -GasMetadataError in cairo_native::metadata::gas - Rust

    Enum cairo_native::metadata::gas::GasMetadataError

    source ·
    pub enum GasMetadataError {
    +GasMetadataError in cairo_native::metadata::gas - Rust
    cairo_native::metadata::gas

    Enum GasMetadataError

    source
    pub enum GasMetadataError {
         ApChangeError(ApChangeError),
         CostError(CostError),
         NotEnoughGas {
    -        gas: Box<(u64, u64)>,
    +        gas: Box<(u64, u64)>,
         },
     }
    Expand description

    Error for metadata calculations.

    -

    Variants§

    §

    ApChangeError(ApChangeError)

    §

    CostError(CostError)

    §

    NotEnoughGas

    Fields

    §gas: Box<(u64, u64)>

    Trait Implementations§

    source§

    impl Debug for GasMetadataError

    source§

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

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

    impl Display for GasMetadataError

    source§

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

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

    impl Error for GasMetadataError

    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<ApChangeError> for GasMetadataError

    source§

    fn from(source: ApChangeError) -> Self

    Converts to this type from the input type.
    source§

    impl From<CostError> for GasMetadataError

    source§

    fn from(source: CostError) -> Self

    Converts to this type from the input type.
    source§

    impl From<GasMetadataError> for Error

    source§

    fn from(source: GasMetadataError) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq for GasMetadataError

    source§

    fn eq(&self, other: &GasMetadataError) -> 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 GasMetadataError

    source§

    impl StructuralPartialEq for GasMetadataError

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +

    Variants§

    §

    ApChangeError(ApChangeError)

    §

    CostError(CostError)

    §

    NotEnoughGas

    Fields

    §gas: Box<(u64, u64)>

    Trait Implementations§

    source§

    impl Debug for GasMetadataError

    source§

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

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

    impl Display for GasMetadataError

    source§

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

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

    impl Error for GasMetadataError

    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<ApChangeError> for GasMetadataError

    source§

    fn from(source: ApChangeError) -> Self

    Converts to this type from the input type.
    source§

    impl From<CostError> for GasMetadataError

    source§

    fn from(source: CostError) -> Self

    Converts to this type from the input type.
    source§

    impl From<GasMetadataError> for Error

    source§

    fn from(source: GasMetadataError) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq for GasMetadataError

    source§

    fn eq(&self, other: &GasMetadataError) -> 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 GasMetadataError

    source§

    impl StructuralPartialEq for GasMetadataError

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -63,121 +63,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -194,121 +194,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -324,61 +324,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -394,50 +394,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -447,100 +447,100 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>
    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
    §

    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
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> 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
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/metadata/gas/index.html b/cairo_native/metadata/gas/index.html index 728314acc..ded684e16 100644 --- a/cairo_native/metadata/gas/index.html +++ b/cairo_native/metadata/gas/index.html @@ -1 +1 @@ -cairo_native::metadata::gas - Rust

    Module cairo_native::metadata::gas

    source ·

    Structs§

    Enums§

    \ No newline at end of file +cairo_native::metadata::gas - Rust
    cairo_native::metadata

    Module gas

    source

    Structs§

    Enums§

    \ No newline at end of file diff --git a/cairo_native/metadata/gas/struct.GasCost.html b/cairo_native/metadata/gas/struct.GasCost.html index eed5d23e4..4f5cd1483 100644 --- a/cairo_native/metadata/gas/struct.GasCost.html +++ b/cairo_native/metadata/gas/struct.GasCost.html @@ -1,49 +1,49 @@ -GasCost in cairo_native::metadata::gas - Rust

    Struct cairo_native::metadata::gas::GasCost

    source ·
    pub struct GasCost(pub Vec<(u64, CostTokenType)>);

    Tuple Fields§

    §0: Vec<(u64, CostTokenType)>

    Trait Implementations§

    source§

    impl Clone for GasCost

    source§

    fn clone(&self) -> GasCost

    Returns a copy of 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 GasCost

    source§

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

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

    impl Hash for GasCost

    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 GasCost

    source§

    fn eq(&self, other: &GasCost) -> 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 GasCost

    source§

    impl StructuralPartialEq for GasCost

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

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

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

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

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +GasCost in cairo_native::metadata::gas - Rust
    cairo_native::metadata::gas

    Struct GasCost

    source
    pub struct GasCost(pub Vec<(u64, CostTokenType)>);

    Tuple Fields§

    §0: Vec<(u64, CostTokenType)>

    Trait Implementations§

    source§

    impl Clone for GasCost

    source§

    fn clone(&self) -> GasCost

    Returns a copy of 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 GasCost

    source§

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

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

    impl Hash for GasCost

    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 GasCost

    source§

    fn eq(&self, other: &GasCost) -> 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 GasCost

    source§

    impl StructuralPartialEq for GasCost

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

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

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

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

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -60,121 +60,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -191,121 +191,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -321,61 +321,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -391,50 +391,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -444,99 +444,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/metadata/gas/struct.GasMetadata.html b/cairo_native/metadata/gas/struct.GasMetadata.html index 052ed1216..8f88fa33d 100644 --- a/cairo_native/metadata/gas/struct.GasMetadata.html +++ b/cairo_native/metadata/gas/struct.GasMetadata.html @@ -1,69 +1,69 @@ -GasMetadata in cairo_native::metadata::gas - Rust

    Struct cairo_native::metadata::gas::GasMetadata

    source ·
    pub struct GasMetadata {
    +GasMetadata in cairo_native::metadata::gas - Rust
    cairo_native::metadata::gas

    Struct GasMetadata

    source
    pub struct GasMetadata {
         pub ap_change_info: ApChangeInfo,
         pub gas_info: GasInfo,
     }
    Expand description

    Holds global gas info.

    Fields§

    §ap_change_info: ApChangeInfo§gas_info: GasInfo

    Implementations§

    source§

    impl GasMetadata

    source

    pub fn new( sierra_program: &Program, - config: Option<MetadataComputationConfig>, -) -> Result<GasMetadata, GasMetadataError>

    source

    pub fn get_initial_available_gas( + config: Option<MetadataComputationConfig>, +) -> Result<GasMetadata, GasMetadataError>

    source

    pub fn get_initial_available_gas( &self, func: &FunctionId, - available_gas: Option<u64>, -) -> Result<u64, GasMetadataError>

    Returns the initial value for the gas counter. + available_gas: Option<u64>, +) -> Result<u64, GasMetadataError>

    Returns the initial value for the gas counter. If available_gas is None returns 0.

    -
    source

    pub fn initial_required_gas(&self, func: &FunctionId) -> Option<u64>

    source

    pub fn initial_required_gas_for_entry_points( +

    source

    pub fn initial_required_gas(&self, func: &FunctionId) -> Option<u64>

    source

    pub fn initial_required_gas_for_entry_points( &self, -) -> NativeResult<BTreeMap<u64, BTreeMap<u64, u64>>>

    source

    pub fn get_gas_costs_for_statement( +) -> NativeResult<BTreeMap<u64, BTreeMap<u64, u64>>>

    source

    pub fn get_gas_costs_for_statement( &self, idx: StatementIdx, -) -> Vec<(u64, CostTokenType)>

    source

    pub fn get_gas_cost_for_statement_and_cost_token_type( +) -> Vec<(u64, CostTokenType)>

    source

    pub fn get_gas_cost_for_statement_and_cost_token_type( &self, idx: StatementIdx, cost_type: CostTokenType, -) -> Option<u64>

    Trait Implementations§

    source§

    impl Clone for GasMetadata

    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 GasMetadata

    source§

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

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

    impl Default for GasMetadata

    source§

    fn default() -> GasMetadata

    Returns the “default value” for a type. Read more
    source§

    impl PartialEq for GasMetadata

    source§

    fn eq(&self, other: &GasMetadata) -> 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 GasMetadata

    source§

    impl StructuralPartialEq for GasMetadata

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

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

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

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

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +) -> Option<u64>

    Trait Implementations§

    source§

    impl Clone for GasMetadata

    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 GasMetadata

    source§

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

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

    impl Default for GasMetadata

    source§

    fn default() -> GasMetadata

    Returns the “default value” for a type. Read more
    source§

    impl PartialEq for GasMetadata

    source§

    fn eq(&self, other: &GasMetadata) -> 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 GasMetadata

    source§

    impl StructuralPartialEq for GasMetadata

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

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

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

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

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -80,121 +80,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -211,121 +211,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -341,61 +341,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -411,50 +411,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -464,99 +464,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/metadata/gas/struct.MetadataComputationConfig.html b/cairo_native/metadata/gas/struct.MetadataComputationConfig.html index 492070453..489df763f 100644 --- a/cairo_native/metadata/gas/struct.MetadataComputationConfig.html +++ b/cairo_native/metadata/gas/struct.MetadataComputationConfig.html @@ -1,45 +1,45 @@ -MetadataComputationConfig in cairo_native::metadata::gas - Rust

    Struct cairo_native::metadata::gas::MetadataComputationConfig

    source ·
    pub struct MetadataComputationConfig {
    -    pub function_set_costs: OrderedHashMap<FunctionId, OrderedHashMap<CostTokenType, i32>>,
    -    pub linear_gas_solver: bool,
    -    pub linear_ap_change_solver: bool,
    +MetadataComputationConfig in cairo_native::metadata::gas - Rust
    cairo_native::metadata::gas

    Struct MetadataComputationConfig

    source
    pub struct MetadataComputationConfig {
    +    pub function_set_costs: OrderedHashMap<FunctionId, OrderedHashMap<CostTokenType, i32>>,
    +    pub linear_gas_solver: bool,
    +    pub linear_ap_change_solver: bool,
     }
    Expand description

    Configuration for metadata computation.

    -

    Fields§

    §function_set_costs: OrderedHashMap<FunctionId, OrderedHashMap<CostTokenType, i32>>§linear_gas_solver: bool§linear_ap_change_solver: bool

    Trait Implementations§

    source§

    impl Clone for MetadataComputationConfig

    source§

    fn clone(&self) -> MetadataComputationConfig

    Returns a copy of 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 MetadataComputationConfig

    source§

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

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

    impl Default for MetadataComputationConfig

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +

    Fields§

    §function_set_costs: OrderedHashMap<FunctionId, OrderedHashMap<CostTokenType, i32>>§linear_gas_solver: bool§linear_ap_change_solver: bool

    Trait Implementations§

    source§

    impl Clone for MetadataComputationConfig

    source§

    fn clone(&self) -> MetadataComputationConfig

    Returns a copy of 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 MetadataComputationConfig

    source§

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

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

    impl Default for MetadataComputationConfig

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

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

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -56,121 +56,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -187,121 +187,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -317,61 +317,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -387,50 +387,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -440,99 +440,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/metadata/index.html b/cairo_native/metadata/index.html index 075cd2079..755f36b2c 100644 --- a/cairo_native/metadata/index.html +++ b/cairo_native/metadata/index.html @@ -1,4 +1,4 @@ -cairo_native::metadata - Rust

    Module cairo_native::metadata

    source ·
    Expand description

    §Code generation metadata

    +cairo_native::metadata - Rust
    cairo_native

    Module metadata

    source
    Expand description

    §Code generation metadata

    The metadata is used for various stuff that would be otherwise difficult or plain impossible with the current design, such as:

    Calls the free function.

    +

    Trait Implementations§

    source§

    impl Debug for ReallocBindingsMeta

    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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -62,121 +62,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -193,121 +193,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -323,61 +323,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -393,50 +393,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -446,98 +446,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/metadata/runtime_bindings/index.html b/cairo_native/metadata/runtime_bindings/index.html index eb0b09126..aa1fede9c 100644 --- a/cairo_native/metadata/runtime_bindings/index.html +++ b/cairo_native/metadata/runtime_bindings/index.html @@ -1,4 +1,4 @@ -cairo_native::metadata::runtime_bindings - Rust

    Module cairo_native::metadata::runtime_bindings

    source ·
    Expand description

    §Runtime library bindings

    +cairo_native::metadata::runtime_bindings - Rust
    cairo_native::metadata

    Module runtime_bindings

    source
    Expand description

    §Runtime library bindings

    This metadata ensures that the bindings to the runtime functions exist in the current compilation context.

    Structs§

    \ No newline at end of file diff --git a/cairo_native/metadata/runtime_bindings/struct.RuntimeBindingsMeta.html b/cairo_native/metadata/runtime_bindings/struct.RuntimeBindingsMeta.html index c3c151cb6..6fd3db34b 100644 --- a/cairo_native/metadata/runtime_bindings/struct.RuntimeBindingsMeta.html +++ b/cairo_native/metadata/runtime_bindings/struct.RuntimeBindingsMeta.html @@ -1,4 +1,4 @@ -RuntimeBindingsMeta in cairo_native::metadata::runtime_bindings - Rust
    pub struct RuntimeBindingsMeta { /* private fields */ }
    Expand description

    Runtime library bindings metadata.

    +RuntimeBindingsMeta in cairo_native::metadata::runtime_bindings - Rust
    cairo_native::metadata::runtime_bindings

    Struct RuntimeBindingsMeta

    source
    pub struct RuntimeBindingsMeta { /* private fields */ }
    Expand description

    Runtime library bindings metadata.

    Implementations§

    source§

    impl RuntimeBindingsMeta

    source

    pub fn libfunc_debug_print<'c, 'a>( &mut self, context: &'c Context, @@ -105,7 +105,7 @@ module: &Module<'_>, block: &'a Block<'c>, ptr: Value<'c, 'a>, - drop_fn: Option<Value<'c, 'a>>, + drop_fn: Option<Value<'c, 'a>>, location: Location<'c>, ) -> Result<OperationRef<'c, 'a>>
    where 'c: 'a,

    Register if necessary, then invoke the dict_alloc_new() function.

    @@ -177,41 +177,41 @@ 'c: 'a,

    Register if necessary, then invoke the vtable_cheatcode() runtime function.

    Calls the cheatcode syscall with the given arguments.

    The result is stored in result_ptr.

    -

    Trait Implementations§

    source§

    impl Debug for RuntimeBindingsMeta

    source§

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

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

    impl Default for RuntimeBindingsMeta

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +

    Trait Implementations§

    source§

    impl Debug for RuntimeBindingsMeta

    source§

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

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

    impl Default for RuntimeBindingsMeta

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -228,121 +228,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -359,121 +359,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -489,61 +489,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -559,50 +559,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -612,98 +612,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

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

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

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

    §

    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/cairo_native/metadata/struct.MetadataStorage.html b/cairo_native/metadata/struct.MetadataStorage.html index 3b319817b..cbe28cf27 100644 --- a/cairo_native/metadata/struct.MetadataStorage.html +++ b/cairo_native/metadata/struct.MetadataStorage.html @@ -1,57 +1,57 @@ -MetadataStorage in cairo_native::metadata - Rust

    Struct cairo_native::metadata::MetadataStorage

    source ·
    pub struct MetadataStorage { /* private fields */ }
    Expand description

    Metadata container.

    +MetadataStorage in cairo_native::metadata - Rust
    cairo_native::metadata

    Struct MetadataStorage

    source
    pub struct MetadataStorage { /* private fields */ }
    Expand description

    Metadata container.

    Implementations§

    source§

    impl MetadataStorage

    source

    pub fn new() -> Self

    Create an empty metadata container.

    -
    source

    pub fn insert<T>(&mut self, meta: T) -> Option<&mut T>
    where - T: Any,

    Insert some metadata and return a mutable reference.

    +
    source

    pub fn insert<T>(&mut self, meta: T) -> Option<&mut T>
    where + T: Any,

    Insert some metadata and return a mutable reference.

    The insertion will fail if there is already some metadata with the same type, in which case it’ll return None.

    -
    source

    pub fn remove<T>(&mut self) -> Option<T>
    where - T: Any,

    Remove some metadata and return its last value.

    +
    source

    pub fn remove<T>(&mut self) -> Option<T>
    where + T: Any,

    Remove some metadata and return its last value.

    The removal will fail if there is no metadata with the requested type, in which case it’ll return None.

    -
    source

    pub fn get<T>(&self) -> Option<&T>
    where - T: Any,

    Retrieve a reference to some metadata.

    +
    source

    pub fn get<T>(&self) -> Option<&T>
    where + T: Any,

    Retrieve a reference to some metadata.

    The retrieval will fail if there is no metadata with the requested type, in which case it’ll return None.

    -
    source

    pub fn get_mut<T>(&mut self) -> Option<&mut T>
    where - T: Any,

    Retrieve a mutable reference to some metadata.

    +
    source

    pub fn get_mut<T>(&mut self) -> Option<&mut T>
    where + T: Any,

    Retrieve a mutable reference to some metadata.

    The retrieval will fail if there is no metadata with the requested type, in which case it’ll return None.

    -
    source

    pub fn get_or_insert_with<T>(&mut self, meta_gen: impl FnOnce() -> T) -> &mut T
    where - T: Any,

    Trait Implementations§

    source§

    impl Debug for MetadataStorage

    source§

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

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

    impl Default for MetadataStorage

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +
    source

    pub fn get_or_insert_with<T>(&mut self, meta_gen: impl FnOnce() -> T) -> &mut T
    where + T: Any,

    Trait Implementations§

    source§

    impl Debug for MetadataStorage

    source§

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

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

    impl Default for MetadataStorage

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -68,121 +68,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -199,121 +199,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -329,61 +329,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -399,50 +399,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -452,98 +452,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

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

    Initializes a with the given initializer. Read more
    §

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

    Dereferences the given pointer. Read more
    §

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

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native/metadata/tail_recursion/index.html b/cairo_native/metadata/tail_recursion/index.html index 2b4891f73..9c0cb0bcf 100644 --- a/cairo_native/metadata/tail_recursion/index.html +++ b/cairo_native/metadata/tail_recursion/index.html @@ -1,4 +1,4 @@ -cairo_native::metadata::tail_recursion - Rust

    Module cairo_native::metadata::tail_recursion

    source ·
    Expand description

    §Tail recursion information

    +cairo_native::metadata::tail_recursion - Rust
    cairo_native::metadata

    Module tail_recursion

    source
    Expand description

    §Tail recursion information

    Whenever the compiler detects a direct tail-recursive function call it’ll insert this metadata. If the libfunc handler decides to use it by setting a return target, the compiler will insert the required instructions to make it really tail-recursive.

    diff --git a/cairo_native/metadata/tail_recursion/struct.TailRecursionMeta.html b/cairo_native/metadata/tail_recursion/struct.TailRecursionMeta.html index b2609d333..a37912346 100644 --- a/cairo_native/metadata/tail_recursion/struct.TailRecursionMeta.html +++ b/cairo_native/metadata/tail_recursion/struct.TailRecursionMeta.html @@ -1,45 +1,45 @@ -TailRecursionMeta in cairo_native::metadata::tail_recursion - Rust
    pub struct TailRecursionMeta { /* private fields */ }
    Expand description

    The tail recursion metadata.

    +TailRecursionMeta in cairo_native::metadata::tail_recursion - Rust
    cairo_native::metadata::tail_recursion

    Struct TailRecursionMeta

    source
    pub struct TailRecursionMeta { /* private fields */ }
    Expand description

    The tail recursion metadata.

    Check out the module for more information about how tail recursion works.

    Implementations§

    source§

    impl TailRecursionMeta

    source

    pub fn new(depth_counter: Value<'_, '_>, recursion_target: &Block<'_>) -> Self

    Create the tail recursion meta.

    source

    pub fn depth_counter<'ctx, 'this>(&self) -> Value<'ctx, 'this>

    Return the current depth counter value.

    source

    pub fn recursion_target<'ctx, 'this>(&self) -> BlockRef<'ctx, 'this>

    Return the recursion target block.

    -
    source

    pub fn return_target<'ctx, 'this>(&self) -> Option<BlockRef<'ctx, 'this>>

    Return the return target block, if set.

    +
    source

    pub fn return_target<'ctx, 'this>(&self) -> Option<BlockRef<'ctx, 'this>>

    Return the return target block, if set.

    source

    pub fn set_return_target(&mut self, block: &Block<'_>)

    Set the return target block.

    -

    Trait Implementations§

    source§

    impl Debug for TailRecursionMeta

    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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +

    Trait Implementations§

    source§

    impl Debug for TailRecursionMeta

    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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -56,121 +56,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -187,121 +187,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -317,61 +317,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -387,50 +387,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -440,98 +440,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native/module/index.html b/cairo_native/module/index.html index 90746b42a..0d4bcf2ea 100644 --- a/cairo_native/module/index.html +++ b/cairo_native/module/index.html @@ -1,3 +1,3 @@ -cairo_native::module - Rust

    Module cairo_native::module

    source ·

    Structs§

    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -66,121 +66,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -197,121 +197,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -327,61 +327,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -397,50 +397,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -450,98 +450,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native/starknet/constant.SYSCALL_HANDLER_VTABLE.html b/cairo_native/starknet/constant.SYSCALL_HANDLER_VTABLE.html index 20aa63d89..abe4edf5f 100644 --- a/cairo_native/starknet/constant.SYSCALL_HANDLER_VTABLE.html +++ b/cairo_native/starknet/constant.SYSCALL_HANDLER_VTABLE.html @@ -1 +1 @@ -SYSCALL_HANDLER_VTABLE in cairo_native::starknet - Rust

    Constant cairo_native::starknet::SYSCALL_HANDLER_VTABLE

    source ·
    pub const SYSCALL_HANDLER_VTABLE: LocalKey<Cell<*mut ()>>;
    \ No newline at end of file +SYSCALL_HANDLER_VTABLE in cairo_native::starknet - Rust
    cairo_native::starknet

    Constant SYSCALL_HANDLER_VTABLE

    source
    pub const SYSCALL_HANDLER_VTABLE: LocalKey<Cell<*mut ()>>;
    \ No newline at end of file diff --git a/cairo_native/starknet/fn.cairo_native__vtable_cheatcode.html b/cairo_native/starknet/fn.cairo_native__vtable_cheatcode.html index af5180dc9..82b0acf24 100644 --- a/cairo_native/starknet/fn.cairo_native__vtable_cheatcode.html +++ b/cairo_native/starknet/fn.cairo_native__vtable_cheatcode.html @@ -1,4 +1,4 @@ -cairo_native__vtable_cheatcode in cairo_native::starknet - Rust
    pub extern "C" fn cairo_native__vtable_cheatcode(
    +cairo_native__vtable_cheatcode in cairo_native::starknet - Rust
    cairo_native::starknet

    Function cairo_native__vtable_cheatcode

    source
    pub extern "C" fn cairo_native__vtable_cheatcode(
         result_ptr: &mut ArrayAbi<Felt252Abi>,
         selector: &Felt252Abi,
         input: &ArrayAbi<Felt252Abi>,
    diff --git a/cairo_native/starknet/index.html b/cairo_native/starknet/index.html
    index 81181e74c..13e97514c 100644
    --- a/cairo_native/starknet/index.html
    +++ b/cairo_native/starknet/index.html
    @@ -1,2 +1,2 @@
    -cairo_native::starknet - Rust

    Module cairo_native::starknet

    source ·
    Expand description

    Starknet related code for cairo_native

    -

    Structs§

    Constants§

    Traits§

    Functions§

    Type Aliases§

    \ No newline at end of file +cairo_native::starknet - Rust
    cairo_native

    Module starknet

    source
    Expand description

    Starknet related code for cairo_native

    +

    Structs§

    Constants§

    Traits§

    Functions§

    Type Aliases§

    \ No newline at end of file diff --git a/cairo_native/starknet/struct.ArrayAbi.html b/cairo_native/starknet/struct.ArrayAbi.html index c6cf4da37..cbda4c928 100644 --- a/cairo_native/starknet/struct.ArrayAbi.html +++ b/cairo_native/starknet/struct.ArrayAbi.html @@ -1,45 +1,45 @@ -ArrayAbi in cairo_native::starknet - Rust

    Struct cairo_native::starknet::ArrayAbi

    source ·
    #[repr(C)]
    pub struct ArrayAbi<T> { - pub ptr: *mut T, - pub since: u32, - pub until: u32, - pub capacity: u32, -}

    Fields§

    §ptr: *mut T§since: u32§until: u32§capacity: u32

    Trait Implementations§

    source§

    impl<T: Debug> Debug for ArrayAbi<T>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl From<&ArrayAbi<Felt252Abi>> for Vec<Felt>

    source§

    fn from(value: &ArrayAbi<Felt252Abi>) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    §

    impl<T> Freeze for ArrayAbi<T>

    §

    impl<T> RefUnwindSafe for ArrayAbi<T>
    where - T: RefUnwindSafe,

    §

    impl<T> !Send for ArrayAbi<T>

    §

    impl<T> !Sync for ArrayAbi<T>

    §

    impl<T> Unpin for ArrayAbi<T>

    §

    impl<T> UnwindSafe for ArrayAbi<T>
    where - T: RefUnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +ArrayAbi in cairo_native::starknet - Rust
    cairo_native::starknet

    Struct ArrayAbi

    source
    #[repr(C)]
    pub struct ArrayAbi<T> { + pub ptr: *mut T, + pub since: u32, + pub until: u32, + pub capacity: u32, +}

    Fields§

    §ptr: *mut T§since: u32§until: u32§capacity: u32

    Trait Implementations§

    source§

    impl<T: Debug> Debug for ArrayAbi<T>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl From<&ArrayAbi<Felt252Abi>> for Vec<Felt>

    source§

    fn from(value: &ArrayAbi<Felt252Abi>) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    §

    impl<T> Freeze for ArrayAbi<T>

    §

    impl<T> RefUnwindSafe for ArrayAbi<T>
    where + T: RefUnwindSafe,

    §

    impl<T> !Send for ArrayAbi<T>

    §

    impl<T> !Sync for ArrayAbi<T>

    §

    impl<T> Unpin for ArrayAbi<T>

    §

    impl<T> UnwindSafe for ArrayAbi<T>
    where + T: RefUnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -56,121 +56,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -187,121 +187,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -317,61 +317,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -387,50 +387,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -440,98 +440,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native/starknet/struct.BlockInfo.html b/cairo_native/starknet/struct.BlockInfo.html index bf81a40e7..680cb727a 100644 --- a/cairo_native/starknet/struct.BlockInfo.html +++ b/cairo_native/starknet/struct.BlockInfo.html @@ -1,63 +1,63 @@ -BlockInfo in cairo_native::starknet - Rust

    Struct cairo_native::starknet::BlockInfo

    source ·
    pub struct BlockInfo {
    -    pub block_number: u64,
    -    pub block_timestamp: u64,
    +BlockInfo in cairo_native::starknet - Rust
    cairo_native::starknet

    Struct BlockInfo

    source
    pub struct BlockInfo {
    +    pub block_number: u64,
    +    pub block_timestamp: u64,
         pub sequencer_address: Felt,
    -}

    Fields§

    §block_number: u64§block_timestamp: u64§sequencer_address: Felt

    Trait Implementations§

    source§

    impl Clone for BlockInfo

    source§

    fn clone(&self) -> BlockInfo

    Returns a copy of 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 BlockInfo

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for BlockInfo

    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 BlockInfo

    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 BlockInfo

    source§

    fn cmp(&self, other: &BlockInfo) -> 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 BlockInfo

    source§

    fn eq(&self, other: &BlockInfo) -> 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 BlockInfo

    source§

    fn partial_cmp(&self, other: &BlockInfo) -> 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 BlockInfo

    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 BlockInfo

    source§

    impl Eq for BlockInfo

    source§

    impl StructuralPartialEq for BlockInfo

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +}

    Fields§

    §block_number: u64§block_timestamp: u64§sequencer_address: Felt

    Trait Implementations§

    source§

    impl Clone for BlockInfo

    source§

    fn clone(&self) -> BlockInfo

    Returns a copy of 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 BlockInfo

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for BlockInfo

    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 BlockInfo

    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 BlockInfo

    source§

    fn cmp(&self, other: &BlockInfo) -> 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 BlockInfo

    source§

    fn eq(&self, other: &BlockInfo) -> 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 BlockInfo

    source§

    fn partial_cmp(&self, other: &BlockInfo) -> 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 BlockInfo

    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 BlockInfo

    source§

    impl Eq for BlockInfo

    source§

    impl StructuralPartialEq for BlockInfo

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -74,121 +74,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -205,121 +205,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -335,61 +335,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -405,50 +405,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -458,100 +458,100 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native/starknet/struct.DummySyscallHandler.html b/cairo_native/starknet/struct.DummySyscallHandler.html index 09deec3a2..d89ae9632 100644 --- a/cairo_native/starknet/struct.DummySyscallHandler.html +++ b/cairo_native/starknet/struct.DummySyscallHandler.html @@ -1,153 +1,153 @@ -DummySyscallHandler in cairo_native::starknet - Rust

    Struct cairo_native::starknet::DummySyscallHandler

    source ·
    pub struct DummySyscallHandler;

    Trait Implementations§

    source§

    impl StarknetSyscallHandler for DummySyscallHandler

    source§

    fn get_block_hash( +DummySyscallHandler in cairo_native::starknet - Rust
    cairo_native::starknet

    Struct DummySyscallHandler

    source
    pub struct DummySyscallHandler;

    Trait Implementations§

    source§

    impl StarknetSyscallHandler for DummySyscallHandler

    source§

    fn get_block_hash( &mut self, - _block_number: u64, - _remaining_gas: &mut u64, + _block_number: u64, + _remaining_gas: &mut u64, ) -> SyscallResult<Felt>

    source§

    fn get_execution_info( &mut self, - _remaining_gas: &mut u64, + _remaining_gas: &mut u64, ) -> SyscallResult<ExecutionInfo>

    source§

    fn get_execution_info_v2( &mut self, - _remaining_gas: &mut u64, + _remaining_gas: &mut u64, ) -> SyscallResult<ExecutionInfoV2>

    source§

    fn deploy( &mut self, _class_hash: Felt, _contract_address_salt: Felt, _calldata: &[Felt], - _deploy_from_zero: bool, - _remaining_gas: &mut u64, -) -> SyscallResult<(Felt, Vec<Felt>)>

    source§

    fn replace_class( + _deploy_from_zero: bool, + _remaining_gas: &mut u64, +) -> SyscallResult<(Felt, Vec<Felt>)>

    source§

    fn replace_class( &mut self, _class_hash: Felt, - _remaining_gas: &mut u64, -) -> SyscallResult<()>

    source§

    fn library_call( + _remaining_gas: &mut u64, +) -> SyscallResult<()>

    source§

    fn library_call( &mut self, _class_hash: Felt, _function_selector: Felt, _calldata: &[Felt], - _remaining_gas: &mut u64, -) -> SyscallResult<Vec<Felt>>

    source§

    fn call_contract( + _remaining_gas: &mut u64, +) -> SyscallResult<Vec<Felt>>

    source§

    fn call_contract( &mut self, _address: Felt, _entry_point_selector: Felt, _calldata: &[Felt], - _remaining_gas: &mut u64, -) -> SyscallResult<Vec<Felt>>

    source§

    fn storage_read( + _remaining_gas: &mut u64, +) -> SyscallResult<Vec<Felt>>

    source§

    fn storage_read( &mut self, - _address_domain: u32, + _address_domain: u32, _address: Felt, - _remaining_gas: &mut u64, + _remaining_gas: &mut u64, ) -> SyscallResult<Felt>

    source§

    fn storage_write( &mut self, - _address_domain: u32, + _address_domain: u32, _address: Felt, _value: Felt, - _remaining_gas: &mut u64, -) -> SyscallResult<()>

    source§

    fn emit_event( + _remaining_gas: &mut u64, +) -> SyscallResult<()>

    source§

    fn emit_event( &mut self, _keys: &[Felt], _data: &[Felt], - _remaining_gas: &mut u64, -) -> SyscallResult<()>

    source§

    fn send_message_to_l1( + _remaining_gas: &mut u64, +) -> SyscallResult<()>

    source§

    fn send_message_to_l1( &mut self, _to_address: Felt, _payload: &[Felt], - _remaining_gas: &mut u64, -) -> SyscallResult<()>

    source§

    fn keccak( + _remaining_gas: &mut u64, +) -> SyscallResult<()>

    source§

    fn keccak( &mut self, - _input: &[u64], - _remaining_gas: &mut u64, + _input: &[u64], + _remaining_gas: &mut u64, ) -> SyscallResult<U256>

    source§

    fn secp256k1_new( &mut self, _x: U256, _y: U256, - _remaining_gas: &mut u64, -) -> SyscallResult<Option<Secp256k1Point>>

    source§

    fn secp256k1_add( + _remaining_gas: &mut u64, +) -> SyscallResult<Option<Secp256k1Point>>

    source§

    fn secp256k1_add( &mut self, _p0: Secp256k1Point, _p1: Secp256k1Point, - _remaining_gas: &mut u64, + _remaining_gas: &mut u64, ) -> SyscallResult<Secp256k1Point>

    source§

    fn secp256k1_mul( &mut self, _p: Secp256k1Point, _m: U256, - _remaining_gas: &mut u64, + _remaining_gas: &mut u64, ) -> SyscallResult<Secp256k1Point>

    source§

    fn secp256k1_get_point_from_x( &mut self, _x: U256, - _y_parity: bool, - _remaining_gas: &mut u64, -) -> SyscallResult<Option<Secp256k1Point>>

    source§

    fn secp256k1_get_xy( + _y_parity: bool, + _remaining_gas: &mut u64, +) -> SyscallResult<Option<Secp256k1Point>>

    source§

    fn secp256k1_get_xy( &mut self, _p: Secp256k1Point, - _remaining_gas: &mut u64, + _remaining_gas: &mut u64, ) -> SyscallResult<(U256, U256)>

    source§

    fn secp256r1_new( &mut self, _x: U256, _y: U256, - _remaining_gas: &mut u64, -) -> SyscallResult<Option<Secp256r1Point>>

    source§

    fn secp256r1_add( + _remaining_gas: &mut u64, +) -> SyscallResult<Option<Secp256r1Point>>

    source§

    fn secp256r1_add( &mut self, _p0: Secp256r1Point, _p1: Secp256r1Point, - _remaining_gas: &mut u64, + _remaining_gas: &mut u64, ) -> SyscallResult<Secp256r1Point>

    source§

    fn secp256r1_mul( &mut self, _p: Secp256r1Point, _m: U256, - _remaining_gas: &mut u64, + _remaining_gas: &mut u64, ) -> SyscallResult<Secp256r1Point>

    source§

    fn secp256r1_get_point_from_x( &mut self, _x: U256, - _y_parity: bool, - _remaining_gas: &mut u64, -) -> SyscallResult<Option<Secp256r1Point>>

    source§

    fn secp256r1_get_xy( + _y_parity: bool, + _remaining_gas: &mut u64, +) -> SyscallResult<Option<Secp256r1Point>>

    source§

    fn secp256r1_get_xy( &mut self, _p: Secp256r1Point, - _remaining_gas: &mut u64, + _remaining_gas: &mut u64, ) -> SyscallResult<(U256, U256)>

    source§

    fn sha256_process_block( &mut self, - _state: &mut [u32; 8], - _block: &[u32; 16], - _remaining_gas: &mut u64, -) -> SyscallResult<()>

    source§

    fn get_class_hash_at( + _state: &mut [u32; 8], + _block: &[u32; 16], + _remaining_gas: &mut u64, +) -> SyscallResult<()>

    source§

    fn get_class_hash_at( &mut self, _contract_address: Felt, - _remaining_gas: &mut u64, -) -> SyscallResult<Felt>

    source§

    fn cheatcode(&mut self, _selector: Felt, _input: &[Felt]) -> Vec<Felt>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when + _remaining_gas: &mut u64, +) -> SyscallResult<Felt>

    source§

    fn cheatcode(&mut self, _selector: Felt, _input: &[Felt]) -> Vec<Felt>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -164,121 +164,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -295,121 +295,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -425,61 +425,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -495,50 +495,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -548,98 +548,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native/starknet/struct.ExecutionInfo.html b/cairo_native/starknet/struct.ExecutionInfo.html index f95ce7d77..0503eed76 100644 --- a/cairo_native/starknet/struct.ExecutionInfo.html +++ b/cairo_native/starknet/struct.ExecutionInfo.html @@ -1,65 +1,65 @@ -ExecutionInfo in cairo_native::starknet - Rust

    Struct cairo_native::starknet::ExecutionInfo

    source ·
    pub struct ExecutionInfo {
    +ExecutionInfo in cairo_native::starknet - Rust
    cairo_native::starknet

    Struct ExecutionInfo

    source
    pub struct ExecutionInfo {
         pub block_info: BlockInfo,
         pub tx_info: TxInfo,
         pub caller_address: Felt,
         pub contract_address: Felt,
         pub entry_point_selector: Felt,
    -}

    Fields§

    §block_info: BlockInfo§tx_info: TxInfo§caller_address: Felt§contract_address: Felt§entry_point_selector: Felt

    Trait Implementations§

    source§

    impl Clone for ExecutionInfo

    source§

    fn clone(&self) -> ExecutionInfo

    Returns a copy of 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 ExecutionInfo

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for ExecutionInfo

    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 ExecutionInfo

    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 ExecutionInfo

    source§

    fn cmp(&self, other: &ExecutionInfo) -> 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 ExecutionInfo

    source§

    fn eq(&self, other: &ExecutionInfo) -> 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 ExecutionInfo

    source§

    fn partial_cmp(&self, other: &ExecutionInfo) -> 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 ExecutionInfo

    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 ExecutionInfo

    source§

    impl StructuralPartialEq for ExecutionInfo

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +}

    Fields§

    §block_info: BlockInfo§tx_info: TxInfo§caller_address: Felt§contract_address: Felt§entry_point_selector: Felt

    Trait Implementations§

    source§

    impl Clone for ExecutionInfo

    source§

    fn clone(&self) -> ExecutionInfo

    Returns a copy of 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 ExecutionInfo

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for ExecutionInfo

    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 ExecutionInfo

    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 ExecutionInfo

    source§

    fn cmp(&self, other: &ExecutionInfo) -> 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 ExecutionInfo

    source§

    fn eq(&self, other: &ExecutionInfo) -> 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 ExecutionInfo

    source§

    fn partial_cmp(&self, other: &ExecutionInfo) -> 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 ExecutionInfo

    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 ExecutionInfo

    source§

    impl StructuralPartialEq for ExecutionInfo

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -76,121 +76,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -207,121 +207,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -337,61 +337,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -407,50 +407,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -460,100 +460,100 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native/starknet/struct.ExecutionInfoV2.html b/cairo_native/starknet/struct.ExecutionInfoV2.html index ebb5ee2fc..8c2d9484a 100644 --- a/cairo_native/starknet/struct.ExecutionInfoV2.html +++ b/cairo_native/starknet/struct.ExecutionInfoV2.html @@ -1,65 +1,65 @@ -ExecutionInfoV2 in cairo_native::starknet - Rust

    Struct cairo_native::starknet::ExecutionInfoV2

    source ·
    pub struct ExecutionInfoV2 {
    +ExecutionInfoV2 in cairo_native::starknet - Rust
    cairo_native::starknet

    Struct ExecutionInfoV2

    source
    pub struct ExecutionInfoV2 {
         pub block_info: BlockInfo,
         pub tx_info: TxV2Info,
         pub caller_address: Felt,
         pub contract_address: Felt,
         pub entry_point_selector: Felt,
    -}

    Fields§

    §block_info: BlockInfo§tx_info: TxV2Info§caller_address: Felt§contract_address: Felt§entry_point_selector: Felt

    Trait Implementations§

    source§

    impl Clone for ExecutionInfoV2

    source§

    fn clone(&self) -> ExecutionInfoV2

    Returns a copy of 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 ExecutionInfoV2

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for ExecutionInfoV2

    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 ExecutionInfoV2

    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 ExecutionInfoV2

    source§

    fn cmp(&self, other: &ExecutionInfoV2) -> 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 ExecutionInfoV2

    source§

    fn eq(&self, other: &ExecutionInfoV2) -> 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 ExecutionInfoV2

    source§

    fn partial_cmp(&self, other: &ExecutionInfoV2) -> 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 ExecutionInfoV2

    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 ExecutionInfoV2

    source§

    impl StructuralPartialEq for ExecutionInfoV2

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +}

    Fields§

    §block_info: BlockInfo§tx_info: TxV2Info§caller_address: Felt§contract_address: Felt§entry_point_selector: Felt

    Trait Implementations§

    source§

    impl Clone for ExecutionInfoV2

    source§

    fn clone(&self) -> ExecutionInfoV2

    Returns a copy of 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 ExecutionInfoV2

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for ExecutionInfoV2

    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 ExecutionInfoV2

    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 ExecutionInfoV2

    source§

    fn cmp(&self, other: &ExecutionInfoV2) -> 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 ExecutionInfoV2

    source§

    fn eq(&self, other: &ExecutionInfoV2) -> 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 ExecutionInfoV2

    source§

    fn partial_cmp(&self, other: &ExecutionInfoV2) -> 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 ExecutionInfoV2

    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 ExecutionInfoV2

    source§

    impl StructuralPartialEq for ExecutionInfoV2

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -76,121 +76,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -207,121 +207,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -337,61 +337,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -407,50 +407,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -460,100 +460,100 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native/starknet/struct.Felt252Abi.html b/cairo_native/starknet/struct.Felt252Abi.html index 488eb6fb5..fccf96c33 100644 --- a/cairo_native/starknet/struct.Felt252Abi.html +++ b/cairo_native/starknet/struct.Felt252Abi.html @@ -1,41 +1,41 @@ -Felt252Abi in cairo_native::starknet - Rust

    Struct cairo_native::starknet::Felt252Abi

    source ·
    #[repr(C, align(16))]
    pub struct Felt252Abi(pub [u8; 32]);
    Expand description

    Binary representation of a Felt (in MLIR).

    -

    Tuple Fields§

    §0: [u8; 32]

    Trait Implementations§

    source§

    impl Clone for Felt252Abi

    source§

    fn clone(&self) -> Felt252Abi

    Returns a copy of 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 Felt252Abi

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl From<&Felt252Abi> for Felt

    source§

    fn from(value: &Felt252Abi) -> Felt

    Converts to this type from the input type.
    source§

    impl From<Felt252Abi> for Felt

    source§

    fn from(value: Felt252Abi) -> Felt

    Converts to this type from the input type.
    source§

    impl Copy for Felt252Abi

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +Felt252Abi in cairo_native::starknet - Rust
    cairo_native::starknet

    Struct Felt252Abi

    source
    #[repr(C, align(16))]
    pub struct Felt252Abi(pub [u8; 32]);
    Expand description

    Binary representation of a Felt (in MLIR).

    +

    Tuple Fields§

    §0: [u8; 32]

    Trait Implementations§

    source§

    impl Clone for Felt252Abi

    source§

    fn clone(&self) -> Felt252Abi

    Returns a copy of 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 Felt252Abi

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl From<&Felt252Abi> for Felt

    source§

    fn from(value: &Felt252Abi) -> Felt

    Converts to this type from the input type.
    source§

    impl From<Felt252Abi> for Felt

    source§

    fn from(value: Felt252Abi) -> Felt

    Converts to this type from the input type.
    source§

    impl Copy for Felt252Abi

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -52,121 +52,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -183,121 +183,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -313,61 +313,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -383,50 +383,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -436,99 +436,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native/starknet/struct.ResourceBounds.html b/cairo_native/starknet/struct.ResourceBounds.html index dc93dfb8f..f0cefe8e6 100644 --- a/cairo_native/starknet/struct.ResourceBounds.html +++ b/cairo_native/starknet/struct.ResourceBounds.html @@ -1,63 +1,63 @@ -ResourceBounds in cairo_native::starknet - Rust

    Struct cairo_native::starknet::ResourceBounds

    source ·
    pub struct ResourceBounds {
    +ResourceBounds in cairo_native::starknet - Rust
    cairo_native::starknet

    Struct ResourceBounds

    source
    pub struct ResourceBounds {
         pub resource: Felt,
    -    pub max_amount: u64,
    -    pub max_price_per_unit: u128,
    -}

    Fields§

    §resource: Felt§max_amount: u64§max_price_per_unit: u128

    Trait Implementations§

    source§

    impl Clone for ResourceBounds

    source§

    fn clone(&self) -> ResourceBounds

    Returns a copy of 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 ResourceBounds

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for ResourceBounds

    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 ResourceBounds

    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 ResourceBounds

    source§

    fn cmp(&self, other: &ResourceBounds) -> 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 ResourceBounds

    source§

    fn eq(&self, other: &ResourceBounds) -> 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 ResourceBounds

    source§

    fn partial_cmp(&self, other: &ResourceBounds) -> 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 ResourceBounds

    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 ResourceBounds

    source§

    impl Eq for ResourceBounds

    source§

    impl StructuralPartialEq for ResourceBounds

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when + pub max_amount: u64, + pub max_price_per_unit: u128, +}

    Fields§

    §resource: Felt§max_amount: u64§max_price_per_unit: u128

    Trait Implementations§

    source§

    impl Clone for ResourceBounds

    source§

    fn clone(&self) -> ResourceBounds

    Returns a copy of 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 ResourceBounds

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for ResourceBounds

    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 ResourceBounds

    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 ResourceBounds

    source§

    fn cmp(&self, other: &ResourceBounds) -> 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 ResourceBounds

    source§

    fn eq(&self, other: &ResourceBounds) -> 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 ResourceBounds

    source§

    fn partial_cmp(&self, other: &ResourceBounds) -> 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 ResourceBounds

    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 ResourceBounds

    source§

    impl Eq for ResourceBounds

    source§

    impl StructuralPartialEq for ResourceBounds

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -74,121 +74,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -205,121 +205,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -335,61 +335,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -405,50 +405,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -458,100 +458,100 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native/starknet/struct.Secp256k1Point.html b/cairo_native/starknet/struct.Secp256k1Point.html index 0b8cafafb..f4ff1088a 100644 --- a/cairo_native/starknet/struct.Secp256k1Point.html +++ b/cairo_native/starknet/struct.Secp256k1Point.html @@ -1,61 +1,61 @@ -Secp256k1Point in cairo_native::starknet - Rust

    Struct cairo_native::starknet::Secp256k1Point

    source ·
    #[repr(C, align(16))]
    pub struct Secp256k1Point { +Secp256k1Point in cairo_native::starknet - Rust
    cairo_native::starknet

    Struct Secp256k1Point

    source
    #[repr(C, align(16))]
    pub struct Secp256k1Point { pub x: U256, pub y: U256, - pub is_infinity: bool, -}

    Fields§

    §x: U256§y: U256§is_infinity: bool

    Implementations§

    source§

    impl Secp256k1Point

    source

    pub const fn new( - x_lo: u128, - x_hi: u128, - y_lo: u128, - y_hi: u128, - is_infinity: bool, -) -> Self

    Trait Implementations§

    source§

    impl Clone for Secp256k1Point

    source§

    fn clone(&self) -> Secp256k1Point

    Returns a copy of 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 Secp256k1Point

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Secp256k1Point

    source§

    fn default() -> Secp256k1Point

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Secp256k1Point

    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 Secp256k1Point

    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 Secp256k1Point

    source§

    fn eq(&self, other: &Secp256k1Point) -> 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 Secp256k1Point

    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 Secp256k1Point

    source§

    impl Eq for Secp256k1Point

    source§

    impl StructuralPartialEq for Secp256k1Point

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when + pub is_infinity: bool, +}

    Fields§

    §x: U256§y: U256§is_infinity: bool

    Implementations§

    source§

    impl Secp256k1Point

    source

    pub const fn new( + x_lo: u128, + x_hi: u128, + y_lo: u128, + y_hi: u128, + is_infinity: bool, +) -> Self

    Trait Implementations§

    source§

    impl Clone for Secp256k1Point

    source§

    fn clone(&self) -> Secp256k1Point

    Returns a copy of 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 Secp256k1Point

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Secp256k1Point

    source§

    fn default() -> Secp256k1Point

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Secp256k1Point

    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 Secp256k1Point

    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 Secp256k1Point

    source§

    fn eq(&self, other: &Secp256k1Point) -> 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 Secp256k1Point

    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 Secp256k1Point

    source§

    impl Eq for Secp256k1Point

    source§

    impl StructuralPartialEq for Secp256k1Point

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -72,121 +72,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -203,121 +203,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -333,61 +333,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -403,50 +403,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -456,100 +456,100 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native/starknet/struct.Secp256r1Point.html b/cairo_native/starknet/struct.Secp256r1Point.html index 7f5485832..92d6e5704 100644 --- a/cairo_native/starknet/struct.Secp256r1Point.html +++ b/cairo_native/starknet/struct.Secp256r1Point.html @@ -1,61 +1,61 @@ -Secp256r1Point in cairo_native::starknet - Rust

    Struct cairo_native::starknet::Secp256r1Point

    source ·
    #[repr(C, align(16))]
    pub struct Secp256r1Point { +Secp256r1Point in cairo_native::starknet - Rust
    cairo_native::starknet

    Struct Secp256r1Point

    source
    #[repr(C, align(16))]
    pub struct Secp256r1Point { pub x: U256, pub y: U256, - pub is_infinity: bool, -}

    Fields§

    §x: U256§y: U256§is_infinity: bool

    Implementations§

    source§

    impl Secp256r1Point

    source

    pub const fn new( - x_lo: u128, - x_hi: u128, - y_lo: u128, - y_hi: u128, - is_infinity: bool, -) -> Self

    Trait Implementations§

    source§

    impl Clone for Secp256r1Point

    source§

    fn clone(&self) -> Secp256r1Point

    Returns a copy of 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 Secp256r1Point

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Secp256r1Point

    source§

    fn default() -> Secp256r1Point

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Secp256r1Point

    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 Secp256r1Point

    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 Secp256r1Point

    source§

    fn eq(&self, other: &Secp256r1Point) -> 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 Secp256r1Point

    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 Secp256r1Point

    source§

    impl Eq for Secp256r1Point

    source§

    impl StructuralPartialEq for Secp256r1Point

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when + pub is_infinity: bool, +}

    Fields§

    §x: U256§y: U256§is_infinity: bool

    Implementations§

    source§

    impl Secp256r1Point

    source

    pub const fn new( + x_lo: u128, + x_hi: u128, + y_lo: u128, + y_hi: u128, + is_infinity: bool, +) -> Self

    Trait Implementations§

    source§

    impl Clone for Secp256r1Point

    source§

    fn clone(&self) -> Secp256r1Point

    Returns a copy of 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 Secp256r1Point

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Secp256r1Point

    source§

    fn default() -> Secp256r1Point

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Secp256r1Point

    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 Secp256r1Point

    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 Secp256r1Point

    source§

    fn eq(&self, other: &Secp256r1Point) -> 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 Secp256r1Point

    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 Secp256r1Point

    source§

    impl Eq for Secp256r1Point

    source§

    impl StructuralPartialEq for Secp256r1Point

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -72,121 +72,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -203,121 +203,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -333,61 +333,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -403,50 +403,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -456,100 +456,100 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native/starknet/struct.TxInfo.html b/cairo_native/starknet/struct.TxInfo.html index 141830ae4..7e9a578c0 100644 --- a/cairo_native/starknet/struct.TxInfo.html +++ b/cairo_native/starknet/struct.TxInfo.html @@ -1,67 +1,67 @@ -TxInfo in cairo_native::starknet - Rust

    Struct cairo_native::starknet::TxInfo

    source ·
    pub struct TxInfo {
    +TxInfo in cairo_native::starknet - Rust
    cairo_native::starknet

    Struct TxInfo

    source
    pub struct TxInfo {
         pub version: Felt,
         pub account_contract_address: Felt,
    -    pub max_fee: u128,
    -    pub signature: Vec<Felt>,
    +    pub max_fee: u128,
    +    pub signature: Vec<Felt>,
         pub transaction_hash: Felt,
         pub chain_id: Felt,
         pub nonce: Felt,
    -}

    Fields§

    §version: Felt§account_contract_address: Felt§max_fee: u128§signature: Vec<Felt>§transaction_hash: Felt§chain_id: Felt§nonce: Felt

    Trait Implementations§

    source§

    impl Clone for TxInfo

    source§

    fn clone(&self) -> TxInfo

    Returns a copy of 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 TxInfo

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for TxInfo

    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 TxInfo

    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 TxInfo

    source§

    fn cmp(&self, other: &TxInfo) -> 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 TxInfo

    source§

    fn eq(&self, other: &TxInfo) -> 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 TxInfo

    source§

    fn partial_cmp(&self, other: &TxInfo) -> 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 TxInfo

    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 TxInfo

    source§

    impl StructuralPartialEq for TxInfo

    Auto Trait Implementations§

    §

    impl Freeze for TxInfo

    §

    impl RefUnwindSafe for TxInfo

    §

    impl Send for TxInfo

    §

    impl Sync for TxInfo

    §

    impl Unpin for TxInfo

    §

    impl UnwindSafe for TxInfo

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +}

    Fields§

    §version: Felt§account_contract_address: Felt§max_fee: u128§signature: Vec<Felt>§transaction_hash: Felt§chain_id: Felt§nonce: Felt

    Trait Implementations§

    source§

    impl Clone for TxInfo

    source§

    fn clone(&self) -> TxInfo

    Returns a copy of 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 TxInfo

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for TxInfo

    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 TxInfo

    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 TxInfo

    source§

    fn cmp(&self, other: &TxInfo) -> 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 TxInfo

    source§

    fn eq(&self, other: &TxInfo) -> 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 TxInfo

    source§

    fn partial_cmp(&self, other: &TxInfo) -> 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 TxInfo

    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 TxInfo

    source§

    impl StructuralPartialEq for TxInfo

    Auto Trait Implementations§

    §

    impl Freeze for TxInfo

    §

    impl RefUnwindSafe for TxInfo

    §

    impl Send for TxInfo

    §

    impl Sync for TxInfo

    §

    impl Unpin for TxInfo

    §

    impl UnwindSafe for TxInfo

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -78,121 +78,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -209,121 +209,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -339,61 +339,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -409,50 +409,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -462,100 +462,100 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native/starknet/struct.TxV2Info.html b/cairo_native/starknet/struct.TxV2Info.html index 9ae3b8975..db7b31c66 100644 --- a/cairo_native/starknet/struct.TxV2Info.html +++ b/cairo_native/starknet/struct.TxV2Info.html @@ -1,73 +1,73 @@ -TxV2Info in cairo_native::starknet - Rust

    Struct cairo_native::starknet::TxV2Info

    source ·
    pub struct TxV2Info {
    Show 13 fields +TxV2Info in cairo_native::starknet - Rust
    cairo_native::starknet

    Struct TxV2Info

    source
    pub struct TxV2Info {
    Show 13 fields pub version: Felt, pub account_contract_address: Felt, - pub max_fee: u128, - pub signature: Vec<Felt>, + pub max_fee: u128, + pub signature: Vec<Felt>, pub transaction_hash: Felt, pub chain_id: Felt, pub nonce: Felt, - pub resource_bounds: Vec<ResourceBounds>, - pub tip: u128, - pub paymaster_data: Vec<Felt>, - pub nonce_data_availability_mode: u32, - pub fee_data_availability_mode: u32, - pub account_deployment_data: Vec<Felt>, -
    }

    Fields§

    §version: Felt§account_contract_address: Felt§max_fee: u128§signature: Vec<Felt>§transaction_hash: Felt§chain_id: Felt§nonce: Felt§resource_bounds: Vec<ResourceBounds>§tip: u128§paymaster_data: Vec<Felt>§nonce_data_availability_mode: u32§fee_data_availability_mode: u32§account_deployment_data: Vec<Felt>

    Trait Implementations§

    source§

    impl Clone for TxV2Info

    source§

    fn clone(&self) -> TxV2Info

    Returns a copy of 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 TxV2Info

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for TxV2Info

    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 TxV2Info

    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 TxV2Info

    source§

    fn cmp(&self, other: &TxV2Info) -> 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 TxV2Info

    source§

    fn eq(&self, other: &TxV2Info) -> 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 TxV2Info

    source§

    fn partial_cmp(&self, other: &TxV2Info) -> 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 TxV2Info

    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 TxV2Info

    source§

    impl StructuralPartialEq for TxV2Info

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when + pub resource_bounds: Vec<ResourceBounds>, + pub tip: u128, + pub paymaster_data: Vec<Felt>, + pub nonce_data_availability_mode: u32, + pub fee_data_availability_mode: u32, + pub account_deployment_data: Vec<Felt>, +
    }

    Fields§

    §version: Felt§account_contract_address: Felt§max_fee: u128§signature: Vec<Felt>§transaction_hash: Felt§chain_id: Felt§nonce: Felt§resource_bounds: Vec<ResourceBounds>§tip: u128§paymaster_data: Vec<Felt>§nonce_data_availability_mode: u32§fee_data_availability_mode: u32§account_deployment_data: Vec<Felt>

    Trait Implementations§

    source§

    impl Clone for TxV2Info

    source§

    fn clone(&self) -> TxV2Info

    Returns a copy of 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 TxV2Info

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for TxV2Info

    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 TxV2Info

    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 TxV2Info

    source§

    fn cmp(&self, other: &TxV2Info) -> 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 TxV2Info

    source§

    fn eq(&self, other: &TxV2Info) -> 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 TxV2Info

    source§

    fn partial_cmp(&self, other: &TxV2Info) -> 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 TxV2Info

    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 TxV2Info

    source§

    impl StructuralPartialEq for TxV2Info

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -84,121 +84,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -215,121 +215,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -345,61 +345,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -415,50 +415,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -468,100 +468,100 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native/starknet/struct.U256.html b/cairo_native/starknet/struct.U256.html index 8baabda6d..771b7c24d 100644 --- a/cairo_native/starknet/struct.U256.html +++ b/cairo_native/starknet/struct.U256.html @@ -1,63 +1,63 @@ -U256 in cairo_native::starknet - Rust

    Struct cairo_native::starknet::U256

    source ·
    #[repr(C, align(16))]
    pub struct U256 { - pub lo: u128, - pub hi: u128, +U256 in cairo_native::starknet - Rust
    cairo_native::starknet

    Struct U256

    source
    #[repr(C, align(16))]
    pub struct U256 { + pub lo: u128, + pub hi: u128, }
    Expand description

    Binary representation of a u256 (in MLIR).

    -

    Fields§

    §lo: u128§hi: u128

    Trait Implementations§

    source§

    impl Clone for U256

    source§

    fn clone(&self) -> U256

    Returns a copy of 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 U256

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for U256

    source§

    fn default() -> U256

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for U256

    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 U256

    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 U256

    source§

    fn cmp(&self, other: &U256) -> 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 U256

    source§

    fn eq(&self, other: &U256) -> 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 U256

    source§

    fn partial_cmp(&self, other: &U256) -> 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 U256

    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 U256

    source§

    impl Eq for U256

    source§

    impl StructuralPartialEq for U256

    Auto Trait Implementations§

    §

    impl Freeze for U256

    §

    impl RefUnwindSafe for U256

    §

    impl Send for U256

    §

    impl Sync for U256

    §

    impl Unpin for U256

    §

    impl UnwindSafe for U256

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +

    Fields§

    §lo: u128§hi: u128

    Trait Implementations§

    source§

    impl Clone for U256

    source§

    fn clone(&self) -> U256

    Returns a copy of 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 U256

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for U256

    source§

    fn default() -> U256

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for U256

    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 U256

    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 U256

    source§

    fn cmp(&self, other: &U256) -> 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 U256

    source§

    fn eq(&self, other: &U256) -> 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 U256

    source§

    fn partial_cmp(&self, other: &U256) -> 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 U256

    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 U256

    source§

    impl Eq for U256

    source§

    impl StructuralPartialEq for U256

    Auto Trait Implementations§

    §

    impl Freeze for U256

    §

    impl RefUnwindSafe for U256

    §

    impl Send for U256

    §

    impl Sync for U256

    §

    impl Unpin for U256

    §

    impl UnwindSafe for U256

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -74,121 +74,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -205,121 +205,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -335,61 +335,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -405,50 +405,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -458,100 +458,100 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native/starknet/trait.StarknetSyscallHandler.html b/cairo_native/starknet/trait.StarknetSyscallHandler.html index c730199c2..c3dcaa327 100644 --- a/cairo_native/starknet/trait.StarknetSyscallHandler.html +++ b/cairo_native/starknet/trait.StarknetSyscallHandler.html @@ -1,260 +1,260 @@ -StarknetSyscallHandler in cairo_native::starknet - Rust

    Trait cairo_native::starknet::StarknetSyscallHandler

    source ·
    pub trait StarknetSyscallHandler {
    +StarknetSyscallHandler in cairo_native::starknet - Rust
    cairo_native::starknet

    Trait StarknetSyscallHandler

    source
    pub trait StarknetSyscallHandler {
     
    Show 25 methods // Required methods fn get_block_hash( &mut self, - block_number: u64, - remaining_gas: &mut u64, + block_number: u64, + remaining_gas: &mut u64, ) -> SyscallResult<Felt>; fn get_execution_info( &mut self, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<ExecutionInfo>; fn get_execution_info_v2( &mut self, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<ExecutionInfoV2>; fn deploy( &mut self, class_hash: Felt, contract_address_salt: Felt, calldata: &[Felt], - deploy_from_zero: bool, - remaining_gas: &mut u64, - ) -> SyscallResult<(Felt, Vec<Felt>)>; + deploy_from_zero: bool, + remaining_gas: &mut u64, + ) -> SyscallResult<(Felt, Vec<Felt>)>; fn replace_class( &mut self, class_hash: Felt, - remaining_gas: &mut u64, - ) -> SyscallResult<()>; + remaining_gas: &mut u64, + ) -> SyscallResult<()>; fn library_call( &mut self, class_hash: Felt, function_selector: Felt, calldata: &[Felt], - remaining_gas: &mut u64, - ) -> SyscallResult<Vec<Felt>>; + remaining_gas: &mut u64, + ) -> SyscallResult<Vec<Felt>>; fn call_contract( &mut self, address: Felt, entry_point_selector: Felt, calldata: &[Felt], - remaining_gas: &mut u64, - ) -> SyscallResult<Vec<Felt>>; + remaining_gas: &mut u64, + ) -> SyscallResult<Vec<Felt>>; fn storage_read( &mut self, - address_domain: u32, + address_domain: u32, address: Felt, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<Felt>; fn storage_write( &mut self, - address_domain: u32, + address_domain: u32, address: Felt, value: Felt, - remaining_gas: &mut u64, - ) -> SyscallResult<()>; + remaining_gas: &mut u64, + ) -> SyscallResult<()>; fn emit_event( &mut self, keys: &[Felt], data: &[Felt], - remaining_gas: &mut u64, - ) -> SyscallResult<()>; + remaining_gas: &mut u64, + ) -> SyscallResult<()>; fn send_message_to_l1( &mut self, to_address: Felt, payload: &[Felt], - remaining_gas: &mut u64, - ) -> SyscallResult<()>; + remaining_gas: &mut u64, + ) -> SyscallResult<()>; fn keccak( &mut self, - input: &[u64], - remaining_gas: &mut u64, + input: &[u64], + remaining_gas: &mut u64, ) -> SyscallResult<U256>; fn secp256k1_new( &mut self, x: U256, y: U256, - remaining_gas: &mut u64, - ) -> SyscallResult<Option<Secp256k1Point>>; + remaining_gas: &mut u64, + ) -> SyscallResult<Option<Secp256k1Point>>; fn secp256k1_add( &mut self, p0: Secp256k1Point, p1: Secp256k1Point, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<Secp256k1Point>; fn secp256k1_mul( &mut self, p: Secp256k1Point, m: U256, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<Secp256k1Point>; fn secp256k1_get_point_from_x( &mut self, x: U256, - y_parity: bool, - remaining_gas: &mut u64, - ) -> SyscallResult<Option<Secp256k1Point>>; + y_parity: bool, + remaining_gas: &mut u64, + ) -> SyscallResult<Option<Secp256k1Point>>; fn secp256k1_get_xy( &mut self, p: Secp256k1Point, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<(U256, U256)>; fn secp256r1_new( &mut self, x: U256, y: U256, - remaining_gas: &mut u64, - ) -> SyscallResult<Option<Secp256r1Point>>; + remaining_gas: &mut u64, + ) -> SyscallResult<Option<Secp256r1Point>>; fn secp256r1_add( &mut self, p0: Secp256r1Point, p1: Secp256r1Point, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<Secp256r1Point>; fn secp256r1_mul( &mut self, p: Secp256r1Point, m: U256, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<Secp256r1Point>; fn secp256r1_get_point_from_x( &mut self, x: U256, - y_parity: bool, - remaining_gas: &mut u64, - ) -> SyscallResult<Option<Secp256r1Point>>; + y_parity: bool, + remaining_gas: &mut u64, + ) -> SyscallResult<Option<Secp256r1Point>>; fn secp256r1_get_xy( &mut self, p: Secp256r1Point, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<(U256, U256)>; fn sha256_process_block( &mut self, - state: &mut [u32; 8], - block: &[u32; 16], - remaining_gas: &mut u64, - ) -> SyscallResult<()>; + state: &mut [u32; 8], + block: &[u32; 16], + remaining_gas: &mut u64, + ) -> SyscallResult<()>; fn get_class_hash_at( &mut self, contract_address: Felt, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<Felt>; // Provided method - fn cheatcode(&mut self, _selector: Felt, _input: &[Felt]) -> Vec<Felt> { ... } + fn cheatcode(&mut self, _selector: Felt, _input: &[Felt]) -> Vec<Felt> { ... }
    }

    Required Methods§

    source

    fn get_block_hash( &mut self, - block_number: u64, - remaining_gas: &mut u64, + block_number: u64, + remaining_gas: &mut u64, ) -> SyscallResult<Felt>

    source

    fn get_execution_info( &mut self, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<ExecutionInfo>

    source

    fn get_execution_info_v2( &mut self, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<ExecutionInfoV2>

    source

    fn deploy( &mut self, class_hash: Felt, contract_address_salt: Felt, calldata: &[Felt], - deploy_from_zero: bool, - remaining_gas: &mut u64, -) -> SyscallResult<(Felt, Vec<Felt>)>

    source

    fn replace_class( + deploy_from_zero: bool, + remaining_gas: &mut u64, +) -> SyscallResult<(Felt, Vec<Felt>)>

    source

    fn replace_class( &mut self, class_hash: Felt, - remaining_gas: &mut u64, -) -> SyscallResult<()>

    source

    fn library_call( + remaining_gas: &mut u64, +) -> SyscallResult<()>

    source

    fn library_call( &mut self, class_hash: Felt, function_selector: Felt, calldata: &[Felt], - remaining_gas: &mut u64, -) -> SyscallResult<Vec<Felt>>

    source

    fn call_contract( + remaining_gas: &mut u64, +) -> SyscallResult<Vec<Felt>>

    source

    fn call_contract( &mut self, address: Felt, entry_point_selector: Felt, calldata: &[Felt], - remaining_gas: &mut u64, -) -> SyscallResult<Vec<Felt>>

    source

    fn storage_read( + remaining_gas: &mut u64, +) -> SyscallResult<Vec<Felt>>

    source

    fn storage_read( &mut self, - address_domain: u32, + address_domain: u32, address: Felt, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<Felt>

    source

    fn storage_write( &mut self, - address_domain: u32, + address_domain: u32, address: Felt, value: Felt, - remaining_gas: &mut u64, -) -> SyscallResult<()>

    source

    fn emit_event( + remaining_gas: &mut u64, +) -> SyscallResult<()>

    source

    fn emit_event( &mut self, keys: &[Felt], data: &[Felt], - remaining_gas: &mut u64, -) -> SyscallResult<()>

    source

    fn send_message_to_l1( + remaining_gas: &mut u64, +) -> SyscallResult<()>

    source

    fn send_message_to_l1( &mut self, to_address: Felt, payload: &[Felt], - remaining_gas: &mut u64, -) -> SyscallResult<()>

    source

    fn keccak( + remaining_gas: &mut u64, +) -> SyscallResult<()>

    source

    fn keccak( &mut self, - input: &[u64], - remaining_gas: &mut u64, + input: &[u64], + remaining_gas: &mut u64, ) -> SyscallResult<U256>

    source

    fn secp256k1_new( &mut self, x: U256, y: U256, - remaining_gas: &mut u64, -) -> SyscallResult<Option<Secp256k1Point>>

    source

    fn secp256k1_add( + remaining_gas: &mut u64, +) -> SyscallResult<Option<Secp256k1Point>>

    source

    fn secp256k1_add( &mut self, p0: Secp256k1Point, p1: Secp256k1Point, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<Secp256k1Point>

    source

    fn secp256k1_mul( &mut self, p: Secp256k1Point, m: U256, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<Secp256k1Point>

    source

    fn secp256k1_get_point_from_x( &mut self, x: U256, - y_parity: bool, - remaining_gas: &mut u64, -) -> SyscallResult<Option<Secp256k1Point>>

    source

    fn secp256k1_get_xy( + y_parity: bool, + remaining_gas: &mut u64, +) -> SyscallResult<Option<Secp256k1Point>>

    source

    fn secp256k1_get_xy( &mut self, p: Secp256k1Point, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<(U256, U256)>

    source

    fn secp256r1_new( &mut self, x: U256, y: U256, - remaining_gas: &mut u64, -) -> SyscallResult<Option<Secp256r1Point>>

    source

    fn secp256r1_add( + remaining_gas: &mut u64, +) -> SyscallResult<Option<Secp256r1Point>>

    source

    fn secp256r1_add( &mut self, p0: Secp256r1Point, p1: Secp256r1Point, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<Secp256r1Point>

    source

    fn secp256r1_mul( &mut self, p: Secp256r1Point, m: U256, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<Secp256r1Point>

    source

    fn secp256r1_get_point_from_x( &mut self, x: U256, - y_parity: bool, - remaining_gas: &mut u64, -) -> SyscallResult<Option<Secp256r1Point>>

    source

    fn secp256r1_get_xy( + y_parity: bool, + remaining_gas: &mut u64, +) -> SyscallResult<Option<Secp256r1Point>>

    source

    fn secp256r1_get_xy( &mut self, p: Secp256r1Point, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<(U256, U256)>

    source

    fn sha256_process_block( &mut self, - state: &mut [u32; 8], - block: &[u32; 16], - remaining_gas: &mut u64, -) -> SyscallResult<()>

    source

    fn get_class_hash_at( + state: &mut [u32; 8], + block: &[u32; 16], + remaining_gas: &mut u64, +) -> SyscallResult<()>

    source

    fn get_class_hash_at( &mut self, contract_address: Felt, - remaining_gas: &mut u64, -) -> SyscallResult<Felt>

    Provided Methods§

    source

    fn cheatcode(&mut self, _selector: Felt, _input: &[Felt]) -> Vec<Felt>

    Implementors§

    \ No newline at end of file + remaining_gas: &mut u64, +) -> SyscallResult<Felt>

    Provided Methods§

    source

    fn cheatcode(&mut self, _selector: Felt, _input: &[Felt]) -> Vec<Felt>

    Implementors§

    \ No newline at end of file diff --git a/cairo_native/starknet/type.SyscallResult.html b/cairo_native/starknet/type.SyscallResult.html index 1d705176a..e0b48ed0f 100644 --- a/cairo_native/starknet/type.SyscallResult.html +++ b/cairo_native/starknet/type.SyscallResult.html @@ -1,6 +1,6 @@ -SyscallResult in cairo_native::starknet - Rust

    Type Alias cairo_native::starknet::SyscallResult

    source ·
    pub type SyscallResult<T> = Result<T, Vec<Felt>>;

    Aliased Type§

    enum SyscallResult<T> {
    +SyscallResult in cairo_native::starknet - Rust
    cairo_native::starknet

    Type Alias SyscallResult

    source
    pub type SyscallResult<T> = Result<T, Vec<Felt>>;

    Aliased Type§

    enum SyscallResult<T> {
         Ok(T),
    -    Err(Vec<Felt>),
    +    Err(Vec<Felt>),
     }

    Variants§

    §1.0.0

    Ok(T)

    Contains the success value

    -
    §1.0.0

    Err(Vec<Felt>)

    Contains the error value

    +
    §1.0.0

    Err(Vec<Felt>)

    Contains the error value

    \ No newline at end of file diff --git a/cairo_native/starknet_stub/fn.big4int_to_u256.html b/cairo_native/starknet_stub/fn.big4int_to_u256.html index 649d62956..d68049c6f 100644 --- a/cairo_native/starknet_stub/fn.big4int_to_u256.html +++ b/cairo_native/starknet_stub/fn.big4int_to_u256.html @@ -1 +1 @@ -big4int_to_u256 in cairo_native::starknet_stub - Rust

    Function cairo_native::starknet_stub::big4int_to_u256

    source ·
    pub fn big4int_to_u256(b_int: BigInt<4>) -> U256
    \ No newline at end of file +big4int_to_u256 in cairo_native::starknet_stub - Rust
    cairo_native::starknet_stub

    Function big4int_to_u256

    source
    pub fn big4int_to_u256(b_int: BigInt<4>) -> U256
    \ No newline at end of file diff --git a/cairo_native/starknet_stub/fn.decode_felts_as_str.html b/cairo_native/starknet_stub/fn.decode_felts_as_str.html index c8de2332c..a559161da 100644 --- a/cairo_native/starknet_stub/fn.decode_felts_as_str.html +++ b/cairo_native/starknet_stub/fn.decode_felts_as_str.html @@ -1 +1 @@ -decode_felts_as_str in cairo_native::starknet_stub - Rust

    Function cairo_native::starknet_stub::decode_felts_as_str

    source ·
    pub fn decode_felts_as_str(encoding: &[Felt]) -> String
    \ No newline at end of file +decode_felts_as_str in cairo_native::starknet_stub - Rust
    cairo_native::starknet_stub

    Function decode_felts_as_str

    source
    pub fn decode_felts_as_str(encoding: &[Felt]) -> String
    \ No newline at end of file diff --git a/cairo_native/starknet_stub/fn.encode_str_as_felts.html b/cairo_native/starknet_stub/fn.encode_str_as_felts.html index a0dccc59a..78f75660f 100644 --- a/cairo_native/starknet_stub/fn.encode_str_as_felts.html +++ b/cairo_native/starknet_stub/fn.encode_str_as_felts.html @@ -1 +1 @@ -encode_str_as_felts in cairo_native::starknet_stub - Rust

    Function cairo_native::starknet_stub::encode_str_as_felts

    source ·
    pub fn encode_str_as_felts(msg: &str) -> Vec<Felt>
    \ No newline at end of file +encode_str_as_felts in cairo_native::starknet_stub - Rust
    cairo_native::starknet_stub

    Function encode_str_as_felts

    source
    pub fn encode_str_as_felts(msg: &str) -> Vec<Felt>
    \ No newline at end of file diff --git a/cairo_native/starknet_stub/fn.u256_to_biguint.html b/cairo_native/starknet_stub/fn.u256_to_biguint.html index cdbecf789..f3b9acc4a 100644 --- a/cairo_native/starknet_stub/fn.u256_to_biguint.html +++ b/cairo_native/starknet_stub/fn.u256_to_biguint.html @@ -1 +1 @@ -u256_to_biguint in cairo_native::starknet_stub - Rust

    Function cairo_native::starknet_stub::u256_to_biguint

    source ·
    pub fn u256_to_biguint(u256: U256) -> BigUint
    \ No newline at end of file +u256_to_biguint in cairo_native::starknet_stub - Rust
    cairo_native::starknet_stub

    Function u256_to_biguint

    source
    pub fn u256_to_biguint(u256: U256) -> BigUint
    \ No newline at end of file diff --git a/cairo_native/starknet_stub/index.html b/cairo_native/starknet_stub/index.html index 23ddcd59b..f4b6b0ddf 100644 --- a/cairo_native/starknet_stub/index.html +++ b/cairo_native/starknet_stub/index.html @@ -1,2 +1,2 @@ -cairo_native::starknet_stub - Rust

    Module cairo_native::starknet_stub

    source ·
    Expand description

    A (somewhat) usable implementation of the starknet syscall handler trait.

    +cairo_native::starknet_stub - Rust
    cairo_native

    Module starknet_stub

    source
    Expand description

    A (somewhat) usable implementation of the starknet syscall handler trait.

    Structs§

    Functions§

    \ No newline at end of file diff --git a/cairo_native/starknet_stub/struct.ContractLogs.html b/cairo_native/starknet_stub/struct.ContractLogs.html index e922480ee..82180ad75 100644 --- a/cairo_native/starknet_stub/struct.ContractLogs.html +++ b/cairo_native/starknet_stub/struct.ContractLogs.html @@ -1,43 +1,43 @@ -ContractLogs in cairo_native::starknet_stub - Rust

    Struct cairo_native::starknet_stub::ContractLogs

    source ·
    pub struct ContractLogs {
    -    pub events: VecDeque<StubEvent>,
    -    pub l2_to_l1_messages: VecDeque<(Felt, Vec<Felt>)>,
    -}

    Fields§

    §events: VecDeque<StubEvent>§l2_to_l1_messages: VecDeque<(Felt, Vec<Felt>)>

    Trait Implementations§

    source§

    impl Clone for ContractLogs

    source§

    fn clone(&self) -> ContractLogs

    Returns a copy of 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 ContractLogs

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for ContractLogs

    source§

    fn default() -> ContractLogs

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +ContractLogs in cairo_native::starknet_stub - Rust
    cairo_native::starknet_stub

    Struct ContractLogs

    source
    pub struct ContractLogs {
    +    pub events: VecDeque<StubEvent>,
    +    pub l2_to_l1_messages: VecDeque<(Felt, Vec<Felt>)>,
    +}

    Fields§

    §events: VecDeque<StubEvent>§l2_to_l1_messages: VecDeque<(Felt, Vec<Felt>)>

    Trait Implementations§

    source§

    impl Clone for ContractLogs

    source§

    fn clone(&self) -> ContractLogs

    Returns a copy of 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 ContractLogs

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for ContractLogs

    source§

    fn default() -> ContractLogs

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -54,121 +54,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -185,121 +185,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -315,61 +315,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -385,50 +385,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -438,99 +438,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native/starknet_stub/struct.StubEvent.html b/cairo_native/starknet_stub/struct.StubEvent.html index 3b909e3ca..b93a50292 100644 --- a/cairo_native/starknet_stub/struct.StubEvent.html +++ b/cairo_native/starknet_stub/struct.StubEvent.html @@ -1,44 +1,44 @@ -StubEvent in cairo_native::starknet_stub - Rust

    Struct cairo_native::starknet_stub::StubEvent

    source ·
    pub struct StubEvent {
    -    pub keys: Vec<Felt>,
    -    pub data: Vec<Felt>,
    +StubEvent in cairo_native::starknet_stub - Rust
    cairo_native::starknet_stub

    Struct StubEvent

    source
    pub struct StubEvent {
    +    pub keys: Vec<Felt>,
    +    pub data: Vec<Felt>,
     }
    Expand description

    Event emitted by the emit_event syscall.

    -

    Fields§

    §keys: Vec<Felt>§data: Vec<Felt>

    Trait Implementations§

    source§

    impl Clone for StubEvent

    source§

    fn clone(&self) -> StubEvent

    Returns a copy of 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 StubEvent

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +

    Fields§

    §keys: Vec<Felt>§data: Vec<Felt>

    Trait Implementations§

    source§

    impl Clone for StubEvent

    source§

    fn clone(&self) -> StubEvent

    Returns a copy of 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 StubEvent

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -55,121 +55,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -186,121 +186,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -316,61 +316,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -386,50 +386,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -439,99 +439,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native/starknet_stub/struct.StubSyscallHandler.html b/cairo_native/starknet_stub/struct.StubSyscallHandler.html index 560bac269..017cf5320 100644 --- a/cairo_native/starknet_stub/struct.StubSyscallHandler.html +++ b/cairo_native/starknet_stub/struct.StubSyscallHandler.html @@ -1,158 +1,158 @@ -StubSyscallHandler in cairo_native::starknet_stub - Rust

    Struct cairo_native::starknet_stub::StubSyscallHandler

    source ·
    pub struct StubSyscallHandler {
    -    pub storage: HashMap<(u32, Felt), Felt>,
    -    pub events: Vec<StubEvent>,
    +StubSyscallHandler in cairo_native::starknet_stub - Rust
    cairo_native::starknet_stub

    Struct StubSyscallHandler

    source
    pub struct StubSyscallHandler {
    +    pub storage: HashMap<(u32, Felt), Felt>,
    +    pub events: Vec<StubEvent>,
         pub execution_info: ExecutionInfoV2,
    -    pub logs: HashMap<Felt, ContractLogs>,
    +    pub logs: HashMap<Felt, ContractLogs>,
     }
    Expand description

    A (somewhat) usable implementation of the starknet syscall handler trait.

    Currently gas is not deducted.

    -

    Fields§

    §storage: HashMap<(u32, Felt), Felt>§events: Vec<StubEvent>§execution_info: ExecutionInfoV2§logs: HashMap<Felt, ContractLogs>

    Trait Implementations§

    source§

    impl Clone for StubSyscallHandler

    source§

    fn clone(&self) -> StubSyscallHandler

    Returns a copy of 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 StubSyscallHandler

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for StubSyscallHandler

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl StarknetSyscallHandler for &mut StubSyscallHandler

    Fields§

    §storage: HashMap<(u32, Felt), Felt>§events: Vec<StubEvent>§execution_info: ExecutionInfoV2§logs: HashMap<Felt, ContractLogs>

    Trait Implementations§

    source§

    impl Clone for StubSyscallHandler

    source§

    fn clone(&self) -> StubSyscallHandler

    Returns a copy of 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 StubSyscallHandler

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for StubSyscallHandler

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl StarknetSyscallHandler for &mut StubSyscallHandler

    source§

    fn get_block_hash( &mut self, - block_number: u64, - remaining_gas: &mut u64, + block_number: u64, + remaining_gas: &mut u64, ) -> SyscallResult<Felt>

    source§

    fn get_execution_info( &mut self, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<ExecutionInfo>

    source§

    fn get_execution_info_v2( &mut self, - remaining_gas: &mut u64, + remaining_gas: &mut u64, ) -> SyscallResult<ExecutionInfoV2>

    source§

    fn deploy( &mut self, class_hash: Felt, contract_address_salt: Felt, calldata: &[Felt], - deploy_from_zero: bool, - remaining_gas: &mut u64, -) -> SyscallResult<(Felt, Vec<Felt>)>

    source§

    fn replace_class( + deploy_from_zero: bool, + remaining_gas: &mut u64, +) -> SyscallResult<(Felt, Vec<Felt>)>

    source§

    fn replace_class( &mut self, class_hash: Felt, - remaining_gas: &mut u64, -) -> SyscallResult<()>

    source§

    fn library_call( + remaining_gas: &mut u64, +) -> SyscallResult<()>

    source§

    fn library_call( &mut self, class_hash: Felt, function_selector: Felt, calldata: &[Felt], - remaining_gas: &mut u64, -) -> SyscallResult<Vec<Felt>>

    source§

    fn call_contract( + remaining_gas: &mut u64, +) -> SyscallResult<Vec<Felt>>

    source§

    fn call_contract( &mut self, address: Felt, entry_point_selector: Felt, calldata: &[Felt], - remaining_gas: &mut u64, -) -> SyscallResult<Vec<Felt>>

    source§

    fn storage_read( + remaining_gas: &mut u64, +) -> SyscallResult<Vec<Felt>>

    source§

    fn storage_read( &mut self, - address_domain: u32, + address_domain: u32, address: Felt, - _remaining_gas: &mut u64, + _remaining_gas: &mut u64, ) -> SyscallResult<Felt>

    source§

    fn storage_write( &mut self, - address_domain: u32, + address_domain: u32, address: Felt, value: Felt, - remaining_gas: &mut u64, -) -> SyscallResult<()>

    source§

    fn emit_event( + remaining_gas: &mut u64, +) -> SyscallResult<()>

    source§

    fn emit_event( &mut self, keys: &[Felt], data: &[Felt], - remaining_gas: &mut u64, -) -> SyscallResult<()>

    source§

    fn send_message_to_l1( + remaining_gas: &mut u64, +) -> SyscallResult<()>

    source§

    fn send_message_to_l1( &mut self, to_address: Felt, payload: &[Felt], - remaining_gas: &mut u64, -) -> SyscallResult<()>

    source§

    fn keccak(&mut self, input: &[u64], gas: &mut u64) -> SyscallResult<U256>

    source§

    fn secp256k1_new( + remaining_gas: &mut u64, +) -> SyscallResult<()>

    source§

    fn keccak(&mut self, input: &[u64], gas: &mut u64) -> SyscallResult<U256>

    source§

    fn secp256k1_new( &mut self, x: U256, y: U256, - _remaining_gas: &mut u64, -) -> SyscallResult<Option<Secp256k1Point>>

    source§

    fn secp256k1_add( + _remaining_gas: &mut u64, +) -> SyscallResult<Option<Secp256k1Point>>

    source§

    fn secp256k1_add( &mut self, p0: Secp256k1Point, p1: Secp256k1Point, - _remaining_gas: &mut u64, + _remaining_gas: &mut u64, ) -> SyscallResult<Secp256k1Point>

    source§

    fn secp256k1_mul( &mut self, p: Secp256k1Point, m: U256, - _remaining_gas: &mut u64, + _remaining_gas: &mut u64, ) -> SyscallResult<Secp256k1Point>

    source§

    fn secp256k1_get_point_from_x( &mut self, x: U256, - y_parity: bool, - _remaining_gas: &mut u64, -) -> SyscallResult<Option<Secp256k1Point>>

    source§

    fn secp256k1_get_xy( + y_parity: bool, + _remaining_gas: &mut u64, +) -> SyscallResult<Option<Secp256k1Point>>

    source§

    fn secp256k1_get_xy( &mut self, p: Secp256k1Point, - _remaining_gas: &mut u64, + _remaining_gas: &mut u64, ) -> SyscallResult<(U256, U256)>

    source§

    fn secp256r1_new( &mut self, x: U256, y: U256, - _remaining_gas: &mut u64, -) -> SyscallResult<Option<Secp256r1Point>>

    source§

    fn secp256r1_add( + _remaining_gas: &mut u64, +) -> SyscallResult<Option<Secp256r1Point>>

    source§

    fn secp256r1_add( &mut self, p0: Secp256r1Point, p1: Secp256r1Point, - _remaining_gas: &mut u64, + _remaining_gas: &mut u64, ) -> SyscallResult<Secp256r1Point>

    source§

    fn secp256r1_mul( &mut self, p: Secp256r1Point, m: U256, - _remaining_gas: &mut u64, + _remaining_gas: &mut u64, ) -> SyscallResult<Secp256r1Point>

    source§

    fn secp256r1_get_point_from_x( &mut self, x: U256, - y_parity: bool, - _remaining_gas: &mut u64, -) -> SyscallResult<Option<Secp256r1Point>>

    source§

    fn secp256r1_get_xy( + y_parity: bool, + _remaining_gas: &mut u64, +) -> SyscallResult<Option<Secp256r1Point>>

    source§

    fn secp256r1_get_xy( &mut self, p: Secp256r1Point, - _remaining_gas: &mut u64, -) -> SyscallResult<(U256, U256)>

    source§

    fn cheatcode(&mut self, selector: Felt, input: &[Felt]) -> Vec<Felt>

    source§

    fn sha256_process_block( + _remaining_gas: &mut u64, +) -> SyscallResult<(U256, U256)>

    source§

    fn cheatcode(&mut self, selector: Felt, input: &[Felt]) -> Vec<Felt>

    source§

    fn sha256_process_block( &mut self, - state: &mut [u32; 8], - block: &[u32; 16], - _remaining_gas: &mut u64, -) -> SyscallResult<()>

    source§

    fn get_class_hash_at( + state: &mut [u32; 8], + block: &[u32; 16], + _remaining_gas: &mut u64, +) -> SyscallResult<()>

    source§

    fn get_class_hash_at( &mut self, contract_address: Felt, - _remaining_gas: &mut u64, -) -> SyscallResult<Felt>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when + _remaining_gas: &mut u64, +) -> SyscallResult<Felt>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -169,121 +169,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -300,121 +300,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -430,61 +430,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -500,50 +500,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -553,99 +553,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native/utils/constant.SHARED_LIBRARY_EXT.html b/cairo_native/utils/constant.SHARED_LIBRARY_EXT.html index 227b2cfa2..d8cd8be7e 100644 --- a/cairo_native/utils/constant.SHARED_LIBRARY_EXT.html +++ b/cairo_native/utils/constant.SHARED_LIBRARY_EXT.html @@ -1 +1 @@ -SHARED_LIBRARY_EXT in cairo_native::utils - Rust

    Constant cairo_native::utils::SHARED_LIBRARY_EXT

    source ·
    pub const SHARED_LIBRARY_EXT: &str = "so";
    \ No newline at end of file +SHARED_LIBRARY_EXT in cairo_native::utils - Rust
    cairo_native::utils

    Constant SHARED_LIBRARY_EXT

    source
    pub const SHARED_LIBRARY_EXT: &str = "so";
    \ No newline at end of file diff --git a/cairo_native/utils/fn.cairo_to_sierra.html b/cairo_native/utils/fn.cairo_to_sierra.html index 8b4e88816..cb56019a1 100644 --- a/cairo_native/utils/fn.cairo_to_sierra.html +++ b/cairo_native/utils/fn.cairo_to_sierra.html @@ -1,2 +1,2 @@ -cairo_to_sierra in cairo_native::utils - Rust

    Function cairo_native::utils::cairo_to_sierra

    source ·
    pub fn cairo_to_sierra(program: &Path) -> Result<Arc<Program>>
    Expand description

    Compile a cairo program found at the given path to sierra.

    +cairo_to_sierra in cairo_native::utils - Rust
    cairo_native::utils

    Function cairo_to_sierra

    source
    pub fn cairo_to_sierra(program: &Path) -> Result<Arc<Program>>
    Expand description

    Compile a cairo program found at the given path to sierra.

    \ No newline at end of file diff --git a/cairo_native/utils/fn.create_engine.html b/cairo_native/utils/fn.create_engine.html index 0a608bf0a..14543b4b7 100644 --- a/cairo_native/utils/fn.create_engine.html +++ b/cairo_native/utils/fn.create_engine.html @@ -1,4 +1,4 @@ -create_engine in cairo_native::utils - Rust

    Function cairo_native::utils::create_engine

    source ·
    pub fn create_engine(
    +create_engine in cairo_native::utils - Rust
    cairo_native::utils

    Function create_engine

    source
    pub fn create_engine(
         module: &Module<'_>,
         _metadata: &MetadataStorage,
         opt_level: OptLevel,
    diff --git a/cairo_native/utils/fn.debug_with.html b/cairo_native/utils/fn.debug_with.html
    index a121bc068..bc9378a37 100644
    --- a/cairo_native/utils/fn.debug_with.html
    +++ b/cairo_native/utils/fn.debug_with.html
    @@ -1,3 +1,3 @@
    -debug_with in cairo_native::utils - Rust

    Function cairo_native::utils::debug_with

    source ·
    pub fn debug_with<F>(fmt: F) -> impl Debug
    where - F: Fn(&mut Formatter<'_>) -> Result,
    Expand description

    Return a type that calls a closure when formatted using Debug.

    +debug_with in cairo_native::utils - Rust
    cairo_native::utils

    Function debug_with

    source
    pub fn debug_with<F>(fmt: F) -> impl Debug
    where + F: Fn(&mut Formatter<'_>) -> Result,
    Expand description

    Return a type that calls a closure when formatted using Debug.

    \ No newline at end of file diff --git a/cairo_native/utils/fn.decode_error_message.html b/cairo_native/utils/fn.decode_error_message.html index e7f690993..7d7394485 100644 --- a/cairo_native/utils/fn.decode_error_message.html +++ b/cairo_native/utils/fn.decode_error_message.html @@ -1,3 +1,3 @@ -decode_error_message in cairo_native::utils - Rust

    Function cairo_native::utils::decode_error_message

    source ·
    pub fn decode_error_message(data: &[u8]) -> String
    Expand description

    Decode an UTF-8 error message replacing invalid bytes with their hexadecimal representation, as +decode_error_message in cairo_native::utils - Rust

    cairo_native::utils

    Function decode_error_message

    source
    pub fn decode_error_message(data: &[u8]) -> String
    Expand description

    Decode an UTF-8 error message replacing invalid bytes with their hexadecimal representation, as done by Python’s x.decode('utf-8', errors='backslashreplace').

    \ No newline at end of file diff --git a/cairo_native/utils/fn.felt252_bigint.html b/cairo_native/utils/fn.felt252_bigint.html index 5258954a5..a89dda5b3 100644 --- a/cairo_native/utils/fn.felt252_bigint.html +++ b/cairo_native/utils/fn.felt252_bigint.html @@ -1,2 +1,2 @@ -felt252_bigint in cairo_native::utils - Rust

    Function cairo_native::utils::felt252_bigint

    source ·
    pub fn felt252_bigint(value: impl Into<BigInt>) -> Felt
    Expand description

    Parse any type that can be a bigint to a felt that can be used in the cairo-native input.

    +felt252_bigint in cairo_native::utils - Rust
    cairo_native::utils

    Function felt252_bigint

    source
    pub fn felt252_bigint(value: impl Into<BigInt>) -> Felt
    Expand description

    Parse any type that can be a bigint to a felt that can be used in the cairo-native input.

    \ No newline at end of file diff --git a/cairo_native/utils/fn.felt252_short_str.html b/cairo_native/utils/fn.felt252_short_str.html index ecde2e603..465c4ab11 100644 --- a/cairo_native/utils/fn.felt252_short_str.html +++ b/cairo_native/utils/fn.felt252_short_str.html @@ -1,2 +1,2 @@ -felt252_short_str in cairo_native::utils - Rust

    Function cairo_native::utils::felt252_short_str

    source ·
    pub fn felt252_short_str(value: &str) -> Felt
    Expand description

    Parse a short string into a felt that can be used in the cairo-native input.

    +felt252_short_str in cairo_native::utils - Rust
    cairo_native::utils

    Function felt252_short_str

    source
    pub fn felt252_short_str(value: &str) -> Felt
    Expand description

    Parse a short string into a felt that can be used in the cairo-native input.

    \ No newline at end of file diff --git a/cairo_native/utils/fn.felt252_str.html b/cairo_native/utils/fn.felt252_str.html index 8c4a3629d..dc49c3224 100644 --- a/cairo_native/utils/fn.felt252_str.html +++ b/cairo_native/utils/fn.felt252_str.html @@ -1,2 +1,2 @@ -felt252_str in cairo_native::utils - Rust

    Function cairo_native::utils::felt252_str

    source ·
    pub fn felt252_str(value: &str) -> Felt
    Expand description

    Parse a numeric string into felt, wrapping negatives around the prime modulo.

    +felt252_str in cairo_native::utils - Rust
    cairo_native::utils

    Function felt252_str

    source
    pub fn felt252_str(value: &str) -> Felt
    Expand description

    Parse a numeric string into felt, wrapping negatives around the prime modulo.

    \ No newline at end of file diff --git a/cairo_native/utils/fn.find_entry_point.html b/cairo_native/utils/fn.find_entry_point.html index 01ac816b5..18c93a3b1 100644 --- a/cairo_native/utils/fn.find_entry_point.html +++ b/cairo_native/utils/fn.find_entry_point.html @@ -1,5 +1,5 @@ -find_entry_point in cairo_native::utils - Rust

    Function cairo_native::utils::find_entry_point

    source ·
    pub fn find_entry_point<'a>(
    +find_entry_point in cairo_native::utils - Rust
    cairo_native::utils

    Function find_entry_point

    source
    pub fn find_entry_point<'a>(
         program: &'a Program,
    -    entry_point: &str,
    -) -> Option<&'a GenFunction<StatementIdx>>
    Expand description

    Returns the given entry point if present.

    + entry_point: &str, +) -> Option<&'a GenFunction<StatementIdx>>
    Expand description

    Returns the given entry point if present.

    \ No newline at end of file diff --git a/cairo_native/utils/fn.find_entry_point_by_idx.html b/cairo_native/utils/fn.find_entry_point_by_idx.html index 34d6a9a15..462abc7ef 100644 --- a/cairo_native/utils/fn.find_entry_point_by_idx.html +++ b/cairo_native/utils/fn.find_entry_point_by_idx.html @@ -1,5 +1,5 @@ -find_entry_point_by_idx in cairo_native::utils - Rust

    Function cairo_native::utils::find_entry_point_by_idx

    source ·
    pub fn find_entry_point_by_idx(
    +find_entry_point_by_idx in cairo_native::utils - Rust
    cairo_native::utils

    Function find_entry_point_by_idx

    source
    pub fn find_entry_point_by_idx(
         program: &Program,
    -    entry_point_idx: usize,
    -) -> Option<&GenFunction<StatementIdx>>
    Expand description

    Returns the given entry point if present.

    + entry_point_idx: usize, +) -> Option<&GenFunction<StatementIdx>>
    Expand description

    Returns the given entry point if present.

    \ No newline at end of file diff --git a/cairo_native/utils/fn.find_function_id.html b/cairo_native/utils/fn.find_function_id.html index 3a8347854..b22bc084c 100644 --- a/cairo_native/utils/fn.find_function_id.html +++ b/cairo_native/utils/fn.find_function_id.html @@ -1,6 +1,6 @@ -find_function_id in cairo_native::utils - Rust

    Function cairo_native::utils::find_function_id

    source ·
    pub fn find_function_id<'a>(
    +find_function_id in cairo_native::utils - Rust
    cairo_native::utils

    Function find_function_id

    source
    pub fn find_function_id<'a>(
         program: &'a Program,
    -    function_name: &str,
    -) -> Option<&'a FunctionId>
    Expand description

    Given a string representing a function name, searches in the program for the id corresponding + function_name: &str, +) -> Option<&'a FunctionId>

    Expand description

    Given a string representing a function name, searches in the program for the id corresponding to said function, and returns a reference to it.

    \ No newline at end of file diff --git a/cairo_native/utils/fn.generate_function_name.html b/cairo_native/utils/fn.generate_function_name.html index 6597b9bc7..5caf9834e 100644 --- a/cairo_native/utils/fn.generate_function_name.html +++ b/cairo_native/utils/fn.generate_function_name.html @@ -1,7 +1,7 @@ -generate_function_name in cairo_native::utils - Rust

    Function cairo_native::utils::generate_function_name

    source ·
    pub fn generate_function_name(
    +generate_function_name in cairo_native::utils - Rust
    cairo_native::utils

    Function generate_function_name

    source
    pub fn generate_function_name(
         function_id: &FunctionId,
    -    is_for_contract_executor: bool,
    -) -> Cow<'_, str>
    Expand description

    Generate a function name.

    + is_for_contract_executor: bool, +) -> Cow<'_, str>
    Expand description

    Generate a function name.

    If the program includes function identifiers, return those. Otherwise return f followed by the identifier number.

    \ No newline at end of file diff --git a/cairo_native/utils/fn.get_integer_layout.html b/cairo_native/utils/fn.get_integer_layout.html index 0f032152c..dd6250819 100644 --- a/cairo_native/utils/fn.get_integer_layout.html +++ b/cairo_native/utils/fn.get_integer_layout.html @@ -1,4 +1,4 @@ -get_integer_layout in cairo_native::utils - Rust

    Function cairo_native::utils::get_integer_layout

    source ·
    pub fn get_integer_layout(width: u32) -> Layout
    Expand description

    Return the layout for an integer of arbitrary width.

    +get_integer_layout in cairo_native::utils - Rust
    cairo_native::utils

    Function get_integer_layout

    source
    pub fn get_integer_layout(width: u32) -> Layout
    Expand description

    Return the layout for an integer of arbitrary width.

    This assumes the platform’s maximum (effective) alignment is 16 bytes, and that every integer with a size in bytes of a power of two has the same alignment as its size.

    \ No newline at end of file diff --git a/cairo_native/utils/fn.layout_repeat.html b/cairo_native/utils/fn.layout_repeat.html index 6765f3eb8..41983f84e 100644 --- a/cairo_native/utils/fn.layout_repeat.html +++ b/cairo_native/utils/fn.layout_repeat.html @@ -1,7 +1,7 @@ -layout_repeat in cairo_native::utils - Rust

    Function cairo_native::utils::layout_repeat

    source ·
    pub fn layout_repeat(
    -    layout: &Layout,
    -    n: usize,
    -) -> Result<(Layout, usize), LayoutError>
    Expand description

    Copied from std.

    +layout_repeat in cairo_native::utils - Rust
    cairo_native::utils

    Function layout_repeat

    source
    pub fn layout_repeat(
    +    layout: &Layout,
    +    n: usize,
    +) -> Result<(Layout, usize), LayoutError>
    Expand description

    Copied from std.

    Creates a layout describing the record for n instances of self, with a suitable amount of padding between each to ensure that each instance is given its requested size and diff --git a/cairo_native/utils/fn.padding_needed_for.html b/cairo_native/utils/fn.padding_needed_for.html index 93cae1e7d..a1e3d68e4 100644 --- a/cairo_native/utils/fn.padding_needed_for.html +++ b/cairo_native/utils/fn.padding_needed_for.html @@ -1,4 +1,4 @@ -padding_needed_for in cairo_native::utils - Rust

    Function cairo_native::utils::padding_needed_for

    source ·
    pub const fn padding_needed_for(layout: &Layout, align: usize) -> usize
    Expand description

    Edit: Copied from the std lib.

    +padding_needed_for in cairo_native::utils - Rust
    cairo_native::utils

    Function padding_needed_for

    source
    pub const fn padding_needed_for(layout: &Layout, align: usize) -> usize
    Expand description

    Edit: Copied from the std lib.

    Returns the amount of padding we must insert after layout to ensure that the following address will satisfy align (measured in bytes).

    diff --git a/cairo_native/utils/fn.register_runtime_symbols.html b/cairo_native/utils/fn.register_runtime_symbols.html index 4a2c8bca8..4e66ca88e 100644 --- a/cairo_native/utils/fn.register_runtime_symbols.html +++ b/cairo_native/utils/fn.register_runtime_symbols.html @@ -1 +1 @@ -register_runtime_symbols in cairo_native::utils - Rust

    Function cairo_native::utils::register_runtime_symbols

    source ·
    pub fn register_runtime_symbols(engine: &ExecutionEngine)
    \ No newline at end of file +register_runtime_symbols in cairo_native::utils - Rust
    cairo_native::utils

    Function register_runtime_symbols

    source
    pub fn register_runtime_symbols(engine: &ExecutionEngine)
    \ No newline at end of file diff --git a/cairo_native/utils/fn.run_pass_manager.html b/cairo_native/utils/fn.run_pass_manager.html index 421c7fd9e..72809bea0 100644 --- a/cairo_native/utils/fn.run_pass_manager.html +++ b/cairo_native/utils/fn.run_pass_manager.html @@ -1,4 +1,4 @@ -run_pass_manager in cairo_native::utils - Rust

    Function cairo_native::utils::run_pass_manager

    source ·
    pub fn run_pass_manager(
    +run_pass_manager in cairo_native::utils - Rust
    cairo_native::utils

    Function run_pass_manager

    source
    pub fn run_pass_manager(
         context: &Context,
         module: &mut Module<'_>,
    -) -> Result<(), Error>
    \ No newline at end of file +) -> Result<(), Error>
    \ No newline at end of file diff --git a/cairo_native/utils/index.html b/cairo_native/utils/index.html index 4e18a21ff..237efed06 100644 --- a/cairo_native/utils/index.html +++ b/cairo_native/utils/index.html @@ -1,3 +1,3 @@ -cairo_native::utils - Rust

    Module cairo_native::utils

    source ·
    Expand description

    §Various utilities

    Modules§

    Structs§

    Constants§

    Statics§

    Functions§

    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -61,121 +61,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -192,121 +192,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -322,61 +322,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -392,50 +392,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -445,100 +445,100 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native/utils/struct.LayoutError.html b/cairo_native/utils/struct.LayoutError.html index b9456a08d..f7bd82b23 100644 --- a/cairo_native/utils/struct.LayoutError.html +++ b/cairo_native/utils/struct.LayoutError.html @@ -1,47 +1,47 @@ -LayoutError in cairo_native::utils - Rust

    Struct cairo_native::utils::LayoutError

    source ·
    pub struct LayoutError;

    Trait Implementations§

    source§

    impl Clone for LayoutError

    source§

    fn clone(&self) -> LayoutError

    Returns a copy of 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 LayoutError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for LayoutError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for LayoutError

    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 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<LayoutError> for Error

    source§

    fn from(source: LayoutError) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq for LayoutError

    source§

    fn eq(&self, other: &LayoutError) -> 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 LayoutError

    source§

    impl StructuralPartialEq for LayoutError

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where - Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +LayoutError in cairo_native::utils - Rust
    cairo_native::utils

    Struct LayoutError

    source
    pub struct LayoutError;

    Trait Implementations§

    source§

    impl Clone for LayoutError

    source§

    fn clone(&self) -> LayoutError

    Returns a copy of 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 LayoutError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for LayoutError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for LayoutError

    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 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<LayoutError> for Error

    source§

    fn from(source: LayoutError) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq for LayoutError

    source§

    fn eq(&self, other: &LayoutError) -> 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 LayoutError

    source§

    impl StructuralPartialEq for LayoutError

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    source§

    fn __clone_box(&self, _: Private) -> *mut ()

    source§

    impl<Q, K> Equivalent<K> for Q
    where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

    source§

    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

    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
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -58,121 +58,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -189,121 +189,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -319,61 +319,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -389,50 +389,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -442,101 +442,101 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_compile/all.html b/cairo_native_compile/all.html index 7457b23b9..cb581f7d5 100644 --- a/cairo_native_compile/all.html +++ b/cairo_native_compile/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/cairo_native_compile/enum.RunMode.html b/cairo_native_compile/enum.RunMode.html index baaa0988e..8b18733ba 100644 --- a/cairo_native_compile/enum.RunMode.html +++ b/cairo_native_compile/enum.RunMode.html @@ -1,43 +1,43 @@ -RunMode in cairo_native_compile - Rust

    Enum cairo_native_compile::RunMode

    source ·
    pub(crate) enum RunMode {
    +RunMode in cairo_native_compile - Rust
    cairo_native_compile

    Enum RunMode

    source
    pub(crate) enum RunMode {
         Aot,
         Jit,
    -}

    Variants§

    §

    Aot

    §

    Jit

    Trait Implementations§

    source§

    impl Clone for RunMode

    source§

    fn clone(&self) -> RunMode

    Returns a copy of 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 RunMode

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl ValueEnum for RunMode

    source§

    fn value_variants<'a>() -> &'a [Self]

    All possible argument values, in display order.
    source§

    fn to_possible_value<'a>(&self) -> Option<PossibleValue>

    The canonical argument value. Read more
    §

    fn from_str(input: &str, ignore_case: bool) -> Result<Self, String>

    Parse an argument into 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +}

    Variants§

    §

    Aot

    §

    Jit

    Trait Implementations§

    source§

    impl Clone for RunMode

    source§

    fn clone(&self) -> RunMode

    Returns a copy of 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 RunMode

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl ValueEnum for RunMode

    source§

    fn value_variants<'a>() -> &'a [Self]

    All possible argument values, in display order.
    source§

    fn to_possible_value<'a>(&self) -> Option<PossibleValue>

    The canonical argument value. Read more
    §

    fn from_str(input: &str, ignore_case: bool) -> Result<Self, String>

    Parse an argument into 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -54,121 +54,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -185,121 +185,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -315,61 +315,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -385,50 +385,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -438,99 +438,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_compile/fn.main.html b/cairo_native_compile/fn.main.html index 6f1b4aba8..276596028 100644 --- a/cairo_native_compile/fn.main.html +++ b/cairo_native_compile/fn.main.html @@ -1 +1 @@ -main in cairo_native_compile - Rust

    Function cairo_native_compile::main

    source ·
    pub(crate) fn main() -> Result<()>
    \ No newline at end of file +main in cairo_native_compile - Rust
    cairo_native_compile

    Function main

    source
    pub(crate) fn main() -> Result<()>
    \ No newline at end of file diff --git a/cairo_native_compile/index.html b/cairo_native_compile/index.html index 5b88d7c96..137814d0d 100644 --- a/cairo_native_compile/index.html +++ b/cairo_native_compile/index.html @@ -1,2 +1,2 @@ -cairo_native_compile - Rust

    Crate cairo_native_compile

    source ·

    Structs§

    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -84,121 +84,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -215,121 +215,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -345,61 +345,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -415,50 +415,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -468,98 +468,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_dump/all.html b/cairo_native_dump/all.html index 5c6b47330..5763abf90 100644 --- a/cairo_native_dump/all.html +++ b/cairo_native_dump/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/cairo_native_dump/enum.CompilerOutput.html b/cairo_native_dump/enum.CompilerOutput.html index 41397b90c..1b173cec3 100644 --- a/cairo_native_dump/enum.CompilerOutput.html +++ b/cairo_native_dump/enum.CompilerOutput.html @@ -1,43 +1,43 @@ -CompilerOutput in cairo_native_dump - Rust

    Enum cairo_native_dump::CompilerOutput

    source ·
    pub(crate) enum CompilerOutput {
    +CompilerOutput in cairo_native_dump - Rust
    cairo_native_dump

    Enum CompilerOutput

    source
    pub(crate) enum CompilerOutput {
         Stdout,
    -    Path(PathBuf),
    -}

    Variants§

    §

    Stdout

    §

    Path(PathBuf)

    Trait Implementations§

    source§

    impl Clone for CompilerOutput

    source§

    fn clone(&self) -> CompilerOutput

    Returns a copy of 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 CompilerOutput

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when + Path(PathBuf), +}

    Variants§

    §

    Stdout

    §

    Path(PathBuf)

    Trait Implementations§

    source§

    impl Clone for CompilerOutput

    source§

    fn clone(&self) -> CompilerOutput

    Returns a copy of 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 CompilerOutput

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -54,121 +54,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -185,121 +185,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -315,61 +315,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -385,50 +385,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -438,99 +438,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_dump/fn.load_program.html b/cairo_native_dump/fn.load_program.html index fc9e53173..f91f43efc 100644 --- a/cairo_native_dump/fn.load_program.html +++ b/cairo_native_dump/fn.load_program.html @@ -1,4 +1,4 @@ -load_program in cairo_native_dump - Rust

    Function cairo_native_dump::load_program

    source ·
    pub(crate) fn load_program(
    -    path: &Path,
    -    is_contract: bool,
    -) -> Result<Program, Box<dyn Error>>
    \ No newline at end of file +load_program in cairo_native_dump - Rust
    cairo_native_dump

    Function load_program

    source
    pub(crate) fn load_program(
    +    path: &Path,
    +    is_contract: bool,
    +) -> Result<Program, Box<dyn Error>>
    \ No newline at end of file diff --git a/cairo_native_dump/fn.main.html b/cairo_native_dump/fn.main.html index b9e7f662c..ff853a50f 100644 --- a/cairo_native_dump/fn.main.html +++ b/cairo_native_dump/fn.main.html @@ -1 +1 @@ -main in cairo_native_dump - Rust

    Function cairo_native_dump::main

    source ·
    pub(crate) fn main() -> Result<(), Box<dyn Error>>
    \ No newline at end of file +main in cairo_native_dump - Rust
    cairo_native_dump

    Function main

    source
    pub(crate) fn main() -> Result<(), Box<dyn Error>>
    \ No newline at end of file diff --git a/cairo_native_dump/fn.parse_input.html b/cairo_native_dump/fn.parse_input.html index 1301e17c1..4c8053475 100644 --- a/cairo_native_dump/fn.parse_input.html +++ b/cairo_native_dump/fn.parse_input.html @@ -1 +1 @@ -parse_input in cairo_native_dump - Rust

    Function cairo_native_dump::parse_input

    source ·
    pub(crate) fn parse_input(input: &str) -> Result<PathBuf, String>
    \ No newline at end of file +parse_input in cairo_native_dump - Rust
    cairo_native_dump

    Function parse_input

    source
    pub(crate) fn parse_input(input: &str) -> Result<PathBuf, String>
    \ No newline at end of file diff --git a/cairo_native_dump/fn.parse_output.html b/cairo_native_dump/fn.parse_output.html index 2a68decc1..4fe3d6cdb 100644 --- a/cairo_native_dump/fn.parse_output.html +++ b/cairo_native_dump/fn.parse_output.html @@ -1 +1 @@ -parse_output in cairo_native_dump - Rust

    Function cairo_native_dump::parse_output

    source ·
    pub(crate) fn parse_output(input: &str) -> Result<CompilerOutput, String>
    \ No newline at end of file +parse_output in cairo_native_dump - Rust
    cairo_native_dump

    Function parse_output

    source
    pub(crate) fn parse_output(input: &str) -> Result<CompilerOutput, String>
    \ No newline at end of file diff --git a/cairo_native_dump/index.html b/cairo_native_dump/index.html index 5da511875..e8773a6f8 100644 --- a/cairo_native_dump/index.html +++ b/cairo_native_dump/index.html @@ -1 +1 @@ -cairo_native_dump - Rust

    Crate cairo_native_dump

    source ·

    Structs§

    Enums§

    Functions§

    \ No newline at end of file +cairo_native_dump - Rust

    Crate cairo_native_dump

    source

    Structs§

    Enums§

    Functions§

    \ No newline at end of file diff --git a/cairo_native_dump/struct.CmdLine.html b/cairo_native_dump/struct.CmdLine.html index beb4fcbe6..e1fb39d28 100644 --- a/cairo_native_dump/struct.CmdLine.html +++ b/cairo_native_dump/struct.CmdLine.html @@ -1,63 +1,63 @@ -CmdLine in cairo_native_dump - Rust

    Struct cairo_native_dump::CmdLine

    source ·
    pub(crate) struct CmdLine {
    -    pub(crate) input: PathBuf,
    +CmdLine in cairo_native_dump - Rust
    cairo_native_dump

    Struct CmdLine

    source
    pub(crate) struct CmdLine {
    +    pub(crate) input: PathBuf,
         pub(crate) output: CompilerOutput,
    -    pub(crate) starknet: bool,
    -}

    Fields§

    §input: PathBuf§output: CompilerOutput§starknet: bool

    Compile a starknet contract

    -

    Trait Implementations§

    source§

    impl Args for CmdLine

    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 + pub(crate) starknet: bool, +}

    Fields§

    §input: PathBuf§output: CompilerOutput§starknet: bool

    Compile a starknet contract

    +

    Trait Implementations§

    source§

    impl Args for CmdLine

    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 CmdLine

    source§

    fn clone(&self) -> CmdLine

    Returns a copy of 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 CmdLine

    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 CmdLine

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl FromArgMatches for CmdLine

    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 CmdLine

    source§

    fn clone(&self) -> CmdLine

    Returns a copy of 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 CmdLine

    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 CmdLine

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl FromArgMatches for CmdLine

    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 CmdLine

    §

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +) -> Result<(), Error>
    Assign values from ArgMatches to self.
    source§

    impl Parser for CmdLine

    §

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -74,121 +74,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -205,121 +205,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -335,61 +335,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -405,50 +405,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -458,99 +458,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_run/all.html b/cairo_native_run/all.html index b7108bdce..12e6ac007 100644 --- a/cairo_native_run/all.html +++ b/cairo_native_run/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/cairo_native_run/enum.RunMode.html b/cairo_native_run/enum.RunMode.html index f4269c908..6336c9ea6 100644 --- a/cairo_native_run/enum.RunMode.html +++ b/cairo_native_run/enum.RunMode.html @@ -1,43 +1,43 @@ -RunMode in cairo_native_run - Rust

    Enum cairo_native_run::RunMode

    source ·
    pub(crate) enum RunMode {
    +RunMode in cairo_native_run - Rust
    cairo_native_run

    Enum RunMode

    source
    pub(crate) enum RunMode {
         Aot,
         Jit,
    -}

    Variants§

    §

    Aot

    §

    Jit

    Trait Implementations§

    source§

    impl Clone for RunMode

    source§

    fn clone(&self) -> RunMode

    Returns a copy of 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 RunMode

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl ValueEnum for RunMode

    source§

    fn value_variants<'a>() -> &'a [Self]

    All possible argument values, in display order.
    source§

    fn to_possible_value<'a>(&self) -> Option<PossibleValue>

    The canonical argument value. Read more
    §

    fn from_str(input: &str, ignore_case: bool) -> Result<Self, String>

    Parse an argument into 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +}

    Variants§

    §

    Aot

    §

    Jit

    Trait Implementations§

    source§

    impl Clone for RunMode

    source§

    fn clone(&self) -> RunMode

    Returns a copy of 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 RunMode

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl ValueEnum for RunMode

    source§

    fn value_variants<'a>() -> &'a [Self]

    All possible argument values, in display order.
    source§

    fn to_possible_value<'a>(&self) -> Option<PossibleValue>

    The canonical argument value. Read more
    §

    fn from_str(input: &str, ignore_case: bool) -> Result<Self, String>

    Parse an argument into 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -54,121 +54,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -185,121 +185,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -315,61 +315,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -385,50 +385,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -438,99 +438,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_run/fn.main.html b/cairo_native_run/fn.main.html index 7424cf960..6f7c7e41e 100644 --- a/cairo_native_run/fn.main.html +++ b/cairo_native_run/fn.main.html @@ -1 +1 @@ -main in cairo_native_run - Rust

    Function cairo_native_run::main

    source ·
    pub(crate) fn main() -> Result<()>
    \ No newline at end of file +main in cairo_native_run - Rust
    cairo_native_run

    Function main

    source
    pub(crate) fn main() -> Result<()>
    \ No newline at end of file diff --git a/cairo_native_run/index.html b/cairo_native_run/index.html index 12c60fde7..74215b520 100644 --- a/cairo_native_run/index.html +++ b/cairo_native_run/index.html @@ -1,2 +1,2 @@ -cairo_native_run - Rust

    Crate cairo_native_run

    source ·

    Modules§

    Structs§

    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -82,121 +82,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -213,121 +213,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -343,61 +343,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -413,50 +413,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -466,98 +466,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_run/utils/enum.RunMode.html b/cairo_native_run/utils/enum.RunMode.html index c4d702e09..778a647a3 100644 --- a/cairo_native_run/utils/enum.RunMode.html +++ b/cairo_native_run/utils/enum.RunMode.html @@ -1,43 +1,43 @@ -RunMode in cairo_native_run::utils - Rust

    Enum cairo_native_run::utils::RunMode

    source ·
    pub enum RunMode {
    +RunMode in cairo_native_run::utils - Rust
    cairo_native_run::utils

    Enum RunMode

    source
    pub enum RunMode {
         Aot,
         Jit,
    -}

    Variants§

    §

    Aot

    §

    Jit

    Trait Implementations§

    source§

    impl Clone for RunMode

    source§

    fn clone(&self) -> RunMode

    Returns a copy of 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 RunMode

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl ValueEnum for RunMode

    source§

    fn value_variants<'a>() -> &'a [Self]

    All possible argument values, in display order.
    source§

    fn to_possible_value<'a>(&self) -> Option<PossibleValue>

    The canonical argument value. Read more
    §

    fn from_str(input: &str, ignore_case: bool) -> Result<Self, String>

    Parse an argument into 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +}

    Variants§

    §

    Aot

    §

    Jit

    Trait Implementations§

    source§

    impl Clone for RunMode

    source§

    fn clone(&self) -> RunMode

    Returns a copy of 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 RunMode

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl ValueEnum for RunMode

    source§

    fn value_variants<'a>() -> &'a [Self]

    All possible argument values, in display order.
    source§

    fn to_possible_value<'a>(&self) -> Option<PossibleValue>

    The canonical argument value. Read more
    §

    fn from_str(input: &str, ignore_case: bool) -> Result<Self, String>

    Parse an argument into 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -54,121 +54,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -185,121 +185,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -315,61 +315,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -385,50 +385,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -438,99 +438,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_run/utils/fn.find_function.html b/cairo_native_run/utils/fn.find_function.html index d1083537f..b28bb5162 100644 --- a/cairo_native_run/utils/fn.find_function.html +++ b/cairo_native_run/utils/fn.find_function.html @@ -1,5 +1,5 @@ -find_function in cairo_native_run::utils - Rust

    Function cairo_native_run::utils::find_function

    source ·
    pub fn find_function<'a>(
    +find_function in cairo_native_run::utils - Rust
    cairo_native_run::utils

    Function find_function

    source
    pub fn find_function<'a>(
         sierra_program: &'a Program,
    -    name_suffix: &str,
    +    name_suffix: &str,
     ) -> Result<&'a Function>
    Expand description

    Find the function ending with name_suffix in the program.

    \ No newline at end of file diff --git a/cairo_native_run/utils/fn.format_for_panic.html b/cairo_native_run/utils/fn.format_for_panic.html index 10def2877..11bc90a80 100644 --- a/cairo_native_run/utils/fn.format_for_panic.html +++ b/cairo_native_run/utils/fn.format_for_panic.html @@ -1,2 +1,2 @@ -format_for_panic in cairo_native_run::utils - Rust

    Function cairo_native_run::utils::format_for_panic

    source ·
    pub fn format_for_panic(felts: IntoIter<Felt>) -> String
    Expand description

    Formats the given felts as a panic string.

    +format_for_panic in cairo_native_run::utils - Rust
    cairo_native_run::utils

    Function format_for_panic

    source
    pub fn format_for_panic(felts: IntoIter<Felt>) -> String
    Expand description

    Formats the given felts as a panic string.

    \ No newline at end of file diff --git a/cairo_native_run/utils/fn.jitvalue_to_felt.html b/cairo_native_run/utils/fn.jitvalue_to_felt.html index e5139f57a..89759b50a 100644 --- a/cairo_native_run/utils/fn.jitvalue_to_felt.html +++ b/cairo_native_run/utils/fn.jitvalue_to_felt.html @@ -1,2 +1,2 @@ -jitvalue_to_felt in cairo_native_run::utils - Rust

    Function cairo_native_run::utils::jitvalue_to_felt

    source ·
    fn jitvalue_to_felt(value: &Value) -> Vec<Felt>
    Expand description

    Convert a JIT value to a felt.

    +jitvalue_to_felt in cairo_native_run::utils - Rust
    cairo_native_run::utils

    Function jitvalue_to_felt

    source
    fn jitvalue_to_felt(value: &Value) -> Vec<Felt>
    Expand description

    Convert a JIT value to a felt.

    \ No newline at end of file diff --git a/cairo_native_run/utils/fn.result_to_runresult.html b/cairo_native_run/utils/fn.result_to_runresult.html index d7cf41516..9b95563b4 100644 --- a/cairo_native_run/utils/fn.result_to_runresult.html +++ b/cairo_native_run/utils/fn.result_to_runresult.html @@ -1,2 +1,2 @@ -result_to_runresult in cairo_native_run::utils - Rust

    Function cairo_native_run::utils::result_to_runresult

    source ·
    pub fn result_to_runresult(result: &ExecutionResult) -> Result<RunResultValue>
    Expand description

    Convert the execution result to a run result.

    +result_to_runresult in cairo_native_run::utils - Rust
    cairo_native_run::utils

    Function result_to_runresult

    source
    pub fn result_to_runresult(result: &ExecutionResult) -> Result<RunResultValue>
    Expand description

    Convert the execution result to a run result.

    \ No newline at end of file diff --git a/cairo_native_run/utils/index.html b/cairo_native_run/utils/index.html index 78a8e28e6..b3db0ab14 100644 --- a/cairo_native_run/utils/index.html +++ b/cairo_native_run/utils/index.html @@ -1 +1 @@ -cairo_native_run::utils - Rust

    Module cairo_native_run::utils

    source ·

    Modules§

    Structs§

    Enums§

    Functions§

    \ No newline at end of file +cairo_native_run::utils - Rust
    cairo_native_run

    Module utils

    source

    Modules§

    Structs§

    Enums§

    Functions§

    \ No newline at end of file diff --git a/cairo_native_run/utils/struct.RunArgs.html b/cairo_native_run/utils/struct.RunArgs.html index af33cfb74..e3375e826 100644 --- a/cairo_native_run/utils/struct.RunArgs.html +++ b/cairo_native_run/utils/struct.RunArgs.html @@ -1,41 +1,41 @@ -RunArgs in cairo_native_run::utils - Rust

    Struct cairo_native_run::utils::RunArgs

    source ·
    pub(crate) struct RunArgs {
    +RunArgs in cairo_native_run::utils - Rust
    cairo_native_run::utils

    Struct RunArgs

    source
    pub(crate) struct RunArgs {
         pub run_mode: RunMode,
    -    pub opt_level: u8,
    -}

    Fields§

    §run_mode: RunMode§opt_level: u8

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when + pub opt_level: u8, +}

    Fields§

    §run_mode: RunMode§opt_level: u8

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -52,121 +52,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -183,121 +183,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -313,61 +313,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -383,50 +383,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -436,98 +436,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_run/utils/test/enum.TestStatus.html b/cairo_native_run/utils/test/enum.TestStatus.html index d90eabfd4..810e91755 100644 --- a/cairo_native_run/utils/test/enum.TestStatus.html +++ b/cairo_native_run/utils/test/enum.TestStatus.html @@ -1,42 +1,42 @@ -TestStatus in cairo_native_run::utils::test - Rust

    Enum cairo_native_run::utils::test::TestStatus

    source ·
    enum TestStatus {
    +TestStatus in cairo_native_run::utils::test - Rust
    cairo_native_run::utils::test

    Enum TestStatus

    source
    enum TestStatus {
         Success,
         Fail(RunResultValue),
     }
    Expand description

    The status of a ran test.

    -

    Variants§

    §

    Success

    §

    Fail(RunResultValue)

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +

    Variants§

    §

    Success

    §

    Fail(RunResultValue)

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -53,121 +53,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -184,121 +184,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -314,61 +314,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -384,50 +384,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -437,98 +437,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_run/utils/test/fn.display_tests_summary.html b/cairo_native_run/utils/test/fn.display_tests_summary.html index e63a485c3..9573b133b 100644 --- a/cairo_native_run/utils/test/fn.display_tests_summary.html +++ b/cairo_native_run/utils/test/fn.display_tests_summary.html @@ -1,2 +1,2 @@ -display_tests_summary in cairo_native_run::utils::test - Rust

    Function cairo_native_run::utils::test::display_tests_summary

    source ·
    pub fn display_tests_summary(summary: &TestsSummary, filtered_out: usize)
    Expand description

    Display the summary of the ran tests.

    +display_tests_summary in cairo_native_run::utils::test - Rust
    cairo_native_run::utils::test

    Function display_tests_summary

    source
    pub fn display_tests_summary(summary: &TestsSummary, filtered_out: usize)
    Expand description

    Display the summary of the ran tests.

    \ No newline at end of file diff --git a/cairo_native_run/utils/test/fn.filter_test_cases.html b/cairo_native_run/utils/test/fn.filter_test_cases.html index a8da70acd..a13509987 100644 --- a/cairo_native_run/utils/test/fn.filter_test_cases.html +++ b/cairo_native_run/utils/test/fn.filter_test_cases.html @@ -1,9 +1,9 @@ -filter_test_cases in cairo_native_run::utils::test - Rust

    Function cairo_native_run::utils::test::filter_test_cases

    source ·
    pub fn filter_test_cases(
    +filter_test_cases in cairo_native_run::utils::test - Rust
    cairo_native_run::utils::test

    Function filter_test_cases

    source
    pub fn filter_test_cases(
         compiled: TestCompilation,
    -    include_ignored: bool,
    -    ignored: bool,
    -    filter: String,
    -) -> (TestCompilation, usize)
    Expand description

    Filter compiled test cases with user provided arguments.

    + include_ignored: bool, + ignored: bool, + filter: String, +) -> (TestCompilation, usize)
    Expand description

    Filter compiled test cases with user provided arguments.

    §Arguments

    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -55,121 +55,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -186,121 +186,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -316,61 +316,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -386,50 +386,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -439,98 +439,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_run/utils/test/struct.TestsSummary.html b/cairo_native_run/utils/test/struct.TestsSummary.html index ffb8179a0..c1db0da9e 100644 --- a/cairo_native_run/utils/test/struct.TestsSummary.html +++ b/cairo_native_run/utils/test/struct.TestsSummary.html @@ -1,44 +1,44 @@ -TestsSummary in cairo_native_run::utils::test - Rust

    Struct cairo_native_run::utils::test::TestsSummary

    source ·
    pub struct TestsSummary {
    -    pub passed: Vec<String>,
    -    pub failed: Vec<String>,
    -    pub ignored: Vec<String>,
    -    pub failed_run_results: Vec<RunResultValue>,
    +TestsSummary in cairo_native_run::utils::test - Rust
    cairo_native_run::utils::test

    Struct TestsSummary

    source
    pub struct TestsSummary {
    +    pub passed: Vec<String>,
    +    pub failed: Vec<String>,
    +    pub ignored: Vec<String>,
    +    pub failed_run_results: Vec<RunResultValue>,
     }
    Expand description

    Summary data of the ran tests.

    -

    Fields§

    §passed: Vec<String>§failed: Vec<String>§ignored: Vec<String>§failed_run_results: Vec<RunResultValue>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +

    Fields§

    §passed: Vec<String>§failed: Vec<String>§ignored: Vec<String>§failed_run_results: Vec<RunResultValue>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -55,121 +55,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -186,121 +186,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -316,61 +316,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -386,50 +386,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -439,98 +439,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_runtime/all.html b/cairo_native_runtime/all.html index 7b15aa380..6b4f370fb 100644 --- a/cairo_native_runtime/all.html +++ b/cairo_native_runtime/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/cairo_native_runtime/constant.BYTES_IN_WORD.html b/cairo_native_runtime/constant.BYTES_IN_WORD.html index 4ab8c9adf..028676e3a 100644 --- a/cairo_native_runtime/constant.BYTES_IN_WORD.html +++ b/cairo_native_runtime/constant.BYTES_IN_WORD.html @@ -1 +1 @@ -BYTES_IN_WORD in cairo_native_runtime - Rust

    Constant cairo_native_runtime::BYTES_IN_WORD

    source ·
    pub const BYTES_IN_WORD: usize = 31;
    \ No newline at end of file +BYTES_IN_WORD in cairo_native_runtime - Rust
    cairo_native_runtime

    Constant BYTES_IN_WORD

    source
    pub const BYTES_IN_WORD: usize = 31;
    \ No newline at end of file diff --git a/cairo_native_runtime/constant.BYTE_ARRAY_MAGIC.html b/cairo_native_runtime/constant.BYTE_ARRAY_MAGIC.html index ba4c411b9..e581ee2cc 100644 --- a/cairo_native_runtime/constant.BYTE_ARRAY_MAGIC.html +++ b/cairo_native_runtime/constant.BYTE_ARRAY_MAGIC.html @@ -1 +1 @@ -BYTE_ARRAY_MAGIC in cairo_native_runtime - Rust

    Constant cairo_native_runtime::BYTE_ARRAY_MAGIC

    source ·
    pub const BYTE_ARRAY_MAGIC: &str = "46a6158a16a947e5916b2a2ca68501a45e93d7110e81aa2d6438b1c57c879a3";
    \ No newline at end of file +BYTE_ARRAY_MAGIC in cairo_native_runtime - Rust
    cairo_native_runtime

    Constant BYTE_ARRAY_MAGIC

    source
    pub const BYTE_ARRAY_MAGIC: &str = "46a6158a16a947e5916b2a2ca68501a45e93d7110e81aa2d6438b1c57c879a3";
    \ No newline at end of file diff --git a/cairo_native_runtime/fn.as_cairo_short_string.html b/cairo_native_runtime/fn.as_cairo_short_string.html index af612d22a..8814580cf 100644 --- a/cairo_native_runtime/fn.as_cairo_short_string.html +++ b/cairo_native_runtime/fn.as_cairo_short_string.html @@ -1,2 +1,2 @@ -as_cairo_short_string in cairo_native_runtime - Rust

    Function cairo_native_runtime::as_cairo_short_string

    source ·
    pub fn as_cairo_short_string(value: &Felt) -> Option<String>
    Expand description

    Converts a bigint representing a felt252 to a Cairo short-string.

    +as_cairo_short_string in cairo_native_runtime - Rust
    cairo_native_runtime

    Function as_cairo_short_string

    source
    pub fn as_cairo_short_string(value: &Felt) -> Option<String>
    Expand description

    Converts a bigint representing a felt252 to a Cairo short-string.

    \ No newline at end of file diff --git a/cairo_native_runtime/fn.as_cairo_short_string_ex.html b/cairo_native_runtime/fn.as_cairo_short_string_ex.html index f141109b4..78be84957 100644 --- a/cairo_native_runtime/fn.as_cairo_short_string_ex.html +++ b/cairo_native_runtime/fn.as_cairo_short_string_ex.html @@ -1,3 +1,3 @@ -as_cairo_short_string_ex in cairo_native_runtime - Rust

    Function cairo_native_runtime::as_cairo_short_string_ex

    source ·
    pub fn as_cairo_short_string_ex(value: &Felt, length: usize) -> Option<String>
    Expand description

    Converts a bigint representing a felt252 to a Cairo short-string of the given length. +as_cairo_short_string_ex in cairo_native_runtime - Rust

    cairo_native_runtime

    Function as_cairo_short_string_ex

    source
    pub fn as_cairo_short_string_ex(value: &Felt, length: usize) -> Option<String>
    Expand description

    Converts a bigint representing a felt252 to a Cairo short-string of the given length. Nulls are allowed and length must be <= 31.

    \ No newline at end of file diff --git a/cairo_native_runtime/fn.cairo_native__dict_drop.html b/cairo_native_runtime/fn.cairo_native__dict_drop.html index a7c903c7b..188d07d31 100644 --- a/cairo_native_runtime/fn.cairo_native__dict_drop.html +++ b/cairo_native_runtime/fn.cairo_native__dict_drop.html @@ -1,7 +1,7 @@ -cairo_native__dict_drop in cairo_native_runtime - Rust

    Function cairo_native_runtime::cairo_native__dict_drop

    source ·
    #[no_mangle]
    +cairo_native__dict_drop in cairo_native_runtime - Rust
    cairo_native_runtime

    Function cairo_native__dict_drop

    source
    #[no_mangle]
     pub unsafe extern "C" fn cairo_native__dict_drop(
    -    ptr: *mut FeltDict,
    -    drop_fn: Option<extern "C" fn(_: *mut c_void)>,
    +    ptr: *mut FeltDict,
    +    drop_fn: Option<extern "C" fn(_: *mut c_void)>,
     )
    Expand description

    Free a dictionary using an optional callback to drop each element.

    §Safety

    This function is intended to be called from MLIR, deals with pointers, and is therefore diff --git a/cairo_native_runtime/fn.cairo_native__dict_dup.html b/cairo_native_runtime/fn.cairo_native__dict_dup.html index 9d654de6f..3b8faf789 100644 --- a/cairo_native_runtime/fn.cairo_native__dict_dup.html +++ b/cairo_native_runtime/fn.cairo_native__dict_dup.html @@ -1,8 +1,8 @@ -cairo_native__dict_dup in cairo_native_runtime - Rust

    Function cairo_native_runtime::cairo_native__dict_dup

    source ·
    #[no_mangle]
    +cairo_native__dict_dup in cairo_native_runtime - Rust
    cairo_native_runtime

    Function cairo_native__dict_dup

    source
    #[no_mangle]
     pub unsafe extern "C" fn cairo_native__dict_dup(
    -    ptr: *mut FeltDict,
    -    dup_fn: extern "C" fn(_: *mut c_void) -> *mut c_void,
    -) -> *mut FeltDict
    Expand description

    Duplicate a dictionary using a provided callback to clone each element.

    + ptr: *mut FeltDict, + dup_fn: extern "C" fn(_: *mut c_void) -> *mut c_void, +) -> *mut FeltDict
    Expand description

    Duplicate a dictionary using a provided callback to clone each element.

    §Safety

    This function is intended to be called from MLIR, deals with pointers, and is therefore definitely unsafe to use manually.

    diff --git a/cairo_native_runtime/fn.cairo_native__dict_gas_refund.html b/cairo_native_runtime/fn.cairo_native__dict_gas_refund.html index b5e9839dc..1d68ec2a4 100644 --- a/cairo_native_runtime/fn.cairo_native__dict_gas_refund.html +++ b/cairo_native_runtime/fn.cairo_native__dict_gas_refund.html @@ -1,7 +1,7 @@ -cairo_native__dict_gas_refund in cairo_native_runtime - Rust
    #[no_mangle]
    +cairo_native__dict_gas_refund in cairo_native_runtime - Rust
    cairo_native_runtime

    Function cairo_native__dict_gas_refund

    source
    #[no_mangle]
     pub unsafe extern "C" fn cairo_native__dict_gas_refund(
    -    ptr: *const FeltDict,
    -) -> u64
    Expand description

    Compute the total gas refund for the dictionary at squash time.

    + ptr: *const FeltDict, +) -> u64
    Expand description

    Compute the total gas refund for the dictionary at squash time.

    §Safety

    This function is intended to be called from MLIR, deals with pointers, and is therefore definitely unsafe to use manually.

    diff --git a/cairo_native_runtime/fn.cairo_native__dict_get.html b/cairo_native_runtime/fn.cairo_native__dict_get.html index 68b8f1551..038195896 100644 --- a/cairo_native_runtime/fn.cairo_native__dict_get.html +++ b/cairo_native_runtime/fn.cairo_native__dict_get.html @@ -1,8 +1,8 @@ -cairo_native__dict_get in cairo_native_runtime - Rust

    Function cairo_native_runtime::cairo_native__dict_get

    source ·
    #[no_mangle]
    +cairo_native__dict_get in cairo_native_runtime - Rust
    cairo_native_runtime

    Function cairo_native__dict_get

    source
    #[no_mangle]
     pub unsafe extern "C" fn cairo_native__dict_get(
         dict: &mut FeltDict,
    -    key: &[u8; 32],
    -) -> *mut c_void
    Expand description

    Return a pointer to the entry’s value pointer for a given key, inserting a null pointer if not + key: &[u8; 32], +) -> *mut c_void

    Expand description

    Return a pointer to the entry’s value pointer for a given key, inserting a null pointer if not present. Increment the access count.

    The null pointer will be either updated by felt252_dict_entry_finalize or removed (along with everything else in the dict) by the entry’s drop implementation.

    diff --git a/cairo_native_runtime/fn.cairo_native__dict_new.html b/cairo_native_runtime/fn.cairo_native__dict_new.html index 3cc0dd054..200517c3f 100644 --- a/cairo_native_runtime/fn.cairo_native__dict_new.html +++ b/cairo_native_runtime/fn.cairo_native__dict_new.html @@ -1,7 +1,7 @@ -cairo_native__dict_new in cairo_native_runtime - Rust

    Function cairo_native_runtime::cairo_native__dict_new

    source ·
    #[no_mangle]
    +cairo_native__dict_new in cairo_native_runtime - Rust
    cairo_native_runtime

    Function cairo_native__dict_new

    source
    #[no_mangle]
     pub unsafe extern "C" fn cairo_native__dict_new(
    -    free_fn: extern "C" fn(_: *mut c_void),
    -) -> *mut FeltDict
    Expand description

    Allocate a new dictionary.

    + free_fn: extern "C" fn(_: *mut c_void), +) -> *mut FeltDict
    Expand description

    Allocate a new dictionary.

    §Safety

    This function is intended to be called from MLIR, deals with pointers, and is therefore definitely unsafe to use manually.

    diff --git a/cairo_native_runtime/fn.cairo_native__get_costs_builtin.html b/cairo_native_runtime/fn.cairo_native__get_costs_builtin.html index fd0353762..641fc14e1 100644 --- a/cairo_native_runtime/fn.cairo_native__get_costs_builtin.html +++ b/cairo_native_runtime/fn.cairo_native__get_costs_builtin.html @@ -1,3 +1,3 @@ -cairo_native__get_costs_builtin in cairo_native_runtime - Rust
    #[no_mangle]
    -pub extern "C" fn cairo_native__get_costs_builtin() -> *const u64
    Expand description

    Get the gas builtin from the internal thread local.

    +cairo_native__get_costs_builtin in cairo_native_runtime - Rust
    cairo_native_runtime

    Function cairo_native__get_costs_builtin

    source
    #[no_mangle]
    +pub extern "C" fn cairo_native__get_costs_builtin() -> *const u64
    Expand description

    Get the gas builtin from the internal thread local.

    \ No newline at end of file diff --git a/cairo_native_runtime/fn.cairo_native__libfunc__debug__print.html b/cairo_native_runtime/fn.cairo_native__libfunc__debug__print.html index eabfefc14..894f6168d 100644 --- a/cairo_native_runtime/fn.cairo_native__libfunc__debug__print.html +++ b/cairo_native_runtime/fn.cairo_native__libfunc__debug__print.html @@ -1,9 +1,9 @@ -cairo_native__libfunc__debug__print in cairo_native_runtime - Rust
    #[no_mangle]
    +cairo_native__libfunc__debug__print in cairo_native_runtime - Rust
    cairo_native_runtime

    Function cairo_native__libfunc__debug__print

    source
    #[no_mangle]
     pub unsafe extern "C" fn cairo_native__libfunc__debug__print(
    -    target_fd: i32,
    -    data: *const [u8; 32],
    -    len: u32,
    -) -> i32
    Expand description

    Based on cairo-lang-runner’s implementation.

    + target_fd: i32, + data: *const [u8; 32], + len: u32, +) -> i32
    Expand description

    Based on cairo-lang-runner’s implementation.

    Source: https://github.com/starkware-libs/cairo/blob/main/crates/cairo-lang-runner/src/casm_run/mod.rs#L1946-L1948

    §Safety

    This function is intended to be called from MLIR, deals with pointers, and is therefore diff --git a/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_point_from_x_nz.html b/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_point_from_x_nz.html index df05b99a6..03184f313 100644 --- a/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_point_from_x_nz.html +++ b/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_point_from_x_nz.html @@ -1,7 +1,7 @@ -cairo_native__libfunc__ec__ec_point_from_x_nz in cairo_native_runtime - Rust

    #[no_mangle]
    +cairo_native__libfunc__ec__ec_point_from_x_nz in cairo_native_runtime - Rust
    cairo_native_runtime

    Function cairo_native__libfunc__ec__ec_point_from_x_nz

    source
    #[no_mangle]
     pub unsafe extern "C" fn cairo_native__libfunc__ec__ec_point_from_x_nz(
    -    point_ptr: &mut [[u8; 32]; 2],
    -) -> bool
    Expand description

    Compute ec_point_from_x_nz(x) and store it.

    + point_ptr: &mut [[u8; 32]; 2], +) -> bool
    Expand description

    Compute ec_point_from_x_nz(x) and store it.

    §Panics

    This function will panic if either operand is out of range for a felt.

    §Safety

    diff --git a/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_point_try_new_nz.html b/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_point_try_new_nz.html index 678841de7..8b59f17f3 100644 --- a/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_point_try_new_nz.html +++ b/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_point_try_new_nz.html @@ -1,7 +1,7 @@ -cairo_native__libfunc__ec__ec_point_try_new_nz in cairo_native_runtime - Rust
    #[no_mangle]
    +cairo_native__libfunc__ec__ec_point_try_new_nz in cairo_native_runtime - Rust
    cairo_native_runtime

    Function cairo_native__libfunc__ec__ec_point_try_new_nz

    source
    #[no_mangle]
     pub unsafe extern "C" fn cairo_native__libfunc__ec__ec_point_try_new_nz(
    -    point_ptr: &mut [[u8; 32]; 2],
    -) -> bool
    Expand description

    Compute ec_point_try_new_nz(x).

    + point_ptr: &mut [[u8; 32]; 2], +) -> bool
    Expand description

    Compute ec_point_try_new_nz(x).

    §Panics

    This function will panic if either operand is out of range for a felt.

    §Safety

    diff --git a/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_state_add.html b/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_state_add.html index 0b4de7d23..f63771679 100644 --- a/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_state_add.html +++ b/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_state_add.html @@ -1,7 +1,7 @@ -cairo_native__libfunc__ec__ec_state_add in cairo_native_runtime - Rust
    #[no_mangle]
    +cairo_native__libfunc__ec__ec_state_add in cairo_native_runtime - Rust
    cairo_native_runtime

    Function cairo_native__libfunc__ec__ec_state_add

    source
    #[no_mangle]
     pub unsafe extern "C" fn cairo_native__libfunc__ec__ec_state_add(
    -    state_ptr: &mut [[u8; 32]; 4],
    -    point_ptr: &[[u8; 32]; 2],
    +    state_ptr: &mut [[u8; 32]; 4],
    +    point_ptr: &[[u8; 32]; 2],
     )
    Expand description

    Compute ec_state_add(state, point) and store the state back.

    §Panics

    This function will panic if either operand is out of range for a felt.

    diff --git a/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_state_add_mul.html b/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_state_add_mul.html index 50f800c4b..eb3506f38 100644 --- a/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_state_add_mul.html +++ b/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_state_add_mul.html @@ -1,8 +1,8 @@ -cairo_native__libfunc__ec__ec_state_add_mul in cairo_native_runtime - Rust
    #[no_mangle]
    +cairo_native__libfunc__ec__ec_state_add_mul in cairo_native_runtime - Rust
    cairo_native_runtime

    Function cairo_native__libfunc__ec__ec_state_add_mul

    source
    #[no_mangle]
     pub unsafe extern "C" fn cairo_native__libfunc__ec__ec_state_add_mul(
    -    state_ptr: &mut [[u8; 32]; 4],
    -    scalar_ptr: &[u8; 32],
    -    point_ptr: &[[u8; 32]; 2],
    +    state_ptr: &mut [[u8; 32]; 4],
    +    scalar_ptr: &[u8; 32],
    +    point_ptr: &[[u8; 32]; 2],
     )
    Expand description

    Compute ec_state_add_mul(state, scalar, point) and store the state back.

    §Panics

    This function will panic if either operand is out of range for a felt.

    diff --git a/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_state_init.html b/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_state_init.html index 5134a69c8..b6d5f82a2 100644 --- a/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_state_init.html +++ b/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_state_init.html @@ -1,6 +1,6 @@ -cairo_native__libfunc__ec__ec_state_init in cairo_native_runtime - Rust
    #[no_mangle]
    +cairo_native__libfunc__ec__ec_state_init in cairo_native_runtime - Rust
    cairo_native_runtime

    Function cairo_native__libfunc__ec__ec_state_init

    source
    #[no_mangle]
     pub unsafe extern "C" fn cairo_native__libfunc__ec__ec_state_init(
    -    state_ptr: &mut [[u8; 32]; 4],
    +    state_ptr: &mut [[u8; 32]; 4],
     )
    Expand description

    Compute ec_state_init() and store the state back.

    §Safety

    This function is intended to be called from MLIR, deals with pointers, and is therefore diff --git a/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_state_try_finalize_nz.html b/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_state_try_finalize_nz.html index 560fe5c4f..8859cfcb3 100644 --- a/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_state_try_finalize_nz.html +++ b/cairo_native_runtime/fn.cairo_native__libfunc__ec__ec_state_try_finalize_nz.html @@ -1,8 +1,8 @@ -cairo_native__libfunc__ec__ec_state_try_finalize_nz in cairo_native_runtime - Rust

    #[no_mangle]
    +cairo_native__libfunc__ec__ec_state_try_finalize_nz in cairo_native_runtime - Rust
    cairo_native_runtime

    Function cairo_native__libfunc__ec__ec_state_try_finalize_nz

    source
    #[no_mangle]
     pub unsafe extern "C" fn cairo_native__libfunc__ec__ec_state_try_finalize_nz(
    -    point_ptr: &mut [[u8; 32]; 2],
    -    state_ptr: &[[u8; 32]; 4],
    -) -> bool
    Expand description

    Compute ec_state_try_finalize_nz(state) and store the result.

    + point_ptr: &mut [[u8; 32]; 2], + state_ptr: &[[u8; 32]; 4], +) -> bool
    Expand description

    Compute ec_state_try_finalize_nz(state) and store the result.

    §Panics

    This function will panic if either operand is out of range for a felt.

    §Safety

    diff --git a/cairo_native_runtime/fn.cairo_native__libfunc__hades_permutation.html b/cairo_native_runtime/fn.cairo_native__libfunc__hades_permutation.html index b6b4a5da9..22e47d06a 100644 --- a/cairo_native_runtime/fn.cairo_native__libfunc__hades_permutation.html +++ b/cairo_native_runtime/fn.cairo_native__libfunc__hades_permutation.html @@ -1,8 +1,8 @@ -cairo_native__libfunc__hades_permutation in cairo_native_runtime - Rust
    #[no_mangle]
    +cairo_native__libfunc__hades_permutation in cairo_native_runtime - Rust
    cairo_native_runtime

    Function cairo_native__libfunc__hades_permutation

    source
    #[no_mangle]
     pub unsafe extern "C" fn cairo_native__libfunc__hades_permutation(
    -    op0: &mut [u8; 32],
    -    op1: &mut [u8; 32],
    -    op2: &mut [u8; 32],
    +    op0: &mut [u8; 32],
    +    op1: &mut [u8; 32],
    +    op2: &mut [u8; 32],
     )
    Expand description

    Compute hades_permutation(op0, op1, op2) and replace the operands with the results.

    All operands need the values in big endian.

    §Panics

    diff --git a/cairo_native_runtime/fn.cairo_native__libfunc__pedersen.html b/cairo_native_runtime/fn.cairo_native__libfunc__pedersen.html index b2961d6dc..200e06ed9 100644 --- a/cairo_native_runtime/fn.cairo_native__libfunc__pedersen.html +++ b/cairo_native_runtime/fn.cairo_native__libfunc__pedersen.html @@ -1,8 +1,8 @@ -cairo_native__libfunc__pedersen in cairo_native_runtime - Rust
    #[no_mangle]
    +cairo_native__libfunc__pedersen in cairo_native_runtime - Rust
    cairo_native_runtime

    Function cairo_native__libfunc__pedersen

    source
    #[no_mangle]
     pub unsafe extern "C" fn cairo_native__libfunc__pedersen(
    -    dst: &mut [u8; 32],
    -    lhs: &[u8; 32],
    -    rhs: &[u8; 32],
    +    dst: &mut [u8; 32],
    +    lhs: &[u8; 32],
    +    rhs: &[u8; 32],
     )
    Expand description

    Compute pedersen(lhs, rhs) and store it into dst.

    All its operands need the values in big endian.

    §Panics

    diff --git a/cairo_native_runtime/fn.cairo_native__set_costs_builtin.html b/cairo_native_runtime/fn.cairo_native__set_costs_builtin.html index 251ecfc9a..752ec2a25 100644 --- a/cairo_native_runtime/fn.cairo_native__set_costs_builtin.html +++ b/cairo_native_runtime/fn.cairo_native__set_costs_builtin.html @@ -1,6 +1,6 @@ -cairo_native__set_costs_builtin in cairo_native_runtime - Rust
    #[no_mangle]
    +cairo_native__set_costs_builtin in cairo_native_runtime - Rust
    cairo_native_runtime

    Function cairo_native__set_costs_builtin

    source
    #[no_mangle]
     pub extern "C" fn cairo_native__set_costs_builtin(
    -    ptr: *const u64,
    -) -> *const u64
    Expand description

    Store the gas builtin in the internal thread local. Returns the old pointer, to restore it after execution. + ptr: *const u64, +) -> *const u64

    Expand description

    Store the gas builtin in the internal thread local. Returns the old pointer, to restore it after execution. Not a runtime metadata method, it should be called before the program is executed.

    \ No newline at end of file diff --git a/cairo_native_runtime/fn.format_next_item.html b/cairo_native_runtime/fn.format_next_item.html index b4515256f..1441aa7cd 100644 --- a/cairo_native_runtime/fn.format_next_item.html +++ b/cairo_native_runtime/fn.format_next_item.html @@ -1,4 +1,4 @@ -format_next_item in cairo_native_runtime - Rust

    Function cairo_native_runtime::format_next_item

    source ·
    pub fn format_next_item<T>(values: &mut T) -> Option<FormattedItem>
    where - T: Iterator<Item = Felt> + Clone,
    Expand description

    Formats a string or a short string / felt252. Returns the formatted string and a boolean +format_next_item in cairo_native_runtime - Rust

    cairo_native_runtime

    Function format_next_item

    source
    pub fn format_next_item<T>(values: &mut T) -> Option<FormattedItem>
    where + T: Iterator<Item = Felt> + Clone,
    Expand description

    Formats a string or a short string / felt252. Returns the formatted string and a boolean indicating whether it’s a string. If can’t format the item, returns None.

    \ No newline at end of file diff --git a/cairo_native_runtime/index.html b/cairo_native_runtime/index.html index e241e6bee..d37cdc4af 100644 --- a/cairo_native_runtime/index.html +++ b/cairo_native_runtime/index.html @@ -1,4 +1,4 @@ -cairo_native_runtime - Rust

    Crate cairo_native_runtime

    source ·

    Structs§

    Constants§

    Functions§

    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<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_runtime/struct.FeltDict.html b/cairo_native_runtime/struct.FeltDict.html index e49bce526..b6998685d 100644 --- a/cairo_native_runtime/struct.FeltDict.html +++ b/cairo_native_runtime/struct.FeltDict.html @@ -1,31 +1,31 @@ -FeltDict in cairo_native_runtime - Rust

    Struct cairo_native_runtime::FeltDict

    source ·
    pub struct FeltDict {
    -    pub inner: HashMap<[u8; 32], *mut c_void>,
    -    pub count: u64,
    -    pub free_fn: unsafe extern "C" fn(_: *mut c_void),
    +FeltDict in cairo_native_runtime - Rust
    cairo_native_runtime

    Struct FeltDict

    source
    pub struct FeltDict {
    +    pub inner: HashMap<[u8; 32], *mut c_void>,
    +    pub count: u64,
    +    pub free_fn: unsafe extern "C" fn(_: *mut c_void),
     }
    Expand description

    Felt252 type used in cairo native runtime

    -

    Fields§

    §inner: HashMap<[u8; 32], *mut c_void>§count: u64§free_fn: unsafe extern "C" fn(_: *mut c_void)

    Trait Implementations§

    source§

    impl Debug for FeltDict

    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.

    +

    Fields§

    §inner: HashMap<[u8; 32], *mut c_void>§count: u64§free_fn: unsafe extern "C" fn(_: *mut c_void)

    Trait Implementations§

    source§

    impl Debug for FeltDict

    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.

    §

    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<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<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where +otherwise. 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<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_runtime/struct.FormattedItem.html b/cairo_native_runtime/struct.FormattedItem.html index 404e28db5..64a08c1eb 100644 --- a/cairo_native_runtime/struct.FormattedItem.html +++ b/cairo_native_runtime/struct.FormattedItem.html @@ -1,29 +1,29 @@ -FormattedItem in cairo_native_runtime - Rust

    Struct cairo_native_runtime::FormattedItem

    source ·
    pub struct FormattedItem { /* private fields */ }
    Expand description

    A formatted string representation of anything formattable (e.g. ByteArray, felt, short-string).

    -

    Implementations§

    source§

    impl FormattedItem

    source

    pub fn get(self) -> String

    Returns the formatted item as is.

    -
    source

    pub fn quote_if_string(self) -> String

    Wraps the formatted item with quote, if it’s a string. Otherwise returns it as is.

    -

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> 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.

    +FormattedItem in cairo_native_runtime - Rust
    cairo_native_runtime

    Struct FormattedItem

    source
    pub struct FormattedItem { /* private fields */ }
    Expand description

    A formatted string representation of anything formattable (e.g. ByteArray, felt, short-string).

    +

    Implementations§

    source§

    impl FormattedItem

    source

    pub fn get(self) -> String

    Returns the formatted item as is.

    +
    source

    pub fn quote_if_string(self) -> String

    Wraps the formatted item with quote, if it’s a string. Otherwise returns it as is.

    +

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> 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<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<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where +otherwise. 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<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_runtime/struct.HALF_PRIME.html b/cairo_native_runtime/struct.HALF_PRIME.html index e21134f3b..ef5b2717e 100644 --- a/cairo_native_runtime/struct.HALF_PRIME.html +++ b/cairo_native_runtime/struct.HALF_PRIME.html @@ -1,55 +1,55 @@ -HALF_PRIME in cairo_native_runtime - Rust

    Struct cairo_native_runtime::HALF_PRIME

    source ·
    pub struct HALF_PRIME { /* private fields */ }

    Methods from Deref<Target = Felt>§

    pub const ZERO: Felt = _

    pub const ONE: Felt = _

    pub const TWO: Felt = _

    pub const THREE: Felt = _

    pub const MAX: Felt = _

    pub const ELEMENT_UPPER_BOUND: Felt = _

    pub fn to_bytes_be(&self) -> [u8; 32]

    Converts to big-endian byte representation in a u8 array. +HALF_PRIME in cairo_native_runtime - Rust

    cairo_native_runtime

    Struct HALF_PRIME

    source
    pub struct HALF_PRIME { /* private fields */ }

    Methods from Deref<Target = Felt>§

    pub const ZERO: Felt = _

    pub const ONE: Felt = _

    pub const TWO: Felt = _

    pub const THREE: Felt = _

    pub const MAX: Felt = _

    pub const ELEMENT_UPPER_BOUND: Felt = _

    pub fn to_bytes_be(&self) -> [u8; 32]

    Converts to big-endian byte representation in a u8 array. This is as performant as to_bytes_le

    -

    pub fn to_bytes_le(&self) -> [u8; 32]

    Converts to little-endian byte representation in a u8 array. +

    pub fn to_bytes_le(&self) -> [u8; 32]

    Converts to little-endian byte representation in a u8 array. This is as performant as to_bytes_be

    -

    pub fn to_hex_string(&self) -> String

    Helper to produce a hexadecimal formatted string. +

    pub fn to_hex_string(&self) -> String

    Helper to produce a hexadecimal formatted string. Equivalent to calling format!("{self:#x}").

    -

    pub fn to_fixed_hex_string(&self) -> String

    Helper to produce a hexadecimal formatted string of 66 chars.

    -

    pub fn to_bits_le(&self) -> [bool; 256]

    Converts to little-endian bit representation.

    -

    pub fn to_bits_be(&self) -> [bool; 256]

    Converts to big-endian bit representation.

    +

    pub fn to_fixed_hex_string(&self) -> String

    Helper to produce a hexadecimal formatted string of 66 chars.

    +

    pub fn to_bits_le(&self) -> [bool; 256]

    Converts to little-endian bit representation.

    +

    pub fn to_bits_be(&self) -> [bool; 256]

    Converts to big-endian bit representation.

    pub fn field_div(&self, rhs: &NonZeroFelt) -> Felt

    Finite field division.

    pub fn floor_div(&self, rhs: &NonZeroFelt) -> Felt

    Truncated quotient between self and rhs.

    pub fn div_rem(&self, rhs: &NonZeroFelt) -> (Felt, Felt)

    Quotient and remainder between self and rhs.

    -

    pub fn inverse(&self) -> Option<Felt>

    Multiplicative inverse inside field.

    -

    pub fn sqrt(&self) -> Option<Felt>

    Finds the square root. There may be 2 roots for each square, and the lower one is returned.

    +

    pub fn inverse(&self) -> Option<Felt>

    Multiplicative inverse inside field.

    +

    pub fn sqrt(&self) -> Option<Felt>

    Finds the square root. There may be 2 roots for each square, and the lower one is returned.

    pub fn square(&self) -> Felt

    Raises self to the power of 2.

    pub fn double(&self) -> Felt

    Doubles the point self

    -

    pub fn pow(&self, exponent: impl Into<u128>) -> Felt

    Raises self to the power of exponent.

    +

    pub fn pow(&self, exponent: impl Into<u128>) -> Felt

    Raises self to the power of exponent.

    pub fn pow_felt(&self, exponent: &Felt) -> Felt

    Raises self to the power of exponent.

    pub fn mul_mod(&self, rhs: &Felt, p: &NonZeroFelt) -> Felt

    Modular multiplication between self and rhs in modulo p.

    -

    pub fn mod_inverse(&self, p: &NonZeroFelt) -> Option<Felt>

    Multiplicative inverse of self in modulo p.

    +

    pub fn mod_inverse(&self, p: &NonZeroFelt) -> Option<Felt>

    Multiplicative inverse of self in modulo p.

    pub fn mod_floor(&self, n: &NonZeroFelt) -> Felt

    Remainder of dividing self by n as integers.

    -

    pub fn to_raw_reversed(&self) -> [u64; 4]

    Returns the internal representation of a felt and reverses it to match +

    pub fn to_raw_reversed(&self) -> [u64; 4]

    Returns the internal representation of a felt and reverses it to match starknet-rs mont representation

    -

    pub fn to_raw(&self) -> [u64; 4]

    Returns the internal representation of a felt

    -

    pub fn to_le_digits(&self) -> [u64; 4]

    Convert self’s representative into an array of u64 digits, +

    pub fn to_raw(&self) -> [u64; 4]

    Returns the internal representation of a felt

    +

    pub fn to_le_digits(&self) -> [u64; 4]

    Convert self’s representative into an array of u64 digits, least significant digits first.

    -

    pub fn to_be_digits(&self) -> [u64; 4]

    Convert self’s representative into an array of u64 digits, +

    pub fn to_be_digits(&self) -> [u64; 4]

    Convert self’s representative into an array of u64 digits, most significant digits first.

    -

    pub fn bits(&self) -> usize

    Count the minimum number of bits needed to express self’s representative.

    -

    pub fn to_biguint(&self) -> BigUint

    pub fn to_bigint(&self) -> BigInt

    Trait Implementations§

    source§

    impl Deref for HALF_PRIME

    source§

    type Target = Felt

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Felt

    Dereferences the value.
    source§

    impl LazyStatic for HALF_PRIME

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> 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.

    +

    pub fn bits(&self) -> usize

    Count the minimum number of bits needed to express self’s representative.

    +

    pub fn to_biguint(&self) -> BigUint

    pub fn to_bigint(&self) -> BigInt

    Trait Implementations§

    source§

    impl Deref for HALF_PRIME

    source§

    type Target = Felt

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Felt

    Dereferences the value.
    source§

    impl LazyStatic for HALF_PRIME

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> 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<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<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where +otherwise. 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<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_stress/all.html b/cairo_native_stress/all.html index 4f0472c56..1831c6d1f 100644 --- a/cairo_native_stress/all.html +++ b/cairo_native_stress/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/cairo_native_stress/constant.AOT_CACHE_DIR.html b/cairo_native_stress/constant.AOT_CACHE_DIR.html index 66faf6019..6f5feb25a 100644 --- a/cairo_native_stress/constant.AOT_CACHE_DIR.html +++ b/cairo_native_stress/constant.AOT_CACHE_DIR.html @@ -1,2 +1,2 @@ -AOT_CACHE_DIR in cairo_native_stress - Rust

    Constant cairo_native_stress::AOT_CACHE_DIR

    source ·
    pub(crate) const AOT_CACHE_DIR: &str = ".aot-cache";
    Expand description

    The directory used to store compiled native programs

    +AOT_CACHE_DIR in cairo_native_stress - Rust
    cairo_native_stress

    Constant AOT_CACHE_DIR

    source
    pub(crate) const AOT_CACHE_DIR: &str = ".aot-cache";
    Expand description

    The directory used to store compiled native programs

    \ No newline at end of file diff --git a/cairo_native_stress/constant.UNIQUE_CONTRACT_VALUE.html b/cairo_native_stress/constant.UNIQUE_CONTRACT_VALUE.html index 0552d2e14..d240d288d 100644 --- a/cairo_native_stress/constant.UNIQUE_CONTRACT_VALUE.html +++ b/cairo_native_stress/constant.UNIQUE_CONTRACT_VALUE.html @@ -1,4 +1,4 @@ -UNIQUE_CONTRACT_VALUE in cairo_native_stress - Rust

    Constant cairo_native_stress::UNIQUE_CONTRACT_VALUE

    source ·
    pub(crate) const UNIQUE_CONTRACT_VALUE: u32 = 835;
    Expand description

    An unique value hardcoded into the initial contract that it’s +UNIQUE_CONTRACT_VALUE in cairo_native_stress - Rust

    cairo_native_stress

    Constant UNIQUE_CONTRACT_VALUE

    source
    pub(crate) const UNIQUE_CONTRACT_VALUE: u32 = 835;
    Expand description

    An unique value hardcoded into the initial contract that it’s used as an anchor point to safely modify it. It can be any value as long as it’s unique in the contract.

    \ No newline at end of file diff --git a/cairo_native_stress/fn.directory_get_size.html b/cairo_native_stress/fn.directory_get_size.html index d8c431a4e..700b58a03 100644 --- a/cairo_native_stress/fn.directory_get_size.html +++ b/cairo_native_stress/fn.directory_get_size.html @@ -1,2 +1,2 @@ -directory_get_size in cairo_native_stress - Rust

    Function cairo_native_stress::directory_get_size

    source ·
    pub(crate) fn directory_get_size(path: impl AsRef<Path>) -> Result<u64>
    Expand description

    Returns the size of a directory in bytes

    +directory_get_size in cairo_native_stress - Rust
    cairo_native_stress

    Function directory_get_size

    source
    pub(crate) fn directory_get_size(path: impl AsRef<Path>) -> Result<u64>
    Expand description

    Returns the size of a directory in bytes

    \ No newline at end of file diff --git a/cairo_native_stress/fn.directory_is_empty.html b/cairo_native_stress/fn.directory_is_empty.html index 2aa8e142e..95d220a79 100644 --- a/cairo_native_stress/fn.directory_is_empty.html +++ b/cairo_native_stress/fn.directory_is_empty.html @@ -1 +1 @@ -directory_is_empty in cairo_native_stress - Rust

    Function cairo_native_stress::directory_is_empty

    source ·
    pub(crate) fn directory_is_empty(path: impl AsRef<Path>) -> Result<bool>
    \ No newline at end of file +directory_is_empty in cairo_native_stress - Rust
    cairo_native_stress

    Function directory_is_empty

    source
    pub(crate) fn directory_is_empty(path: impl AsRef<Path>) -> Result<bool>
    \ No newline at end of file diff --git a/cairo_native_stress/fn.generate_starknet_contract.html b/cairo_native_stress/fn.generate_starknet_contract.html index c18f19f38..a7d8c4ad5 100644 --- a/cairo_native_stress/fn.generate_starknet_contract.html +++ b/cairo_native_stress/fn.generate_starknet_contract.html @@ -1,5 +1,5 @@ -generate_starknet_contract in cairo_native_stress - Rust

    Function cairo_native_stress::generate_starknet_contract

    source ·
    pub(crate) fn generate_starknet_contract(
    -    return_value: u32,
    +generate_starknet_contract in cairo_native_stress - Rust
    cairo_native_stress

    Function generate_starknet_contract

    source
    pub(crate) fn generate_starknet_contract(
    +    return_value: u32,
     ) -> (FunctionId, Program)
    Expand description

    Generate a dummy starknet contract

    The contract contains an external main function that returns return_value

    \ No newline at end of file diff --git a/cairo_native_stress/fn.main.html b/cairo_native_stress/fn.main.html index 54701e2b0..c4c23d6bc 100644 --- a/cairo_native_stress/fn.main.html +++ b/cairo_native_stress/fn.main.html @@ -1 +1 @@ -main in cairo_native_stress - Rust

    Function cairo_native_stress::main

    source ·
    pub(crate) fn main()
    \ No newline at end of file +main in cairo_native_stress - Rust
    cairo_native_stress

    Function main

    source
    pub(crate) fn main()
    \ No newline at end of file diff --git a/cairo_native_stress/fn.modify_starknet_contract.html b/cairo_native_stress/fn.modify_starknet_contract.html index 94d55b165..f10afd650 100644 --- a/cairo_native_stress/fn.modify_starknet_contract.html +++ b/cairo_native_stress/fn.modify_starknet_contract.html @@ -1,7 +1,7 @@ -modify_starknet_contract in cairo_native_stress - Rust

    Function cairo_native_stress::modify_starknet_contract

    source ·
    pub(crate) fn modify_starknet_contract(
    +modify_starknet_contract in cairo_native_stress - Rust
    cairo_native_stress

    Function modify_starknet_contract

    source
    pub(crate) fn modify_starknet_contract(
         program: Program,
    -    old_value: u32,
    -    new_value: u32,
    +    old_value: u32,
    +    new_value: u32,
     ) -> Program
    Expand description

    Modifies the given contract by replacing the old_value with new_value in any type declaration

    The contract must only contain the value old_value once

    \ No newline at end of file diff --git a/cairo_native_stress/fn.set_global_subscriber.html b/cairo_native_stress/fn.set_global_subscriber.html index 9e44ebaed..393c8d76c 100644 --- a/cairo_native_stress/fn.set_global_subscriber.html +++ b/cairo_native_stress/fn.set_global_subscriber.html @@ -1 +1 @@ -set_global_subscriber in cairo_native_stress - Rust

    Function cairo_native_stress::set_global_subscriber

    source ·
    pub(crate) fn set_global_subscriber(args: &StressTestCommand)
    \ No newline at end of file +set_global_subscriber in cairo_native_stress - Rust
    cairo_native_stress

    Function set_global_subscriber

    source
    pub(crate) fn set_global_subscriber(args: &StressTestCommand)
    \ No newline at end of file diff --git a/cairo_native_stress/index.html b/cairo_native_stress/index.html index 6d3dd44ed..60c1e1a7b 100644 --- a/cairo_native_stress/index.html +++ b/cairo_native_stress/index.html @@ -1,4 +1,4 @@ -cairo_native_stress - Rust

    Crate cairo_native_stress

    source ·
    Expand description

    A stress tester for Cairo Native

    +cairo_native_stress - Rust

    Crate cairo_native_stress

    source
    Expand description

    A stress tester for Cairo Native

    See StressTestCommand for documentation on the CLI.

    §Walkthrough

    Iterates through N rounds (specified as an argument), and in each round:

    @@ -9,6 +9,6 @@

    §Walkthrough

    The cache is dropped at the end of the whole execution.

    For documentation on the specific cache used, see NaiveAotCache.

    -

    Structs§

    Constants§

    Structs§

    Constants§

    • The directory used to store compiled native programs
    • An unique value hardcoded into the initial contract that it’s used as an anchor point to safely modify it. -It can be any value as long as it’s unique in the contract.

    Statics§

    Functions§

    \ No newline at end of file +It can be any value as long as it’s unique in the contract.

    Statics§

    Functions§

    \ No newline at end of file diff --git a/cairo_native_stress/static.GLOBAL_ALLOC.html b/cairo_native_stress/static.GLOBAL_ALLOC.html index a84f0368f..68b7c7acf 100644 --- a/cairo_native_stress/static.GLOBAL_ALLOC.html +++ b/cairo_native_stress/static.GLOBAL_ALLOC.html @@ -1 +1 @@ -GLOBAL_ALLOC in cairo_native_stress - Rust

    Static cairo_native_stress::GLOBAL_ALLOC

    source ·
    pub(crate) static GLOBAL_ALLOC: &StatsAlloc<System>
    \ No newline at end of file +GLOBAL_ALLOC in cairo_native_stress - Rust
    cairo_native_stress

    Static GLOBAL_ALLOC

    source
    pub(crate) static GLOBAL_ALLOC: &StatsAlloc<System>
    \ No newline at end of file diff --git a/cairo_native_stress/struct.NaiveAotCache.html b/cairo_native_stress/struct.NaiveAotCache.html index 798eefb57..1e9b45f88 100644 --- a/cairo_native_stress/struct.NaiveAotCache.html +++ b/cairo_native_stress/struct.NaiveAotCache.html @@ -1,7 +1,7 @@ -NaiveAotCache in cairo_native_stress - Rust

    Struct cairo_native_stress::NaiveAotCache

    source ·
    pub(crate) struct NaiveAotCache<'a, K>
    where - K: PartialEq + Eq + Hash + Display,
    { +NaiveAotCache in cairo_native_stress - Rust
    cairo_native_stress

    Struct NaiveAotCache

    source
    pub(crate) struct NaiveAotCache<'a, K>
    where + K: PartialEq + Eq + Hash + Display,
    { pub(crate) context: &'a NativeContext, - pub(crate) cache: HashMap<K, Arc<AotNativeExecutor>>, + pub(crate) cache: HashMap<K, Arc<AotNativeExecutor>>, }
    Expand description

    A naive implementation of an AOT Program Cache

    For each contract:

      @@ -15,54 +15,54 @@
    • Keeping only some executors on memory, while storing the remaining compiled shared libraries only on disk.
    • When restarting the program, reutilize already compiled programs from AOT_CACHE_DIR
    -

    Fields§

    §context: &'a NativeContext§cache: HashMap<K, Arc<AotNativeExecutor>>

    Implementations§

    source§

    impl<'a, K> NaiveAotCache<'a, K>
    where - K: PartialEq + Eq + Hash + Display,

    source

    pub fn new(context: &'a NativeContext) -> Self

    source

    pub fn get(&self, key: &K) -> Option<Arc<AotNativeExecutor>>

    source

    pub fn compile_and_insert( +

    Fields§

    §context: &'a NativeContext§cache: HashMap<K, Arc<AotNativeExecutor>>

    Implementations§

    source§

    impl<'a, K> NaiveAotCache<'a, K>
    where + K: PartialEq + Eq + Hash + Display,

    source

    pub fn new(context: &'a NativeContext) -> Self

    source

    pub fn get(&self, key: &K) -> Option<Arc<AotNativeExecutor>>

    source

    pub fn compile_and_insert( &mut self, key: K, program: &Program, opt_level: OptLevel, -) -> Arc<AotNativeExecutor>

    Compiles and inserts a given program into the cache

    +) -> Arc<AotNativeExecutor>

    Compiles and inserts a given program into the cache

    The dynamic library is stored in AOT_CACHE_DIR directory

    -

    Auto Trait Implementations§

    §

    impl<'a, K> Freeze for NaiveAotCache<'a, K>

    §

    impl<'a, K> RefUnwindSafe for NaiveAotCache<'a, K>
    where - K: RefUnwindSafe,

    §

    impl<'a, K> Send for NaiveAotCache<'a, K>
    where - K: Send,

    §

    impl<'a, K> Sync for NaiveAotCache<'a, K>
    where - K: Sync,

    §

    impl<'a, K> Unpin for NaiveAotCache<'a, K>
    where - K: Unpin,

    §

    impl<'a, K> UnwindSafe for NaiveAotCache<'a, K>
    where - K: 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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +

    Auto Trait Implementations§

    §

    impl<'a, K> Freeze for NaiveAotCache<'a, K>

    §

    impl<'a, K> RefUnwindSafe for NaiveAotCache<'a, K>
    where + K: RefUnwindSafe,

    §

    impl<'a, K> Send for NaiveAotCache<'a, K>
    where + K: Send,

    §

    impl<'a, K> Sync for NaiveAotCache<'a, K>
    where + K: Sync,

    §

    impl<'a, K> Unpin for NaiveAotCache<'a, K>
    where + K: Unpin,

    §

    impl<'a, K> UnwindSafe for NaiveAotCache<'a, K>
    where + K: 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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -79,121 +79,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -210,121 +210,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -340,61 +340,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -410,50 +410,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -463,98 +463,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_stress/struct.StressTestCommand.html b/cairo_native_stress/struct.StressTestCommand.html index eded25e14..754e466b3 100644 --- a/cairo_native_stress/struct.StressTestCommand.html +++ b/cairo_native_stress/struct.StressTestCommand.html @@ -1,64 +1,64 @@ -StressTestCommand in cairo_native_stress - Rust

    Struct cairo_native_stress::StressTestCommand

    source ·
    pub(crate) struct StressTestCommand {
    -    pub(crate) rounds: u32,
    -    pub(crate) output: Option<PathBuf>,
    +StressTestCommand in cairo_native_stress - Rust
    cairo_native_stress

    Struct StressTestCommand

    source
    pub(crate) struct StressTestCommand {
    +    pub(crate) rounds: u32,
    +    pub(crate) output: Option<PathBuf>,
     }
    Expand description

    A stress tester for Cairo Native

    It compiles Sierra programs with Cairo Native, caches, and executes them with AOT runner. The compiled dynamic libraries are stored in AOT_CACHE_DIR relative to the current working directory.

    -

    Fields§

    §rounds: u32

    Amount of rounds to execute

    -
    §output: Option<PathBuf>

    Output file for JSON formatted logs

    -

    Trait Implementations§

    source§

    impl Args for StressTestCommand

    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§

    §rounds: u32

    Amount of rounds to execute

    +
    §output: Option<PathBuf>

    Output file for JSON formatted logs

    +

    Trait Implementations§

    source§

    impl Args for StressTestCommand

    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 StressTestCommand

    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 StressTestCommand

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl FromArgMatches for StressTestCommand

    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 StressTestCommand

    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 StressTestCommand

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl FromArgMatches for StressTestCommand

    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 StressTestCommand

    §

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +) -> Result<(), Error>
    Assign values from ArgMatches to self.
    source§

    impl Parser for StressTestCommand

    §

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -75,121 +75,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -206,121 +206,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -336,61 +336,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -406,50 +406,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -459,98 +459,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_test/all.html b/cairo_native_test/all.html index f7d599ea9..cd403c0de 100644 --- a/cairo_native_test/all.html +++ b/cairo_native_test/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/cairo_native_test/fn.main.html b/cairo_native_test/fn.main.html index edbfc8e47..90c6976b9 100644 --- a/cairo_native_test/fn.main.html +++ b/cairo_native_test/fn.main.html @@ -1 +1 @@ -main in cairo_native_test - Rust

    Function cairo_native_test::main

    source ·
    pub(crate) fn main() -> Result<()>
    \ No newline at end of file +main in cairo_native_test - Rust
    cairo_native_test

    Function main

    source
    pub(crate) fn main() -> Result<()>
    \ No newline at end of file diff --git a/cairo_native_test/index.html b/cairo_native_test/index.html index e5b2a9420..022f69665 100644 --- a/cairo_native_test/index.html +++ b/cairo_native_test/index.html @@ -1,2 +1,2 @@ -cairo_native_test - Rust

    Crate cairo_native_test

    source ·

    Modules§

    Structs§

    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -88,121 +88,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -219,121 +219,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -349,61 +349,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -419,50 +419,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -472,98 +472,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_test/utils/enum.RunMode.html b/cairo_native_test/utils/enum.RunMode.html index d9a72403f..059297f5b 100644 --- a/cairo_native_test/utils/enum.RunMode.html +++ b/cairo_native_test/utils/enum.RunMode.html @@ -1,43 +1,43 @@ -RunMode in cairo_native_test::utils - Rust

    Enum cairo_native_test::utils::RunMode

    source ·
    pub enum RunMode {
    +RunMode in cairo_native_test::utils - Rust
    cairo_native_test::utils

    Enum RunMode

    source
    pub enum RunMode {
         Aot,
         Jit,
    -}

    Variants§

    §

    Aot

    §

    Jit

    Trait Implementations§

    source§

    impl Clone for RunMode

    source§

    fn clone(&self) -> RunMode

    Returns a copy of 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 RunMode

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl ValueEnum for RunMode

    source§

    fn value_variants<'a>() -> &'a [Self]

    All possible argument values, in display order.
    source§

    fn to_possible_value<'a>(&self) -> Option<PossibleValue>

    The canonical argument value. Read more
    §

    fn from_str(input: &str, ignore_case: bool) -> Result<Self, String>

    Parse an argument into 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +}

    Variants§

    §

    Aot

    §

    Jit

    Trait Implementations§

    source§

    impl Clone for RunMode

    source§

    fn clone(&self) -> RunMode

    Returns a copy of 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 RunMode

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl ValueEnum for RunMode

    source§

    fn value_variants<'a>() -> &'a [Self]

    All possible argument values, in display order.
    source§

    fn to_possible_value<'a>(&self) -> Option<PossibleValue>

    The canonical argument value. Read more
    §

    fn from_str(input: &str, ignore_case: bool) -> Result<Self, String>

    Parse an argument into 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -54,121 +54,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -185,121 +185,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -315,61 +315,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -385,50 +385,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -438,99 +438,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_test/utils/fn.find_function.html b/cairo_native_test/utils/fn.find_function.html index 78e1c5b6c..047c747d6 100644 --- a/cairo_native_test/utils/fn.find_function.html +++ b/cairo_native_test/utils/fn.find_function.html @@ -1,5 +1,5 @@ -find_function in cairo_native_test::utils - Rust

    Function cairo_native_test::utils::find_function

    source ·
    pub fn find_function<'a>(
    +find_function in cairo_native_test::utils - Rust
    cairo_native_test::utils

    Function find_function

    source
    pub fn find_function<'a>(
         sierra_program: &'a Program,
    -    name_suffix: &str,
    +    name_suffix: &str,
     ) -> Result<&'a Function>
    Expand description

    Find the function ending with name_suffix in the program.

    \ No newline at end of file diff --git a/cairo_native_test/utils/fn.format_for_panic.html b/cairo_native_test/utils/fn.format_for_panic.html index 5903d0866..36d5d55e9 100644 --- a/cairo_native_test/utils/fn.format_for_panic.html +++ b/cairo_native_test/utils/fn.format_for_panic.html @@ -1,2 +1,2 @@ -format_for_panic in cairo_native_test::utils - Rust

    Function cairo_native_test::utils::format_for_panic

    source ·
    pub fn format_for_panic(felts: IntoIter<Felt>) -> String
    Expand description

    Formats the given felts as a panic string.

    +format_for_panic in cairo_native_test::utils - Rust
    cairo_native_test::utils

    Function format_for_panic

    source
    pub fn format_for_panic(felts: IntoIter<Felt>) -> String
    Expand description

    Formats the given felts as a panic string.

    \ No newline at end of file diff --git a/cairo_native_test/utils/fn.jitvalue_to_felt.html b/cairo_native_test/utils/fn.jitvalue_to_felt.html index 21a12a5a8..6480f7a8b 100644 --- a/cairo_native_test/utils/fn.jitvalue_to_felt.html +++ b/cairo_native_test/utils/fn.jitvalue_to_felt.html @@ -1,2 +1,2 @@ -jitvalue_to_felt in cairo_native_test::utils - Rust

    Function cairo_native_test::utils::jitvalue_to_felt

    source ·
    fn jitvalue_to_felt(value: &Value) -> Vec<Felt>
    Expand description

    Convert a JIT value to a felt.

    +jitvalue_to_felt in cairo_native_test::utils - Rust
    cairo_native_test::utils

    Function jitvalue_to_felt

    source
    fn jitvalue_to_felt(value: &Value) -> Vec<Felt>
    Expand description

    Convert a JIT value to a felt.

    \ No newline at end of file diff --git a/cairo_native_test/utils/fn.result_to_runresult.html b/cairo_native_test/utils/fn.result_to_runresult.html index 1d1806870..7dfc255e7 100644 --- a/cairo_native_test/utils/fn.result_to_runresult.html +++ b/cairo_native_test/utils/fn.result_to_runresult.html @@ -1,2 +1,2 @@ -result_to_runresult in cairo_native_test::utils - Rust

    Function cairo_native_test::utils::result_to_runresult

    source ·
    pub fn result_to_runresult(result: &ExecutionResult) -> Result<RunResultValue>
    Expand description

    Convert the execution result to a run result.

    +result_to_runresult in cairo_native_test::utils - Rust
    cairo_native_test::utils

    Function result_to_runresult

    source
    pub fn result_to_runresult(result: &ExecutionResult) -> Result<RunResultValue>
    Expand description

    Convert the execution result to a run result.

    \ No newline at end of file diff --git a/cairo_native_test/utils/index.html b/cairo_native_test/utils/index.html index 6c4a78965..c9103772d 100644 --- a/cairo_native_test/utils/index.html +++ b/cairo_native_test/utils/index.html @@ -1 +1 @@ -cairo_native_test::utils - Rust

    Module cairo_native_test::utils

    source ·

    Modules§

    Structs§

    Enums§

    Functions§

    \ No newline at end of file +cairo_native_test::utils - Rust
    cairo_native_test

    Module utils

    source

    Modules§

    Structs§

    Enums§

    Functions§

    \ No newline at end of file diff --git a/cairo_native_test/utils/struct.RunArgs.html b/cairo_native_test/utils/struct.RunArgs.html index 35ad219d8..dee3c5083 100644 --- a/cairo_native_test/utils/struct.RunArgs.html +++ b/cairo_native_test/utils/struct.RunArgs.html @@ -1,41 +1,41 @@ -RunArgs in cairo_native_test::utils - Rust

    Struct cairo_native_test::utils::RunArgs

    source ·
    pub(crate) struct RunArgs {
    +RunArgs in cairo_native_test::utils - Rust
    cairo_native_test::utils

    Struct RunArgs

    source
    pub(crate) struct RunArgs {
         pub run_mode: RunMode,
    -    pub opt_level: u8,
    -}

    Fields§

    §run_mode: RunMode§opt_level: u8

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when + pub opt_level: u8, +}

    Fields§

    §run_mode: RunMode§opt_level: u8

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -52,121 +52,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -183,121 +183,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -313,61 +313,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -383,50 +383,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -436,98 +436,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_test/utils/test/enum.TestStatus.html b/cairo_native_test/utils/test/enum.TestStatus.html index dd3b0ded5..bcfb7fc4e 100644 --- a/cairo_native_test/utils/test/enum.TestStatus.html +++ b/cairo_native_test/utils/test/enum.TestStatus.html @@ -1,42 +1,42 @@ -TestStatus in cairo_native_test::utils::test - Rust

    Enum cairo_native_test::utils::test::TestStatus

    source ·
    enum TestStatus {
    +TestStatus in cairo_native_test::utils::test - Rust
    cairo_native_test::utils::test

    Enum TestStatus

    source
    enum TestStatus {
         Success,
         Fail(RunResultValue),
     }
    Expand description

    The status of a ran test.

    -

    Variants§

    §

    Success

    §

    Fail(RunResultValue)

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +

    Variants§

    §

    Success

    §

    Fail(RunResultValue)

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -53,121 +53,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -184,121 +184,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -314,61 +314,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -384,50 +384,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -437,98 +437,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_test/utils/test/fn.display_tests_summary.html b/cairo_native_test/utils/test/fn.display_tests_summary.html index 3d28fb279..0f6502c71 100644 --- a/cairo_native_test/utils/test/fn.display_tests_summary.html +++ b/cairo_native_test/utils/test/fn.display_tests_summary.html @@ -1,2 +1,2 @@ -display_tests_summary in cairo_native_test::utils::test - Rust

    Function cairo_native_test::utils::test::display_tests_summary

    source ·
    pub fn display_tests_summary(summary: &TestsSummary, filtered_out: usize)
    Expand description

    Display the summary of the ran tests.

    +display_tests_summary in cairo_native_test::utils::test - Rust
    cairo_native_test::utils::test

    Function display_tests_summary

    source
    pub fn display_tests_summary(summary: &TestsSummary, filtered_out: usize)
    Expand description

    Display the summary of the ran tests.

    \ No newline at end of file diff --git a/cairo_native_test/utils/test/fn.filter_test_cases.html b/cairo_native_test/utils/test/fn.filter_test_cases.html index f5942aab9..2fec16431 100644 --- a/cairo_native_test/utils/test/fn.filter_test_cases.html +++ b/cairo_native_test/utils/test/fn.filter_test_cases.html @@ -1,9 +1,9 @@ -filter_test_cases in cairo_native_test::utils::test - Rust

    Function cairo_native_test::utils::test::filter_test_cases

    source ·
    pub fn filter_test_cases(
    +filter_test_cases in cairo_native_test::utils::test - Rust
    cairo_native_test::utils::test

    Function filter_test_cases

    source
    pub fn filter_test_cases(
         compiled: TestCompilation,
    -    include_ignored: bool,
    -    ignored: bool,
    -    filter: String,
    -) -> (TestCompilation, usize)
    Expand description

    Filter compiled test cases with user provided arguments.

    + include_ignored: bool, + ignored: bool, + filter: String, +) -> (TestCompilation, usize)
    Expand description

    Filter compiled test cases with user provided arguments.

    §Arguments

    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -55,121 +55,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -186,121 +186,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -316,61 +316,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -386,50 +386,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -439,98 +439,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/cairo_native_test/utils/test/struct.TestsSummary.html b/cairo_native_test/utils/test/struct.TestsSummary.html index 7f361c8a6..acb8e5aba 100644 --- a/cairo_native_test/utils/test/struct.TestsSummary.html +++ b/cairo_native_test/utils/test/struct.TestsSummary.html @@ -1,44 +1,44 @@ -TestsSummary in cairo_native_test::utils::test - Rust

    Struct cairo_native_test::utils::test::TestsSummary

    source ·
    pub struct TestsSummary {
    -    pub passed: Vec<String>,
    -    pub failed: Vec<String>,
    -    pub ignored: Vec<String>,
    -    pub failed_run_results: Vec<RunResultValue>,
    +TestsSummary in cairo_native_test::utils::test - Rust
    cairo_native_test::utils::test

    Struct TestsSummary

    source
    pub struct TestsSummary {
    +    pub passed: Vec<String>,
    +    pub failed: Vec<String>,
    +    pub ignored: Vec<String>,
    +    pub failed_run_results: Vec<RunResultValue>,
     }
    Expand description

    Summary data of the ran tests.

    -

    Fields§

    §passed: Vec<String>§failed: Vec<String>§ignored: Vec<String>§failed_run_results: Vec<RunResultValue>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +

    Fields§

    §passed: Vec<String>§failed: Vec<String>§ignored: Vec<String>§failed_run_results: Vec<RunResultValue>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -55,121 +55,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -186,121 +186,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -316,61 +316,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -386,50 +386,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -439,98 +439,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/help.html b/help.html index 5602291b6..95e0edf08 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/scarb_native_dump/all.html b/scarb_native_dump/all.html index fda4faf46..394631a87 100644 --- a/scarb_native_dump/all.html +++ b/scarb_native_dump/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/scarb_native_dump/fn.main.html b/scarb_native_dump/fn.main.html index ac3c2d209..f8deba119 100644 --- a/scarb_native_dump/fn.main.html +++ b/scarb_native_dump/fn.main.html @@ -1,2 +1,2 @@ -main in scarb_native_dump - Rust

    Function scarb_native_dump::main

    source ·
    pub(crate) fn main() -> Result<()>
    Expand description

    Compiles all packages from a Scarb project on the current directory.

    +main in scarb_native_dump - Rust
    scarb_native_dump

    Function main

    source
    pub(crate) fn main() -> Result<()>
    Expand description

    Compiles all packages from a Scarb project on the current directory.

    \ No newline at end of file diff --git a/scarb_native_dump/index.html b/scarb_native_dump/index.html index 52acf90f5..c29d36c97 100644 --- a/scarb_native_dump/index.html +++ b/scarb_native_dump/index.html @@ -1 +1 @@ -scarb_native_dump - Rust

    Crate scarb_native_dump

    source ·

    Modules§

    Functions§

    • main 🔒
      Compiles all packages from a Scarb project on the current directory.
    \ No newline at end of file +scarb_native_dump - Rust

    Crate scarb_native_dump

    source

    Modules§

    Functions§

    • main 🔒
      Compiles all packages from a Scarb project on the current directory.
    \ No newline at end of file diff --git a/scarb_native_dump/utils/enum.RunMode.html b/scarb_native_dump/utils/enum.RunMode.html index d598aa7d8..0780338a0 100644 --- a/scarb_native_dump/utils/enum.RunMode.html +++ b/scarb_native_dump/utils/enum.RunMode.html @@ -1,43 +1,43 @@ -RunMode in scarb_native_dump::utils - Rust

    Enum scarb_native_dump::utils::RunMode

    source ·
    pub enum RunMode {
    +RunMode in scarb_native_dump::utils - Rust
    scarb_native_dump::utils

    Enum RunMode

    source
    pub enum RunMode {
         Aot,
         Jit,
    -}

    Variants§

    §

    Aot

    §

    Jit

    Trait Implementations§

    source§

    impl Clone for RunMode

    source§

    fn clone(&self) -> RunMode

    Returns a copy of 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 RunMode

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl ValueEnum for RunMode

    source§

    fn value_variants<'a>() -> &'a [Self]

    All possible argument values, in display order.
    source§

    fn to_possible_value<'a>(&self) -> Option<PossibleValue>

    The canonical argument value. Read more
    §

    fn from_str(input: &str, ignore_case: bool) -> Result<Self, String>

    Parse an argument into 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +}

    Variants§

    §

    Aot

    §

    Jit

    Trait Implementations§

    source§

    impl Clone for RunMode

    source§

    fn clone(&self) -> RunMode

    Returns a copy of 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 RunMode

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl ValueEnum for RunMode

    source§

    fn value_variants<'a>() -> &'a [Self]

    All possible argument values, in display order.
    source§

    fn to_possible_value<'a>(&self) -> Option<PossibleValue>

    The canonical argument value. Read more
    §

    fn from_str(input: &str, ignore_case: bool) -> Result<Self, String>

    Parse an argument into 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -54,121 +54,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -185,121 +185,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -315,61 +315,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -385,50 +385,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -438,99 +438,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/scarb_native_dump/utils/fn.find_function.html b/scarb_native_dump/utils/fn.find_function.html index 979d94eb2..a639e765c 100644 --- a/scarb_native_dump/utils/fn.find_function.html +++ b/scarb_native_dump/utils/fn.find_function.html @@ -1,5 +1,5 @@ -find_function in scarb_native_dump::utils - Rust

    Function scarb_native_dump::utils::find_function

    source ·
    pub fn find_function<'a>(
    +find_function in scarb_native_dump::utils - Rust
    scarb_native_dump::utils

    Function find_function

    source
    pub fn find_function<'a>(
         sierra_program: &'a Program,
    -    name_suffix: &str,
    +    name_suffix: &str,
     ) -> Result<&'a Function>
    Expand description

    Find the function ending with name_suffix in the program.

    \ No newline at end of file diff --git a/scarb_native_dump/utils/fn.format_for_panic.html b/scarb_native_dump/utils/fn.format_for_panic.html index ccf94d217..d9e1a5f73 100644 --- a/scarb_native_dump/utils/fn.format_for_panic.html +++ b/scarb_native_dump/utils/fn.format_for_panic.html @@ -1,2 +1,2 @@ -format_for_panic in scarb_native_dump::utils - Rust

    Function scarb_native_dump::utils::format_for_panic

    source ·
    pub fn format_for_panic(felts: IntoIter<Felt>) -> String
    Expand description

    Formats the given felts as a panic string.

    +format_for_panic in scarb_native_dump::utils - Rust
    scarb_native_dump::utils

    Function format_for_panic

    source
    pub fn format_for_panic(felts: IntoIter<Felt>) -> String
    Expand description

    Formats the given felts as a panic string.

    \ No newline at end of file diff --git a/scarb_native_dump/utils/fn.jitvalue_to_felt.html b/scarb_native_dump/utils/fn.jitvalue_to_felt.html index 904b107d0..56bde42e5 100644 --- a/scarb_native_dump/utils/fn.jitvalue_to_felt.html +++ b/scarb_native_dump/utils/fn.jitvalue_to_felt.html @@ -1,2 +1,2 @@ -jitvalue_to_felt in scarb_native_dump::utils - Rust

    Function scarb_native_dump::utils::jitvalue_to_felt

    source ·
    fn jitvalue_to_felt(value: &Value) -> Vec<Felt>
    Expand description

    Convert a JIT value to a felt.

    +jitvalue_to_felt in scarb_native_dump::utils - Rust
    scarb_native_dump::utils

    Function jitvalue_to_felt

    source
    fn jitvalue_to_felt(value: &Value) -> Vec<Felt>
    Expand description

    Convert a JIT value to a felt.

    \ No newline at end of file diff --git a/scarb_native_dump/utils/fn.result_to_runresult.html b/scarb_native_dump/utils/fn.result_to_runresult.html index 7ddcecdeb..c7bfcb127 100644 --- a/scarb_native_dump/utils/fn.result_to_runresult.html +++ b/scarb_native_dump/utils/fn.result_to_runresult.html @@ -1,2 +1,2 @@ -result_to_runresult in scarb_native_dump::utils - Rust

    Function scarb_native_dump::utils::result_to_runresult

    source ·
    pub fn result_to_runresult(result: &ExecutionResult) -> Result<RunResultValue>
    Expand description

    Convert the execution result to a run result.

    +result_to_runresult in scarb_native_dump::utils - Rust
    scarb_native_dump::utils

    Function result_to_runresult

    source
    pub fn result_to_runresult(result: &ExecutionResult) -> Result<RunResultValue>
    Expand description

    Convert the execution result to a run result.

    \ No newline at end of file diff --git a/scarb_native_dump/utils/index.html b/scarb_native_dump/utils/index.html index 1984e3a89..54cd935af 100644 --- a/scarb_native_dump/utils/index.html +++ b/scarb_native_dump/utils/index.html @@ -1 +1 @@ -scarb_native_dump::utils - Rust

    Module scarb_native_dump::utils

    source ·

    Modules§

    Structs§

    Enums§

    Functions§

    \ No newline at end of file +scarb_native_dump::utils - Rust
    scarb_native_dump

    Module utils

    source

    Modules§

    Structs§

    Enums§

    Functions§

    \ No newline at end of file diff --git a/scarb_native_dump/utils/struct.RunArgs.html b/scarb_native_dump/utils/struct.RunArgs.html index 592506887..87bcb9215 100644 --- a/scarb_native_dump/utils/struct.RunArgs.html +++ b/scarb_native_dump/utils/struct.RunArgs.html @@ -1,41 +1,41 @@ -RunArgs in scarb_native_dump::utils - Rust

    Struct scarb_native_dump::utils::RunArgs

    source ·
    pub(crate) struct RunArgs {
    +RunArgs in scarb_native_dump::utils - Rust
    scarb_native_dump::utils

    Struct RunArgs

    source
    pub(crate) struct RunArgs {
         pub run_mode: RunMode,
    -    pub opt_level: u8,
    -}

    Fields§

    §run_mode: RunMode§opt_level: u8

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when + pub opt_level: u8, +}

    Fields§

    §run_mode: RunMode§opt_level: u8

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -52,121 +52,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -183,121 +183,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -313,61 +313,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -383,50 +383,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -436,98 +436,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/scarb_native_dump/utils/test/enum.TestStatus.html b/scarb_native_dump/utils/test/enum.TestStatus.html index b49b59df8..789495358 100644 --- a/scarb_native_dump/utils/test/enum.TestStatus.html +++ b/scarb_native_dump/utils/test/enum.TestStatus.html @@ -1,42 +1,42 @@ -TestStatus in scarb_native_dump::utils::test - Rust

    Enum scarb_native_dump::utils::test::TestStatus

    source ·
    enum TestStatus {
    +TestStatus in scarb_native_dump::utils::test - Rust
    scarb_native_dump::utils::test

    Enum TestStatus

    source
    enum TestStatus {
         Success,
         Fail(RunResultValue),
     }
    Expand description

    The status of a ran test.

    -

    Variants§

    §

    Success

    §

    Fail(RunResultValue)

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +

    Variants§

    §

    Success

    §

    Fail(RunResultValue)

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -53,121 +53,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -184,121 +184,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -314,61 +314,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -384,50 +384,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -437,98 +437,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/scarb_native_dump/utils/test/fn.display_tests_summary.html b/scarb_native_dump/utils/test/fn.display_tests_summary.html index 42c83ad35..4c91a1142 100644 --- a/scarb_native_dump/utils/test/fn.display_tests_summary.html +++ b/scarb_native_dump/utils/test/fn.display_tests_summary.html @@ -1,2 +1,2 @@ -display_tests_summary in scarb_native_dump::utils::test - Rust

    Function scarb_native_dump::utils::test::display_tests_summary

    source ·
    pub fn display_tests_summary(summary: &TestsSummary, filtered_out: usize)
    Expand description

    Display the summary of the ran tests.

    +display_tests_summary in scarb_native_dump::utils::test - Rust
    scarb_native_dump::utils::test

    Function display_tests_summary

    source
    pub fn display_tests_summary(summary: &TestsSummary, filtered_out: usize)
    Expand description

    Display the summary of the ran tests.

    \ No newline at end of file diff --git a/scarb_native_dump/utils/test/fn.filter_test_cases.html b/scarb_native_dump/utils/test/fn.filter_test_cases.html index 914cf75ba..a6258060f 100644 --- a/scarb_native_dump/utils/test/fn.filter_test_cases.html +++ b/scarb_native_dump/utils/test/fn.filter_test_cases.html @@ -1,9 +1,9 @@ -filter_test_cases in scarb_native_dump::utils::test - Rust

    Function scarb_native_dump::utils::test::filter_test_cases

    source ·
    pub fn filter_test_cases(
    +filter_test_cases in scarb_native_dump::utils::test - Rust
    scarb_native_dump::utils::test

    Function filter_test_cases

    source
    pub fn filter_test_cases(
         compiled: TestCompilation,
    -    include_ignored: bool,
    -    ignored: bool,
    -    filter: String,
    -) -> (TestCompilation, usize)
    Expand description

    Filter compiled test cases with user provided arguments.

    + include_ignored: bool, + ignored: bool, + filter: String, +) -> (TestCompilation, usize)
    Expand description

    Filter compiled test cases with user provided arguments.

    §Arguments

    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -55,121 +55,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -186,121 +186,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -316,61 +316,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -386,50 +386,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -439,98 +439,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/scarb_native_dump/utils/test/struct.TestsSummary.html b/scarb_native_dump/utils/test/struct.TestsSummary.html index fadfe4a8d..89d0f830c 100644 --- a/scarb_native_dump/utils/test/struct.TestsSummary.html +++ b/scarb_native_dump/utils/test/struct.TestsSummary.html @@ -1,44 +1,44 @@ -TestsSummary in scarb_native_dump::utils::test - Rust

    Struct scarb_native_dump::utils::test::TestsSummary

    source ·
    pub struct TestsSummary {
    -    pub passed: Vec<String>,
    -    pub failed: Vec<String>,
    -    pub ignored: Vec<String>,
    -    pub failed_run_results: Vec<RunResultValue>,
    +TestsSummary in scarb_native_dump::utils::test - Rust
    scarb_native_dump::utils::test

    Struct TestsSummary

    source
    pub struct TestsSummary {
    +    pub passed: Vec<String>,
    +    pub failed: Vec<String>,
    +    pub ignored: Vec<String>,
    +    pub failed_run_results: Vec<RunResultValue>,
     }
    Expand description

    Summary data of the ran tests.

    -

    Fields§

    §passed: Vec<String>§failed: Vec<String>§ignored: Vec<String>§failed_run_results: Vec<RunResultValue>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +

    Fields§

    §passed: Vec<String>§failed: Vec<String>§ignored: Vec<String>§failed_run_results: Vec<RunResultValue>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -55,121 +55,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -186,121 +186,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -316,61 +316,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -386,50 +386,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -439,98 +439,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/scarb_native_test/all.html b/scarb_native_test/all.html index e887af152..f6eca040c 100644 --- a/scarb_native_test/all.html +++ b/scarb_native_test/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/scarb_native_test/enum.TestKind.html b/scarb_native_test/enum.TestKind.html index 154e90ecb..27947398a 100644 --- a/scarb_native_test/enum.TestKind.html +++ b/scarb_native_test/enum.TestKind.html @@ -1,44 +1,44 @@ -TestKind in scarb_native_test - Rust

    Enum scarb_native_test::TestKind

    source ·
    pub enum TestKind {
    +TestKind in scarb_native_test - Rust
    scarb_native_test

    Enum TestKind

    source
    pub enum TestKind {
         Unit,
         Integration,
         All,
    -}

    Variants§

    §

    Unit

    §

    Integration

    §

    All

    Implementations§

    source§

    impl TestKind

    source

    pub fn matches(&self, kind: &str) -> bool

    Trait Implementations§

    source§

    impl Clone for TestKind

    source§

    fn clone(&self) -> TestKind

    Returns a copy of 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 TestKind

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for TestKind

    source§

    fn default() -> TestKind

    Returns the “default value” for a type. Read more
    source§

    impl ValueEnum for TestKind

    source§

    fn value_variants<'a>() -> &'a [Self]

    All possible argument values, in display order.
    source§

    fn to_possible_value<'a>(&self) -> Option<PossibleValue>

    The canonical argument value. Read more
    §

    fn from_str(input: &str, ignore_case: bool) -> Result<Self, String>

    Parse an argument into 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +}

    Variants§

    §

    Unit

    §

    Integration

    §

    All

    Implementations§

    source§

    impl TestKind

    source

    pub fn matches(&self, kind: &str) -> bool

    Trait Implementations§

    source§

    impl Clone for TestKind

    source§

    fn clone(&self) -> TestKind

    Returns a copy of 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 TestKind

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for TestKind

    source§

    fn default() -> TestKind

    Returns the “default value” for a type. Read more
    source§

    impl ValueEnum for TestKind

    source§

    fn value_variants<'a>() -> &'a [Self]

    All possible argument values, in display order.
    source§

    fn to_possible_value<'a>(&self) -> Option<PossibleValue>

    The canonical argument value. Read more
    §

    fn from_str(input: &str, ignore_case: bool) -> Result<Self, String>

    Parse an argument into 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -55,121 +55,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -186,121 +186,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -316,61 +316,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -386,50 +386,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -439,99 +439,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/scarb_native_test/fn.deserialize_test_compilation.html b/scarb_native_test/fn.deserialize_test_compilation.html index 40edc9c6c..2a88e6dc0 100644 --- a/scarb_native_test/fn.deserialize_test_compilation.html +++ b/scarb_native_test/fn.deserialize_test_compilation.html @@ -1,4 +1,4 @@ -deserialize_test_compilation in scarb_native_test - Rust

    Function scarb_native_test::deserialize_test_compilation

    source ·
    pub(crate) fn deserialize_test_compilation(
    -    target_dir: &Path,
    -    name: String,
    +deserialize_test_compilation in scarb_native_test - Rust
    scarb_native_test

    Function deserialize_test_compilation

    source
    pub(crate) fn deserialize_test_compilation(
    +    target_dir: &Path,
    +    name: String,
     ) -> Result<TestCompilation>
    \ No newline at end of file diff --git a/scarb_native_test/fn.main.html b/scarb_native_test/fn.main.html index e7815aaa5..0beb3cdf1 100644 --- a/scarb_native_test/fn.main.html +++ b/scarb_native_test/fn.main.html @@ -1 +1 @@ -main in scarb_native_test - Rust

    Function scarb_native_test::main

    source ·
    pub(crate) fn main() -> Result<()>
    \ No newline at end of file +main in scarb_native_test - Rust
    scarb_native_test

    Function main

    source
    pub(crate) fn main() -> Result<()>
    \ No newline at end of file diff --git a/scarb_native_test/index.html b/scarb_native_test/index.html index c951d859f..fcec89579 100644 --- a/scarb_native_test/index.html +++ b/scarb_native_test/index.html @@ -1,3 +1,3 @@ -scarb_native_test - Rust

    Crate scarb_native_test

    source ·

    Modules§

    Structs§

    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -86,121 +86,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -217,121 +217,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -347,61 +347,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -417,50 +417,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -470,99 +470,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/scarb_native_test/struct.TargetGroupDeduplicator.html b/scarb_native_test/struct.TargetGroupDeduplicator.html index d24e97c45..553be96f5 100644 --- a/scarb_native_test/struct.TargetGroupDeduplicator.html +++ b/scarb_native_test/struct.TargetGroupDeduplicator.html @@ -1,41 +1,41 @@ -TargetGroupDeduplicator in scarb_native_test - Rust

    Struct scarb_native_test::TargetGroupDeduplicator

    source ·
    pub(crate) struct TargetGroupDeduplicator {
    -    pub(crate) seen: HashSet<(String, String)>,
    -}

    Fields§

    §seen: HashSet<(String, String)>

    Implementations§

    source§

    impl TargetGroupDeduplicator

    source

    pub fn visit(&mut self, package_name: String, group_name: String) -> bool

    Returns true if already visited.

    -

    Trait Implementations§

    source§

    impl Default for TargetGroupDeduplicator

    source§

    fn default() -> TargetGroupDeduplicator

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +TargetGroupDeduplicator in scarb_native_test - Rust
    scarb_native_test

    Struct TargetGroupDeduplicator

    source
    pub(crate) struct TargetGroupDeduplicator {
    +    pub(crate) seen: HashSet<(String, String)>,
    +}

    Fields§

    §seen: HashSet<(String, String)>

    Implementations§

    source§

    impl TargetGroupDeduplicator

    source

    pub fn visit(&mut self, package_name: String, group_name: String) -> bool

    Returns true if already visited.

    +

    Trait Implementations§

    source§

    impl Default for TargetGroupDeduplicator

    source§

    fn default() -> TargetGroupDeduplicator

    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
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -52,121 +52,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -183,121 +183,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -313,61 +313,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -383,50 +383,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -436,98 +436,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/scarb_native_test/utils/enum.RunMode.html b/scarb_native_test/utils/enum.RunMode.html index c71d02f2a..fa0546cb6 100644 --- a/scarb_native_test/utils/enum.RunMode.html +++ b/scarb_native_test/utils/enum.RunMode.html @@ -1,43 +1,43 @@ -RunMode in scarb_native_test::utils - Rust

    Enum scarb_native_test::utils::RunMode

    source ·
    pub enum RunMode {
    +RunMode in scarb_native_test::utils - Rust
    scarb_native_test::utils

    Enum RunMode

    source
    pub enum RunMode {
         Aot,
         Jit,
    -}

    Variants§

    §

    Aot

    §

    Jit

    Trait Implementations§

    source§

    impl Clone for RunMode

    source§

    fn clone(&self) -> RunMode

    Returns a copy of 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 RunMode

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl ValueEnum for RunMode

    source§

    fn value_variants<'a>() -> &'a [Self]

    All possible argument values, in display order.
    source§

    fn to_possible_value<'a>(&self) -> Option<PossibleValue>

    The canonical argument value. Read more
    §

    fn from_str(input: &str, ignore_case: bool) -> Result<Self, String>

    Parse an argument into 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where - T: Clone,

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +}

    Variants§

    §

    Aot

    §

    Jit

    Trait Implementations§

    source§

    impl Clone for RunMode

    source§

    fn clone(&self) -> RunMode

    Returns a copy of 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 RunMode

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl ValueEnum for RunMode

    source§

    fn value_variants<'a>() -> &'a [Self]

    All possible argument values, in display order.
    source§

    fn to_possible_value<'a>(&self) -> Option<PossibleValue>

    The canonical argument value. Read more
    §

    fn from_str(input: &str, ignore_case: bool) -> Result<Self, String>

    Parse an argument into 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    source§

    impl<T> DynClone for T
    where + T: Clone,

    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -54,121 +54,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -185,121 +185,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -315,61 +315,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -385,50 +385,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -438,99 +438,99 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually 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> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/scarb_native_test/utils/fn.find_function.html b/scarb_native_test/utils/fn.find_function.html index ac62c2401..ad5b03054 100644 --- a/scarb_native_test/utils/fn.find_function.html +++ b/scarb_native_test/utils/fn.find_function.html @@ -1,5 +1,5 @@ -find_function in scarb_native_test::utils - Rust

    Function scarb_native_test::utils::find_function

    source ·
    pub fn find_function<'a>(
    +find_function in scarb_native_test::utils - Rust
    scarb_native_test::utils

    Function find_function

    source
    pub fn find_function<'a>(
         sierra_program: &'a Program,
    -    name_suffix: &str,
    +    name_suffix: &str,
     ) -> Result<&'a Function>
    Expand description

    Find the function ending with name_suffix in the program.

    \ No newline at end of file diff --git a/scarb_native_test/utils/fn.format_for_panic.html b/scarb_native_test/utils/fn.format_for_panic.html index 38598499c..422d10bf8 100644 --- a/scarb_native_test/utils/fn.format_for_panic.html +++ b/scarb_native_test/utils/fn.format_for_panic.html @@ -1,2 +1,2 @@ -format_for_panic in scarb_native_test::utils - Rust

    Function scarb_native_test::utils::format_for_panic

    source ·
    pub fn format_for_panic(felts: IntoIter<Felt>) -> String
    Expand description

    Formats the given felts as a panic string.

    +format_for_panic in scarb_native_test::utils - Rust
    scarb_native_test::utils

    Function format_for_panic

    source
    pub fn format_for_panic(felts: IntoIter<Felt>) -> String
    Expand description

    Formats the given felts as a panic string.

    \ No newline at end of file diff --git a/scarb_native_test/utils/fn.jitvalue_to_felt.html b/scarb_native_test/utils/fn.jitvalue_to_felt.html index 6121e23c9..75651d7cd 100644 --- a/scarb_native_test/utils/fn.jitvalue_to_felt.html +++ b/scarb_native_test/utils/fn.jitvalue_to_felt.html @@ -1,2 +1,2 @@ -jitvalue_to_felt in scarb_native_test::utils - Rust

    Function scarb_native_test::utils::jitvalue_to_felt

    source ·
    fn jitvalue_to_felt(value: &Value) -> Vec<Felt>
    Expand description

    Convert a JIT value to a felt.

    +jitvalue_to_felt in scarb_native_test::utils - Rust
    scarb_native_test::utils

    Function jitvalue_to_felt

    source
    fn jitvalue_to_felt(value: &Value) -> Vec<Felt>
    Expand description

    Convert a JIT value to a felt.

    \ No newline at end of file diff --git a/scarb_native_test/utils/fn.result_to_runresult.html b/scarb_native_test/utils/fn.result_to_runresult.html index fcf0b90c3..e9429d093 100644 --- a/scarb_native_test/utils/fn.result_to_runresult.html +++ b/scarb_native_test/utils/fn.result_to_runresult.html @@ -1,2 +1,2 @@ -result_to_runresult in scarb_native_test::utils - Rust

    Function scarb_native_test::utils::result_to_runresult

    source ·
    pub fn result_to_runresult(result: &ExecutionResult) -> Result<RunResultValue>
    Expand description

    Convert the execution result to a run result.

    +result_to_runresult in scarb_native_test::utils - Rust
    scarb_native_test::utils

    Function result_to_runresult

    source
    pub fn result_to_runresult(result: &ExecutionResult) -> Result<RunResultValue>
    Expand description

    Convert the execution result to a run result.

    \ No newline at end of file diff --git a/scarb_native_test/utils/index.html b/scarb_native_test/utils/index.html index db7123874..e58f5f560 100644 --- a/scarb_native_test/utils/index.html +++ b/scarb_native_test/utils/index.html @@ -1 +1 @@ -scarb_native_test::utils - Rust

    Module scarb_native_test::utils

    source ·

    Modules§

    Structs§

    Enums§

    Functions§

    \ No newline at end of file +scarb_native_test::utils - Rust
    scarb_native_test

    Module utils

    source

    Modules§

    Structs§

    Enums§

    Functions§

    \ No newline at end of file diff --git a/scarb_native_test/utils/struct.RunArgs.html b/scarb_native_test/utils/struct.RunArgs.html index b0fd32e37..e01d75e5c 100644 --- a/scarb_native_test/utils/struct.RunArgs.html +++ b/scarb_native_test/utils/struct.RunArgs.html @@ -1,41 +1,41 @@ -RunArgs in scarb_native_test::utils - Rust

    Struct scarb_native_test::utils::RunArgs

    source ·
    pub(crate) struct RunArgs {
    +RunArgs in scarb_native_test::utils - Rust
    scarb_native_test::utils

    Struct RunArgs

    source
    pub(crate) struct RunArgs {
         pub run_mode: RunMode,
    -    pub opt_level: u8,
    -}

    Fields§

    §run_mode: RunMode§opt_level: u8

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when + pub opt_level: u8, +}

    Fields§

    §run_mode: RunMode§opt_level: u8

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -52,121 +52,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -183,121 +183,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -313,61 +313,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -383,50 +383,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -436,98 +436,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/scarb_native_test/utils/test/enum.TestStatus.html b/scarb_native_test/utils/test/enum.TestStatus.html index c0d768760..e24cd89f4 100644 --- a/scarb_native_test/utils/test/enum.TestStatus.html +++ b/scarb_native_test/utils/test/enum.TestStatus.html @@ -1,42 +1,42 @@ -TestStatus in scarb_native_test::utils::test - Rust

    Enum scarb_native_test::utils::test::TestStatus

    source ·
    enum TestStatus {
    +TestStatus in scarb_native_test::utils::test - Rust
    scarb_native_test::utils::test

    Enum TestStatus

    source
    enum TestStatus {
         Success,
         Fail(RunResultValue),
     }
    Expand description

    The status of a ran test.

    -

    Variants§

    §

    Success

    §

    Fail(RunResultValue)

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +

    Variants§

    §

    Success

    §

    Fail(RunResultValue)

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -53,121 +53,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -184,121 +184,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -314,61 +314,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -384,50 +384,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -437,98 +437,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/scarb_native_test/utils/test/fn.display_tests_summary.html b/scarb_native_test/utils/test/fn.display_tests_summary.html index 0a637b74d..01b3fecb3 100644 --- a/scarb_native_test/utils/test/fn.display_tests_summary.html +++ b/scarb_native_test/utils/test/fn.display_tests_summary.html @@ -1,2 +1,2 @@ -display_tests_summary in scarb_native_test::utils::test - Rust

    Function scarb_native_test::utils::test::display_tests_summary

    source ·
    pub fn display_tests_summary(summary: &TestsSummary, filtered_out: usize)
    Expand description

    Display the summary of the ran tests.

    +display_tests_summary in scarb_native_test::utils::test - Rust
    scarb_native_test::utils::test

    Function display_tests_summary

    source
    pub fn display_tests_summary(summary: &TestsSummary, filtered_out: usize)
    Expand description

    Display the summary of the ran tests.

    \ No newline at end of file diff --git a/scarb_native_test/utils/test/fn.filter_test_cases.html b/scarb_native_test/utils/test/fn.filter_test_cases.html index f02982c71..a1b7b198a 100644 --- a/scarb_native_test/utils/test/fn.filter_test_cases.html +++ b/scarb_native_test/utils/test/fn.filter_test_cases.html @@ -1,9 +1,9 @@ -filter_test_cases in scarb_native_test::utils::test - Rust

    Function scarb_native_test::utils::test::filter_test_cases

    source ·
    pub fn filter_test_cases(
    +filter_test_cases in scarb_native_test::utils::test - Rust
    scarb_native_test::utils::test

    Function filter_test_cases

    source
    pub fn filter_test_cases(
         compiled: TestCompilation,
    -    include_ignored: bool,
    -    ignored: bool,
    -    filter: String,
    -) -> (TestCompilation, usize)
    Expand description

    Filter compiled test cases with user provided arguments.

    + include_ignored: bool, + ignored: bool, + filter: String, +) -> (TestCompilation, usize)
    Expand description

    Filter compiled test cases with user provided arguments.

    §Arguments

    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -55,121 +55,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -186,121 +186,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -316,61 +316,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -386,50 +386,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -439,98 +439,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/scarb_native_test/utils/test/struct.TestsSummary.html b/scarb_native_test/utils/test/struct.TestsSummary.html index 79b559b63..3cd8e7c45 100644 --- a/scarb_native_test/utils/test/struct.TestsSummary.html +++ b/scarb_native_test/utils/test/struct.TestsSummary.html @@ -1,44 +1,44 @@ -TestsSummary in scarb_native_test::utils::test - Rust

    Struct scarb_native_test::utils::test::TestsSummary

    source ·
    pub struct TestsSummary {
    -    pub passed: Vec<String>,
    -    pub failed: Vec<String>,
    -    pub ignored: Vec<String>,
    -    pub failed_run_results: Vec<RunResultValue>,
    +TestsSummary in scarb_native_test::utils::test - Rust
    scarb_native_test::utils::test

    Struct TestsSummary

    source
    pub struct TestsSummary {
    +    pub passed: Vec<String>,
    +    pub failed: Vec<String>,
    +    pub ignored: Vec<String>,
    +    pub failed_run_results: Vec<RunResultValue>,
     }
    Expand description

    Summary data of the ran tests.

    -

    Fields§

    §passed: Vec<String>§failed: Vec<String>§ignored: Vec<String>§failed_run_results: Vec<RunResultValue>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where - Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where - Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where - Self: Display,

    Causes self to use its Display implementation when +

    Fields§

    §passed: Vec<String>§failed: Vec<String>§ignored: Vec<String>§failed_run_results: Vec<RunResultValue>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<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<T> Conv for T

    §

    fn conv<T>(self) -> T
    where + Self: Into<T>,

    Converts self into T using Into<T>. Read more
    §

    impl<T> FmtForward for T

    §

    fn fmt_binary(self) -> FmtBinary<Self>
    where + Self: Binary,

    Causes self to use its Binary implementation when Debug-formatted.
    §

    fn fmt_display(self) -> FmtDisplay<Self>
    where + Self: Display,

    Causes self to use its Display implementation when Debug-formatted.
    §

    fn fmt_lower_exp(self) -> FmtLowerExp<Self>
    where - Self: LowerExp,

    Causes self to use its LowerExp implementation when + Self: LowerExp,
    Causes self to use its LowerExp implementation when Debug-formatted.
    §

    fn fmt_lower_hex(self) -> FmtLowerHex<Self>
    where - Self: LowerHex,

    Causes self to use its LowerHex implementation when + Self: LowerHex,
    Causes self to use its LowerHex implementation when Debug-formatted.
    §

    fn fmt_octal(self) -> FmtOctal<Self>
    where - Self: Octal,

    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where - Self: Pointer,

    Causes self to use its Pointer implementation when + Self: Octal,
    Causes self to use its Octal implementation when Debug-formatted.
    §

    fn fmt_pointer(self) -> FmtPointer<Self>
    where + Self: Pointer,

    Causes self to use its Pointer implementation when Debug-formatted.
    §

    fn fmt_upper_exp(self) -> FmtUpperExp<Self>
    where - Self: UpperExp,

    Causes self to use its UpperExp implementation when + Self: UpperExp,
    Causes self to use its UpperExp implementation when Debug-formatted.
    §

    fn fmt_upper_hex(self) -> FmtUpperHex<Self>
    where - Self: UpperHex,

    Causes self to use its UpperHex implementation when + Self: UpperHex,
    Causes self to use its UpperHex implementation when Debug-formatted.
    §

    fn fmt_list(self) -> FmtList<Self>
    where - &'a Self: for<'a> IntoIterator,

    Formats each item in a sequence. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + &'a Self: for<'a> IntoIterator,
    Formats each item in a sequence. 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> Paint for T
    where - T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to + T: ?Sized,

    §

    fn fg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the foreground set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and @@ -55,121 +55,121 @@

    §Example
    use yansi::Paint;
     
     painted.white();
    -
    §

    fn primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn primary(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Primary].

    §Example
    println!("{}", value.primary());
    -
    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn fixed(&self, color: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Fixed].

    §Example
    println!("{}", value.fixed(color));
    -
    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the fg() set to [Color::Rgb].

    §Example
    println!("{}", value.rgb(r, g, b));
    -
    §

    fn black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Black].

    §Example
    println!("{}", value.black());
    -
    §

    fn red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Red].

    §Example
    println!("{}", value.red());
    -
    §

    fn green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Green].

    §Example
    println!("{}", value.green());
    -
    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Yellow].

    §Example
    println!("{}", value.yellow());
    -
    §

    fn blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Blue].

    §Example
    println!("{}", value.blue());
    -
    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Magenta].

    §Example
    println!("{}", value.magenta());
    -
    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::Cyan].

    §Example
    println!("{}", value.cyan());
    -
    §

    fn white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::White].

    §Example
    println!("{}", value.white());
    -
    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_black(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.bright_black());
    -
    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_red(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightRed].

    §Example
    println!("{}", value.bright_red());
    -
    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_green(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.bright_green());
    -
    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_yellow(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.bright_yellow());
    -
    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_blue(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.bright_blue());
    -
    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_magenta(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.bright_magenta());
    -
    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_cyan(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.bright_cyan());
    -
    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright_white(&self) -> Painted<&T>

    Returns self with the fg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.bright_white());
    -
    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to +

    §

    fn bg(&self, value: Color) -> Painted<&T>

    Returns a styled value derived from self with the background set to value.

    This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and @@ -186,121 +186,121 @@

    §Example
    use yansi::Paint;
     
     painted.on_red();
    -
    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_primary(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Primary].

    §Example
    println!("{}", value.on_primary());
    -
    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_fixed(&self, color: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Fixed].

    §Example
    println!("{}", value.on_fixed(color));
    -
    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the +

    §

    fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

    Returns self with the bg() set to [Color::Rgb].

    §Example
    println!("{}", value.on_rgb(r, g, b));
    -
    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Black].

    §Example
    println!("{}", value.on_black());
    -
    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Red].

    §Example
    println!("{}", value.on_red());
    -
    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Green].

    §Example
    println!("{}", value.on_green());
    -
    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Yellow].

    §Example
    println!("{}", value.on_yellow());
    -
    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Blue].

    §Example
    println!("{}", value.on_blue());
    -
    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Magenta].

    §Example
    println!("{}", value.on_magenta());
    -
    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::Cyan].

    §Example
    println!("{}", value.on_cyan());
    -
    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::White].

    §Example
    println!("{}", value.on_white());
    -
    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_black(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlack].

    §Example
    println!("{}", value.on_bright_black());
    -
    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_red(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightRed].

    §Example
    println!("{}", value.on_bright_red());
    -
    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_green(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightGreen].

    §Example
    println!("{}", value.on_bright_green());
    -
    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_yellow(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightYellow].

    §Example
    println!("{}", value.on_bright_yellow());
    -
    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_blue(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightBlue].

    §Example
    println!("{}", value.on_bright_blue());
    -
    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_magenta(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightMagenta].

    §Example
    println!("{}", value.on_bright_magenta());
    -
    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_cyan(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightCyan].

    §Example
    println!("{}", value.on_bright_cyan());
    -
    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright_white(&self) -> Painted<&T>

    Returns self with the bg() set to [Color::BrightWhite].

    §Example
    println!("{}", value.on_bright_white());
    -
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    +
    §

    fn attr(&self, value: Attribute) -> Painted<&T>

    Enables the styling [Attribute] value.

    This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality @@ -316,61 +316,61 @@

    §Example
    use yansi::Paint;
     
     painted.bold();
    -
    §

    fn bold(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bold(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Bold].

    §Example
    println!("{}", value.bold());
    -
    §

    fn dim(&self) -> Painted<&T>

    Returns self with the +

    §

    fn dim(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Dim].

    §Example
    println!("{}", value.dim());
    -
    §

    fn italic(&self) -> Painted<&T>

    Returns self with the +

    §

    fn italic(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Italic].

    §Example
    println!("{}", value.italic());
    -
    §

    fn underline(&self) -> Painted<&T>

    Returns self with the +

    §

    fn underline(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Underline].

    §Example
    println!("{}", value.underline());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::Blink].

    §Example
    println!("{}", value.blink());
    -

    Returns self with the +

    Returns self with the attr() set to [Attribute::RapidBlink].

    §Example
    println!("{}", value.rapid_blink());
    -
    §

    fn invert(&self) -> Painted<&T>

    Returns self with the +

    §

    fn invert(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Invert].

    §Example
    println!("{}", value.invert());
    -
    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the +

    §

    fn conceal(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Conceal].

    §Example
    println!("{}", value.conceal());
    -
    §

    fn strike(&self) -> Painted<&T>

    Returns self with the +

    §

    fn strike(&self) -> Painted<&T>

    Returns self with the attr() set to [Attribute::Strike].

    §Example
    println!("{}", value.strike());
    -
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    +
    §

    fn quirk(&self, value: Quirk) -> Painted<&T>

    Enables the yansi [Quirk] value.

    This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are @@ -386,50 +386,50 @@

    §Example
    use yansi::Paint;
     
     painted.wrap();
    -
    §

    fn mask(&self) -> Painted<&T>

    Returns self with the +

    §

    fn mask(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Mask].

    §Example
    println!("{}", value.mask());
    -
    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the +

    §

    fn wrap(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Wrap].

    §Example
    println!("{}", value.wrap());
    -
    §

    fn linger(&self) -> Painted<&T>

    Returns self with the +

    §

    fn linger(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Linger].

    §Example
    println!("{}", value.linger());
    -
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). +
    §

    fn clear(&self) -> Painted<&T>

    👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

    Returns self with the quirk() set to [Quirk::Clear].

    §Example
    println!("{}", value.clear());
    -
    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the +

    §

    fn resetting(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Resetting].

    §Example
    println!("{}", value.resetting());
    -
    §

    fn bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::Bright].

    §Example
    println!("{}", value.bright());
    -
    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the +

    §

    fn on_bright(&self) -> Painted<&T>

    Returns self with the quirk() set to [Quirk::OnBright].

    §Example
    println!("{}", value.on_bright());
    -
    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value +

    §

    fn whenever(&self, value: Condition) -> Painted<&T>

    Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

    See the crate level docs for more details.

    §Example
    @@ -439,98 +439,98 @@
    §Example
    painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
    §

    fn new(self) -> Painted<Self>
    where - Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where - S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where - T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where - Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where - R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where - R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where - Self: Borrow<B>, - B: 'a + ?Sized, + Self: Sized,

    Create a new [Painted] with a default [Style]. Read more
    §

    fn paint<S>(&self, style: S) -> Painted<&Self>
    where + S: Into<Style>,

    Apply a style wholesale to self. Any previous style is replaced. Read more
    §

    impl<T> Pipe for T
    where + T: ?Sized,

    §

    fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
    where + Self: Sized,

    Pipes by value. This is generally the method you want to use. Read more
    §

    fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
    where + R: 'a,

    Borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
    where + R: 'a,

    Mutably borrows self and passes that borrow into the pipe function. Read more
    §

    fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
    where + Self: Borrow<B>, + B: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.borrow() into the pipe function. Read more
    §

    fn pipe_borrow_mut<'a, B, R>( &'a mut self, - func: impl FnOnce(&'a mut B) -> R, + func: impl FnOnce(&'a mut B) -> R, ) -> R
    where - Self: BorrowMut<B>, - B: 'a + ?Sized, + Self: BorrowMut<B>, + B: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where - Self: AsMut<U>, - U: 'a + ?Sized, +function. Read more

    §

    fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
    where + Self: AsRef<U>, + U: 'a + ?Sized, + R: 'a,

    Borrows self, then passes self.as_ref() into the pipe function.
    §

    fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
    where + Self: AsMut<U>, + U: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.as_mut() into the pipe -function.
    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where - Self: Deref<Target = T>, - T: 'a + ?Sized, +function.

    §

    fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
    where + Self: Deref<Target = T>, + T: 'a + ?Sized, R: 'a,

    Borrows self, then passes self.deref() into the pipe function.
    §

    fn pipe_deref_mut<'a, T, R>( &'a mut self, - func: impl FnOnce(&'a mut T) -> R, + func: impl FnOnce(&'a mut T) -> R, ) -> R
    where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, + Self: DerefMut<Target = T> + Deref, + T: 'a + ?Sized, R: 'a,

    Mutably borrows self, then passes self.deref_mut() into the pipe -function.
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where - TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where +function.

    §

    impl<T> Pointable for T

    §

    const ALIGN: usize = _

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops 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<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
    where + TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

    §

    fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
    where + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Option<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where - T: Clone, - V: Clone, + value: &mut Option<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
    where + T: Clone, + V: Clone, TRewriter: SemanticRewriter<V, E>,

    §

    fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut Result<T, E2>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where - T: Clone, - TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where + value: &mut Result<T, E2>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
    where + T: Clone, + TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
    where TRewriter: SemanticRewriter<T, E>,

    §

    fn internal_rewrite( &mut self, - value: &mut VecDeque<T>, -) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where - Self: Borrow<B>, - B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release -builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where - Self: BorrowMut<B>, - B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where - Self: AsRef<R>, - R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release -builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where - Self: AsMut<R>, - R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where - Self: Deref<Target = T>, - T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release -builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where - Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where - T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where - T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    impl<V, T> VZip<V> for T
    where + value: &mut VecDeque<T>, +) -> Result<RewriteResult, E>

    §

    fn rewrite(&mut self, value: T) -> Result<T, Error>

    §

    impl<T> Tap for T

    §

    fn tap(self, func: impl FnOnce(&Self)) -> Self

    Immutable access to a value. Read more
    §

    fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

    Mutable access to a value. Read more
    §

    fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Immutable access to the Borrow<B> of a value. Read more
    §

    fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Mutable access to the BorrowMut<B> of a value. Read more
    §

    fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Immutable access to the AsRef<R> view of a value. Read more
    §

    fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Mutable access to the AsMut<R> view of a value. Read more
    §

    fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Immutable access to the Deref::Target of a value. Read more
    §

    fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Mutable access to the Deref::Target of a value. Read more
    §

    fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

    Calls .tap() only in debug builds, and is erased in release builds.
    §

    fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

    Calls .tap_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
    where + Self: Borrow<B>, + B: ?Sized,

    Calls .tap_borrow() only in debug builds, and is erased in release +builds.
    §

    fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
    where + Self: BorrowMut<B>, + B: ?Sized,

    Calls .tap_borrow_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
    where + Self: AsRef<R>, + R: ?Sized,

    Calls .tap_ref() only in debug builds, and is erased in release +builds.
    §

    fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
    where + Self: AsMut<R>, + R: ?Sized,

    Calls .tap_ref_mut() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
    where + Self: Deref<Target = T>, + T: ?Sized,

    Calls .tap_deref() only in debug builds, and is erased in release +builds.
    §

    fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
    where + Self: DerefMut<Target = T> + Deref, + T: ?Sized,

    Calls .tap_deref_mut() only in debug builds, and is erased in release +builds.
    §

    impl<T> TryConv for T

    §

    fn try_conv<T>(self) -> Result<T, Self::Error>
    where + Self: TryInto<T>,

    Attempts to convert self into T using TryInto<T>. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<T> Upcast<T> for T
    where + T: ?Sized,

    §

    fn upcast(&self) -> &T

    §

    impl<T> UpcastMut<T> for T
    where + T: ?Sized,

    §

    fn upcast_mut(&mut self) -> &mut T

    §

    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/settings.html b/settings.html index 82cd929cb..e821008d5 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/cairo_native/arch.rs.html b/src/cairo_native/arch.rs.html index 714f0ba16..969f75c99 100644 --- a/src/cairo_native/arch.rs.html +++ b/src/cairo_native/arch.rs.html @@ -1,4 +1,5 @@ -arch.rs - source
    1
    +arch.rs - source

    cairo_native/
    arch.rs

    +1
     2
     3
     4
    @@ -195,8 +196,7 @@
     195
     196
     197
    -198
    -
    use crate::{
    +198
    use crate::{
         error::Result,
         native_panic,
         starknet::{ArrayAbi, Secp256k1Point, Secp256r1Point},
    @@ -255,7 +255,7 @@
         }
     }
     
    -impl<'a> AbiArgument for ValueWithInfoWrapper<'a> {
    +impl AbiArgument for ValueWithInfoWrapper<'_> {
         fn to_bytes(&self, buffer: &mut Vec<u8>) -> Result<()> {
             match (self.value, self.info) {
                 (value, CoreTypeConcrete::Box(info)) => {
    diff --git a/src/cairo_native/arch/x86_64.rs.html b/src/cairo_native/arch/x86_64.rs.html
    index ea9668373..7698806e8 100644
    --- a/src/cairo_native/arch/x86_64.rs.html
    +++ b/src/cairo_native/arch/x86_64.rs.html
    @@ -1,4 +1,5 @@
    -x86_64.rs - source
    1
    +x86_64.rs - source

    cairo_native/arch/
    x86_64.rs

    +1
     2
     3
     4
    @@ -209,8 +210,7 @@
     209
     210
     211
    -212
    -
    //! # Implementations of `AbiArgument` for the `x86_64` architecture.
    +212
    //! # Implementations of `AbiArgument` for the `x86_64` architecture.
     //!
     //! The x86_64 architecture uses 6 64-bit registers for arguments. This means that the first 48
     //! bytes of the buffer will go into registers while the rest will be on the stack.
    diff --git a/src/cairo_native/cache.rs.html b/src/cairo_native/cache.rs.html
    index 0b8d779f5..aa47303d0 100644
    --- a/src/cairo_native/cache.rs.html
    +++ b/src/cairo_native/cache.rs.html
    @@ -1,4 +1,5 @@
    -cache.rs - source
    1
    +cache.rs - source

    cairo_native/
    cache.rs

    +1
     2
     3
     4
    @@ -29,8 +30,7 @@
     29
     30
     31
    -32
    -
    pub use self::{aot::AotProgramCache, jit::JitProgramCache};
    +32
    pub use self::{aot::AotProgramCache, jit::JitProgramCache};
     use std::hash::Hash;
     
     pub mod aot;
    diff --git a/src/cairo_native/cache/aot.rs.html b/src/cairo_native/cache/aot.rs.html
    index 3f16c7143..dbc910d48 100644
    --- a/src/cairo_native/cache/aot.rs.html
    +++ b/src/cairo_native/cache/aot.rs.html
    @@ -1,4 +1,5 @@
    -aot.rs - source
    1
    +aot.rs - source

    cairo_native/cache/
    aot.rs

    +1
     2
     3
     4
    @@ -113,8 +114,7 @@
     113
     114
     115
    -116
    -
    use crate::error::{Error, Result};
    +116
    use crate::error::{Error, Result};
     use crate::{
         context::NativeContext, executor::AotNativeExecutor, metadata::gas::GasMetadata,
         module::NativeModule, utils::SHARED_LIBRARY_EXT, OptLevel,
    @@ -193,7 +193,7 @@
         }
     }
     
    -impl<'a, K> Debug for AotProgramCache<'a, K>
    +impl<K> Debug for AotProgramCache<'_, K>
     where
         K: PartialEq + Eq + Hash,
     {
    diff --git a/src/cairo_native/cache/jit.rs.html b/src/cairo_native/cache/jit.rs.html
    index df2ca7548..19baaa1f8 100644
    --- a/src/cairo_native/cache/jit.rs.html
    +++ b/src/cairo_native/cache/jit.rs.html
    @@ -1,4 +1,5 @@
    -jit.rs - source
    1
    +jit.rs - source

    cairo_native/cache/
    jit.rs

    +1
     2
     3
     4
    @@ -114,8 +115,7 @@
     114
     115
     116
    -117
    -
    use crate::error::Result;
    +117
    use crate::error::Result;
     use crate::{context::NativeContext, executor::JitNativeExecutor, OptLevel};
     use cairo_lang_sierra::program::Program;
     use std::{
    @@ -175,7 +175,7 @@
         }
     }
     
    -impl<'a, K> Debug for JitProgramCache<'a, K>
    +impl<K> Debug for JitProgramCache<'_, K>
     where
         K: Eq + Hash + PartialEq,
     {
    diff --git a/src/cairo_native/compiler.rs.html b/src/cairo_native/compiler.rs.html
    index 145690042..acda06f10 100644
    --- a/src/cairo_native/compiler.rs.html
    +++ b/src/cairo_native/compiler.rs.html
    @@ -1,4 +1,5 @@
    -compiler.rs - source
    1
    +compiler.rs - source

    cairo_native/
    compiler.rs

    +1
     2
     3
     4
    @@ -1396,8 +1397,7 @@
     1396
     1397
     1398
    -1399
    -
    //! # Compilation process
    +1399
    //! # Compilation process
     //!
     //! A Sierra program is compiled one function at a time. Each function has a pre-entry block that
     //! will be ran only once, even in tail-recursive functions. All libfuncs are intended to place
    diff --git a/src/cairo_native/context.rs.html b/src/cairo_native/context.rs.html
    index 02dd858c4..5defd5ce9 100644
    --- a/src/cairo_native/context.rs.html
    +++ b/src/cairo_native/context.rs.html
    @@ -1,4 +1,5 @@
    -context.rs - source
    1
    +context.rs - source

    cairo_native/
    context.rs

    +1
     2
     3
     4
    @@ -244,8 +245,7 @@
     244
     245
     246
    -247
    -
    use crate::{
    +247
    use crate::{
         error::{panic::ToNativeAssertError, Error},
         ffi::{get_data_layout_rep, get_target_triple},
         metadata::{
    diff --git a/src/cairo_native/debug.rs.html b/src/cairo_native/debug.rs.html
    index 6f843b237..30b489a28 100644
    --- a/src/cairo_native/debug.rs.html
    +++ b/src/cairo_native/debug.rs.html
    @@ -1,4 +1,5 @@
    -debug.rs - source
    1
    +debug.rs - source

    cairo_native/
    debug.rs

    +1
     2
     3
     4
    @@ -414,8 +415,7 @@
     414
     415
     416
    -417
    -
    use cairo_lang_sierra::extensions::{
    +417
    use cairo_lang_sierra::extensions::{
         array::ArrayConcreteLibfunc,
         boolean::BoolConcreteLibfunc,
         bounded_int::BoundedIntConcreteLibfunc,
    diff --git a/src/cairo_native/docs.rs.html b/src/cairo_native/docs.rs.html
    index a6c674a9b..4bcedb7f9 100644
    --- a/src/cairo_native/docs.rs.html
    +++ b/src/cairo_native/docs.rs.html
    @@ -1,4 +1,5 @@
    -docs.rs - source
    1
    +docs.rs - source

    cairo_native/
    docs.rs

    +1
     2
     3
     4
    @@ -33,8 +34,7 @@
     33
     34
     35
    -36
    -
    //! # Cairo Native Compiler and Execution Engine
    +36
    //! # Cairo Native Compiler and Execution Engine
     
     #![cfg(doc)]
     
    diff --git a/src/cairo_native/error.rs.html b/src/cairo_native/error.rs.html
    index a3129a455..c3fa7e84f 100644
    --- a/src/cairo_native/error.rs.html
    +++ b/src/cairo_native/error.rs.html
    @@ -1,4 +1,5 @@
    -error.rs - source
    1
    +error.rs - source

    cairo_native/
    error.rs

    +1
     2
     3
     4
    @@ -249,8 +250,7 @@
     249
     250
     251
    -252
    -
    //! Various error types used thorough the crate.
    +252
    //! Various error types used thorough the crate.
     use crate::metadata::gas::GasMetadataError;
     use cairo_lang_sierra::extensions::modules::utils::Range;
     use cairo_lang_sierra::{
    diff --git a/src/cairo_native/execution_result.rs.html b/src/cairo_native/execution_result.rs.html
    index 59fcd3764..811d1c67c 100644
    --- a/src/cairo_native/execution_result.rs.html
    +++ b/src/cairo_native/execution_result.rs.html
    @@ -1,4 +1,5 @@
    -execution_result.rs - source
    1
    +execution_result.rs - source

    cairo_native/
    execution_result.rs

    +1
     2
     3
     4
    @@ -158,8 +159,7 @@
     158
     159
     160
    -161
    -
    /// # Execution Result
    +161
    /// # Execution Result
     ///
     /// This module contains the structures used to interpret the program execution results, either
     /// normal programs or starknet contracts.
    diff --git a/src/cairo_native/executor.rs.html b/src/cairo_native/executor.rs.html
    index 73a2f1b74..b1cec0547 100644
    --- a/src/cairo_native/executor.rs.html
    +++ b/src/cairo_native/executor.rs.html
    @@ -1,4 +1,5 @@
    -executor.rs - source
    1
    +executor.rs - source

    cairo_native/
    executor.rs

    +1
     2
     3
     4
    @@ -767,8 +768,7 @@
     767
     768
     769
    -770
    -
    //! # Executors
    +770
    //! # Executors
     //!
     //! This module provides methods to execute the programs, either via JIT or compiled ahead
     //! of time. It also provides a cache to avoid recompiling previously compiled programs.
    diff --git a/src/cairo_native/executor/aot.rs.html b/src/cairo_native/executor/aot.rs.html
    index 26d959d37..6dbbb468f 100644
    --- a/src/cairo_native/executor/aot.rs.html
    +++ b/src/cairo_native/executor/aot.rs.html
    @@ -1,4 +1,5 @@
    -aot.rs - source
    1
    +aot.rs - source

    cairo_native/executor/
    aot.rs

    +1
     2
     3
     4
    @@ -346,8 +347,7 @@
     346
     347
     348
    -349
    -
    use std::io;
    +349
    use std::io;
     
     use crate::{
         error::Error,
    diff --git a/src/cairo_native/executor/contract.rs.html b/src/cairo_native/executor/contract.rs.html
    index 2ccbbdc54..ebedff819 100644
    --- a/src/cairo_native/executor/contract.rs.html
    +++ b/src/cairo_native/executor/contract.rs.html
    @@ -1,4 +1,5 @@
    -contract.rs - source
    1
    +contract.rs - source

    cairo_native/executor/
    contract.rs

    +1
     2
     3
     4
    @@ -848,8 +849,7 @@
     848
     849
     850
    -851
    -
    //! A specialized executor for Starknet contracts, avoiding the overhead of storing the sierra program registry and
    +851
    //! A specialized executor for Starknet contracts, avoiding the overhead of storing the sierra program registry and
     //! enabling efficient serialization of the program/data once compiled.
     //!
     //! This executor heavily relies on the stability of the contract entry point argument order.
    diff --git a/src/cairo_native/executor/jit.rs.html b/src/cairo_native/executor/jit.rs.html
    index 9d1754d6e..2ac77c77b 100644
    --- a/src/cairo_native/executor/jit.rs.html
    +++ b/src/cairo_native/executor/jit.rs.html
    @@ -1,4 +1,5 @@
    -jit.rs - source
    1
    +jit.rs - source

    cairo_native/executor/
    jit.rs

    +1
     2
     3
     4
    @@ -178,8 +179,7 @@
     178
     179
     180
    -181
    -
    use crate::{
    +181
    use crate::{
         error::Error,
         execution_result::{ContractExecutionResult, ExecutionResult},
         metadata::gas::GasMetadata,
    @@ -209,8 +209,8 @@
         gas_metadata: GasMetadata,
     }
     
    -unsafe impl<'a> Send for JitNativeExecutor<'a> {}
    -unsafe impl<'a> Sync for JitNativeExecutor<'a> {}
    +unsafe impl Send for JitNativeExecutor<'_> {}
    +unsafe impl Sync for JitNativeExecutor<'_> {}
     
     impl std::fmt::Debug for JitNativeExecutor<'_> {
         fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
    diff --git a/src/cairo_native/ffi.rs.html b/src/cairo_native/ffi.rs.html
    index c46facde0..1bbd046e1 100644
    --- a/src/cairo_native/ffi.rs.html
    +++ b/src/cairo_native/ffi.rs.html
    @@ -1,4 +1,5 @@
    -ffi.rs - source
    1
    +ffi.rs - source

    cairo_native/
    ffi.rs

    +1
     2
     3
     4
    @@ -417,8 +418,7 @@
     417
     418
     419
    -420
    -
    //! # FFI Wrappers
    +420
    //! # FFI Wrappers
     //!
     //! This is a "hotfix" for missing Rust interfaces to the C/C++ libraries we use, namely LLVM/MLIR
     //! APIs that are missing from melior.
    diff --git a/src/cairo_native/lib.rs.html b/src/cairo_native/lib.rs.html
    index b1969e79a..c981683c0 100644
    --- a/src/cairo_native/lib.rs.html
    +++ b/src/cairo_native/lib.rs.html
    @@ -1,4 +1,5 @@
    -lib.rs - source
    1
    +lib.rs - source

    cairo_native/
    lib.rs

    +1
     2
     3
     4
    @@ -31,8 +32,7 @@
     31
     32
     33
    -34
    -
    #![allow(clippy::missing_safety_doc)]
    +34
    #![allow(clippy::missing_safety_doc)]
     #![allow(rustdoc::bare_urls)]
     // The following line contains a markdown reference link.
     // This is necessary to override the link destination in the README.md file, so
    diff --git a/src/cairo_native/libfuncs.rs.html b/src/cairo_native/libfuncs.rs.html
    index c4616b776..e5c7aa231 100644
    --- a/src/cairo_native/libfuncs.rs.html
    +++ b/src/cairo_native/libfuncs.rs.html
    @@ -1,4 +1,5 @@
    -libfuncs.rs - source
    1
    +libfuncs.rs - source

    cairo_native/
    libfuncs.rs

    +1
     2
     3
     4
    @@ -482,8 +483,7 @@
     482
     483
     484
    -485
    -
    //! # Compiler libfunc infrastructure
    +485
    //! # Compiler libfunc infrastructure
     //!
     //! Contains libfunc generation stuff (aka. the actual instructions).
     
    @@ -896,7 +896,7 @@
         }
     }
     
    -impl<'ctx, 'this> Deref for LibfuncHelper<'ctx, 'this> {
    +impl<'ctx> Deref for LibfuncHelper<'ctx, '_> {
         type Target = Module<'ctx>;
     
         fn deref(&self) -> &Self::Target {
    diff --git a/src/cairo_native/libfuncs/array.rs.html b/src/cairo_native/libfuncs/array.rs.html
    index 9ef0d407d..413c0f598 100644
    --- a/src/cairo_native/libfuncs/array.rs.html
    +++ b/src/cairo_native/libfuncs/array.rs.html
    @@ -1,4 +1,5 @@
    -array.rs - source
    1
    +array.rs - source

    cairo_native/libfuncs/
    array.rs

    +1
     2
     3
     4
    @@ -3062,8 +3063,7 @@
     3062
     3063
     3064
    -3065
    -
    //! # Array libfuncs
    +3065
    //! # Array libfuncs
     
     use super::LibfuncHelper;
     use crate::{
    diff --git a/src/cairo_native/libfuncs/bool.rs.html b/src/cairo_native/libfuncs/bool.rs.html
    index 117e094da..7afa60388 100644
    --- a/src/cairo_native/libfuncs/bool.rs.html
    +++ b/src/cairo_native/libfuncs/bool.rs.html
    @@ -1,4 +1,5 @@
    -bool.rs - source
    1
    +bool.rs - source

    cairo_native/libfuncs/
    bool.rs

    +1
     2
     3
     4
    @@ -374,8 +375,7 @@
     374
     375
     376
    -377
    -
    //! # Boolean libfuncs
    +377
    //! # Boolean libfuncs
     
     use super::LibfuncHelper;
     use crate::{
    diff --git a/src/cairo_native/libfuncs/bounded_int.rs.html b/src/cairo_native/libfuncs/bounded_int.rs.html
    index 8de62ffac..6d37a2c89 100644
    --- a/src/cairo_native/libfuncs/bounded_int.rs.html
    +++ b/src/cairo_native/libfuncs/bounded_int.rs.html
    @@ -1,4 +1,5 @@
    -bounded_int.rs - source
    1
    +bounded_int.rs - source

    cairo_native/libfuncs/
    bounded_int.rs

    +1
     2
     3
     4
    @@ -760,8 +761,7 @@
     760
     761
     762
    -763
    -
    //! # Bounded int libfuncs
    +763
    //! # Bounded int libfuncs
     
     use super::LibfuncHelper;
     use crate::{
    diff --git a/src/cairo_native/libfuncs/box.rs.html b/src/cairo_native/libfuncs/box.rs.html
    index 4cac7d7f4..f0fc56391 100644
    --- a/src/cairo_native/libfuncs/box.rs.html
    +++ b/src/cairo_native/libfuncs/box.rs.html
    @@ -1,4 +1,5 @@
    -box.rs - source
    1
    +box.rs - source

    cairo_native/libfuncs/
    box.rs

    +1
     2
     3
     4
    @@ -305,8 +306,7 @@
     305
     306
     307
    -308
    -
    //! # Box libfuncs
    +308
    //! # Box libfuncs
     //!
     //! A heap allocated value, which is internally a pointer that can't be null.
     
    diff --git a/src/cairo_native/libfuncs/bytes31.rs.html b/src/cairo_native/libfuncs/bytes31.rs.html
    index a895a8402..2a4b8e6a1 100644
    --- a/src/cairo_native/libfuncs/bytes31.rs.html
    +++ b/src/cairo_native/libfuncs/bytes31.rs.html
    @@ -1,4 +1,5 @@
    -bytes31.rs - source
    1
    +bytes31.rs - source

    cairo_native/libfuncs/
    bytes31.rs

    +1
     2
     3
     4
    @@ -197,8 +198,7 @@
     197
     198
     199
    -200
    -
    //! # Bytes31-related libfuncs
    +200
    //! # Bytes31-related libfuncs
     
     use super::LibfuncHelper;
     use crate::{
    diff --git a/src/cairo_native/libfuncs/cast.rs.html b/src/cairo_native/libfuncs/cast.rs.html
    index 2f6008dbd..13f6a37e2 100644
    --- a/src/cairo_native/libfuncs/cast.rs.html
    +++ b/src/cairo_native/libfuncs/cast.rs.html
    @@ -1,4 +1,5 @@
    -cast.rs - source
    1
    +cast.rs - source

    cairo_native/libfuncs/
    cast.rs

    +1
     2
     3
     4
    @@ -685,8 +686,7 @@
     685
     686
     687
    -688
    -
    //! # Casting libfuncs
    +688
    //! # Casting libfuncs
     
     use super::LibfuncHelper;
     use crate::{
    diff --git a/src/cairo_native/libfuncs/circuit.rs.html b/src/cairo_native/libfuncs/circuit.rs.html
    index d521e5126..8621e73d8 100644
    --- a/src/cairo_native/libfuncs/circuit.rs.html
    +++ b/src/cairo_native/libfuncs/circuit.rs.html
    @@ -1,4 +1,5 @@
    -circuit.rs - source
    1
    +circuit.rs - source

    cairo_native/libfuncs/
    circuit.rs

    +1
     2
     3
     4
    @@ -1310,8 +1311,7 @@
     1310
     1311
     1312
    -1313
    -
    //! # Circuit libfuncs
    +1313
    //! # Circuit libfuncs
     
     use super::{increment_builtin_counter_by, LibfuncHelper};
     use crate::{
    diff --git a/src/cairo_native/libfuncs/const.rs.html b/src/cairo_native/libfuncs/const.rs.html
    index 580a9ceef..ab3091b8b 100644
    --- a/src/cairo_native/libfuncs/const.rs.html
    +++ b/src/cairo_native/libfuncs/const.rs.html
    @@ -1,4 +1,5 @@
    -const.rs - source
    1
    +const.rs - source

    cairo_native/libfuncs/
    const.rs

    +1
     2
     3
     4
    @@ -315,8 +316,7 @@
     315
     316
     317
    -318
    -
    //! # Const libfuncs
    +318
    //! # Const libfuncs
     
     use super::LibfuncHelper;
     use crate::{
    diff --git a/src/cairo_native/libfuncs/coupon.rs.html b/src/cairo_native/libfuncs/coupon.rs.html
    index cb4e2061d..eb02900e5 100644
    --- a/src/cairo_native/libfuncs/coupon.rs.html
    +++ b/src/cairo_native/libfuncs/coupon.rs.html
    @@ -1,4 +1,5 @@
    -coupon.rs - source
    1
    +coupon.rs - source

    cairo_native/libfuncs/
    coupon.rs

    +1
     2
     3
     4
    @@ -94,8 +95,7 @@
     94
     95
     96
    -97
    -
    //! # Branch alignment libfunc
    +97
    //! # Branch alignment libfunc
     //!
     //! Natively compiled code doesn't need branch alignment because it has no notion of segments.
     //! Because of this, this libfunc is a no-op.
    diff --git a/src/cairo_native/libfuncs/debug.rs.html b/src/cairo_native/libfuncs/debug.rs.html
    index 0fab5da73..0992b3a4c 100644
    --- a/src/cairo_native/libfuncs/debug.rs.html
    +++ b/src/cairo_native/libfuncs/debug.rs.html
    @@ -1,4 +1,5 @@
    -debug.rs - source
    1
    +debug.rs - source

    cairo_native/libfuncs/
    debug.rs

    +1
     2
     3
     4
    @@ -124,8 +125,7 @@
     124
     125
     126
    -127
    -
    //! # Debug libfuncs
    +127
    //! # Debug libfuncs
     
     // Printable: 9-13, 27, 32, 33-126
     //     is_ascii_graphic() -> 33-126
    diff --git a/src/cairo_native/libfuncs/drop.rs.html b/src/cairo_native/libfuncs/drop.rs.html
    index ac2fd8df1..deecc063b 100644
    --- a/src/cairo_native/libfuncs/drop.rs.html
    +++ b/src/cairo_native/libfuncs/drop.rs.html
    @@ -1,4 +1,5 @@
    -drop.rs - source
    1
    +drop.rs - source

    cairo_native/libfuncs/
    drop.rs

    +1
     2
     3
     4
    @@ -52,8 +53,7 @@
     52
     53
     54
    -55
    -
    //! # `AP` tracking libfuncs
    +55
    //! # `AP` tracking libfuncs
     //!
     //! Most types are trivial and don't need dropping (or rather, they will be dropped automatically
     //! by MLIR). For those types, this libfunc is a no-op.
    diff --git a/src/cairo_native/libfuncs/dup.rs.html b/src/cairo_native/libfuncs/dup.rs.html
    index 1f2e8d668..4fb744276 100644
    --- a/src/cairo_native/libfuncs/dup.rs.html
    +++ b/src/cairo_native/libfuncs/dup.rs.html
    @@ -1,4 +1,5 @@
    -dup.rs - source
    1
    +dup.rs - source

    cairo_native/libfuncs/
    dup.rs

    +1
     2
     3
     4
    @@ -48,8 +49,7 @@
     48
     49
     50
    -51
    -
    //! # State value duplication libfunc
    +51
    //! # State value duplication libfunc
     //!
     //! Most types are trivial and don't need any clone (or rather, they will be cloned automatically by
     //! MLIR). For those types, this libfunc is a no-op.
    diff --git a/src/cairo_native/libfuncs/ec.rs.html b/src/cairo_native/libfuncs/ec.rs.html
    index 639df3a22..bf6de01a6 100644
    --- a/src/cairo_native/libfuncs/ec.rs.html
    +++ b/src/cairo_native/libfuncs/ec.rs.html
    @@ -1,4 +1,5 @@
    -ec.rs - source
    1
    +ec.rs - source

    cairo_native/libfuncs/
    ec.rs

    +1
     2
     3
     4
    @@ -821,8 +822,7 @@
     821
     822
     823
    -824
    -
    //! # Elliptic curve libfuncs
    +824
    //! # Elliptic curve libfuncs
     
     use super::LibfuncHelper;
     use crate::{
    diff --git a/src/cairo_native/libfuncs/enum.rs.html b/src/cairo_native/libfuncs/enum.rs.html
    index d63792cd3..03eb6bf9b 100644
    --- a/src/cairo_native/libfuncs/enum.rs.html
    +++ b/src/cairo_native/libfuncs/enum.rs.html
    @@ -1,4 +1,5 @@
    -enum.rs - source
    1
    +enum.rs - source

    cairo_native/libfuncs/
    enum.rs

    +1
     2
     3
     4
    @@ -656,8 +657,7 @@
     656
     657
     658
    -659
    -
    //! # Enum-related libfuncs
    +659
    //! # Enum-related libfuncs
     //!
     //! Check out [the enum type](crate::types::enum) for more information on enum layouts.
     
    diff --git a/src/cairo_native/libfuncs/felt252.rs.html b/src/cairo_native/libfuncs/felt252.rs.html
    index 0344b6616..32508543e 100644
    --- a/src/cairo_native/libfuncs/felt252.rs.html
    +++ b/src/cairo_native/libfuncs/felt252.rs.html
    @@ -1,4 +1,5 @@
    -felt252.rs - source
    1
    +felt252.rs - source

    cairo_native/libfuncs/
    felt252.rs

    +1
     2
     3
     4
    @@ -595,8 +596,7 @@
     595
     596
     597
    -598
    -
    //! # `Felt`-related libfuncs
    +598
    //! # `Felt`-related libfuncs
     
     use super::LibfuncHelper;
     use crate::{
    diff --git a/src/cairo_native/libfuncs/felt252_dict.rs.html b/src/cairo_native/libfuncs/felt252_dict.rs.html
    index 2cadb058b..ee32a553d 100644
    --- a/src/cairo_native/libfuncs/felt252_dict.rs.html
    +++ b/src/cairo_native/libfuncs/felt252_dict.rs.html
    @@ -1,4 +1,5 @@
    -felt252_dict.rs - source
    1
    +felt252_dict.rs - source

    cairo_native/libfuncs/
    felt252_dict.rs

    +1
     2
     3
     4
    @@ -284,8 +285,7 @@
     284
     285
     286
    -287
    -
    //! # `Felt` dictionary libfuncs
    +287
    //! # `Felt` dictionary libfuncs
     
     use super::LibfuncHelper;
     use crate::{
    diff --git a/src/cairo_native/libfuncs/felt252_dict_entry.rs.html b/src/cairo_native/libfuncs/felt252_dict_entry.rs.html
    index 804483145..5c7e2b915 100644
    --- a/src/cairo_native/libfuncs/felt252_dict_entry.rs.html
    +++ b/src/cairo_native/libfuncs/felt252_dict_entry.rs.html
    @@ -1,4 +1,5 @@
    -felt252_dict_entry.rs - source
    1
    +felt252_dict_entry.rs - source

    cairo_native/libfuncs/
    felt252_dict_entry.rs

    +1
     2
     3
     4
    @@ -383,8 +384,7 @@
     383
     384
     385
    -386
    -
    //! # `Felt` dictionary entry libfuncs
    +386
    //! # `Felt` dictionary entry libfuncs
     
     use super::LibfuncHelper;
     use crate::{
    diff --git a/src/cairo_native/libfuncs/function_call.rs.html b/src/cairo_native/libfuncs/function_call.rs.html
    index 1ab553fd3..3d9748ba6 100644
    --- a/src/cairo_native/libfuncs/function_call.rs.html
    +++ b/src/cairo_native/libfuncs/function_call.rs.html
    @@ -1,4 +1,5 @@
    -function_call.rs - source
    1
    +function_call.rs - source

    cairo_native/libfuncs/
    function_call.rs

    +1
     2
     3
     4
    @@ -298,8 +299,7 @@
     298
     299
     300
    -301
    -
    //! # Function call libfuncs
    +301
    //! # Function call libfuncs
     //!
     //! Includes logic for handling direct tail recursive function calls. More information on this topic
     //! at the [tail recursive metadata](crate::metadata::tail_recursion).
    @@ -476,7 +476,7 @@
                 arguments.insert(0, stack_ptr);
     
                 Some(true)
    -        } else if return_types.first().is_some() {
    +        } else if !return_types.is_empty() {
                 let (type_id, type_info) = return_types[0];
                 result_types.push(type_info.build(context, helper, registry, metadata, type_id)?);
     
    diff --git a/src/cairo_native/libfuncs/gas.rs.html b/src/cairo_native/libfuncs/gas.rs.html
    index c9fd71433..9c375414b 100644
    --- a/src/cairo_native/libfuncs/gas.rs.html
    +++ b/src/cairo_native/libfuncs/gas.rs.html
    @@ -1,4 +1,5 @@
    -gas.rs - source
    1
    +gas.rs - source

    cairo_native/libfuncs/
    gas.rs

    +1
     2
     3
     4
    @@ -291,8 +292,7 @@
     291
     292
     293
    -294
    -
    //! # Gas management libfuncs
    +294
    //! # Gas management libfuncs
     
     use super::LibfuncHelper;
     use crate::{
    diff --git a/src/cairo_native/libfuncs/int.rs.html b/src/cairo_native/libfuncs/int.rs.html
    index bcd6d8ad3..c223212ed 100644
    --- a/src/cairo_native/libfuncs/int.rs.html
    +++ b/src/cairo_native/libfuncs/int.rs.html
    @@ -1,4 +1,5 @@
    -int.rs - source
    1
    +int.rs - source

    cairo_native/libfuncs/
    int.rs

    +1
     2
     3
     4
    @@ -2121,8 +2122,7 @@
     2121
     2122
     2123
    -2124
    -
    use super::{BlockExt, LibfuncHelper};
    +2124
    use super::{BlockExt, LibfuncHelper};
     use crate::{
         error::Result,
         metadata::MetadataStorage,
    diff --git a/src/cairo_native/libfuncs/int_range.rs.html b/src/cairo_native/libfuncs/int_range.rs.html
    index 51e6990fa..ff4f9eecb 100644
    --- a/src/cairo_native/libfuncs/int_range.rs.html
    +++ b/src/cairo_native/libfuncs/int_range.rs.html
    @@ -1,4 +1,5 @@
    -int_range.rs - source
    1
    +int_range.rs - source

    cairo_native/libfuncs/
    int_range.rs

    +1
     2
     3
     4
    @@ -176,8 +177,7 @@
     176
     177
     178
    -179
    -
    //! # Int range libfuncs
    +179
    //! # Int range libfuncs
     
     use super::LibfuncHelper;
     use crate::{
    diff --git a/src/cairo_native/libfuncs/mem.rs.html b/src/cairo_native/libfuncs/mem.rs.html
    index a06815021..d120edd01 100644
    --- a/src/cairo_native/libfuncs/mem.rs.html
    +++ b/src/cairo_native/libfuncs/mem.rs.html
    @@ -1,4 +1,5 @@
    -mem.rs - source
    1
    +mem.rs - source

    cairo_native/libfuncs/
    mem.rs

    +1
     2
     3
     4
    @@ -100,8 +101,7 @@
     100
     101
     102
    -103
    -
    //! # Memory-related libfuncs
    +103
    //! # Memory-related libfuncs
     //!
     //! Natively compiled code doesn't need this kind of memory tracking because it has no notion of the
     //! segments. Because of this, all of the memory-related libfuncs here are no-ops.
    diff --git a/src/cairo_native/libfuncs/nullable.rs.html b/src/cairo_native/libfuncs/nullable.rs.html
    index ac77aadf9..68940a6ae 100644
    --- a/src/cairo_native/libfuncs/nullable.rs.html
    +++ b/src/cairo_native/libfuncs/nullable.rs.html
    @@ -1,4 +1,5 @@
    -nullable.rs - source
    1
    +nullable.rs - source

    cairo_native/libfuncs/
    nullable.rs

    +1
     2
     3
     4
    @@ -228,8 +229,7 @@
     228
     229
     230
    -231
    -
    //! # Nullable libfuncs
    +231
    //! # Nullable libfuncs
     //!
     //! Like a Box but it can be null.
     
    diff --git a/src/cairo_native/libfuncs/pedersen.rs.html b/src/cairo_native/libfuncs/pedersen.rs.html
    index b18901516..b160c8816 100644
    --- a/src/cairo_native/libfuncs/pedersen.rs.html
    +++ b/src/cairo_native/libfuncs/pedersen.rs.html
    @@ -1,4 +1,5 @@
    -pedersen.rs - source
    1
    +pedersen.rs - source

    cairo_native/libfuncs/
    pedersen.rs

    +1
     2
     3
     4
    @@ -122,8 +123,7 @@
     122
     123
     124
    -125
    -
    //! # Pedersen hashing libfuncs
    +125
    //! # Pedersen hashing libfuncs
     //!
     
     use super::LibfuncHelper;
    diff --git a/src/cairo_native/libfuncs/poseidon.rs.html b/src/cairo_native/libfuncs/poseidon.rs.html
    index 23d89beb6..127fb0e07 100644
    --- a/src/cairo_native/libfuncs/poseidon.rs.html
    +++ b/src/cairo_native/libfuncs/poseidon.rs.html
    @@ -1,4 +1,5 @@
    -poseidon.rs - source
    1
    +poseidon.rs - source

    cairo_native/libfuncs/
    poseidon.rs

    +1
     2
     3
     4
    @@ -152,8 +153,7 @@
     152
     153
     154
    -155
    -
    //! # Poseidon hashing libfuncs
    +155
    //! # Poseidon hashing libfuncs
     //!
     
     use super::LibfuncHelper;
    diff --git a/src/cairo_native/libfuncs/starknet.rs.html b/src/cairo_native/libfuncs/starknet.rs.html
    index 58daabd77..de02f78b3 100644
    --- a/src/cairo_native/libfuncs/starknet.rs.html
    +++ b/src/cairo_native/libfuncs/starknet.rs.html
    @@ -1,4 +1,5 @@
    -starknet.rs - source
    1
    +starknet.rs - source

    cairo_native/libfuncs/
    starknet.rs

    +1
     2
     3
     4
    @@ -3009,8 +3010,7 @@
     3009
     3010
     3011
    -3012
    -
    //! # Starknet libfuncs
    +3012
    //! # Starknet libfuncs
     
     use super::LibfuncHelper;
     use crate::{
    diff --git a/src/cairo_native/libfuncs/starknet/secp256.rs.html b/src/cairo_native/libfuncs/starknet/secp256.rs.html
    index 8e8471bdb..e4784803e 100644
    --- a/src/cairo_native/libfuncs/starknet/secp256.rs.html
    +++ b/src/cairo_native/libfuncs/starknet/secp256.rs.html
    @@ -1,4 +1,5 @@
    -secp256.rs - source
    1
    +secp256.rs - source

    cairo_native/libfuncs/starknet/
    secp256.rs

    +1
     2
     3
     4
    @@ -2240,8 +2241,7 @@
     2240
     2241
     2242
    -2243
    -
    use crate::{
    +2243
    use crate::{
         error::Result,
         libfuncs::LibfuncHelper,
         metadata::MetadataStorage,
    diff --git a/src/cairo_native/libfuncs/starknet/testing.rs.html b/src/cairo_native/libfuncs/starknet/testing.rs.html
    index bad0ddf44..ed42cc532 100644
    --- a/src/cairo_native/libfuncs/starknet/testing.rs.html
    +++ b/src/cairo_native/libfuncs/starknet/testing.rs.html
    @@ -1,4 +1,5 @@
    -testing.rs - source
    1
    +testing.rs - source

    cairo_native/libfuncs/starknet/
    testing.rs

    +1
     2
     3
     4
    @@ -118,8 +119,7 @@
     118
     119
     120
    -121
    -
    #![cfg(feature = "with-cheatcode")]
    +121
    #![cfg(feature = "with-cheatcode")]
     
     use crate::{
         error::Result,
    diff --git a/src/cairo_native/libfuncs/struct.rs.html b/src/cairo_native/libfuncs/struct.rs.html
    index 16ca2b7e6..9dd39a7e3 100644
    --- a/src/cairo_native/libfuncs/struct.rs.html
    +++ b/src/cairo_native/libfuncs/struct.rs.html
    @@ -1,4 +1,5 @@
    -struct.rs - source
    1
    +struct.rs - source

    cairo_native/libfuncs/
    struct.rs

    +1
     2
     3
     4
    @@ -120,8 +121,7 @@
     120
     121
     122
    -123
    -
    //! # Struct-related libfuncs
    +123
    //! # Struct-related libfuncs
     
     use super::LibfuncHelper;
     use crate::{
    diff --git a/src/cairo_native/libfuncs/uint256.rs.html b/src/cairo_native/libfuncs/uint256.rs.html
    index 4900351aa..e4fac3f7a 100644
    --- a/src/cairo_native/libfuncs/uint256.rs.html
    +++ b/src/cairo_native/libfuncs/uint256.rs.html
    @@ -1,4 +1,5 @@
    -uint256.rs - source
    1
    +uint256.rs - source

    cairo_native/libfuncs/
    uint256.rs

    +1
     2
     3
     4
    @@ -1238,8 +1239,7 @@
     1238
     1239
     1240
    -1241
    -
    //! # `u256`-related libfuncs
    +1241
    //! # `u256`-related libfuncs
     
     use super::{BlockExt, LibfuncHelper};
     use crate::{error::Result, metadata::MetadataStorage, utils::ProgramRegistryExt};
    diff --git a/src/cairo_native/libfuncs/uint512.rs.html b/src/cairo_native/libfuncs/uint512.rs.html
    index 0e952a13a..bd94e054e 100644
    --- a/src/cairo_native/libfuncs/uint512.rs.html
    +++ b/src/cairo_native/libfuncs/uint512.rs.html
    @@ -1,4 +1,5 @@
    -uint512.rs - source
    1
    +uint512.rs - source

    cairo_native/libfuncs/
    uint512.rs

    +1
     2
     3
     4
    @@ -285,8 +286,7 @@
     285
     286
     287
    -288
    -
    //! # `u512`-related libfuncs
    +288
    //! # `u512`-related libfuncs
     
     use super::LibfuncHelper;
     use crate::{
    diff --git a/src/cairo_native/metadata.rs.html b/src/cairo_native/metadata.rs.html
    index 32d319bb1..57445834e 100644
    --- a/src/cairo_native/metadata.rs.html
    +++ b/src/cairo_native/metadata.rs.html
    @@ -1,4 +1,5 @@
    -metadata.rs - source
    1
    +metadata.rs - source

    cairo_native/
    metadata.rs

    +1
     2
     3
     4
    @@ -155,8 +156,7 @@
     155
     156
     157
    -158
    -
    //! # Code generation metadata
    +158
    //! # Code generation metadata
     //!
     //! The metadata is used for various stuff that would be otherwise difficult or plain impossible
     //! with the current design, such as:
    diff --git a/src/cairo_native/metadata/auto_breakpoint.rs.html b/src/cairo_native/metadata/auto_breakpoint.rs.html
    index 2f1efb347..7c8addd6e 100644
    --- a/src/cairo_native/metadata/auto_breakpoint.rs.html
    +++ b/src/cairo_native/metadata/auto_breakpoint.rs.html
    @@ -1,4 +1,5 @@
    -auto_breakpoint.rs - source
    1
    +auto_breakpoint.rs - source

    cairo_native/metadata/
    auto_breakpoint.rs

    +1
     2
     3
     4
    @@ -44,8 +45,7 @@
     44
     45
     46
    -47
    -
    #![cfg(feature = "with-debug-utils")]
    +47
    #![cfg(feature = "with-debug-utils")]
     
     use super::{debug_utils::DebugUtils, MetadataStorage};
     use crate::error::Error;
    diff --git a/src/cairo_native/metadata/debug_utils.rs.html b/src/cairo_native/metadata/debug_utils.rs.html
    index 343e1c931..4c4e0e468 100644
    --- a/src/cairo_native/metadata/debug_utils.rs.html
    +++ b/src/cairo_native/metadata/debug_utils.rs.html
    @@ -1,4 +1,5 @@
    -debug_utils.rs - source
    1
    +debug_utils.rs - source

    cairo_native/metadata/
    debug_utils.rs

    +1
     2
     3
     4
    @@ -790,8 +791,7 @@
     790
     791
     792
    -793
    -
    //! # Debug utilities
    +793
    //! # Debug utilities
     //!
     //! A collection of utilities to debug values in MLIR in execution.
     //!
    diff --git a/src/cairo_native/metadata/drop_overrides.rs.html b/src/cairo_native/metadata/drop_overrides.rs.html
    index 7a4b886e8..9cf9dfb09 100644
    --- a/src/cairo_native/metadata/drop_overrides.rs.html
    +++ b/src/cairo_native/metadata/drop_overrides.rs.html
    @@ -1,4 +1,5 @@
    -drop_overrides.rs - source
    1
    +drop_overrides.rs - source

    cairo_native/metadata/
    drop_overrides.rs

    +1
     2
     3
     4
    @@ -146,8 +147,7 @@
     146
     147
     148
    -149
    -
    //! # Dropping logic overrides
    +149
    //! # Dropping logic overrides
     //!
     //! By default, values are discarded, but some cases (like arrays, boxes, nullables, dictionaries
     //! and some structs and enums) need a drop implementation instad. This metadata is a register of
    diff --git a/src/cairo_native/metadata/dup_overrides.rs.html b/src/cairo_native/metadata/dup_overrides.rs.html
    index 609e65e8c..8777d9e3d 100644
    --- a/src/cairo_native/metadata/dup_overrides.rs.html
    +++ b/src/cairo_native/metadata/dup_overrides.rs.html
    @@ -1,4 +1,5 @@
    -dup_overrides.rs - source
    1
    +dup_overrides.rs - source

    cairo_native/metadata/
    dup_overrides.rs

    +1
     2
     3
     4
    @@ -148,8 +149,7 @@
     148
     149
     150
    -151
    -
    //! # Duplication logic overrides
    +151
    //! # Duplication logic overrides
     //!
     //! By default, values are copied (aka. `memcpy`'d), but some cases (like arrays, boxes, nullables,
     //! dictionaries and some structs and enums) need a clone implementation instad. This metadata is
    diff --git a/src/cairo_native/metadata/enum_snapshot_variants.rs.html b/src/cairo_native/metadata/enum_snapshot_variants.rs.html
    index d2dbecb10..5cb391e25 100644
    --- a/src/cairo_native/metadata/enum_snapshot_variants.rs.html
    +++ b/src/cairo_native/metadata/enum_snapshot_variants.rs.html
    @@ -1,4 +1,5 @@
    -enum_snapshot_variants.rs - source
    1
    +enum_snapshot_variants.rs - source

    cairo_native/metadata/
    enum_snapshot_variants.rs

    +1
     2
     3
     4
    @@ -16,8 +17,7 @@
     16
     17
     18
    -19
    -
    use cairo_lang_sierra::ids::ConcreteTypeId;
    +19
    use cairo_lang_sierra::ids::ConcreteTypeId;
     use std::collections::HashMap;
     
     // Maps a Snapshot<Enum> type to its enum variant types
    diff --git a/src/cairo_native/metadata/gas.rs.html b/src/cairo_native/metadata/gas.rs.html
    index 3bedf9bbb..d4a77a22b 100644
    --- a/src/cairo_native/metadata/gas.rs.html
    +++ b/src/cairo_native/metadata/gas.rs.html
    @@ -1,4 +1,5 @@
    -gas.rs - source
    1
    +gas.rs - source

    cairo_native/metadata/
    gas.rs

    +1
     2
     3
     4
    @@ -236,8 +237,7 @@
     236
     237
     238
    -239
    -
    use cairo_lang_runner::token_gas_cost;
    +239
    use cairo_lang_runner::token_gas_cost;
     use cairo_lang_sierra::{
         extensions::gas::CostTokenType,
         ids::FunctionId,
    diff --git a/src/cairo_native/metadata/realloc_bindings.rs.html b/src/cairo_native/metadata/realloc_bindings.rs.html
    index 710777cbc..0bea2b34e 100644
    --- a/src/cairo_native/metadata/realloc_bindings.rs.html
    +++ b/src/cairo_native/metadata/realloc_bindings.rs.html
    @@ -1,4 +1,5 @@
    -realloc_bindings.rs - source
    1
    +realloc_bindings.rs - source

    cairo_native/metadata/
    realloc_bindings.rs

    +1
     2
     3
     4
    @@ -89,8 +90,7 @@
     89
     90
     91
    -92
    -
    //! # Memory allocation external bindings
    +92
    //! # Memory allocation external bindings
     //!
     //! This metadata ensures that the bindings to the C function `realloc` exist in the current
     //! compilation context.
    diff --git a/src/cairo_native/metadata/runtime_bindings.rs.html b/src/cairo_native/metadata/runtime_bindings.rs.html
    index 27cd4ada8..cd7d5fd13 100644
    --- a/src/cairo_native/metadata/runtime_bindings.rs.html
    +++ b/src/cairo_native/metadata/runtime_bindings.rs.html
    @@ -1,4 +1,5 @@
    -runtime_bindings.rs - source
    1
    +runtime_bindings.rs - source

    cairo_native/metadata/
    runtime_bindings.rs

    +1
     2
     3
     4
    @@ -994,8 +995,7 @@
     994
     995
     996
    -997
    -
    //! # Runtime library bindings
    +997
    //! # Runtime library bindings
     //!
     //! This metadata ensures that the bindings to the runtime functions exist in the current
     //! compilation context.
    diff --git a/src/cairo_native/metadata/tail_recursion.rs.html b/src/cairo_native/metadata/tail_recursion.rs.html
    index dd9d6cbee..36ef4bc51 100644
    --- a/src/cairo_native/metadata/tail_recursion.rs.html
    +++ b/src/cairo_native/metadata/tail_recursion.rs.html
    @@ -1,4 +1,5 @@
    -tail_recursion.rs - source
    1
    +tail_recursion.rs - source

    cairo_native/metadata/
    tail_recursion.rs

    +1
     2
     3
     4
    @@ -82,8 +83,7 @@
     82
     83
     84
    -85
    -
    //! # Tail recursion information
    +85
    //! # Tail recursion information
     //!
     //! Whenever the compiler detects a direct tail-recursive function call it'll insert this metadata.
     //! If the libfunc handler decides to use it by setting a return target, the compiler will insert
    diff --git a/src/cairo_native/module.rs.html b/src/cairo_native/module.rs.html
    index 428469453..b28f447e8 100644
    --- a/src/cairo_native/module.rs.html
    +++ b/src/cairo_native/module.rs.html
    @@ -1,4 +1,5 @@
    -module.rs - source
    1
    +module.rs - source

    cairo_native/
    module.rs

    +1
     2
     3
     4
    @@ -167,8 +168,7 @@
     167
     168
     169
    -170
    -
    use crate::metadata::MetadataStorage;
    +170
    use crate::metadata::MetadataStorage;
     use cairo_lang_sierra::{
         extensions::core::{CoreLibfunc, CoreType},
         program_registry::ProgramRegistry,
    diff --git a/src/cairo_native/starknet.rs.html b/src/cairo_native/starknet.rs.html
    index b936c8a27..89b6d6c18 100644
    --- a/src/cairo_native/starknet.rs.html
    +++ b/src/cairo_native/starknet.rs.html
    @@ -1,4 +1,5 @@
    -starknet.rs - source
    1
    +starknet.rs - source

    cairo_native/
    starknet.rs

    +1
     2
     3
     4
    @@ -1729,8 +1730,7 @@
     1729
     1730
     1731
    -1732
    -
    //! Starknet related code for `cairo_native`
    +1732
    //! Starknet related code for `cairo_native`
     
     use serde::{Deserialize, Serialize};
     use starknet_types_core::felt::Felt;
    diff --git a/src/cairo_native/starknet_stub.rs.html b/src/cairo_native/starknet_stub.rs.html
    index 488ef2f1d..85f6dcb89 100644
    --- a/src/cairo_native/starknet_stub.rs.html
    +++ b/src/cairo_native/starknet_stub.rs.html
    @@ -1,4 +1,5 @@
    -starknet_stub.rs - source
    1
    +starknet_stub.rs - source

    cairo_native/
    starknet_stub.rs

    +1
     2
     3
     4
    @@ -1081,8 +1082,7 @@
     1081
     1082
     1083
    -1084
    -
    //! A (somewhat) usable implementation of the starknet syscall handler trait.
    +1084
    //! A (somewhat) usable implementation of the starknet syscall handler trait.
     
     use std::{
         collections::{HashMap, VecDeque},
    diff --git a/src/cairo_native/types.rs.html b/src/cairo_native/types.rs.html
    index 87b16786e..02e06715e 100644
    --- a/src/cairo_native/types.rs.html
    +++ b/src/cairo_native/types.rs.html
    @@ -1,4 +1,5 @@
    -types.rs - source
    1
    +types.rs - source

    cairo_native/
    types.rs

    +1
     2
     3
     4
    @@ -1010,8 +1011,7 @@
     1010
     1011
     1012
    -1013
    -
    //! # Compiler type infrastructure
    +1013
    //! # Compiler type infrastructure
     //!
     //! Contains type generation stuff (aka. conversion from Sierra to MLIR types).
     
    @@ -1978,13 +1978,13 @@
         }
     }
     
    -impl<'a, T> AsRef<T> for WithSelf<'a, T> {
    +impl<T> AsRef<T> for WithSelf<'_, T> {
         fn as_ref(&self) -> &T {
             self.inner
         }
     }
     
    -impl<'a, T> Deref for WithSelf<'a, T> {
    +impl<T> Deref for WithSelf<'_, T> {
         type Target = T;
     
         fn deref(&self) -> &T {
    diff --git a/src/cairo_native/types/array.rs.html b/src/cairo_native/types/array.rs.html
    index 73e79a216..1b5416a68 100644
    --- a/src/cairo_native/types/array.rs.html
    +++ b/src/cairo_native/types/array.rs.html
    @@ -1,4 +1,5 @@
    -array.rs - source
    1
    +array.rs - source

    cairo_native/types/
    array.rs

    +1
     2
     3
     4
    @@ -439,8 +440,7 @@
     439
     440
     441
    -442
    -
    //! # Array type
    +442
    //! # Array type
     //!
     //! An array type is a dynamically allocated list of items.
     //!
    diff --git a/src/cairo_native/types/bitwise.rs.html b/src/cairo_native/types/bitwise.rs.html
    index 26cb212e9..19bb16dc5 100644
    --- a/src/cairo_native/types/bitwise.rs.html
    +++ b/src/cairo_native/types/bitwise.rs.html
    @@ -1,4 +1,5 @@
    -bitwise.rs - source
    1
    +bitwise.rs - source

    cairo_native/types/
    bitwise.rs

    +1
     2
     3
     4
    @@ -28,8 +29,7 @@
     28
     29
     30
    -31
    -
    //! # Bitwise type
    +31
    //! # Bitwise type
     //!
     //! The bitwise type is used in the VM for computing bitwise operations. Since this can be done
     //! natively in MLIR, this type is effectively an unit type.
    diff --git a/src/cairo_native/types/bounded_int.rs.html b/src/cairo_native/types/bounded_int.rs.html
    index 7039b3aa3..ff2488c6d 100644
    --- a/src/cairo_native/types/bounded_int.rs.html
    +++ b/src/cairo_native/types/bounded_int.rs.html
    @@ -1,4 +1,5 @@
    -bounded_int.rs - source
    1
    +bounded_int.rs - source

    cairo_native/types/
    bounded_int.rs

    +1
     2
     3
     4
    @@ -33,8 +34,7 @@
     33
     34
     35
    -36
    -
    //! # `BoundedInt` type
    +36
    //! # `BoundedInt` type
     //!
     //! A `BoundedInt` is a int with a lower and high bound.
     //!
    diff --git a/src/cairo_native/types/box.rs.html b/src/cairo_native/types/box.rs.html
    index 375e2eed2..4576cc0ff 100644
    --- a/src/cairo_native/types/box.rs.html
    +++ b/src/cairo_native/types/box.rs.html
    @@ -1,4 +1,5 @@
    -box.rs - source
    1
    +box.rs - source

    cairo_native/types/
    box.rs

    +1
     2
     3
     4
    @@ -164,8 +165,7 @@
     164
     165
     166
    -167
    -
    //! # Box type
    +167
    //! # Box type
     //!
     //! The type box for a given type `T`.
     //!
    diff --git a/src/cairo_native/types/builtin_costs.rs.html b/src/cairo_native/types/builtin_costs.rs.html
    index f50cf337b..1af1d0a64 100644
    --- a/src/cairo_native/types/builtin_costs.rs.html
    +++ b/src/cairo_native/types/builtin_costs.rs.html
    @@ -1,4 +1,5 @@
    -builtin_costs.rs - source
    1
    +builtin_costs.rs - source

    cairo_native/types/
    builtin_costs.rs

    +1
     2
     3
     4
    @@ -30,8 +31,7 @@
     30
     31
     32
    -33
    -
    //! # Builtin costs type
    +33
    //! # Builtin costs type
     //!
     //! A ptr to a list of u64, this list will not change at runtime in size and thus we only really need to store the pointer,
     //! it can be allocated on the stack on rust side and passed.
    diff --git a/src/cairo_native/types/bytes31.rs.html b/src/cairo_native/types/bytes31.rs.html
    index 46b09918b..431c6eba5 100644
    --- a/src/cairo_native/types/bytes31.rs.html
    +++ b/src/cairo_native/types/bytes31.rs.html
    @@ -1,4 +1,5 @@
    -bytes31.rs - source
    1
    +bytes31.rs - source

    cairo_native/types/
    bytes31.rs

    +1
     2
     3
     4
    @@ -26,8 +27,7 @@
     26
     27
     28
    -29
    -
    //! # `bytes31` type
    +29
    //! # `bytes31` type
     //!
     //! A `bytes31` is a 248-bit number (31 bytes).
     
    diff --git a/src/cairo_native/types/circuit.rs.html b/src/cairo_native/types/circuit.rs.html
    index 311eff208..7645ce7e5 100644
    --- a/src/cairo_native/types/circuit.rs.html
    +++ b/src/cairo_native/types/circuit.rs.html
    @@ -1,4 +1,5 @@
    -circuit.rs - source
    1
    +circuit.rs - source

    cairo_native/types/
    circuit.rs

    +1
     2
     3
     4
    @@ -283,8 +284,7 @@
     283
     284
     285
    -286
    -
    //! # `Circuit` type
    +286
    //! # `Circuit` type
     
     use std::alloc::Layout;
     
    diff --git a/src/cairo_native/types/coupon.rs.html b/src/cairo_native/types/coupon.rs.html
    index 9047270e7..16abf3c83 100644
    --- a/src/cairo_native/types/coupon.rs.html
    +++ b/src/cairo_native/types/coupon.rs.html
    @@ -1,4 +1,5 @@
    -coupon.rs - source
    1
    +coupon.rs - source

    cairo_native/types/
    coupon.rs

    +1
     2
     3
     4
    @@ -26,8 +27,7 @@
     26
     27
     28
    -29
    -
    //! # Coupon type.
    +29
    //! # Coupon type.
     
     use super::WithSelf;
     use crate::{error::Result, metadata::MetadataStorage};
    diff --git a/src/cairo_native/types/ec_op.rs.html b/src/cairo_native/types/ec_op.rs.html
    index 763b14672..563bf0ab3 100644
    --- a/src/cairo_native/types/ec_op.rs.html
    +++ b/src/cairo_native/types/ec_op.rs.html
    @@ -1,4 +1,5 @@
    -ec_op.rs - source
    1
    +ec_op.rs - source

    cairo_native/types/
    ec_op.rs

    +1
     2
     3
     4
    @@ -28,8 +29,7 @@
     28
     29
     30
    -31
    -
    //! # Elliptic curve operation type
    +31
    //! # Elliptic curve operation type
     //!
     //! The ec operation type is used in the VM for computing bitwise operations. Since this can be done
     //! natively in MLIR, this type is effectively an unit type.
    diff --git a/src/cairo_native/types/ec_point.rs.html b/src/cairo_native/types/ec_point.rs.html
    index 247f9b739..646c283c2 100644
    --- a/src/cairo_native/types/ec_point.rs.html
    +++ b/src/cairo_native/types/ec_point.rs.html
    @@ -1,4 +1,5 @@
    -ec_point.rs - source
    1
    +ec_point.rs - source

    cairo_native/types/
    ec_point.rs

    +1
     2
     3
     4
    @@ -32,8 +33,7 @@
     32
     33
     34
    -35
    -
    //! # Elliptic curve point type
    +35
    //! # Elliptic curve point type
     
     use super::WithSelf;
     use crate::{error::Result, metadata::MetadataStorage};
    diff --git a/src/cairo_native/types/ec_state.rs.html b/src/cairo_native/types/ec_state.rs.html
    index 5a0728f1c..2b53d72b0 100644
    --- a/src/cairo_native/types/ec_state.rs.html
    +++ b/src/cairo_native/types/ec_state.rs.html
    @@ -1,4 +1,5 @@
    -ec_state.rs - source
    1
    +ec_state.rs - source

    cairo_native/types/
    ec_state.rs

    +1
     2
     3
     4
    @@ -32,8 +33,7 @@
     32
     33
     34
    -35
    -
    //! # Elliptic curve state type
    +35
    //! # Elliptic curve state type
     
     use super::WithSelf;
     use crate::{error::Result, metadata::MetadataStorage};
    diff --git a/src/cairo_native/types/enum.rs.html b/src/cairo_native/types/enum.rs.html
    index 9b5474357..4767f893d 100644
    --- a/src/cairo_native/types/enum.rs.html
    +++ b/src/cairo_native/types/enum.rs.html
    @@ -1,4 +1,5 @@
    -enum.rs - source
    1
    +enum.rs - source

    cairo_native/types/
    enum.rs

    +1
     2
     3
     4
    @@ -832,8 +833,7 @@
     832
     833
     834
    -835
    -
    //! # Enum type
    +835
    //! # Enum type
     //!
     //! Enumerations are special because they can potentially represent an unlimited amount of things at
     //! the same time. They are similar to Rust enums since they can contain data along with the
    diff --git a/src/cairo_native/types/felt252.rs.html b/src/cairo_native/types/felt252.rs.html
    index d515999ce..559d9ac27 100644
    --- a/src/cairo_native/types/felt252.rs.html
    +++ b/src/cairo_native/types/felt252.rs.html
    @@ -1,4 +1,5 @@
    -felt252.rs - source
    1
    +felt252.rs - source

    cairo_native/types/
    felt252.rs

    +1
     2
     3
     4
    @@ -29,8 +30,7 @@
     29
     30
     31
    -32
    -
    //! # `felt252` type
    +32
    //! # `felt252` type
     //!
     //! A `felt252` is a 252-bit number within a
     //! [finite field](https://en.wikipedia.org/wiki/Finite_field) modulo
    diff --git a/src/cairo_native/types/felt252_dict.rs.html b/src/cairo_native/types/felt252_dict.rs.html
    index b6b7845f9..71c5a24e7 100644
    --- a/src/cairo_native/types/felt252_dict.rs.html
    +++ b/src/cairo_native/types/felt252_dict.rs.html
    @@ -1,4 +1,5 @@
    -felt252_dict.rs - source
    1
    +felt252_dict.rs - source

    cairo_native/types/
    felt252_dict.rs

    +1
     2
     3
     4
    @@ -493,8 +494,7 @@
     493
     494
     495
    -496
    -
    //! # `Felt` dictionary type
    +496
    //! # `Felt` dictionary type
     //!
     //! A key value storage for values whose type implement Copy. The key is always a felt.
     //!
    diff --git a/src/cairo_native/types/felt252_dict_entry.rs.html b/src/cairo_native/types/felt252_dict_entry.rs.html
    index 2bc52b293..511f989d1 100644
    --- a/src/cairo_native/types/felt252_dict_entry.rs.html
    +++ b/src/cairo_native/types/felt252_dict_entry.rs.html
    @@ -1,4 +1,5 @@
    -felt252_dict_entry.rs - source
    1
    +felt252_dict_entry.rs - source

    cairo_native/types/
    felt252_dict_entry.rs

    +1
     2
     3
     4
    @@ -44,8 +45,7 @@
     44
     45
     46
    -47
    -
    //! # `Felt` dictionary entry type
    +47
    //! # `Felt` dictionary entry type
     //!
     //! The entry type returning when getting a value from a dictionary.
     //!
    diff --git a/src/cairo_native/types/gas_builtin.rs.html b/src/cairo_native/types/gas_builtin.rs.html
    index 3dc64a263..a7cae400d 100644
    --- a/src/cairo_native/types/gas_builtin.rs.html
    +++ b/src/cairo_native/types/gas_builtin.rs.html
    @@ -1,4 +1,5 @@
    -gas_builtin.rs - source
    1
    +gas_builtin.rs - source

    cairo_native/types/
    gas_builtin.rs

    +1
     2
     3
     4
    @@ -28,8 +29,7 @@
     28
     29
     30
    -31
    -
    //! # Gas builtin type
    +31
    //! # Gas builtin type
     //!
     //! The gas builtin is just a number indicating how many
     //! gas units have been used.
    diff --git a/src/cairo_native/types/int_range.rs.html b/src/cairo_native/types/int_range.rs.html
    index 7f746c110..cfe43678e 100644
    --- a/src/cairo_native/types/int_range.rs.html
    +++ b/src/cairo_native/types/int_range.rs.html
    @@ -1,4 +1,5 @@
    -int_range.rs - source
    1
    +int_range.rs - source

    cairo_native/types/
    int_range.rs

    +1
     2
     3
     4
    @@ -43,8 +44,7 @@
     43
     44
     45
    -46
    -
    //! # Int range of type T
    +46
    //! # Int range of type T
     //!
     //! A range [x, y) where x <= y
     //!
    diff --git a/src/cairo_native/types/non_zero.rs.html b/src/cairo_native/types/non_zero.rs.html
    index 88da3832b..e08612953 100644
    --- a/src/cairo_native/types/non_zero.rs.html
    +++ b/src/cairo_native/types/non_zero.rs.html
    @@ -1,4 +1,5 @@
    -non_zero.rs - source
    1
    +non_zero.rs - source

    cairo_native/types/
    non_zero.rs

    +1
     2
     3
     4
    @@ -38,8 +39,7 @@
     38
     39
     40
    -41
    -
    //! # Non-zero type
    +41
    //! # Non-zero type
     //!
     //! The non-zero generic type guarantees that whatever value it has is not zero.
     //!
    diff --git a/src/cairo_native/types/nullable.rs.html b/src/cairo_native/types/nullable.rs.html
    index dbdcd4714..54e7a76b9 100644
    --- a/src/cairo_native/types/nullable.rs.html
    +++ b/src/cairo_native/types/nullable.rs.html
    @@ -1,4 +1,5 @@
    -nullable.rs - source
    1
    +nullable.rs - source

    cairo_native/types/
    nullable.rs

    +1
     2
     3
     4
    @@ -277,8 +278,7 @@
     277
     278
     279
    -280
    -
    //! # Nullable type
    +280
    //! # Nullable type
     //!
     //! Nullable is represented as a pointer, usually the null value will point to a alloca in the stack.
     //!
    diff --git a/src/cairo_native/types/pedersen.rs.html b/src/cairo_native/types/pedersen.rs.html
    index 7f13cb583..99f08a34c 100644
    --- a/src/cairo_native/types/pedersen.rs.html
    +++ b/src/cairo_native/types/pedersen.rs.html
    @@ -1,4 +1,5 @@
    -pedersen.rs - source
    1
    +pedersen.rs - source

    cairo_native/types/
    pedersen.rs

    +1
     2
     3
     4
    @@ -27,8 +28,7 @@
     27
     28
     29
    -30
    -
    //! # Pedersen type
    +30
    //! # Pedersen type
     //!
     //! Type representing the Pedersen hash builtin.
     
    diff --git a/src/cairo_native/types/poseidon.rs.html b/src/cairo_native/types/poseidon.rs.html
    index 13bb6049a..31d80666f 100644
    --- a/src/cairo_native/types/poseidon.rs.html
    +++ b/src/cairo_native/types/poseidon.rs.html
    @@ -1,4 +1,5 @@
    -poseidon.rs - source
    1
    +poseidon.rs - source

    cairo_native/types/
    poseidon.rs

    +1
     2
     3
     4
    @@ -27,8 +28,7 @@
     27
     28
     29
    -30
    -
    //! # Poseidon type
    +30
    //! # Poseidon type
     //!
     //! Type representing the Poseidon builtin.
     
    diff --git a/src/cairo_native/types/range_check.rs.html b/src/cairo_native/types/range_check.rs.html
    index 203886333..5c79e1305 100644
    --- a/src/cairo_native/types/range_check.rs.html
    +++ b/src/cairo_native/types/range_check.rs.html
    @@ -1,4 +1,5 @@
    -range_check.rs - source
    1
    +range_check.rs - source

    cairo_native/types/
    range_check.rs

    +1
     2
     3
     4
    @@ -28,8 +29,7 @@
     28
     29
     30
    -31
    -
    //! # Builtin costs type
    +31
    //! # Builtin costs type
     //!
     //! The range check type is used in the VM for checking whether values are in a specific range.
     //! Since this can be done natively in MLIR, this type is effectively an unit type.
    diff --git a/src/cairo_native/types/segment_arena.rs.html b/src/cairo_native/types/segment_arena.rs.html
    index d428080db..b64f3be08 100644
    --- a/src/cairo_native/types/segment_arena.rs.html
    +++ b/src/cairo_native/types/segment_arena.rs.html
    @@ -1,4 +1,5 @@
    -segment_arena.rs - source
    1
    +segment_arena.rs - source

    cairo_native/types/
    segment_arena.rs

    +1
     2
     3
     4
    @@ -25,8 +26,7 @@
     25
     26
     27
    -28
    -
    //! # Segment arena type
    +28
    //! # Segment arena type
     
     use super::WithSelf;
     use crate::{error::Result, metadata::MetadataStorage};
    diff --git a/src/cairo_native/types/snapshot.rs.html b/src/cairo_native/types/snapshot.rs.html
    index c96c8f088..7560962bd 100644
    --- a/src/cairo_native/types/snapshot.rs.html
    +++ b/src/cairo_native/types/snapshot.rs.html
    @@ -1,4 +1,5 @@
    -snapshot.rs - source
    1
    +snapshot.rs - source

    cairo_native/types/
    snapshot.rs

    +1
     2
     3
     4
    @@ -145,8 +146,7 @@
     145
     146
     147
    -148
    -
    //! # Snapshot type
    +148
    //! # Snapshot type
     //!
     //! The type snapshot for a given type `T`.
     //!
    diff --git a/src/cairo_native/types/squashed_felt252_dict.rs.html b/src/cairo_native/types/squashed_felt252_dict.rs.html
    index b401fd1f4..c08018c2c 100644
    --- a/src/cairo_native/types/squashed_felt252_dict.rs.html
    +++ b/src/cairo_native/types/squashed_felt252_dict.rs.html
    @@ -1,4 +1,5 @@
    -squashed_felt252_dict.rs - source
    1
    +squashed_felt252_dict.rs - source

    cairo_native/types/
    squashed_felt252_dict.rs

    +1
     2
     3
     4
    @@ -25,8 +26,7 @@
     25
     26
     27
    -28
    -
    //! # Squashed `Felt` dictionary type
    +28
    //! # Squashed `Felt` dictionary type
     
     use super::WithSelf;
     use crate::{error::Result, metadata::MetadataStorage};
    diff --git a/src/cairo_native/types/starknet.rs.html b/src/cairo_native/types/starknet.rs.html
    index cdc13a1b1..c0d607f23 100644
    --- a/src/cairo_native/types/starknet.rs.html
    +++ b/src/cairo_native/types/starknet.rs.html
    @@ -1,4 +1,5 @@
    -starknet.rs - source
    1
    +starknet.rs - source

    cairo_native/types/
    starknet.rs

    +1
     2
     3
     4
    @@ -245,8 +246,7 @@
     245
     246
     247
    -248
    -
    //! # Starknet types
    +248
    //! # Starknet types
     //!
     //! ## ClassHash
     //! Type for Starknet class hash, a value in the range [0, 2 ** 251).
    diff --git a/src/cairo_native/types/struct.rs.html b/src/cairo_native/types/struct.rs.html
    index feae7df25..c773afac0 100644
    --- a/src/cairo_native/types/struct.rs.html
    +++ b/src/cairo_native/types/struct.rs.html
    @@ -1,4 +1,5 @@
    -struct.rs - source
    1
    +struct.rs - source

    cairo_native/types/
    struct.rs

    +1
     2
     3
     4
    @@ -189,8 +190,7 @@
     189
     190
     191
    -192
    -
    //! # Struct type
    +192
    //! # Struct type
     //!
     //! A struct is just a fixed collection of values that may have different types, which are known at
     //! compile-time. Its fields are properly aligned and respect the declaration's field ordering.
    diff --git a/src/cairo_native/types/uint128.rs.html b/src/cairo_native/types/uint128.rs.html
    index 69ffbc395..7b239862a 100644
    --- a/src/cairo_native/types/uint128.rs.html
    +++ b/src/cairo_native/types/uint128.rs.html
    @@ -1,4 +1,5 @@
    -uint128.rs - source
    1
    +uint128.rs - source

    cairo_native/types/
    uint128.rs

    +1
     2
     3
     4
    @@ -25,8 +26,7 @@
     25
     26
     27
    -28
    -
    //! # Unsigned 128-bit integer type
    +28
    //! # Unsigned 128-bit integer type
     
     use super::WithSelf;
     use crate::{error::Result, metadata::MetadataStorage};
    diff --git a/src/cairo_native/types/uint128_mul_guarantee.rs.html b/src/cairo_native/types/uint128_mul_guarantee.rs.html
    index 2a4b91015..9751b6e35 100644
    --- a/src/cairo_native/types/uint128_mul_guarantee.rs.html
    +++ b/src/cairo_native/types/uint128_mul_guarantee.rs.html
    @@ -1,4 +1,5 @@
    -uint128_mul_guarantee.rs - source
    1
    +uint128_mul_guarantee.rs - source

    cairo_native/types/
    uint128_mul_guarantee.rs

    +1
     2
     3
     4
    @@ -26,8 +27,7 @@
     26
     27
     28
    -29
    -
    //! # Unsigned 128-bit multiplication guarantee type
    +29
    //! # Unsigned 128-bit multiplication guarantee type
     
     use super::WithSelf;
     use crate::{error::Result, metadata::MetadataStorage};
    diff --git a/src/cairo_native/types/uint16.rs.html b/src/cairo_native/types/uint16.rs.html
    index 55d534e5c..e1e9521c3 100644
    --- a/src/cairo_native/types/uint16.rs.html
    +++ b/src/cairo_native/types/uint16.rs.html
    @@ -1,4 +1,5 @@
    -uint16.rs - source
    1
    +uint16.rs - source

    cairo_native/types/
    uint16.rs

    +1
     2
     3
     4
    @@ -25,8 +26,7 @@
     25
     26
     27
    -28
    -
    //! # Unsigned 16-bit integer type
    +28
    //! # Unsigned 16-bit integer type
     
     use super::WithSelf;
     use crate::{error::Result, metadata::MetadataStorage};
    diff --git a/src/cairo_native/types/uint32.rs.html b/src/cairo_native/types/uint32.rs.html
    index 52e0fe7f1..b2329db93 100644
    --- a/src/cairo_native/types/uint32.rs.html
    +++ b/src/cairo_native/types/uint32.rs.html
    @@ -1,4 +1,5 @@
    -uint32.rs - source
    1
    +uint32.rs - source

    cairo_native/types/
    uint32.rs

    +1
     2
     3
     4
    @@ -25,8 +26,7 @@
     25
     26
     27
    -28
    -
    //! # Unsigned 32-bit integer type
    +28
    //! # Unsigned 32-bit integer type
     
     use super::WithSelf;
     use crate::{error::Result, metadata::MetadataStorage};
    diff --git a/src/cairo_native/types/uint64.rs.html b/src/cairo_native/types/uint64.rs.html
    index edf2238fc..f9362815f 100644
    --- a/src/cairo_native/types/uint64.rs.html
    +++ b/src/cairo_native/types/uint64.rs.html
    @@ -1,4 +1,5 @@
    -uint64.rs - source
    1
    +uint64.rs - source

    cairo_native/types/
    uint64.rs

    +1
     2
     3
     4
    @@ -25,8 +26,7 @@
     25
     26
     27
    -28
    -
    //! # Unsigned 64-bit integer type
    +28
    //! # Unsigned 64-bit integer type
     
     use super::WithSelf;
     use crate::{error::Result, metadata::MetadataStorage};
    diff --git a/src/cairo_native/types/uint8.rs.html b/src/cairo_native/types/uint8.rs.html
    index 4ed34a037..80cfdb5be 100644
    --- a/src/cairo_native/types/uint8.rs.html
    +++ b/src/cairo_native/types/uint8.rs.html
    @@ -1,4 +1,5 @@
    -uint8.rs - source
    1
    +uint8.rs - source

    cairo_native/types/
    uint8.rs

    +1
     2
     3
     4
    @@ -25,8 +26,7 @@
     25
     26
     27
    -28
    -
    //! # Unsigned 8-bit integer type
    +28
    //! # Unsigned 8-bit integer type
     
     use super::WithSelf;
     use crate::{error::Result, metadata::MetadataStorage};
    diff --git a/src/cairo_native/types/uninitialized.rs.html b/src/cairo_native/types/uninitialized.rs.html
    index a86654729..dc60f8887 100644
    --- a/src/cairo_native/types/uninitialized.rs.html
    +++ b/src/cairo_native/types/uninitialized.rs.html
    @@ -1,4 +1,5 @@
    -uninitialized.rs - source
    1
    +uninitialized.rs - source

    cairo_native/types/
    uninitialized.rs

    +1
     2
     3
     4
    @@ -25,8 +26,7 @@
     25
     26
     27
    -28
    -
    //! # Uninitialized type
    +28
    //! # Uninitialized type
     
     use super::WithSelf;
     use crate::{error::Result, metadata::MetadataStorage, utils::ProgramRegistryExt};
    diff --git a/src/cairo_native/utils.rs.html b/src/cairo_native/utils.rs.html
    index 463ca618a..0db22169c 100644
    --- a/src/cairo_native/utils.rs.html
    +++ b/src/cairo_native/utils.rs.html
    @@ -1,4 +1,5 @@
    -utils.rs - source
    1
    +utils.rs - source

    cairo_native/
    utils.rs

    +1
     2
     3
     4
    @@ -1125,8 +1126,7 @@
     1125
     1126
     1127
    -1128
    -
    //! # Various utilities
    +1128
    //! # Various utilities
     
     pub(crate) use self::{
         block_ext::{BlockExt, GepIndex},
    diff --git a/src/cairo_native/utils/block_ext.rs.html b/src/cairo_native/utils/block_ext.rs.html
    index 3c91a25e8..627a48270 100644
    --- a/src/cairo_native/utils/block_ext.rs.html
    +++ b/src/cairo_native/utils/block_ext.rs.html
    @@ -1,4 +1,5 @@
    -block_ext.rs - source
    1
    +block_ext.rs - source

    cairo_native/utils/
    block_ext.rs

    +1
     2
     3
     4
    @@ -570,8 +571,7 @@
     570
     571
     572
    -573
    -
    //! Trait that extends the melior Block type to aid in codegen and consistency.
    +573
    //! Trait that extends the melior Block type to aid in codegen and consistency.
     
     use crate::{error::Error, utils::get_integer_layout};
     use melior::{
    diff --git a/src/cairo_native/utils/mem_tracing.rs.html b/src/cairo_native/utils/mem_tracing.rs.html
    index 4e2d87900..2be6f8575 100644
    --- a/src/cairo_native/utils/mem_tracing.rs.html
    +++ b/src/cairo_native/utils/mem_tracing.rs.html
    @@ -1,4 +1,5 @@
    -mem_tracing.rs - source
    1
    +mem_tracing.rs - source

    cairo_native/utils/
    mem_tracing.rs

    +1
     2
     3
     4
    @@ -128,8 +129,7 @@
     128
     129
     130
    -131
    -
    #![cfg(feature = "with-mem-tracing")]
    +131
    #![cfg(feature = "with-mem-tracing")]
     
     use libc::{c_void, size_t};
     use melior::ExecutionEngine;
    diff --git a/src/cairo_native/utils/program_registry_ext.rs.html b/src/cairo_native/utils/program_registry_ext.rs.html
    index 87f767c32..9cbcb9269 100644
    --- a/src/cairo_native/utils/program_registry_ext.rs.html
    +++ b/src/cairo_native/utils/program_registry_ext.rs.html
    @@ -1,4 +1,5 @@
    -program_registry_ext.rs - source
    1
    +program_registry_ext.rs - source

    cairo_native/utils/
    program_registry_ext.rs

    +1
     2
     3
     4
    @@ -54,8 +55,7 @@
     54
     55
     56
    -57
    -
    use crate::{error::Result, metadata::MetadataStorage, types::TypeBuilder};
    +57
    use crate::{error::Result, metadata::MetadataStorage, types::TypeBuilder};
     use cairo_lang_sierra::{
         extensions::core::{CoreLibfunc, CoreType},
         ids::ConcreteTypeId,
    diff --git a/src/cairo_native/utils/range_ext.rs.html b/src/cairo_native/utils/range_ext.rs.html
    index 4a1c20318..e91f13c17 100644
    --- a/src/cairo_native/utils/range_ext.rs.html
    +++ b/src/cairo_native/utils/range_ext.rs.html
    @@ -1,4 +1,5 @@
    -range_ext.rs - source
    1
    +range_ext.rs - source

    cairo_native/utils/
    range_ext.rs

    +1
     2
     3
     4
    @@ -43,8 +44,7 @@
     43
     44
     45
    -46
    -
    use cairo_lang_sierra::extensions::utils::Range;
    +46
    use cairo_lang_sierra::extensions::utils::Range;
     use num_bigint::{BigInt, BigUint, Sign};
     use num_traits::One;
     
    diff --git a/src/cairo_native/values.rs.html b/src/cairo_native/values.rs.html
    index afc7fb155..95ba4701c 100644
    --- a/src/cairo_native/values.rs.html
    +++ b/src/cairo_native/values.rs.html
    @@ -1,4 +1,5 @@
    -values.rs - source
    1
    +values.rs - source

    cairo_native/
    values.rs

    +1
     2
     3
     4
    @@ -1756,8 +1757,7 @@
     1756
     1757
     1758
    -1759
    -
    //! # Params and return values de/serialization
    +1759
    //! # Params and return values de/serialization
     //!
     //! A Rusty interface to provide parameters to cairo-native entry point calls.
     
    diff --git a/src/cairo_native_compile/cairo-native-compile.rs.html b/src/cairo_native_compile/cairo-native-compile.rs.html
    index 05c2a6f9d..206b15ea7 100644
    --- a/src/cairo_native_compile/cairo-native-compile.rs.html
    +++ b/src/cairo_native_compile/cairo-native-compile.rs.html
    @@ -1,4 +1,5 @@
    -cairo-native-compile.rs - source
    1
    +cairo-native-compile.rs - source

    cairo_native_compile/
    cairo-native-compile.rs

    +1
     2
     3
     4
    @@ -84,8 +85,7 @@
     84
     85
     86
    -87
    -
    use anyhow::Context;
    +87
    use anyhow::Context;
     use cairo_lang_compiler::project::check_compiler_path;
     use cairo_native::{
         context::NativeContext, module_to_object, object_to_shared_lib, utils::cairo_to_sierra,
    diff --git a/src/cairo_native_dump/cairo-native-dump.rs.html b/src/cairo_native_dump/cairo-native-dump.rs.html
    index aa8fcac3f..d4bf6b0f6 100644
    --- a/src/cairo_native_dump/cairo-native-dump.rs.html
    +++ b/src/cairo_native_dump/cairo-native-dump.rs.html
    @@ -1,4 +1,5 @@
    -cairo-native-dump.rs - source
    1
    +cairo-native-dump.rs - source

    cairo_native_dump/
    cairo-native-dump.rs

    +1
     2
     3
     4
    @@ -149,8 +150,7 @@
     149
     150
     151
    -152
    -
    use cairo_lang_compiler::{
    +152
    use cairo_lang_compiler::{
         compile_prepared_db, db::RootDatabase, project::setup_project, CompilerConfig,
     };
     use cairo_lang_defs::plugin::NamedPlugin;
    diff --git a/src/cairo_native_run/cairo-native-run.rs.html b/src/cairo_native_run/cairo-native-run.rs.html
    index 92f635240..bd444ef53 100644
    --- a/src/cairo_native_run/cairo-native-run.rs.html
    +++ b/src/cairo_native_run/cairo-native-run.rs.html
    @@ -1,4 +1,5 @@
    -cairo-native-run.rs - source
    1
    +cairo-native-run.rs - source

    cairo_native_run/
    cairo-native-run.rs

    +1
     2
     3
     4
    @@ -139,8 +140,7 @@
     139
     140
     141
    -142
    -
    use anyhow::Context;
    +142
    use anyhow::Context;
     use cairo_lang_compiler::{
         compile_prepared_db, db::RootDatabase, project::setup_project, CompilerConfig,
     };
    diff --git a/src/cairo_native_run/utils/mod.rs.html b/src/cairo_native_run/utils/mod.rs.html
    index 7ba9d50a1..777a0c635 100644
    --- a/src/cairo_native_run/utils/mod.rs.html
    +++ b/src/cairo_native_run/utils/mod.rs.html
    @@ -1,4 +1,5 @@
    -mod.rs - source
    1
    +mod.rs - source

    cairo_native_run/utils/
    mod.rs

    +1
     2
     3
     4
    @@ -579,8 +580,7 @@
     579
     580
     581
    -582
    -
    #![cfg(feature = "build-cli")]
    +582
    #![cfg(feature = "build-cli")]
     #![allow(dead_code)]
     
     use anyhow::bail;
    diff --git a/src/cairo_native_run/utils/test.rs.html b/src/cairo_native_run/utils/test.rs.html
    index a84209d20..77bd0bde7 100644
    --- a/src/cairo_native_run/utils/test.rs.html
    +++ b/src/cairo_native_run/utils/test.rs.html
    @@ -1,4 +1,5 @@
    -test.rs - source
    1
    +test.rs - source

    cairo_native_run/utils/
    test.rs

    +1
     2
     3
     4
    @@ -276,8 +277,7 @@
     276
     277
     278
    -279
    -
    use super::{find_function, format_for_panic, result_to_runresult, RunArgs, RunMode};
    +279
    use super::{find_function, format_for_panic, result_to_runresult, RunArgs, RunMode};
     use anyhow::Context;
     use cairo_lang_runner::RunResultValue;
     use cairo_lang_sierra::{extensions::gas::CostTokenType, ids::FunctionId, program::Program};
    diff --git a/src/cairo_native_runtime/lib.rs.html b/src/cairo_native_runtime/lib.rs.html
    index da0905640..3804deba6 100644
    --- a/src/cairo_native_runtime/lib.rs.html
    +++ b/src/cairo_native_runtime/lib.rs.html
    @@ -1,4 +1,5 @@
    -lib.rs - source
    1
    +lib.rs - source

    cairo_native_runtime/
    lib.rs

    +1
     2
     3
     4
    @@ -908,8 +909,7 @@
     908
     909
     910
    -911
    -
    #![allow(non_snake_case)]
    +911
    #![allow(non_snake_case)]
     
     use cairo_lang_sierra_gas::core_libfunc_cost::{
         DICT_SQUASH_REPEATED_ACCESS_COST, DICT_SQUASH_UNIQUE_KEY_COST,
    diff --git a/src/cairo_native_stress/main.rs.html b/src/cairo_native_stress/main.rs.html
    index cfe6a320d..0f95f09a7 100644
    --- a/src/cairo_native_stress/main.rs.html
    +++ b/src/cairo_native_stress/main.rs.html
    @@ -1,4 +1,5 @@
    -main.rs - source
    1
    +main.rs - source

    cairo_native_stress/
    main.rs

    +1
     2
     3
     4
    @@ -365,8 +366,7 @@
     365
     366
     367
    -368
    -
    //! A stress tester for Cairo Native
    +368
    //! A stress tester for Cairo Native
     //!
     //! See `StressTestCommand` for documentation on the CLI.
     //!
    diff --git a/src/cairo_native_test/cairo-native-test.rs.html b/src/cairo_native_test/cairo-native-test.rs.html
    index 954c3f924..c9367dcb4 100644
    --- a/src/cairo_native_test/cairo-native-test.rs.html
    +++ b/src/cairo_native_test/cairo-native-test.rs.html
    @@ -1,4 +1,5 @@
    -cairo-native-test.rs - source
    1
    +cairo-native-test.rs - source

    cairo_native_test/
    cairo-native-test.rs

    +1
     2
     3
     4
    @@ -126,8 +127,7 @@
     126
     127
     128
    -129
    -
    use anyhow::bail;
    +129
    use anyhow::bail;
     use cairo_lang_compiler::{
         db::RootDatabase,
         diagnostics::DiagnosticsReporter,
    diff --git a/src/cairo_native_test/utils/mod.rs.html b/src/cairo_native_test/utils/mod.rs.html
    index 3a76cc4c4..170c439d1 100644
    --- a/src/cairo_native_test/utils/mod.rs.html
    +++ b/src/cairo_native_test/utils/mod.rs.html
    @@ -1,4 +1,5 @@
    -mod.rs - source
    1
    +mod.rs - source

    cairo_native_test/utils/
    mod.rs

    +1
     2
     3
     4
    @@ -579,8 +580,7 @@
     579
     580
     581
    -582
    -
    #![cfg(feature = "build-cli")]
    +582
    #![cfg(feature = "build-cli")]
     #![allow(dead_code)]
     
     use anyhow::bail;
    diff --git a/src/cairo_native_test/utils/test.rs.html b/src/cairo_native_test/utils/test.rs.html
    index 58173604d..e9d25306c 100644
    --- a/src/cairo_native_test/utils/test.rs.html
    +++ b/src/cairo_native_test/utils/test.rs.html
    @@ -1,4 +1,5 @@
    -test.rs - source
    1
    +test.rs - source

    cairo_native_test/utils/
    test.rs

    +1
     2
     3
     4
    @@ -276,8 +277,7 @@
     276
     277
     278
    -279
    -
    use super::{find_function, format_for_panic, result_to_runresult, RunArgs, RunMode};
    +279
    use super::{find_function, format_for_panic, result_to_runresult, RunArgs, RunMode};
     use anyhow::Context;
     use cairo_lang_runner::RunResultValue;
     use cairo_lang_sierra::{extensions::gas::CostTokenType, ids::FunctionId, program::Program};
    diff --git a/src/scarb_native_dump/scarb-native-dump.rs.html b/src/scarb_native_dump/scarb-native-dump.rs.html
    index 2170c6082..564a322a1 100644
    --- a/src/scarb_native_dump/scarb-native-dump.rs.html
    +++ b/src/scarb_native_dump/scarb-native-dump.rs.html
    @@ -1,4 +1,5 @@
    -scarb-native-dump.rs - source
    1
    +scarb-native-dump.rs - source

    scarb_native_dump/
    scarb-native-dump.rs

    +1
     2
     3
     4
    @@ -58,8 +59,7 @@
     58
     59
     60
    -61
    -
    use anyhow::Context;
    +61
    use anyhow::Context;
     use cairo_lang_sierra::program::VersionedProgram;
     use cairo_native::context::NativeContext;
     use melior::ir::operation::OperationPrintingFlags;
    diff --git a/src/scarb_native_dump/utils/mod.rs.html b/src/scarb_native_dump/utils/mod.rs.html
    index 20fd461f8..92b6c9634 100644
    --- a/src/scarb_native_dump/utils/mod.rs.html
    +++ b/src/scarb_native_dump/utils/mod.rs.html
    @@ -1,4 +1,5 @@
    -mod.rs - source
    1
    +mod.rs - source

    scarb_native_dump/utils/
    mod.rs

    +1
     2
     3
     4
    @@ -579,8 +580,7 @@
     579
     580
     581
    -582
    -
    #![cfg(feature = "build-cli")]
    +582
    #![cfg(feature = "build-cli")]
     #![allow(dead_code)]
     
     use anyhow::bail;
    diff --git a/src/scarb_native_dump/utils/test.rs.html b/src/scarb_native_dump/utils/test.rs.html
    index 246eac5f4..a95437434 100644
    --- a/src/scarb_native_dump/utils/test.rs.html
    +++ b/src/scarb_native_dump/utils/test.rs.html
    @@ -1,4 +1,5 @@
    -test.rs - source
    1
    +test.rs - source

    scarb_native_dump/utils/
    test.rs

    +1
     2
     3
     4
    @@ -276,8 +277,7 @@
     276
     277
     278
    -279
    -
    use super::{find_function, format_for_panic, result_to_runresult, RunArgs, RunMode};
    +279
    use super::{find_function, format_for_panic, result_to_runresult, RunArgs, RunMode};
     use anyhow::Context;
     use cairo_lang_runner::RunResultValue;
     use cairo_lang_sierra::{extensions::gas::CostTokenType, ids::FunctionId, program::Program};
    diff --git a/src/scarb_native_test/scarb-native-test.rs.html b/src/scarb_native_test/scarb-native-test.rs.html
    index 7164fcab5..e161be863 100644
    --- a/src/scarb_native_test/scarb-native-test.rs.html
    +++ b/src/scarb_native_test/scarb-native-test.rs.html
    @@ -1,4 +1,5 @@
    -scarb-native-test.rs - source
    1
    +scarb-native-test.rs - source

    scarb_native_test/
    scarb-native-test.rs

    +1
     2
     3
     4
    @@ -184,8 +185,7 @@
     184
     185
     186
    -187
    -
    use anyhow::Context;
    +187
    use anyhow::Context;
     use cairo_lang_sierra::program::VersionedProgram;
     use cairo_lang_test_plugin::{TestCompilation, TestCompilationMetadata};
     use clap::{Parser, ValueEnum};
    diff --git a/src/scarb_native_test/utils/mod.rs.html b/src/scarb_native_test/utils/mod.rs.html
    index d73a93fd7..f2f83cb57 100644
    --- a/src/scarb_native_test/utils/mod.rs.html
    +++ b/src/scarb_native_test/utils/mod.rs.html
    @@ -1,4 +1,5 @@
    -mod.rs - source
    1
    +mod.rs - source

    scarb_native_test/utils/
    mod.rs

    +1
     2
     3
     4
    @@ -579,8 +580,7 @@
     579
     580
     581
    -582
    -
    #![cfg(feature = "build-cli")]
    +582
    #![cfg(feature = "build-cli")]
     #![allow(dead_code)]
     
     use anyhow::bail;
    diff --git a/src/scarb_native_test/utils/test.rs.html b/src/scarb_native_test/utils/test.rs.html
    index bb01a0c33..a65ec4117 100644
    --- a/src/scarb_native_test/utils/test.rs.html
    +++ b/src/scarb_native_test/utils/test.rs.html
    @@ -1,4 +1,5 @@
    -test.rs - source
    1
    +test.rs - source

    scarb_native_test/utils/
    test.rs

    +1
     2
     3
     4
    @@ -276,8 +277,7 @@
     276
     277
     278
    -279
    -
    use super::{find_function, format_for_panic, result_to_runresult, RunArgs, RunMode};
    +279
    use super::{find_function, format_for_panic, result_to_runresult, RunArgs, RunMode};
     use anyhow::Context;
     use cairo_lang_runner::RunResultValue;
     use cairo_lang_sierra::{extensions::gas::CostTokenType, ids::FunctionId, program::Program};
    diff --git a/static.files/main-921df33f47b8780c.js b/static.files/main-921df33f47b8780c.js
    deleted file mode 100644
    index c31555488..000000000
    --- 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 000000000..3d672cb6e --- /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 000000000..a6c18ecaf --- /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 befe41634..000000000 --- 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 e9199f955..000000000 --- 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 000000000..9fef311de --- /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 000000000..87b6065d8 --- /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 ba830e374..000000000 --- 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 aee0fc77f..000000000 --- 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 000000000..d34fb34c6 --- /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 ab425fe49..4a30479d9 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 981894677..5aac776b4 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/clone/trait.Clone.js b/trait.impl/core/clone/trait.Clone.js index 2668333ab..4bfdc622c 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([["cairo_native",[["impl Clone for OptLevel"],["impl Clone for Value"],["impl Clone for BreakpointEvent"],["impl Clone for BuiltinStats"],["impl Clone for ContractExecutionResult"],["impl Clone for ExecutionResult"],["impl Clone for AotContractExecutor"],["impl Clone for AutoBreakpoint"],["impl Clone for GasCost"],["impl Clone for GasMetadata"],["impl Clone for MetadataComputationConfig"],["impl Clone for BlockInfo"],["impl Clone for ExecutionInfo"],["impl Clone for ExecutionInfoV2"],["impl Clone for Felt252Abi"],["impl Clone for ResourceBounds"],["impl Clone for Secp256k1Point"],["impl Clone for Secp256r1Point"],["impl Clone for TxInfo"],["impl Clone for TxV2Info"],["impl Clone for U256"],["impl Clone for ContractLogs"],["impl Clone for StubEvent"],["impl Clone for StubSyscallHandler"],["impl Clone for BuiltinCosts"],["impl Clone for LayoutError"]]],["cairo_native_compile",[["impl Clone for RunMode"]]],["cairo_native_dump",[["impl Clone for CompilerOutput"],["impl Clone for CmdLine"]]],["cairo_native_run",[["impl Clone for RunMode"],["impl Clone for RunMode"]]],["cairo_native_test",[["impl Clone for RunMode"]]],["scarb_native_dump",[["impl Clone for RunMode"]]],["scarb_native_test",[["impl Clone for TestKind"],["impl Clone for RunMode"],["impl Clone for Args"]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl Clone for OptLevel"],["impl Clone for Value"],["impl Clone for BreakpointEvent"],["impl Clone for BuiltinStats"],["impl Clone for ContractExecutionResult"],["impl Clone for ExecutionResult"],["impl Clone for AotContractExecutor"],["impl Clone for AutoBreakpoint"],["impl Clone for GasCost"],["impl Clone for GasMetadata"],["impl Clone for MetadataComputationConfig"],["impl Clone for BlockInfo"],["impl Clone for ExecutionInfo"],["impl Clone for ExecutionInfoV2"],["impl Clone for Felt252Abi"],["impl Clone for ResourceBounds"],["impl Clone for Secp256k1Point"],["impl Clone for Secp256r1Point"],["impl Clone for TxInfo"],["impl Clone for TxV2Info"],["impl Clone for U256"],["impl Clone for ContractLogs"],["impl Clone for StubEvent"],["impl Clone for StubSyscallHandler"],["impl Clone for BuiltinCosts"],["impl Clone for LayoutError"]]],["cairo_native_compile",[["impl Clone for RunMode"]]],["cairo_native_dump",[["impl Clone for CompilerOutput"],["impl Clone for CmdLine"]]],["cairo_native_run",[["impl Clone for RunMode"],["impl Clone for RunMode"]]],["cairo_native_test",[["impl Clone for RunMode"]]],["scarb_native_dump",[["impl Clone for RunMode"]]],["scarb_native_test",[["impl Clone for TestKind"],["impl Clone for RunMode"],["impl Clone for Args"]]]]); 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 4f7a0606f..5f9f81080 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([["cairo_native",[["impl Eq for OptLevel"],["impl Eq for Value"],["impl Eq for BreakpointEvent"],["impl Eq for GasMetadataError"],["impl Eq for NativeContext"],["impl Eq for BuiltinStats"],["impl Eq for ContractExecutionResult"],["impl Eq for ExecutionResult"],["impl Eq for GasCost"],["impl Eq for GasMetadata"],["impl Eq for BlockInfo"],["impl Eq for ExecutionInfo"],["impl Eq for ExecutionInfoV2"],["impl Eq for ResourceBounds"],["impl Eq for Secp256k1Point"],["impl Eq for Secp256r1Point"],["impl Eq for TxInfo"],["impl Eq for TxV2Info"],["impl Eq for U256"],["impl Eq for LayoutError"]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl Eq for OptLevel"],["impl Eq for Value"],["impl Eq for BreakpointEvent"],["impl Eq for GasMetadataError"],["impl Eq for NativeContext"],["impl Eq for BuiltinStats"],["impl Eq for ContractExecutionResult"],["impl Eq for ExecutionResult"],["impl Eq for GasCost"],["impl Eq for GasMetadata"],["impl Eq for BlockInfo"],["impl Eq for ExecutionInfo"],["impl Eq for ExecutionInfoV2"],["impl Eq for ResourceBounds"],["impl Eq for Secp256k1Point"],["impl Eq for Secp256r1Point"],["impl Eq for TxInfo"],["impl Eq for TxV2Info"],["impl Eq for U256"],["impl Eq for LayoutError"]]]]); 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 e66e6b31b..b68889f7a 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([["cairo_native",[["impl Ord for OptLevel"],["impl Ord for BuiltinStats"],["impl Ord for ContractExecutionResult"],["impl Ord for BlockInfo"],["impl Ord for ExecutionInfo"],["impl Ord for ExecutionInfoV2"],["impl Ord for ResourceBounds"],["impl Ord for TxInfo"],["impl Ord for TxV2Info"],["impl Ord for U256"]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl Ord for OptLevel"],["impl Ord for BuiltinStats"],["impl Ord for ContractExecutionResult"],["impl Ord for BlockInfo"],["impl Ord for ExecutionInfo"],["impl Ord for ExecutionInfoV2"],["impl Ord for ResourceBounds"],["impl Ord for TxInfo"],["impl Ord for TxV2Info"],["impl Ord for U256"]]]]); 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 c9271ecc9..fb5022f74 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([["cairo_native",[["impl PartialEq for OptLevel"],["impl PartialEq for Value"],["impl PartialEq for BreakpointEvent"],["impl PartialEq for GasMetadataError"],["impl PartialEq for NativeContext"],["impl PartialEq for BuiltinStats"],["impl PartialEq for ContractExecutionResult"],["impl PartialEq for ExecutionResult"],["impl PartialEq for GasCost"],["impl PartialEq for GasMetadata"],["impl PartialEq for BlockInfo"],["impl PartialEq for ExecutionInfo"],["impl PartialEq for ExecutionInfoV2"],["impl PartialEq for ResourceBounds"],["impl PartialEq for Secp256k1Point"],["impl PartialEq for Secp256r1Point"],["impl PartialEq for TxInfo"],["impl PartialEq for TxV2Info"],["impl PartialEq for U256"],["impl PartialEq for LayoutError"]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl PartialEq for OptLevel"],["impl PartialEq for Value"],["impl PartialEq for BreakpointEvent"],["impl PartialEq for GasMetadataError"],["impl PartialEq for NativeContext"],["impl PartialEq for BuiltinStats"],["impl PartialEq for ContractExecutionResult"],["impl PartialEq for ExecutionResult"],["impl PartialEq for GasCost"],["impl PartialEq for GasMetadata"],["impl PartialEq for BlockInfo"],["impl PartialEq for ExecutionInfo"],["impl PartialEq for ExecutionInfoV2"],["impl PartialEq for ResourceBounds"],["impl PartialEq for Secp256k1Point"],["impl PartialEq for Secp256r1Point"],["impl PartialEq for TxInfo"],["impl PartialEq for TxV2Info"],["impl PartialEq for U256"],["impl PartialEq for LayoutError"]]]]); 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 fcdbea9f2..70117d878 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([["cairo_native",[["impl PartialOrd for OptLevel"],["impl PartialOrd for BuiltinStats"],["impl PartialOrd for ContractExecutionResult"],["impl PartialOrd for BlockInfo"],["impl PartialOrd for ExecutionInfo"],["impl PartialOrd for ExecutionInfoV2"],["impl PartialOrd for ResourceBounds"],["impl PartialOrd for TxInfo"],["impl PartialOrd for TxV2Info"],["impl PartialOrd for U256"]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl PartialOrd for OptLevel"],["impl PartialOrd for BuiltinStats"],["impl PartialOrd for ContractExecutionResult"],["impl PartialOrd for BlockInfo"],["impl PartialOrd for ExecutionInfo"],["impl PartialOrd for ExecutionInfoV2"],["impl PartialOrd for ResourceBounds"],["impl PartialOrd for TxInfo"],["impl PartialOrd for TxV2Info"],["impl PartialOrd for U256"]]]]); 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 460a92507..e7291cd93 100644 --- a/trait.impl/core/convert/trait.From.js +++ b/trait.impl/core/convert/trait.From.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["cairo_native",[["impl From<&ArrayAbi<Felt252Abi>> for Vec<Felt>"],["impl From<&Felt252Abi> for Felt"],["impl From<OptLevel> for usize"],["impl From<CompilerError> for Error"],["impl From<SierraAssertError> for Error"],["impl From<GasMetadataError> for Error"],["impl From<i128> for Value"],["impl From<i16> for Value"],["impl From<i32> for Value"],["impl From<i64> for Value"],["impl From<i8> for Value"],["impl From<u128> for Value"],["impl From<u16> for Value"],["impl From<u32> for Value"],["impl From<u64> for Value"],["impl From<u8> for OptLevel"],["impl From<u8> for Value"],["impl From<usize> for OptLevel"],["impl From<NativeAssertError> for Error"],["impl From<Felt252Abi> for Felt"],["impl From<BuiltinCosts> for [u64; 7]"],["impl From<LayoutError> for Error"],["impl From<Box<ProgramRegistryError>> for Error"],["impl From<LayoutError> for Error"],["impl From<TryFromIntError> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<ApChangeError> for GasMetadataError"],["impl From<CostError> for GasMetadataError"],["impl From<EditStateError> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Felt> for Value"],["impl<'a, K> From<AotProgramCache<'a, K>> for ProgramCache<'a, K>
    where\n K: PartialEq + Eq + Hash,
    "],["impl<'a, K> From<JitProgramCache<'a, K>> for ProgramCache<'a, K>
    where\n K: PartialEq + Eq + Hash,
    "],["impl<T: Into<Value> + Clone> From<&[T]> for Value"],["impl<T: Into<Value>> From<Vec<T>> for Value"],["impl<T: Into<Value>, const N: usize> From<[T; N]> for Value"]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl From<&ArrayAbi<Felt252Abi>> for Vec<Felt>"],["impl From<&Felt252Abi> for Felt"],["impl From<OptLevel> for usize"],["impl From<CompilerError> for Error"],["impl From<SierraAssertError> for Error"],["impl From<GasMetadataError> for Error"],["impl From<i128> for Value"],["impl From<i16> for Value"],["impl From<i32> for Value"],["impl From<i64> for Value"],["impl From<i8> for Value"],["impl From<u128> for Value"],["impl From<u16> for Value"],["impl From<u32> for Value"],["impl From<u64> for Value"],["impl From<u8> for OptLevel"],["impl From<u8> for Value"],["impl From<usize> for OptLevel"],["impl From<NativeAssertError> for Error"],["impl From<Felt252Abi> for Felt"],["impl From<BuiltinCosts> for [u64; 7]"],["impl From<LayoutError> for Error"],["impl From<Box<ProgramRegistryError>> for Error"],["impl From<LayoutError> for Error"],["impl From<TryFromIntError> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<ApChangeError> for GasMetadataError"],["impl From<CostError> for GasMetadataError"],["impl From<EditStateError> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Felt> for Value"],["impl<'a, K> From<AotProgramCache<'a, K>> for ProgramCache<'a, K>
    where\n K: PartialEq + Eq + Hash,
    "],["impl<'a, K> From<JitProgramCache<'a, K>> for ProgramCache<'a, K>
    where\n K: PartialEq + Eq + Hash,
    "],["impl<T: Into<Value> + Clone> From<&[T]> for Value"],["impl<T: Into<Value>> From<Vec<T>> for Value"],["impl<T: Into<Value>, const N: usize> From<[T; N]> for Value"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/convert/trait.TryFrom.js b/trait.impl/core/convert/trait.TryFrom.js index 8da24143e..cb327f381 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([["cairo_native",[["impl TryFrom<Value> for i128"],["impl TryFrom<Value> for i16"],["impl TryFrom<Value> for i32"],["impl TryFrom<Value> for i64"],["impl TryFrom<Value> for i8"],["impl TryFrom<Value> for u128"],["impl TryFrom<Value> for u16"],["impl TryFrom<Value> for u32"],["impl TryFrom<Value> for u64"],["impl TryFrom<Value> for u8"],["impl TryFrom<Value> for Felt"]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl TryFrom<Value> for i128"],["impl TryFrom<Value> for i16"],["impl TryFrom<Value> for i32"],["impl TryFrom<Value> for i64"],["impl TryFrom<Value> for i8"],["impl TryFrom<Value> for u128"],["impl TryFrom<Value> for u16"],["impl TryFrom<Value> for u32"],["impl TryFrom<Value> for u64"],["impl TryFrom<Value> for u8"],["impl TryFrom<Value> for Felt"]]]]); 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 b45054a6c..3af97750b 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([["cairo_native",[["impl Default for OptLevel"],["impl Default for NativeContext"],["impl Default for BuiltinStats"],["impl Default for ContractExecutionResult"],["impl Default for AutoBreakpoint"],["impl Default for DebugUtils"],["impl Default for DropOverridesMeta"],["impl Default for DupOverridesMeta"],["impl Default for EnumSnapshotVariantsMeta"],["impl Default for GasMetadata"],["impl Default for MetadataComputationConfig"],["impl Default for RuntimeBindingsMeta"],["impl Default for MetadataStorage"],["impl Default for Secp256k1Point"],["impl Default for Secp256r1Point"],["impl Default for U256"],["impl Default for ContractLogs"],["impl Default for StubSyscallHandler"],["impl Default for BuiltinCosts"]]],["scarb_native_test",[["impl Default for TestKind"],["impl Default for TargetGroupDeduplicator"]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl Default for OptLevel"],["impl Default for NativeContext"],["impl Default for BuiltinStats"],["impl Default for ContractExecutionResult"],["impl Default for AutoBreakpoint"],["impl Default for DebugUtils"],["impl Default for DropOverridesMeta"],["impl Default for DupOverridesMeta"],["impl Default for EnumSnapshotVariantsMeta"],["impl Default for GasMetadata"],["impl Default for MetadataComputationConfig"],["impl Default for RuntimeBindingsMeta"],["impl Default for MetadataStorage"],["impl Default for Secp256k1Point"],["impl Default for Secp256r1Point"],["impl Default for U256"],["impl Default for ContractLogs"],["impl Default for StubSyscallHandler"],["impl Default for BuiltinCosts"]]],["scarb_native_test",[["impl Default for TestKind"],["impl Default for TargetGroupDeduplicator"]]]]); 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 cf8b8c2dd..a2a1bde04 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([["cairo_native",[["impl Error for CompilerError"],["impl Error for Error"],["impl Error for SierraAssertError"],["impl Error for GasMetadataError"],["impl Error for NativeAssertError"],["impl Error for LayoutError"]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl Error for CompilerError"],["impl Error for Error"],["impl Error for SierraAssertError"],["impl Error for GasMetadataError"],["impl Error for NativeAssertError"],["impl Error for LayoutError"]]]]); 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 f4d57f54f..5130f0ca9 100644 --- a/trait.impl/core/fmt/trait.Debug.js +++ b/trait.impl/core/fmt/trait.Debug.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["cairo_native",[["impl Debug for OptLevel"],["impl Debug for Value"],["impl Debug for CompilerError"],["impl Debug for Error"],["impl Debug for SierraAssertError"],["impl Debug for BreakpointEvent"],["impl Debug for GasMetadataError"],["impl Debug for NativeContext"],["impl Debug for NativeAssertError"],["impl Debug for BuiltinStats"],["impl Debug for ContractExecutionResult"],["impl Debug for ExecutionResult"],["impl Debug for AotContractExecutor"],["impl Debug for AotNativeExecutor"],["impl Debug for JitNativeExecutor<'_>"],["impl Debug for AutoBreakpoint"],["impl Debug for DebugUtils"],["impl Debug for DropOverridesMeta"],["impl Debug for DupOverridesMeta"],["impl Debug for GasCost"],["impl Debug for GasMetadata"],["impl Debug for MetadataComputationConfig"],["impl Debug for ReallocBindingsMeta"],["impl Debug for RuntimeBindingsMeta"],["impl Debug for MetadataStorage"],["impl Debug for TailRecursionMeta"],["impl Debug for NativeModule<'_>"],["impl Debug for BlockInfo"],["impl Debug for ExecutionInfo"],["impl Debug for ExecutionInfoV2"],["impl Debug for Felt252Abi"],["impl Debug for ResourceBounds"],["impl Debug for Secp256k1Point"],["impl Debug for Secp256r1Point"],["impl Debug for TxInfo"],["impl Debug for TxV2Info"],["impl Debug for U256"],["impl Debug for ContractLogs"],["impl Debug for StubEvent"],["impl Debug for StubSyscallHandler"],["impl Debug for BuiltinCosts"],["impl Debug for LayoutError"],["impl<'a, K> Debug for ProgramCache<'a, K>
    where\n K: PartialEq + Eq + Hash + Debug,
    "],["impl<'a, K> Debug for AotProgramCache<'a, K>
    where\n K: PartialEq + Eq + Hash,
    "],["impl<'a, K> Debug for JitProgramCache<'a, K>
    where\n K: Eq + Hash + PartialEq,
    "],["impl<T: Debug> Debug for ArrayAbi<T>"]]],["cairo_native_compile",[["impl Debug for RunMode"],["impl Debug for Args"]]],["cairo_native_dump",[["impl Debug for CompilerOutput"],["impl Debug for CmdLine"]]],["cairo_native_run",[["impl Debug for RunMode"],["impl Debug for RunMode"],["impl Debug for Args"]]],["cairo_native_runtime",[["impl Debug for FeltDict"]]],["cairo_native_stress",[["impl Debug for StressTestCommand"]]],["cairo_native_test",[["impl Debug for RunMode"],["impl Debug for Args"]]],["scarb_native_dump",[["impl Debug for RunMode"]]],["scarb_native_test",[["impl Debug for TestKind"],["impl Debug for RunMode"],["impl Debug for Args"]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl Debug for OptLevel"],["impl Debug for Value"],["impl Debug for CompilerError"],["impl Debug for Error"],["impl Debug for SierraAssertError"],["impl Debug for BreakpointEvent"],["impl Debug for GasMetadataError"],["impl Debug for NativeContext"],["impl Debug for NativeAssertError"],["impl Debug for BuiltinStats"],["impl Debug for ContractExecutionResult"],["impl Debug for ExecutionResult"],["impl Debug for AotContractExecutor"],["impl Debug for AotNativeExecutor"],["impl Debug for JitNativeExecutor<'_>"],["impl Debug for AutoBreakpoint"],["impl Debug for DebugUtils"],["impl Debug for DropOverridesMeta"],["impl Debug for DupOverridesMeta"],["impl Debug for GasCost"],["impl Debug for GasMetadata"],["impl Debug for MetadataComputationConfig"],["impl Debug for ReallocBindingsMeta"],["impl Debug for RuntimeBindingsMeta"],["impl Debug for MetadataStorage"],["impl Debug for TailRecursionMeta"],["impl Debug for NativeModule<'_>"],["impl Debug for BlockInfo"],["impl Debug for ExecutionInfo"],["impl Debug for ExecutionInfoV2"],["impl Debug for Felt252Abi"],["impl Debug for ResourceBounds"],["impl Debug for Secp256k1Point"],["impl Debug for Secp256r1Point"],["impl Debug for TxInfo"],["impl Debug for TxV2Info"],["impl Debug for U256"],["impl Debug for ContractLogs"],["impl Debug for StubEvent"],["impl Debug for StubSyscallHandler"],["impl Debug for BuiltinCosts"],["impl Debug for LayoutError"],["impl<'a, K> Debug for ProgramCache<'a, K>
    where\n K: PartialEq + Eq + Hash + Debug,
    "],["impl<K> Debug for AotProgramCache<'_, K>
    where\n K: PartialEq + Eq + Hash,
    "],["impl<K> Debug for JitProgramCache<'_, K>
    where\n K: Eq + Hash + PartialEq,
    "],["impl<T: Debug> Debug for ArrayAbi<T>"]]],["cairo_native_compile",[["impl Debug for RunMode"],["impl Debug for Args"]]],["cairo_native_dump",[["impl Debug for CompilerOutput"],["impl Debug for CmdLine"]]],["cairo_native_run",[["impl Debug for RunMode"],["impl Debug for RunMode"],["impl Debug for Args"]]],["cairo_native_runtime",[["impl Debug for FeltDict"]]],["cairo_native_stress",[["impl Debug for StressTestCommand"]]],["cairo_native_test",[["impl Debug for RunMode"],["impl Debug for Args"]]],["scarb_native_dump",[["impl Debug for RunMode"]]],["scarb_native_test",[["impl Debug for TestKind"],["impl Debug for RunMode"],["impl Debug for Args"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[15482,556,571,807,302,326,554,297,817]} \ No newline at end of file +//{"start":57,"fragment_lengths":[15474,556,571,807,302,326,554,297,817]} \ No newline at end of file diff --git a/trait.impl/core/fmt/trait.Display.js b/trait.impl/core/fmt/trait.Display.js index ac5b13a6e..7334448e8 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([["cairo_native",[["impl Display for CompilerError"],["impl Display for Error"],["impl Display for SierraAssertError"],["impl Display for GasMetadataError"],["impl Display for NativeAssertError"],["impl Display for LayoutError"]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl Display for CompilerError"],["impl Display for Error"],["impl Display for SierraAssertError"],["impl Display for GasMetadataError"],["impl Display for NativeAssertError"],["impl Display for LayoutError"]]]]); 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 e880b7304..2e81bf87b 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([["cairo_native",[["impl Hash for OptLevel"],["impl Hash for BreakpointEvent"],["impl Hash for BuiltinStats"],["impl Hash for ContractExecutionResult"],["impl Hash for GasCost"],["impl Hash for BlockInfo"],["impl Hash for ExecutionInfo"],["impl Hash for ExecutionInfoV2"],["impl Hash for ResourceBounds"],["impl Hash for Secp256k1Point"],["impl Hash for Secp256r1Point"],["impl Hash for TxInfo"],["impl Hash for TxV2Info"],["impl Hash for U256"]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl Hash for OptLevel"],["impl Hash for BreakpointEvent"],["impl Hash for BuiltinStats"],["impl Hash for ContractExecutionResult"],["impl Hash for GasCost"],["impl Hash for BlockInfo"],["impl Hash for ExecutionInfo"],["impl Hash for ExecutionInfoV2"],["impl Hash for ResourceBounds"],["impl Hash for Secp256k1Point"],["impl Hash for Secp256r1Point"],["impl Hash for TxInfo"],["impl Hash for TxV2Info"],["impl Hash for U256"]]]]); 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 d001512a0..8b2f84bc6 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([["cairo_native",[["impl Copy for OptLevel"],["impl Copy for BuiltinStats"],["impl Copy for BlockInfo"],["impl Copy for Felt252Abi"],["impl Copy for ResourceBounds"],["impl Copy for Secp256k1Point"],["impl Copy for Secp256r1Point"],["impl Copy for U256"],["impl Copy for BuiltinCosts"]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl Copy for OptLevel"],["impl Copy for BuiltinStats"],["impl Copy for BlockInfo"],["impl Copy for Felt252Abi"],["impl Copy for ResourceBounds"],["impl Copy for Secp256k1Point"],["impl Copy for Secp256r1Point"],["impl Copy for U256"],["impl Copy for BuiltinCosts"]]]]); 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 0c0e621dc..724d12978 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([["cairo_native",[["impl !Freeze for Error",1,["cairo_native::error::Error"]],["impl !Freeze for NativeAssertError",1,["cairo_native::error::panic::NativeAssertError"]],["impl Freeze for OptLevel",1,["cairo_native::ffi::OptLevel"]],["impl Freeze for Value",1,["cairo_native::values::Value"]],["impl Freeze for CompilerError",1,["cairo_native::error::CompilerError"]],["impl Freeze for SierraAssertError",1,["cairo_native::error::SierraAssertError"]],["impl Freeze for BreakpointEvent",1,["cairo_native::metadata::auto_breakpoint::BreakpointEvent"]],["impl Freeze for GasMetadataError",1,["cairo_native::metadata::gas::GasMetadataError"]],["impl Freeze for NativeContext",1,["cairo_native::context::NativeContext"]],["impl Freeze for BuiltinStats",1,["cairo_native::execution_result::BuiltinStats"]],["impl Freeze for ContractExecutionResult",1,["cairo_native::execution_result::ContractExecutionResult"]],["impl Freeze for ExecutionResult",1,["cairo_native::execution_result::ExecutionResult"]],["impl Freeze for AotContractExecutor",1,["cairo_native::executor::contract::AotContractExecutor"]],["impl Freeze for AotNativeExecutor",1,["cairo_native::executor::aot::AotNativeExecutor"]],["impl Freeze for AutoBreakpoint",1,["cairo_native::metadata::auto_breakpoint::AutoBreakpoint"]],["impl Freeze for DebugUtils",1,["cairo_native::metadata::debug_utils::DebugUtils"]],["impl Freeze for DropOverridesMeta",1,["cairo_native::metadata::drop_overrides::DropOverridesMeta"]],["impl Freeze for DupOverridesMeta",1,["cairo_native::metadata::dup_overrides::DupOverridesMeta"]],["impl Freeze for EnumSnapshotVariantsMeta",1,["cairo_native::metadata::enum_snapshot_variants::EnumSnapshotVariantsMeta"]],["impl Freeze for GasCost",1,["cairo_native::metadata::gas::GasCost"]],["impl Freeze for GasMetadata",1,["cairo_native::metadata::gas::GasMetadata"]],["impl Freeze for MetadataComputationConfig",1,["cairo_native::metadata::gas::MetadataComputationConfig"]],["impl Freeze for ReallocBindingsMeta",1,["cairo_native::metadata::realloc_bindings::ReallocBindingsMeta"]],["impl Freeze for RuntimeBindingsMeta",1,["cairo_native::metadata::runtime_bindings::RuntimeBindingsMeta"]],["impl Freeze for MetadataStorage",1,["cairo_native::metadata::MetadataStorage"]],["impl Freeze for TailRecursionMeta",1,["cairo_native::metadata::tail_recursion::TailRecursionMeta"]],["impl Freeze for BlockInfo",1,["cairo_native::starknet::BlockInfo"]],["impl Freeze for DummySyscallHandler",1,["cairo_native::starknet::DummySyscallHandler"]],["impl Freeze for ExecutionInfo",1,["cairo_native::starknet::ExecutionInfo"]],["impl Freeze for ExecutionInfoV2",1,["cairo_native::starknet::ExecutionInfoV2"]],["impl Freeze for Felt252Abi",1,["cairo_native::starknet::Felt252Abi"]],["impl Freeze for ResourceBounds",1,["cairo_native::starknet::ResourceBounds"]],["impl Freeze for Secp256k1Point",1,["cairo_native::starknet::Secp256k1Point"]],["impl Freeze for Secp256r1Point",1,["cairo_native::starknet::Secp256r1Point"]],["impl Freeze for TxInfo",1,["cairo_native::starknet::TxInfo"]],["impl Freeze for TxV2Info",1,["cairo_native::starknet::TxV2Info"]],["impl Freeze for U256",1,["cairo_native::starknet::U256"]],["impl Freeze for ContractLogs",1,["cairo_native::starknet_stub::ContractLogs"]],["impl Freeze for StubEvent",1,["cairo_native::starknet_stub::StubEvent"]],["impl Freeze for StubSyscallHandler",1,["cairo_native::starknet_stub::StubSyscallHandler"]],["impl Freeze for BuiltinCosts",1,["cairo_native::utils::BuiltinCosts"]],["impl Freeze for LayoutError",1,["cairo_native::utils::LayoutError"]],["impl<'a, K> Freeze for ProgramCache<'a, K>",1,["cairo_native::cache::ProgramCache"]],["impl<'a, K> Freeze for AotProgramCache<'a, K>",1,["cairo_native::cache::aot::AotProgramCache"]],["impl<'a, K> Freeze for JitProgramCache<'a, K>",1,["cairo_native::cache::jit::JitProgramCache"]],["impl<'m> Freeze for JitNativeExecutor<'m>",1,["cairo_native::executor::jit::JitNativeExecutor"]],["impl<'m> Freeze for NativeModule<'m>",1,["cairo_native::module::NativeModule"]],["impl<T> Freeze for ArrayAbi<T>",1,["cairo_native::starknet::ArrayAbi"]]]],["cairo_native_compile",[["impl Freeze for RunMode",1,["cairo_native_compile::RunMode"]],["impl Freeze for Args",1,["cairo_native_compile::Args"]]]],["cairo_native_dump",[["impl Freeze for CompilerOutput",1,["cairo_native_dump::CompilerOutput"]],["impl Freeze for CmdLine",1,["cairo_native_dump::CmdLine"]]]],["cairo_native_run",[["impl Freeze for RunMode",1,["cairo_native_run::RunMode"]],["impl Freeze for RunMode",1,["cairo_native_run::utils::RunMode"]],["impl Freeze for TestStatus",1,["cairo_native_run::utils::test::TestStatus"]],["impl Freeze for Args",1,["cairo_native_run::Args"]],["impl Freeze for RunArgs",1,["cairo_native_run::utils::RunArgs"]],["impl Freeze for TestResult",1,["cairo_native_run::utils::test::TestResult"]],["impl Freeze for TestsSummary",1,["cairo_native_run::utils::test::TestsSummary"]]]],["cairo_native_runtime",[["impl Freeze for DICT_GAS_REFUND_PER_ACCESS",1,["cairo_native_runtime::DICT_GAS_REFUND_PER_ACCESS"]],["impl Freeze for FeltDict",1,["cairo_native_runtime::FeltDict"]],["impl Freeze for FormattedItem",1,["cairo_native_runtime::FormattedItem"]],["impl Freeze for HALF_PRIME",1,["cairo_native_runtime::HALF_PRIME"]]]],["cairo_native_stress",[["impl Freeze for StressTestCommand",1,["cairo_native_stress::StressTestCommand"]],["impl<'a, K> Freeze for NaiveAotCache<'a, K>",1,["cairo_native_stress::NaiveAotCache"]]]],["cairo_native_test",[["impl Freeze for RunMode",1,["cairo_native_test::utils::RunMode"]],["impl Freeze for TestStatus",1,["cairo_native_test::utils::test::TestStatus"]],["impl Freeze for Args",1,["cairo_native_test::Args"]],["impl Freeze for RunArgs",1,["cairo_native_test::utils::RunArgs"]],["impl Freeze for TestResult",1,["cairo_native_test::utils::test::TestResult"]],["impl Freeze for TestsSummary",1,["cairo_native_test::utils::test::TestsSummary"]]]],["scarb_native_dump",[["impl Freeze for RunMode",1,["scarb_native_dump::utils::RunMode"]],["impl Freeze for TestStatus",1,["scarb_native_dump::utils::test::TestStatus"]],["impl Freeze for RunArgs",1,["scarb_native_dump::utils::RunArgs"]],["impl Freeze for TestResult",1,["scarb_native_dump::utils::test::TestResult"]],["impl Freeze for TestsSummary",1,["scarb_native_dump::utils::test::TestsSummary"]]]],["scarb_native_test",[["impl Freeze for TestKind",1,["scarb_native_test::TestKind"]],["impl Freeze for RunMode",1,["scarb_native_test::utils::RunMode"]],["impl Freeze for TestStatus",1,["scarb_native_test::utils::test::TestStatus"]],["impl Freeze for Args",1,["scarb_native_test::Args"]],["impl Freeze for TargetGroupDeduplicator",1,["scarb_native_test::TargetGroupDeduplicator"]],["impl Freeze for RunArgs",1,["scarb_native_test::utils::RunArgs"]],["impl Freeze for TestResult",1,["scarb_native_test::utils::test::TestResult"]],["impl Freeze for TestsSummary",1,["scarb_native_test::utils::test::TestsSummary"]]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl !Freeze for Error",1,["cairo_native::error::Error"]],["impl !Freeze for NativeAssertError",1,["cairo_native::error::panic::NativeAssertError"]],["impl Freeze for OptLevel",1,["cairo_native::ffi::OptLevel"]],["impl Freeze for Value",1,["cairo_native::values::Value"]],["impl Freeze for CompilerError",1,["cairo_native::error::CompilerError"]],["impl Freeze for SierraAssertError",1,["cairo_native::error::SierraAssertError"]],["impl Freeze for BreakpointEvent",1,["cairo_native::metadata::auto_breakpoint::BreakpointEvent"]],["impl Freeze for GasMetadataError",1,["cairo_native::metadata::gas::GasMetadataError"]],["impl Freeze for NativeContext",1,["cairo_native::context::NativeContext"]],["impl Freeze for BuiltinStats",1,["cairo_native::execution_result::BuiltinStats"]],["impl Freeze for ContractExecutionResult",1,["cairo_native::execution_result::ContractExecutionResult"]],["impl Freeze for ExecutionResult",1,["cairo_native::execution_result::ExecutionResult"]],["impl Freeze for AotContractExecutor",1,["cairo_native::executor::contract::AotContractExecutor"]],["impl Freeze for AotNativeExecutor",1,["cairo_native::executor::aot::AotNativeExecutor"]],["impl Freeze for AutoBreakpoint",1,["cairo_native::metadata::auto_breakpoint::AutoBreakpoint"]],["impl Freeze for DebugUtils",1,["cairo_native::metadata::debug_utils::DebugUtils"]],["impl Freeze for DropOverridesMeta",1,["cairo_native::metadata::drop_overrides::DropOverridesMeta"]],["impl Freeze for DupOverridesMeta",1,["cairo_native::metadata::dup_overrides::DupOverridesMeta"]],["impl Freeze for EnumSnapshotVariantsMeta",1,["cairo_native::metadata::enum_snapshot_variants::EnumSnapshotVariantsMeta"]],["impl Freeze for GasCost",1,["cairo_native::metadata::gas::GasCost"]],["impl Freeze for GasMetadata",1,["cairo_native::metadata::gas::GasMetadata"]],["impl Freeze for MetadataComputationConfig",1,["cairo_native::metadata::gas::MetadataComputationConfig"]],["impl Freeze for ReallocBindingsMeta",1,["cairo_native::metadata::realloc_bindings::ReallocBindingsMeta"]],["impl Freeze for RuntimeBindingsMeta",1,["cairo_native::metadata::runtime_bindings::RuntimeBindingsMeta"]],["impl Freeze for MetadataStorage",1,["cairo_native::metadata::MetadataStorage"]],["impl Freeze for TailRecursionMeta",1,["cairo_native::metadata::tail_recursion::TailRecursionMeta"]],["impl Freeze for BlockInfo",1,["cairo_native::starknet::BlockInfo"]],["impl Freeze for DummySyscallHandler",1,["cairo_native::starknet::DummySyscallHandler"]],["impl Freeze for ExecutionInfo",1,["cairo_native::starknet::ExecutionInfo"]],["impl Freeze for ExecutionInfoV2",1,["cairo_native::starknet::ExecutionInfoV2"]],["impl Freeze for Felt252Abi",1,["cairo_native::starknet::Felt252Abi"]],["impl Freeze for ResourceBounds",1,["cairo_native::starknet::ResourceBounds"]],["impl Freeze for Secp256k1Point",1,["cairo_native::starknet::Secp256k1Point"]],["impl Freeze for Secp256r1Point",1,["cairo_native::starknet::Secp256r1Point"]],["impl Freeze for TxInfo",1,["cairo_native::starknet::TxInfo"]],["impl Freeze for TxV2Info",1,["cairo_native::starknet::TxV2Info"]],["impl Freeze for U256",1,["cairo_native::starknet::U256"]],["impl Freeze for ContractLogs",1,["cairo_native::starknet_stub::ContractLogs"]],["impl Freeze for StubEvent",1,["cairo_native::starknet_stub::StubEvent"]],["impl Freeze for StubSyscallHandler",1,["cairo_native::starknet_stub::StubSyscallHandler"]],["impl Freeze for BuiltinCosts",1,["cairo_native::utils::BuiltinCosts"]],["impl Freeze for LayoutError",1,["cairo_native::utils::LayoutError"]],["impl<'a, K> Freeze for ProgramCache<'a, K>",1,["cairo_native::cache::ProgramCache"]],["impl<'a, K> Freeze for AotProgramCache<'a, K>",1,["cairo_native::cache::aot::AotProgramCache"]],["impl<'a, K> Freeze for JitProgramCache<'a, K>",1,["cairo_native::cache::jit::JitProgramCache"]],["impl<'m> Freeze for JitNativeExecutor<'m>",1,["cairo_native::executor::jit::JitNativeExecutor"]],["impl<'m> Freeze for NativeModule<'m>",1,["cairo_native::module::NativeModule"]],["impl<T> Freeze for ArrayAbi<T>",1,["cairo_native::starknet::ArrayAbi"]]]],["cairo_native_compile",[["impl Freeze for RunMode",1,["cairo_native_compile::RunMode"]],["impl Freeze for Args",1,["cairo_native_compile::Args"]]]],["cairo_native_dump",[["impl Freeze for CompilerOutput",1,["cairo_native_dump::CompilerOutput"]],["impl Freeze for CmdLine",1,["cairo_native_dump::CmdLine"]]]],["cairo_native_run",[["impl Freeze for RunMode",1,["cairo_native_run::RunMode"]],["impl Freeze for RunMode",1,["cairo_native_run::utils::RunMode"]],["impl Freeze for TestStatus",1,["cairo_native_run::utils::test::TestStatus"]],["impl Freeze for Args",1,["cairo_native_run::Args"]],["impl Freeze for RunArgs",1,["cairo_native_run::utils::RunArgs"]],["impl Freeze for TestResult",1,["cairo_native_run::utils::test::TestResult"]],["impl Freeze for TestsSummary",1,["cairo_native_run::utils::test::TestsSummary"]]]],["cairo_native_runtime",[["impl Freeze for DICT_GAS_REFUND_PER_ACCESS",1,["cairo_native_runtime::DICT_GAS_REFUND_PER_ACCESS"]],["impl Freeze for FeltDict",1,["cairo_native_runtime::FeltDict"]],["impl Freeze for FormattedItem",1,["cairo_native_runtime::FormattedItem"]],["impl Freeze for HALF_PRIME",1,["cairo_native_runtime::HALF_PRIME"]]]],["cairo_native_stress",[["impl Freeze for StressTestCommand",1,["cairo_native_stress::StressTestCommand"]],["impl<'a, K> Freeze for NaiveAotCache<'a, K>",1,["cairo_native_stress::NaiveAotCache"]]]],["cairo_native_test",[["impl Freeze for RunMode",1,["cairo_native_test::utils::RunMode"]],["impl Freeze for TestStatus",1,["cairo_native_test::utils::test::TestStatus"]],["impl Freeze for Args",1,["cairo_native_test::Args"]],["impl Freeze for RunArgs",1,["cairo_native_test::utils::RunArgs"]],["impl Freeze for TestResult",1,["cairo_native_test::utils::test::TestResult"]],["impl Freeze for TestsSummary",1,["cairo_native_test::utils::test::TestsSummary"]]]],["scarb_native_dump",[["impl Freeze for RunMode",1,["scarb_native_dump::utils::RunMode"]],["impl Freeze for TestStatus",1,["scarb_native_dump::utils::test::TestStatus"]],["impl Freeze for RunArgs",1,["scarb_native_dump::utils::RunArgs"]],["impl Freeze for TestResult",1,["scarb_native_dump::utils::test::TestResult"]],["impl Freeze for TestsSummary",1,["scarb_native_dump::utils::test::TestsSummary"]]]],["scarb_native_test",[["impl Freeze for TestKind",1,["scarb_native_test::TestKind"]],["impl Freeze for RunMode",1,["scarb_native_test::utils::RunMode"]],["impl Freeze for TestStatus",1,["scarb_native_test::utils::test::TestStatus"]],["impl Freeze for Args",1,["scarb_native_test::Args"]],["impl Freeze for TargetGroupDeduplicator",1,["scarb_native_test::TargetGroupDeduplicator"]],["impl Freeze for RunArgs",1,["scarb_native_test::utils::RunArgs"]],["impl Freeze for TestResult",1,["scarb_native_test::utils::test::TestResult"]],["impl Freeze for TestsSummary",1,["scarb_native_test::utils::test::TestsSummary"]]]]]); 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 3f9506680..a94130efe 100644 --- a/trait.impl/core/marker/trait.Send.js +++ b/trait.impl/core/marker/trait.Send.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["cairo_native",[["impl !Send for MetadataStorage",1,["cairo_native::metadata::MetadataStorage"]],["impl !Send for TailRecursionMeta",1,["cairo_native::metadata::tail_recursion::TailRecursionMeta"]],["impl Send for OptLevel",1,["cairo_native::ffi::OptLevel"]],["impl Send for Value",1,["cairo_native::values::Value"]],["impl Send for CompilerError",1,["cairo_native::error::CompilerError"]],["impl Send for Error",1,["cairo_native::error::Error"]],["impl Send for SierraAssertError",1,["cairo_native::error::SierraAssertError"]],["impl Send for BreakpointEvent",1,["cairo_native::metadata::auto_breakpoint::BreakpointEvent"]],["impl Send for GasMetadataError",1,["cairo_native::metadata::gas::GasMetadataError"]],["impl Send for NativeContext"],["impl Send for NativeAssertError",1,["cairo_native::error::panic::NativeAssertError"]],["impl Send for BuiltinStats",1,["cairo_native::execution_result::BuiltinStats"]],["impl Send for ContractExecutionResult",1,["cairo_native::execution_result::ContractExecutionResult"]],["impl Send for ExecutionResult",1,["cairo_native::execution_result::ExecutionResult"]],["impl Send for AotContractExecutor",1,["cairo_native::executor::contract::AotContractExecutor"]],["impl Send for AotNativeExecutor"],["impl Send for AutoBreakpoint",1,["cairo_native::metadata::auto_breakpoint::AutoBreakpoint"]],["impl Send for DebugUtils",1,["cairo_native::metadata::debug_utils::DebugUtils"]],["impl Send for DropOverridesMeta",1,["cairo_native::metadata::drop_overrides::DropOverridesMeta"]],["impl Send for DupOverridesMeta",1,["cairo_native::metadata::dup_overrides::DupOverridesMeta"]],["impl Send for EnumSnapshotVariantsMeta",1,["cairo_native::metadata::enum_snapshot_variants::EnumSnapshotVariantsMeta"]],["impl Send for GasCost",1,["cairo_native::metadata::gas::GasCost"]],["impl Send for GasMetadata",1,["cairo_native::metadata::gas::GasMetadata"]],["impl Send for MetadataComputationConfig",1,["cairo_native::metadata::gas::MetadataComputationConfig"]],["impl Send for ReallocBindingsMeta",1,["cairo_native::metadata::realloc_bindings::ReallocBindingsMeta"]],["impl Send for RuntimeBindingsMeta",1,["cairo_native::metadata::runtime_bindings::RuntimeBindingsMeta"]],["impl Send for BlockInfo",1,["cairo_native::starknet::BlockInfo"]],["impl Send for DummySyscallHandler",1,["cairo_native::starknet::DummySyscallHandler"]],["impl Send for ExecutionInfo",1,["cairo_native::starknet::ExecutionInfo"]],["impl Send for ExecutionInfoV2",1,["cairo_native::starknet::ExecutionInfoV2"]],["impl Send for Felt252Abi",1,["cairo_native::starknet::Felt252Abi"]],["impl Send for ResourceBounds",1,["cairo_native::starknet::ResourceBounds"]],["impl Send for Secp256k1Point",1,["cairo_native::starknet::Secp256k1Point"]],["impl Send for Secp256r1Point",1,["cairo_native::starknet::Secp256r1Point"]],["impl Send for TxInfo",1,["cairo_native::starknet::TxInfo"]],["impl Send for TxV2Info",1,["cairo_native::starknet::TxV2Info"]],["impl Send for U256",1,["cairo_native::starknet::U256"]],["impl Send for ContractLogs",1,["cairo_native::starknet_stub::ContractLogs"]],["impl Send for StubEvent",1,["cairo_native::starknet_stub::StubEvent"]],["impl Send for StubSyscallHandler",1,["cairo_native::starknet_stub::StubSyscallHandler"]],["impl Send for BuiltinCosts",1,["cairo_native::utils::BuiltinCosts"]],["impl Send for LayoutError",1,["cairo_native::utils::LayoutError"]],["impl<'a> Send for JitNativeExecutor<'a>"],["impl<'a, K> Send for ProgramCache<'a, K>
    where\n K: Send,
    ",1,["cairo_native::cache::ProgramCache"]],["impl<'a, K> Send for AotProgramCache<'a, K>
    where\n K: Send,
    ",1,["cairo_native::cache::aot::AotProgramCache"]],["impl<'a, K> Send for JitProgramCache<'a, K>
    where\n K: Send,
    ",1,["cairo_native::cache::jit::JitProgramCache"]],["impl<'m> !Send for NativeModule<'m>",1,["cairo_native::module::NativeModule"]],["impl<T> !Send for ArrayAbi<T>",1,["cairo_native::starknet::ArrayAbi"]]]],["cairo_native_compile",[["impl Send for RunMode",1,["cairo_native_compile::RunMode"]],["impl Send for Args",1,["cairo_native_compile::Args"]]]],["cairo_native_dump",[["impl Send for CompilerOutput",1,["cairo_native_dump::CompilerOutput"]],["impl Send for CmdLine",1,["cairo_native_dump::CmdLine"]]]],["cairo_native_run",[["impl Send for RunMode",1,["cairo_native_run::RunMode"]],["impl Send for RunMode",1,["cairo_native_run::utils::RunMode"]],["impl Send for TestStatus",1,["cairo_native_run::utils::test::TestStatus"]],["impl Send for Args",1,["cairo_native_run::Args"]],["impl Send for RunArgs",1,["cairo_native_run::utils::RunArgs"]],["impl Send for TestResult",1,["cairo_native_run::utils::test::TestResult"]],["impl Send for TestsSummary",1,["cairo_native_run::utils::test::TestsSummary"]]]],["cairo_native_runtime",[["impl !Send for FeltDict",1,["cairo_native_runtime::FeltDict"]],["impl Send for DICT_GAS_REFUND_PER_ACCESS",1,["cairo_native_runtime::DICT_GAS_REFUND_PER_ACCESS"]],["impl Send for FormattedItem",1,["cairo_native_runtime::FormattedItem"]],["impl Send for HALF_PRIME",1,["cairo_native_runtime::HALF_PRIME"]]]],["cairo_native_stress",[["impl Send for StressTestCommand",1,["cairo_native_stress::StressTestCommand"]],["impl<'a, K> Send for NaiveAotCache<'a, K>
    where\n K: Send,
    ",1,["cairo_native_stress::NaiveAotCache"]]]],["cairo_native_test",[["impl Send for RunMode",1,["cairo_native_test::utils::RunMode"]],["impl Send for TestStatus",1,["cairo_native_test::utils::test::TestStatus"]],["impl Send for Args",1,["cairo_native_test::Args"]],["impl Send for RunArgs",1,["cairo_native_test::utils::RunArgs"]],["impl Send for TestResult",1,["cairo_native_test::utils::test::TestResult"]],["impl Send for TestsSummary",1,["cairo_native_test::utils::test::TestsSummary"]]]],["scarb_native_dump",[["impl Send for RunMode",1,["scarb_native_dump::utils::RunMode"]],["impl Send for TestStatus",1,["scarb_native_dump::utils::test::TestStatus"]],["impl Send for RunArgs",1,["scarb_native_dump::utils::RunArgs"]],["impl Send for TestResult",1,["scarb_native_dump::utils::test::TestResult"]],["impl Send for TestsSummary",1,["scarb_native_dump::utils::test::TestsSummary"]]]],["scarb_native_test",[["impl Send for TestKind",1,["scarb_native_test::TestKind"]],["impl Send for RunMode",1,["scarb_native_test::utils::RunMode"]],["impl Send for TestStatus",1,["scarb_native_test::utils::test::TestStatus"]],["impl Send for Args",1,["scarb_native_test::Args"]],["impl Send for TargetGroupDeduplicator",1,["scarb_native_test::TargetGroupDeduplicator"]],["impl Send for RunArgs",1,["scarb_native_test::utils::RunArgs"]],["impl Send for TestResult",1,["scarb_native_test::utils::test::TestResult"]],["impl Send for TestsSummary",1,["scarb_native_test::utils::test::TestsSummary"]]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl !Send for MetadataStorage",1,["cairo_native::metadata::MetadataStorage"]],["impl !Send for TailRecursionMeta",1,["cairo_native::metadata::tail_recursion::TailRecursionMeta"]],["impl Send for OptLevel",1,["cairo_native::ffi::OptLevel"]],["impl Send for Value",1,["cairo_native::values::Value"]],["impl Send for CompilerError",1,["cairo_native::error::CompilerError"]],["impl Send for Error",1,["cairo_native::error::Error"]],["impl Send for SierraAssertError",1,["cairo_native::error::SierraAssertError"]],["impl Send for BreakpointEvent",1,["cairo_native::metadata::auto_breakpoint::BreakpointEvent"]],["impl Send for GasMetadataError",1,["cairo_native::metadata::gas::GasMetadataError"]],["impl Send for NativeContext"],["impl Send for NativeAssertError",1,["cairo_native::error::panic::NativeAssertError"]],["impl Send for BuiltinStats",1,["cairo_native::execution_result::BuiltinStats"]],["impl Send for ContractExecutionResult",1,["cairo_native::execution_result::ContractExecutionResult"]],["impl Send for ExecutionResult",1,["cairo_native::execution_result::ExecutionResult"]],["impl Send for AotContractExecutor",1,["cairo_native::executor::contract::AotContractExecutor"]],["impl Send for AotNativeExecutor"],["impl Send for JitNativeExecutor<'_>"],["impl Send for AutoBreakpoint",1,["cairo_native::metadata::auto_breakpoint::AutoBreakpoint"]],["impl Send for DebugUtils",1,["cairo_native::metadata::debug_utils::DebugUtils"]],["impl Send for DropOverridesMeta",1,["cairo_native::metadata::drop_overrides::DropOverridesMeta"]],["impl Send for DupOverridesMeta",1,["cairo_native::metadata::dup_overrides::DupOverridesMeta"]],["impl Send for EnumSnapshotVariantsMeta",1,["cairo_native::metadata::enum_snapshot_variants::EnumSnapshotVariantsMeta"]],["impl Send for GasCost",1,["cairo_native::metadata::gas::GasCost"]],["impl Send for GasMetadata",1,["cairo_native::metadata::gas::GasMetadata"]],["impl Send for MetadataComputationConfig",1,["cairo_native::metadata::gas::MetadataComputationConfig"]],["impl Send for ReallocBindingsMeta",1,["cairo_native::metadata::realloc_bindings::ReallocBindingsMeta"]],["impl Send for RuntimeBindingsMeta",1,["cairo_native::metadata::runtime_bindings::RuntimeBindingsMeta"]],["impl Send for BlockInfo",1,["cairo_native::starknet::BlockInfo"]],["impl Send for DummySyscallHandler",1,["cairo_native::starknet::DummySyscallHandler"]],["impl Send for ExecutionInfo",1,["cairo_native::starknet::ExecutionInfo"]],["impl Send for ExecutionInfoV2",1,["cairo_native::starknet::ExecutionInfoV2"]],["impl Send for Felt252Abi",1,["cairo_native::starknet::Felt252Abi"]],["impl Send for ResourceBounds",1,["cairo_native::starknet::ResourceBounds"]],["impl Send for Secp256k1Point",1,["cairo_native::starknet::Secp256k1Point"]],["impl Send for Secp256r1Point",1,["cairo_native::starknet::Secp256r1Point"]],["impl Send for TxInfo",1,["cairo_native::starknet::TxInfo"]],["impl Send for TxV2Info",1,["cairo_native::starknet::TxV2Info"]],["impl Send for U256",1,["cairo_native::starknet::U256"]],["impl Send for ContractLogs",1,["cairo_native::starknet_stub::ContractLogs"]],["impl Send for StubEvent",1,["cairo_native::starknet_stub::StubEvent"]],["impl Send for StubSyscallHandler",1,["cairo_native::starknet_stub::StubSyscallHandler"]],["impl Send for BuiltinCosts",1,["cairo_native::utils::BuiltinCosts"]],["impl Send for LayoutError",1,["cairo_native::utils::LayoutError"]],["impl<'a, K> Send for ProgramCache<'a, K>
    where\n K: Send,
    ",1,["cairo_native::cache::ProgramCache"]],["impl<'a, K> Send for AotProgramCache<'a, K>
    where\n K: Send,
    ",1,["cairo_native::cache::aot::AotProgramCache"]],["impl<'a, K> Send for JitProgramCache<'a, K>
    where\n K: Send,
    ",1,["cairo_native::cache::jit::JitProgramCache"]],["impl<'m> !Send for NativeModule<'m>",1,["cairo_native::module::NativeModule"]],["impl<T> !Send for ArrayAbi<T>",1,["cairo_native::starknet::ArrayAbi"]]]],["cairo_native_compile",[["impl Send for RunMode",1,["cairo_native_compile::RunMode"]],["impl Send for Args",1,["cairo_native_compile::Args"]]]],["cairo_native_dump",[["impl Send for CompilerOutput",1,["cairo_native_dump::CompilerOutput"]],["impl Send for CmdLine",1,["cairo_native_dump::CmdLine"]]]],["cairo_native_run",[["impl Send for RunMode",1,["cairo_native_run::RunMode"]],["impl Send for RunMode",1,["cairo_native_run::utils::RunMode"]],["impl Send for TestStatus",1,["cairo_native_run::utils::test::TestStatus"]],["impl Send for Args",1,["cairo_native_run::Args"]],["impl Send for RunArgs",1,["cairo_native_run::utils::RunArgs"]],["impl Send for TestResult",1,["cairo_native_run::utils::test::TestResult"]],["impl Send for TestsSummary",1,["cairo_native_run::utils::test::TestsSummary"]]]],["cairo_native_runtime",[["impl !Send for FeltDict",1,["cairo_native_runtime::FeltDict"]],["impl Send for DICT_GAS_REFUND_PER_ACCESS",1,["cairo_native_runtime::DICT_GAS_REFUND_PER_ACCESS"]],["impl Send for FormattedItem",1,["cairo_native_runtime::FormattedItem"]],["impl Send for HALF_PRIME",1,["cairo_native_runtime::HALF_PRIME"]]]],["cairo_native_stress",[["impl Send for StressTestCommand",1,["cairo_native_stress::StressTestCommand"]],["impl<'a, K> Send for NaiveAotCache<'a, K>
    where\n K: Send,
    ",1,["cairo_native_stress::NaiveAotCache"]]]],["cairo_native_test",[["impl Send for RunMode",1,["cairo_native_test::utils::RunMode"]],["impl Send for TestStatus",1,["cairo_native_test::utils::test::TestStatus"]],["impl Send for Args",1,["cairo_native_test::Args"]],["impl Send for RunArgs",1,["cairo_native_test::utils::RunArgs"]],["impl Send for TestResult",1,["cairo_native_test::utils::test::TestResult"]],["impl Send for TestsSummary",1,["cairo_native_test::utils::test::TestsSummary"]]]],["scarb_native_dump",[["impl Send for RunMode",1,["scarb_native_dump::utils::RunMode"]],["impl Send for TestStatus",1,["scarb_native_dump::utils::test::TestStatus"]],["impl Send for RunArgs",1,["scarb_native_dump::utils::RunArgs"]],["impl Send for TestResult",1,["scarb_native_dump::utils::test::TestResult"]],["impl Send for TestsSummary",1,["scarb_native_dump::utils::test::TestsSummary"]]]],["scarb_native_test",[["impl Send for TestKind",1,["scarb_native_test::TestKind"]],["impl Send for RunMode",1,["scarb_native_test::utils::RunMode"]],["impl Send for TestStatus",1,["scarb_native_test::utils::test::TestStatus"]],["impl Send for Args",1,["scarb_native_test::Args"]],["impl Send for TargetGroupDeduplicator",1,["scarb_native_test::TargetGroupDeduplicator"]],["impl Send for RunArgs",1,["scarb_native_test::utils::RunArgs"]],["impl Send for TestResult",1,["scarb_native_test::utils::test::TestResult"]],["impl Send for TestsSummary",1,["scarb_native_test::utils::test::TestsSummary"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[17490,631,650,2281,1388,906,2007,1717,2673]} \ No newline at end of file +//{"start":57,"fragment_lengths":[17480,631,650,2281,1388,906,2007,1717,2673]} \ No newline at end of file diff --git a/trait.impl/core/marker/trait.StructuralPartialEq.js b/trait.impl/core/marker/trait.StructuralPartialEq.js index 028220d64..70f0f5553 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([["cairo_native",[["impl StructuralPartialEq for OptLevel"],["impl StructuralPartialEq for BreakpointEvent"],["impl StructuralPartialEq for GasMetadataError"],["impl StructuralPartialEq for NativeContext"],["impl StructuralPartialEq for BuiltinStats"],["impl StructuralPartialEq for ContractExecutionResult"],["impl StructuralPartialEq for ExecutionResult"],["impl StructuralPartialEq for GasCost"],["impl StructuralPartialEq for GasMetadata"],["impl StructuralPartialEq for BlockInfo"],["impl StructuralPartialEq for ExecutionInfo"],["impl StructuralPartialEq for ExecutionInfoV2"],["impl StructuralPartialEq for ResourceBounds"],["impl StructuralPartialEq for Secp256k1Point"],["impl StructuralPartialEq for Secp256r1Point"],["impl StructuralPartialEq for TxInfo"],["impl StructuralPartialEq for TxV2Info"],["impl StructuralPartialEq for U256"],["impl StructuralPartialEq for LayoutError"]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl StructuralPartialEq for OptLevel"],["impl StructuralPartialEq for BreakpointEvent"],["impl StructuralPartialEq for GasMetadataError"],["impl StructuralPartialEq for NativeContext"],["impl StructuralPartialEq for BuiltinStats"],["impl StructuralPartialEq for ContractExecutionResult"],["impl StructuralPartialEq for ExecutionResult"],["impl StructuralPartialEq for GasCost"],["impl StructuralPartialEq for GasMetadata"],["impl StructuralPartialEq for BlockInfo"],["impl StructuralPartialEq for ExecutionInfo"],["impl StructuralPartialEq for ExecutionInfoV2"],["impl StructuralPartialEq for ResourceBounds"],["impl StructuralPartialEq for Secp256k1Point"],["impl StructuralPartialEq for Secp256r1Point"],["impl StructuralPartialEq for TxInfo"],["impl StructuralPartialEq for TxV2Info"],["impl StructuralPartialEq for U256"],["impl StructuralPartialEq for LayoutError"]]]]); 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 975facf6b..25b04f3bc 100644 --- a/trait.impl/core/marker/trait.Sync.js +++ b/trait.impl/core/marker/trait.Sync.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["cairo_native",[["impl !Sync for MetadataStorage",1,["cairo_native::metadata::MetadataStorage"]],["impl !Sync for TailRecursionMeta",1,["cairo_native::metadata::tail_recursion::TailRecursionMeta"]],["impl Sync for OptLevel",1,["cairo_native::ffi::OptLevel"]],["impl Sync for Value",1,["cairo_native::values::Value"]],["impl Sync for CompilerError",1,["cairo_native::error::CompilerError"]],["impl Sync for Error",1,["cairo_native::error::Error"]],["impl Sync for SierraAssertError",1,["cairo_native::error::SierraAssertError"]],["impl Sync for BreakpointEvent",1,["cairo_native::metadata::auto_breakpoint::BreakpointEvent"]],["impl Sync for GasMetadataError",1,["cairo_native::metadata::gas::GasMetadataError"]],["impl Sync for NativeContext"],["impl Sync for NativeAssertError",1,["cairo_native::error::panic::NativeAssertError"]],["impl Sync for BuiltinStats",1,["cairo_native::execution_result::BuiltinStats"]],["impl Sync for ContractExecutionResult",1,["cairo_native::execution_result::ContractExecutionResult"]],["impl Sync for ExecutionResult",1,["cairo_native::execution_result::ExecutionResult"]],["impl Sync for AotContractExecutor",1,["cairo_native::executor::contract::AotContractExecutor"]],["impl Sync for AotNativeExecutor"],["impl Sync for AutoBreakpoint",1,["cairo_native::metadata::auto_breakpoint::AutoBreakpoint"]],["impl Sync for DebugUtils",1,["cairo_native::metadata::debug_utils::DebugUtils"]],["impl Sync for DropOverridesMeta",1,["cairo_native::metadata::drop_overrides::DropOverridesMeta"]],["impl Sync for DupOverridesMeta",1,["cairo_native::metadata::dup_overrides::DupOverridesMeta"]],["impl Sync for EnumSnapshotVariantsMeta",1,["cairo_native::metadata::enum_snapshot_variants::EnumSnapshotVariantsMeta"]],["impl Sync for GasCost",1,["cairo_native::metadata::gas::GasCost"]],["impl Sync for GasMetadata",1,["cairo_native::metadata::gas::GasMetadata"]],["impl Sync for MetadataComputationConfig",1,["cairo_native::metadata::gas::MetadataComputationConfig"]],["impl Sync for ReallocBindingsMeta",1,["cairo_native::metadata::realloc_bindings::ReallocBindingsMeta"]],["impl Sync for RuntimeBindingsMeta",1,["cairo_native::metadata::runtime_bindings::RuntimeBindingsMeta"]],["impl Sync for BlockInfo",1,["cairo_native::starknet::BlockInfo"]],["impl Sync for DummySyscallHandler",1,["cairo_native::starknet::DummySyscallHandler"]],["impl Sync for ExecutionInfo",1,["cairo_native::starknet::ExecutionInfo"]],["impl Sync for ExecutionInfoV2",1,["cairo_native::starknet::ExecutionInfoV2"]],["impl Sync for Felt252Abi",1,["cairo_native::starknet::Felt252Abi"]],["impl Sync for ResourceBounds",1,["cairo_native::starknet::ResourceBounds"]],["impl Sync for Secp256k1Point",1,["cairo_native::starknet::Secp256k1Point"]],["impl Sync for Secp256r1Point",1,["cairo_native::starknet::Secp256r1Point"]],["impl Sync for TxInfo",1,["cairo_native::starknet::TxInfo"]],["impl Sync for TxV2Info",1,["cairo_native::starknet::TxV2Info"]],["impl Sync for U256",1,["cairo_native::starknet::U256"]],["impl Sync for ContractLogs",1,["cairo_native::starknet_stub::ContractLogs"]],["impl Sync for StubEvent",1,["cairo_native::starknet_stub::StubEvent"]],["impl Sync for StubSyscallHandler",1,["cairo_native::starknet_stub::StubSyscallHandler"]],["impl Sync for BuiltinCosts",1,["cairo_native::utils::BuiltinCosts"]],["impl Sync for LayoutError",1,["cairo_native::utils::LayoutError"]],["impl<'a> Sync for JitNativeExecutor<'a>"],["impl<'a, K> Sync for ProgramCache<'a, K>
    where\n K: Sync,
    ",1,["cairo_native::cache::ProgramCache"]],["impl<'a, K> Sync for AotProgramCache<'a, K>
    where\n K: Sync,
    ",1,["cairo_native::cache::aot::AotProgramCache"]],["impl<'a, K> Sync for JitProgramCache<'a, K>
    where\n K: Sync,
    ",1,["cairo_native::cache::jit::JitProgramCache"]],["impl<'m> !Sync for NativeModule<'m>",1,["cairo_native::module::NativeModule"]],["impl<T> !Sync for ArrayAbi<T>",1,["cairo_native::starknet::ArrayAbi"]]]],["cairo_native_compile",[["impl Sync for RunMode",1,["cairo_native_compile::RunMode"]],["impl Sync for Args",1,["cairo_native_compile::Args"]]]],["cairo_native_dump",[["impl Sync for CompilerOutput",1,["cairo_native_dump::CompilerOutput"]],["impl Sync for CmdLine",1,["cairo_native_dump::CmdLine"]]]],["cairo_native_run",[["impl Sync for RunMode",1,["cairo_native_run::RunMode"]],["impl Sync for RunMode",1,["cairo_native_run::utils::RunMode"]],["impl Sync for TestStatus",1,["cairo_native_run::utils::test::TestStatus"]],["impl Sync for Args",1,["cairo_native_run::Args"]],["impl Sync for RunArgs",1,["cairo_native_run::utils::RunArgs"]],["impl Sync for TestResult",1,["cairo_native_run::utils::test::TestResult"]],["impl Sync for TestsSummary",1,["cairo_native_run::utils::test::TestsSummary"]]]],["cairo_native_runtime",[["impl !Sync for FeltDict",1,["cairo_native_runtime::FeltDict"]],["impl Sync for DICT_GAS_REFUND_PER_ACCESS",1,["cairo_native_runtime::DICT_GAS_REFUND_PER_ACCESS"]],["impl Sync for FormattedItem",1,["cairo_native_runtime::FormattedItem"]],["impl Sync for HALF_PRIME",1,["cairo_native_runtime::HALF_PRIME"]]]],["cairo_native_stress",[["impl Sync for StressTestCommand",1,["cairo_native_stress::StressTestCommand"]],["impl<'a, K> Sync for NaiveAotCache<'a, K>
    where\n K: Sync,
    ",1,["cairo_native_stress::NaiveAotCache"]]]],["cairo_native_test",[["impl Sync for RunMode",1,["cairo_native_test::utils::RunMode"]],["impl Sync for TestStatus",1,["cairo_native_test::utils::test::TestStatus"]],["impl Sync for Args",1,["cairo_native_test::Args"]],["impl Sync for RunArgs",1,["cairo_native_test::utils::RunArgs"]],["impl Sync for TestResult",1,["cairo_native_test::utils::test::TestResult"]],["impl Sync for TestsSummary",1,["cairo_native_test::utils::test::TestsSummary"]]]],["scarb_native_dump",[["impl Sync for RunMode",1,["scarb_native_dump::utils::RunMode"]],["impl Sync for TestStatus",1,["scarb_native_dump::utils::test::TestStatus"]],["impl Sync for RunArgs",1,["scarb_native_dump::utils::RunArgs"]],["impl Sync for TestResult",1,["scarb_native_dump::utils::test::TestResult"]],["impl Sync for TestsSummary",1,["scarb_native_dump::utils::test::TestsSummary"]]]],["scarb_native_test",[["impl Sync for TestKind",1,["scarb_native_test::TestKind"]],["impl Sync for RunMode",1,["scarb_native_test::utils::RunMode"]],["impl Sync for TestStatus",1,["scarb_native_test::utils::test::TestStatus"]],["impl Sync for Args",1,["scarb_native_test::Args"]],["impl Sync for TargetGroupDeduplicator",1,["scarb_native_test::TargetGroupDeduplicator"]],["impl Sync for RunArgs",1,["scarb_native_test::utils::RunArgs"]],["impl Sync for TestResult",1,["scarb_native_test::utils::test::TestResult"]],["impl Sync for TestsSummary",1,["scarb_native_test::utils::test::TestsSummary"]]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl !Sync for MetadataStorage",1,["cairo_native::metadata::MetadataStorage"]],["impl !Sync for TailRecursionMeta",1,["cairo_native::metadata::tail_recursion::TailRecursionMeta"]],["impl Sync for OptLevel",1,["cairo_native::ffi::OptLevel"]],["impl Sync for Value",1,["cairo_native::values::Value"]],["impl Sync for CompilerError",1,["cairo_native::error::CompilerError"]],["impl Sync for Error",1,["cairo_native::error::Error"]],["impl Sync for SierraAssertError",1,["cairo_native::error::SierraAssertError"]],["impl Sync for BreakpointEvent",1,["cairo_native::metadata::auto_breakpoint::BreakpointEvent"]],["impl Sync for GasMetadataError",1,["cairo_native::metadata::gas::GasMetadataError"]],["impl Sync for NativeContext"],["impl Sync for NativeAssertError",1,["cairo_native::error::panic::NativeAssertError"]],["impl Sync for BuiltinStats",1,["cairo_native::execution_result::BuiltinStats"]],["impl Sync for ContractExecutionResult",1,["cairo_native::execution_result::ContractExecutionResult"]],["impl Sync for ExecutionResult",1,["cairo_native::execution_result::ExecutionResult"]],["impl Sync for AotContractExecutor",1,["cairo_native::executor::contract::AotContractExecutor"]],["impl Sync for AotNativeExecutor"],["impl Sync for JitNativeExecutor<'_>"],["impl Sync for AutoBreakpoint",1,["cairo_native::metadata::auto_breakpoint::AutoBreakpoint"]],["impl Sync for DebugUtils",1,["cairo_native::metadata::debug_utils::DebugUtils"]],["impl Sync for DropOverridesMeta",1,["cairo_native::metadata::drop_overrides::DropOverridesMeta"]],["impl Sync for DupOverridesMeta",1,["cairo_native::metadata::dup_overrides::DupOverridesMeta"]],["impl Sync for EnumSnapshotVariantsMeta",1,["cairo_native::metadata::enum_snapshot_variants::EnumSnapshotVariantsMeta"]],["impl Sync for GasCost",1,["cairo_native::metadata::gas::GasCost"]],["impl Sync for GasMetadata",1,["cairo_native::metadata::gas::GasMetadata"]],["impl Sync for MetadataComputationConfig",1,["cairo_native::metadata::gas::MetadataComputationConfig"]],["impl Sync for ReallocBindingsMeta",1,["cairo_native::metadata::realloc_bindings::ReallocBindingsMeta"]],["impl Sync for RuntimeBindingsMeta",1,["cairo_native::metadata::runtime_bindings::RuntimeBindingsMeta"]],["impl Sync for BlockInfo",1,["cairo_native::starknet::BlockInfo"]],["impl Sync for DummySyscallHandler",1,["cairo_native::starknet::DummySyscallHandler"]],["impl Sync for ExecutionInfo",1,["cairo_native::starknet::ExecutionInfo"]],["impl Sync for ExecutionInfoV2",1,["cairo_native::starknet::ExecutionInfoV2"]],["impl Sync for Felt252Abi",1,["cairo_native::starknet::Felt252Abi"]],["impl Sync for ResourceBounds",1,["cairo_native::starknet::ResourceBounds"]],["impl Sync for Secp256k1Point",1,["cairo_native::starknet::Secp256k1Point"]],["impl Sync for Secp256r1Point",1,["cairo_native::starknet::Secp256r1Point"]],["impl Sync for TxInfo",1,["cairo_native::starknet::TxInfo"]],["impl Sync for TxV2Info",1,["cairo_native::starknet::TxV2Info"]],["impl Sync for U256",1,["cairo_native::starknet::U256"]],["impl Sync for ContractLogs",1,["cairo_native::starknet_stub::ContractLogs"]],["impl Sync for StubEvent",1,["cairo_native::starknet_stub::StubEvent"]],["impl Sync for StubSyscallHandler",1,["cairo_native::starknet_stub::StubSyscallHandler"]],["impl Sync for BuiltinCosts",1,["cairo_native::utils::BuiltinCosts"]],["impl Sync for LayoutError",1,["cairo_native::utils::LayoutError"]],["impl<'a, K> Sync for ProgramCache<'a, K>
    where\n K: Sync,
    ",1,["cairo_native::cache::ProgramCache"]],["impl<'a, K> Sync for AotProgramCache<'a, K>
    where\n K: Sync,
    ",1,["cairo_native::cache::aot::AotProgramCache"]],["impl<'a, K> Sync for JitProgramCache<'a, K>
    where\n K: Sync,
    ",1,["cairo_native::cache::jit::JitProgramCache"]],["impl<'m> !Sync for NativeModule<'m>",1,["cairo_native::module::NativeModule"]],["impl<T> !Sync for ArrayAbi<T>",1,["cairo_native::starknet::ArrayAbi"]]]],["cairo_native_compile",[["impl Sync for RunMode",1,["cairo_native_compile::RunMode"]],["impl Sync for Args",1,["cairo_native_compile::Args"]]]],["cairo_native_dump",[["impl Sync for CompilerOutput",1,["cairo_native_dump::CompilerOutput"]],["impl Sync for CmdLine",1,["cairo_native_dump::CmdLine"]]]],["cairo_native_run",[["impl Sync for RunMode",1,["cairo_native_run::RunMode"]],["impl Sync for RunMode",1,["cairo_native_run::utils::RunMode"]],["impl Sync for TestStatus",1,["cairo_native_run::utils::test::TestStatus"]],["impl Sync for Args",1,["cairo_native_run::Args"]],["impl Sync for RunArgs",1,["cairo_native_run::utils::RunArgs"]],["impl Sync for TestResult",1,["cairo_native_run::utils::test::TestResult"]],["impl Sync for TestsSummary",1,["cairo_native_run::utils::test::TestsSummary"]]]],["cairo_native_runtime",[["impl !Sync for FeltDict",1,["cairo_native_runtime::FeltDict"]],["impl Sync for DICT_GAS_REFUND_PER_ACCESS",1,["cairo_native_runtime::DICT_GAS_REFUND_PER_ACCESS"]],["impl Sync for FormattedItem",1,["cairo_native_runtime::FormattedItem"]],["impl Sync for HALF_PRIME",1,["cairo_native_runtime::HALF_PRIME"]]]],["cairo_native_stress",[["impl Sync for StressTestCommand",1,["cairo_native_stress::StressTestCommand"]],["impl<'a, K> Sync for NaiveAotCache<'a, K>
    where\n K: Sync,
    ",1,["cairo_native_stress::NaiveAotCache"]]]],["cairo_native_test",[["impl Sync for RunMode",1,["cairo_native_test::utils::RunMode"]],["impl Sync for TestStatus",1,["cairo_native_test::utils::test::TestStatus"]],["impl Sync for Args",1,["cairo_native_test::Args"]],["impl Sync for RunArgs",1,["cairo_native_test::utils::RunArgs"]],["impl Sync for TestResult",1,["cairo_native_test::utils::test::TestResult"]],["impl Sync for TestsSummary",1,["cairo_native_test::utils::test::TestsSummary"]]]],["scarb_native_dump",[["impl Sync for RunMode",1,["scarb_native_dump::utils::RunMode"]],["impl Sync for TestStatus",1,["scarb_native_dump::utils::test::TestStatus"]],["impl Sync for RunArgs",1,["scarb_native_dump::utils::RunArgs"]],["impl Sync for TestResult",1,["scarb_native_dump::utils::test::TestResult"]],["impl Sync for TestsSummary",1,["scarb_native_dump::utils::test::TestsSummary"]]]],["scarb_native_test",[["impl Sync for TestKind",1,["scarb_native_test::TestKind"]],["impl Sync for RunMode",1,["scarb_native_test::utils::RunMode"]],["impl Sync for TestStatus",1,["scarb_native_test::utils::test::TestStatus"]],["impl Sync for Args",1,["scarb_native_test::Args"]],["impl Sync for TargetGroupDeduplicator",1,["scarb_native_test::TargetGroupDeduplicator"]],["impl Sync for RunArgs",1,["scarb_native_test::utils::RunArgs"]],["impl Sync for TestResult",1,["scarb_native_test::utils::test::TestResult"]],["impl Sync for TestsSummary",1,["scarb_native_test::utils::test::TestsSummary"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[17490,631,650,2281,1388,906,2007,1717,2673]} \ No newline at end of file +//{"start":57,"fragment_lengths":[17480,631,650,2281,1388,906,2007,1717,2673]} \ No newline at end of file diff --git a/trait.impl/core/marker/trait.Unpin.js b/trait.impl/core/marker/trait.Unpin.js index 229572383..2a09e53a7 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([["cairo_native",[["impl Unpin for OptLevel",1,["cairo_native::ffi::OptLevel"]],["impl Unpin for Value",1,["cairo_native::values::Value"]],["impl Unpin for CompilerError",1,["cairo_native::error::CompilerError"]],["impl Unpin for Error",1,["cairo_native::error::Error"]],["impl Unpin for SierraAssertError",1,["cairo_native::error::SierraAssertError"]],["impl Unpin for BreakpointEvent",1,["cairo_native::metadata::auto_breakpoint::BreakpointEvent"]],["impl Unpin for GasMetadataError",1,["cairo_native::metadata::gas::GasMetadataError"]],["impl Unpin for NativeContext",1,["cairo_native::context::NativeContext"]],["impl Unpin for NativeAssertError",1,["cairo_native::error::panic::NativeAssertError"]],["impl Unpin for BuiltinStats",1,["cairo_native::execution_result::BuiltinStats"]],["impl Unpin for ContractExecutionResult",1,["cairo_native::execution_result::ContractExecutionResult"]],["impl Unpin for ExecutionResult",1,["cairo_native::execution_result::ExecutionResult"]],["impl Unpin for AotContractExecutor",1,["cairo_native::executor::contract::AotContractExecutor"]],["impl Unpin for AotNativeExecutor",1,["cairo_native::executor::aot::AotNativeExecutor"]],["impl Unpin for AutoBreakpoint",1,["cairo_native::metadata::auto_breakpoint::AutoBreakpoint"]],["impl Unpin for DebugUtils",1,["cairo_native::metadata::debug_utils::DebugUtils"]],["impl Unpin for DropOverridesMeta",1,["cairo_native::metadata::drop_overrides::DropOverridesMeta"]],["impl Unpin for DupOverridesMeta",1,["cairo_native::metadata::dup_overrides::DupOverridesMeta"]],["impl Unpin for EnumSnapshotVariantsMeta",1,["cairo_native::metadata::enum_snapshot_variants::EnumSnapshotVariantsMeta"]],["impl Unpin for GasCost",1,["cairo_native::metadata::gas::GasCost"]],["impl Unpin for GasMetadata",1,["cairo_native::metadata::gas::GasMetadata"]],["impl Unpin for MetadataComputationConfig",1,["cairo_native::metadata::gas::MetadataComputationConfig"]],["impl Unpin for ReallocBindingsMeta",1,["cairo_native::metadata::realloc_bindings::ReallocBindingsMeta"]],["impl Unpin for RuntimeBindingsMeta",1,["cairo_native::metadata::runtime_bindings::RuntimeBindingsMeta"]],["impl Unpin for MetadataStorage",1,["cairo_native::metadata::MetadataStorage"]],["impl Unpin for TailRecursionMeta",1,["cairo_native::metadata::tail_recursion::TailRecursionMeta"]],["impl Unpin for BlockInfo",1,["cairo_native::starknet::BlockInfo"]],["impl Unpin for DummySyscallHandler",1,["cairo_native::starknet::DummySyscallHandler"]],["impl Unpin for ExecutionInfo",1,["cairo_native::starknet::ExecutionInfo"]],["impl Unpin for ExecutionInfoV2",1,["cairo_native::starknet::ExecutionInfoV2"]],["impl Unpin for Felt252Abi",1,["cairo_native::starknet::Felt252Abi"]],["impl Unpin for ResourceBounds",1,["cairo_native::starknet::ResourceBounds"]],["impl Unpin for Secp256k1Point",1,["cairo_native::starknet::Secp256k1Point"]],["impl Unpin for Secp256r1Point",1,["cairo_native::starknet::Secp256r1Point"]],["impl Unpin for TxInfo",1,["cairo_native::starknet::TxInfo"]],["impl Unpin for TxV2Info",1,["cairo_native::starknet::TxV2Info"]],["impl Unpin for U256",1,["cairo_native::starknet::U256"]],["impl Unpin for ContractLogs",1,["cairo_native::starknet_stub::ContractLogs"]],["impl Unpin for StubEvent",1,["cairo_native::starknet_stub::StubEvent"]],["impl Unpin for StubSyscallHandler",1,["cairo_native::starknet_stub::StubSyscallHandler"]],["impl Unpin for BuiltinCosts",1,["cairo_native::utils::BuiltinCosts"]],["impl Unpin for LayoutError",1,["cairo_native::utils::LayoutError"]],["impl<'a, K> Unpin for ProgramCache<'a, K>
    where\n K: Unpin,
    ",1,["cairo_native::cache::ProgramCache"]],["impl<'a, K> Unpin for AotProgramCache<'a, K>
    where\n K: Unpin,
    ",1,["cairo_native::cache::aot::AotProgramCache"]],["impl<'a, K> Unpin for JitProgramCache<'a, K>
    where\n K: Unpin,
    ",1,["cairo_native::cache::jit::JitProgramCache"]],["impl<'m> Unpin for JitNativeExecutor<'m>",1,["cairo_native::executor::jit::JitNativeExecutor"]],["impl<'m> Unpin for NativeModule<'m>",1,["cairo_native::module::NativeModule"]],["impl<T> Unpin for ArrayAbi<T>",1,["cairo_native::starknet::ArrayAbi"]]]],["cairo_native_compile",[["impl Unpin for RunMode",1,["cairo_native_compile::RunMode"]],["impl Unpin for Args",1,["cairo_native_compile::Args"]]]],["cairo_native_dump",[["impl Unpin for CompilerOutput",1,["cairo_native_dump::CompilerOutput"]],["impl Unpin for CmdLine",1,["cairo_native_dump::CmdLine"]]]],["cairo_native_run",[["impl Unpin for RunMode",1,["cairo_native_run::RunMode"]],["impl Unpin for RunMode",1,["cairo_native_run::utils::RunMode"]],["impl Unpin for TestStatus",1,["cairo_native_run::utils::test::TestStatus"]],["impl Unpin for Args",1,["cairo_native_run::Args"]],["impl Unpin for RunArgs",1,["cairo_native_run::utils::RunArgs"]],["impl Unpin for TestResult",1,["cairo_native_run::utils::test::TestResult"]],["impl Unpin for TestsSummary",1,["cairo_native_run::utils::test::TestsSummary"]]]],["cairo_native_runtime",[["impl Unpin for DICT_GAS_REFUND_PER_ACCESS",1,["cairo_native_runtime::DICT_GAS_REFUND_PER_ACCESS"]],["impl Unpin for FeltDict",1,["cairo_native_runtime::FeltDict"]],["impl Unpin for FormattedItem",1,["cairo_native_runtime::FormattedItem"]],["impl Unpin for HALF_PRIME",1,["cairo_native_runtime::HALF_PRIME"]]]],["cairo_native_stress",[["impl Unpin for StressTestCommand",1,["cairo_native_stress::StressTestCommand"]],["impl<'a, K> Unpin for NaiveAotCache<'a, K>
    where\n K: Unpin,
    ",1,["cairo_native_stress::NaiveAotCache"]]]],["cairo_native_test",[["impl Unpin for RunMode",1,["cairo_native_test::utils::RunMode"]],["impl Unpin for TestStatus",1,["cairo_native_test::utils::test::TestStatus"]],["impl Unpin for Args",1,["cairo_native_test::Args"]],["impl Unpin for RunArgs",1,["cairo_native_test::utils::RunArgs"]],["impl Unpin for TestResult",1,["cairo_native_test::utils::test::TestResult"]],["impl Unpin for TestsSummary",1,["cairo_native_test::utils::test::TestsSummary"]]]],["scarb_native_dump",[["impl Unpin for RunMode",1,["scarb_native_dump::utils::RunMode"]],["impl Unpin for TestStatus",1,["scarb_native_dump::utils::test::TestStatus"]],["impl Unpin for RunArgs",1,["scarb_native_dump::utils::RunArgs"]],["impl Unpin for TestResult",1,["scarb_native_dump::utils::test::TestResult"]],["impl Unpin for TestsSummary",1,["scarb_native_dump::utils::test::TestsSummary"]]]],["scarb_native_test",[["impl Unpin for TestKind",1,["scarb_native_test::TestKind"]],["impl Unpin for RunMode",1,["scarb_native_test::utils::RunMode"]],["impl Unpin for TestStatus",1,["scarb_native_test::utils::test::TestStatus"]],["impl Unpin for Args",1,["scarb_native_test::Args"]],["impl Unpin for TargetGroupDeduplicator",1,["scarb_native_test::TargetGroupDeduplicator"]],["impl Unpin for RunArgs",1,["scarb_native_test::utils::RunArgs"]],["impl Unpin for TestResult",1,["scarb_native_test::utils::test::TestResult"]],["impl Unpin for TestsSummary",1,["scarb_native_test::utils::test::TestsSummary"]]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl Unpin for OptLevel",1,["cairo_native::ffi::OptLevel"]],["impl Unpin for Value",1,["cairo_native::values::Value"]],["impl Unpin for CompilerError",1,["cairo_native::error::CompilerError"]],["impl Unpin for Error",1,["cairo_native::error::Error"]],["impl Unpin for SierraAssertError",1,["cairo_native::error::SierraAssertError"]],["impl Unpin for BreakpointEvent",1,["cairo_native::metadata::auto_breakpoint::BreakpointEvent"]],["impl Unpin for GasMetadataError",1,["cairo_native::metadata::gas::GasMetadataError"]],["impl Unpin for NativeContext",1,["cairo_native::context::NativeContext"]],["impl Unpin for NativeAssertError",1,["cairo_native::error::panic::NativeAssertError"]],["impl Unpin for BuiltinStats",1,["cairo_native::execution_result::BuiltinStats"]],["impl Unpin for ContractExecutionResult",1,["cairo_native::execution_result::ContractExecutionResult"]],["impl Unpin for ExecutionResult",1,["cairo_native::execution_result::ExecutionResult"]],["impl Unpin for AotContractExecutor",1,["cairo_native::executor::contract::AotContractExecutor"]],["impl Unpin for AotNativeExecutor",1,["cairo_native::executor::aot::AotNativeExecutor"]],["impl Unpin for AutoBreakpoint",1,["cairo_native::metadata::auto_breakpoint::AutoBreakpoint"]],["impl Unpin for DebugUtils",1,["cairo_native::metadata::debug_utils::DebugUtils"]],["impl Unpin for DropOverridesMeta",1,["cairo_native::metadata::drop_overrides::DropOverridesMeta"]],["impl Unpin for DupOverridesMeta",1,["cairo_native::metadata::dup_overrides::DupOverridesMeta"]],["impl Unpin for EnumSnapshotVariantsMeta",1,["cairo_native::metadata::enum_snapshot_variants::EnumSnapshotVariantsMeta"]],["impl Unpin for GasCost",1,["cairo_native::metadata::gas::GasCost"]],["impl Unpin for GasMetadata",1,["cairo_native::metadata::gas::GasMetadata"]],["impl Unpin for MetadataComputationConfig",1,["cairo_native::metadata::gas::MetadataComputationConfig"]],["impl Unpin for ReallocBindingsMeta",1,["cairo_native::metadata::realloc_bindings::ReallocBindingsMeta"]],["impl Unpin for RuntimeBindingsMeta",1,["cairo_native::metadata::runtime_bindings::RuntimeBindingsMeta"]],["impl Unpin for MetadataStorage",1,["cairo_native::metadata::MetadataStorage"]],["impl Unpin for TailRecursionMeta",1,["cairo_native::metadata::tail_recursion::TailRecursionMeta"]],["impl Unpin for BlockInfo",1,["cairo_native::starknet::BlockInfo"]],["impl Unpin for DummySyscallHandler",1,["cairo_native::starknet::DummySyscallHandler"]],["impl Unpin for ExecutionInfo",1,["cairo_native::starknet::ExecutionInfo"]],["impl Unpin for ExecutionInfoV2",1,["cairo_native::starknet::ExecutionInfoV2"]],["impl Unpin for Felt252Abi",1,["cairo_native::starknet::Felt252Abi"]],["impl Unpin for ResourceBounds",1,["cairo_native::starknet::ResourceBounds"]],["impl Unpin for Secp256k1Point",1,["cairo_native::starknet::Secp256k1Point"]],["impl Unpin for Secp256r1Point",1,["cairo_native::starknet::Secp256r1Point"]],["impl Unpin for TxInfo",1,["cairo_native::starknet::TxInfo"]],["impl Unpin for TxV2Info",1,["cairo_native::starknet::TxV2Info"]],["impl Unpin for U256",1,["cairo_native::starknet::U256"]],["impl Unpin for ContractLogs",1,["cairo_native::starknet_stub::ContractLogs"]],["impl Unpin for StubEvent",1,["cairo_native::starknet_stub::StubEvent"]],["impl Unpin for StubSyscallHandler",1,["cairo_native::starknet_stub::StubSyscallHandler"]],["impl Unpin for BuiltinCosts",1,["cairo_native::utils::BuiltinCosts"]],["impl Unpin for LayoutError",1,["cairo_native::utils::LayoutError"]],["impl<'a, K> Unpin for ProgramCache<'a, K>
    where\n K: Unpin,
    ",1,["cairo_native::cache::ProgramCache"]],["impl<'a, K> Unpin for AotProgramCache<'a, K>
    where\n K: Unpin,
    ",1,["cairo_native::cache::aot::AotProgramCache"]],["impl<'a, K> Unpin for JitProgramCache<'a, K>
    where\n K: Unpin,
    ",1,["cairo_native::cache::jit::JitProgramCache"]],["impl<'m> Unpin for JitNativeExecutor<'m>",1,["cairo_native::executor::jit::JitNativeExecutor"]],["impl<'m> Unpin for NativeModule<'m>",1,["cairo_native::module::NativeModule"]],["impl<T> Unpin for ArrayAbi<T>",1,["cairo_native::starknet::ArrayAbi"]]]],["cairo_native_compile",[["impl Unpin for RunMode",1,["cairo_native_compile::RunMode"]],["impl Unpin for Args",1,["cairo_native_compile::Args"]]]],["cairo_native_dump",[["impl Unpin for CompilerOutput",1,["cairo_native_dump::CompilerOutput"]],["impl Unpin for CmdLine",1,["cairo_native_dump::CmdLine"]]]],["cairo_native_run",[["impl Unpin for RunMode",1,["cairo_native_run::RunMode"]],["impl Unpin for RunMode",1,["cairo_native_run::utils::RunMode"]],["impl Unpin for TestStatus",1,["cairo_native_run::utils::test::TestStatus"]],["impl Unpin for Args",1,["cairo_native_run::Args"]],["impl Unpin for RunArgs",1,["cairo_native_run::utils::RunArgs"]],["impl Unpin for TestResult",1,["cairo_native_run::utils::test::TestResult"]],["impl Unpin for TestsSummary",1,["cairo_native_run::utils::test::TestsSummary"]]]],["cairo_native_runtime",[["impl Unpin for DICT_GAS_REFUND_PER_ACCESS",1,["cairo_native_runtime::DICT_GAS_REFUND_PER_ACCESS"]],["impl Unpin for FeltDict",1,["cairo_native_runtime::FeltDict"]],["impl Unpin for FormattedItem",1,["cairo_native_runtime::FormattedItem"]],["impl Unpin for HALF_PRIME",1,["cairo_native_runtime::HALF_PRIME"]]]],["cairo_native_stress",[["impl Unpin for StressTestCommand",1,["cairo_native_stress::StressTestCommand"]],["impl<'a, K> Unpin for NaiveAotCache<'a, K>
    where\n K: Unpin,
    ",1,["cairo_native_stress::NaiveAotCache"]]]],["cairo_native_test",[["impl Unpin for RunMode",1,["cairo_native_test::utils::RunMode"]],["impl Unpin for TestStatus",1,["cairo_native_test::utils::test::TestStatus"]],["impl Unpin for Args",1,["cairo_native_test::Args"]],["impl Unpin for RunArgs",1,["cairo_native_test::utils::RunArgs"]],["impl Unpin for TestResult",1,["cairo_native_test::utils::test::TestResult"]],["impl Unpin for TestsSummary",1,["cairo_native_test::utils::test::TestsSummary"]]]],["scarb_native_dump",[["impl Unpin for RunMode",1,["scarb_native_dump::utils::RunMode"]],["impl Unpin for TestStatus",1,["scarb_native_dump::utils::test::TestStatus"]],["impl Unpin for RunArgs",1,["scarb_native_dump::utils::RunArgs"]],["impl Unpin for TestResult",1,["scarb_native_dump::utils::test::TestResult"]],["impl Unpin for TestsSummary",1,["scarb_native_dump::utils::test::TestsSummary"]]]],["scarb_native_test",[["impl Unpin for TestKind",1,["scarb_native_test::TestKind"]],["impl Unpin for RunMode",1,["scarb_native_test::utils::RunMode"]],["impl Unpin for TestStatus",1,["scarb_native_test::utils::test::TestStatus"]],["impl Unpin for Args",1,["scarb_native_test::Args"]],["impl Unpin for TargetGroupDeduplicator",1,["scarb_native_test::TargetGroupDeduplicator"]],["impl Unpin for RunArgs",1,["scarb_native_test::utils::RunArgs"]],["impl Unpin for TestResult",1,["scarb_native_test::utils::test::TestResult"]],["impl Unpin for TestsSummary",1,["scarb_native_test::utils::test::TestsSummary"]]]]]); 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 72b5fe253..c5420984c 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([["cairo_native_runtime",[["impl Deref for DICT_GAS_REFUND_PER_ACCESS"],["impl Deref for HALF_PRIME"]]]]); + var implementors = Object.fromEntries([["cairo_native_runtime",[["impl Deref for DICT_GAS_REFUND_PER_ACCESS"],["impl Deref for HALF_PRIME"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/ops/drop/trait.Drop.js b/trait.impl/core/ops/drop/trait.Drop.js index 2b352e1c4..674805f03 100644 --- a/trait.impl/core/ops/drop/trait.Drop.js +++ b/trait.impl/core/ops/drop/trait.Drop.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["cairo_native",[["impl Drop for AotContractExecutor"]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl Drop for AotContractExecutor"]]]]); 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 dc4365c7e..ac79605b0 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([["cairo_native",[["impl !RefUnwindSafe for Error",1,["cairo_native::error::Error"]],["impl !RefUnwindSafe for MetadataStorage",1,["cairo_native::metadata::MetadataStorage"]],["impl RefUnwindSafe for OptLevel",1,["cairo_native::ffi::OptLevel"]],["impl RefUnwindSafe for Value",1,["cairo_native::values::Value"]],["impl RefUnwindSafe for CompilerError",1,["cairo_native::error::CompilerError"]],["impl RefUnwindSafe for SierraAssertError",1,["cairo_native::error::SierraAssertError"]],["impl RefUnwindSafe for BreakpointEvent",1,["cairo_native::metadata::auto_breakpoint::BreakpointEvent"]],["impl RefUnwindSafe for GasMetadataError",1,["cairo_native::metadata::gas::GasMetadataError"]],["impl RefUnwindSafe for NativeContext",1,["cairo_native::context::NativeContext"]],["impl RefUnwindSafe for NativeAssertError",1,["cairo_native::error::panic::NativeAssertError"]],["impl RefUnwindSafe for BuiltinStats",1,["cairo_native::execution_result::BuiltinStats"]],["impl RefUnwindSafe for ContractExecutionResult",1,["cairo_native::execution_result::ContractExecutionResult"]],["impl RefUnwindSafe for ExecutionResult",1,["cairo_native::execution_result::ExecutionResult"]],["impl RefUnwindSafe for AotContractExecutor",1,["cairo_native::executor::contract::AotContractExecutor"]],["impl RefUnwindSafe for AotNativeExecutor",1,["cairo_native::executor::aot::AotNativeExecutor"]],["impl RefUnwindSafe for AutoBreakpoint",1,["cairo_native::metadata::auto_breakpoint::AutoBreakpoint"]],["impl RefUnwindSafe for DebugUtils",1,["cairo_native::metadata::debug_utils::DebugUtils"]],["impl RefUnwindSafe for DropOverridesMeta",1,["cairo_native::metadata::drop_overrides::DropOverridesMeta"]],["impl RefUnwindSafe for DupOverridesMeta",1,["cairo_native::metadata::dup_overrides::DupOverridesMeta"]],["impl RefUnwindSafe for EnumSnapshotVariantsMeta",1,["cairo_native::metadata::enum_snapshot_variants::EnumSnapshotVariantsMeta"]],["impl RefUnwindSafe for GasCost",1,["cairo_native::metadata::gas::GasCost"]],["impl RefUnwindSafe for GasMetadata",1,["cairo_native::metadata::gas::GasMetadata"]],["impl RefUnwindSafe for MetadataComputationConfig",1,["cairo_native::metadata::gas::MetadataComputationConfig"]],["impl RefUnwindSafe for ReallocBindingsMeta",1,["cairo_native::metadata::realloc_bindings::ReallocBindingsMeta"]],["impl RefUnwindSafe for RuntimeBindingsMeta",1,["cairo_native::metadata::runtime_bindings::RuntimeBindingsMeta"]],["impl RefUnwindSafe for TailRecursionMeta",1,["cairo_native::metadata::tail_recursion::TailRecursionMeta"]],["impl RefUnwindSafe for BlockInfo",1,["cairo_native::starknet::BlockInfo"]],["impl RefUnwindSafe for DummySyscallHandler",1,["cairo_native::starknet::DummySyscallHandler"]],["impl RefUnwindSafe for ExecutionInfo",1,["cairo_native::starknet::ExecutionInfo"]],["impl RefUnwindSafe for ExecutionInfoV2",1,["cairo_native::starknet::ExecutionInfoV2"]],["impl RefUnwindSafe for Felt252Abi",1,["cairo_native::starknet::Felt252Abi"]],["impl RefUnwindSafe for ResourceBounds",1,["cairo_native::starknet::ResourceBounds"]],["impl RefUnwindSafe for Secp256k1Point",1,["cairo_native::starknet::Secp256k1Point"]],["impl RefUnwindSafe for Secp256r1Point",1,["cairo_native::starknet::Secp256r1Point"]],["impl RefUnwindSafe for TxInfo",1,["cairo_native::starknet::TxInfo"]],["impl RefUnwindSafe for TxV2Info",1,["cairo_native::starknet::TxV2Info"]],["impl RefUnwindSafe for U256",1,["cairo_native::starknet::U256"]],["impl RefUnwindSafe for ContractLogs",1,["cairo_native::starknet_stub::ContractLogs"]],["impl RefUnwindSafe for StubEvent",1,["cairo_native::starknet_stub::StubEvent"]],["impl RefUnwindSafe for StubSyscallHandler",1,["cairo_native::starknet_stub::StubSyscallHandler"]],["impl RefUnwindSafe for BuiltinCosts",1,["cairo_native::utils::BuiltinCosts"]],["impl RefUnwindSafe for LayoutError",1,["cairo_native::utils::LayoutError"]],["impl<'a, K> RefUnwindSafe for ProgramCache<'a, K>
    where\n K: RefUnwindSafe,
    ",1,["cairo_native::cache::ProgramCache"]],["impl<'a, K> RefUnwindSafe for AotProgramCache<'a, K>
    where\n K: RefUnwindSafe,
    ",1,["cairo_native::cache::aot::AotProgramCache"]],["impl<'a, K> RefUnwindSafe for JitProgramCache<'a, K>
    where\n K: RefUnwindSafe,
    ",1,["cairo_native::cache::jit::JitProgramCache"]],["impl<'m> !RefUnwindSafe for NativeModule<'m>",1,["cairo_native::module::NativeModule"]],["impl<'m> RefUnwindSafe for JitNativeExecutor<'m>",1,["cairo_native::executor::jit::JitNativeExecutor"]],["impl<T> RefUnwindSafe for ArrayAbi<T>
    where\n T: RefUnwindSafe,
    ",1,["cairo_native::starknet::ArrayAbi"]]]],["cairo_native_compile",[["impl RefUnwindSafe for RunMode",1,["cairo_native_compile::RunMode"]],["impl RefUnwindSafe for Args",1,["cairo_native_compile::Args"]]]],["cairo_native_dump",[["impl RefUnwindSafe for CompilerOutput",1,["cairo_native_dump::CompilerOutput"]],["impl RefUnwindSafe for CmdLine",1,["cairo_native_dump::CmdLine"]]]],["cairo_native_run",[["impl RefUnwindSafe for RunMode",1,["cairo_native_run::RunMode"]],["impl RefUnwindSafe for RunMode",1,["cairo_native_run::utils::RunMode"]],["impl RefUnwindSafe for TestStatus",1,["cairo_native_run::utils::test::TestStatus"]],["impl RefUnwindSafe for Args",1,["cairo_native_run::Args"]],["impl RefUnwindSafe for RunArgs",1,["cairo_native_run::utils::RunArgs"]],["impl RefUnwindSafe for TestResult",1,["cairo_native_run::utils::test::TestResult"]],["impl RefUnwindSafe for TestsSummary",1,["cairo_native_run::utils::test::TestsSummary"]]]],["cairo_native_runtime",[["impl RefUnwindSafe for DICT_GAS_REFUND_PER_ACCESS",1,["cairo_native_runtime::DICT_GAS_REFUND_PER_ACCESS"]],["impl RefUnwindSafe for FeltDict",1,["cairo_native_runtime::FeltDict"]],["impl RefUnwindSafe for FormattedItem",1,["cairo_native_runtime::FormattedItem"]],["impl RefUnwindSafe for HALF_PRIME",1,["cairo_native_runtime::HALF_PRIME"]]]],["cairo_native_stress",[["impl RefUnwindSafe for StressTestCommand",1,["cairo_native_stress::StressTestCommand"]],["impl<'a, K> RefUnwindSafe for NaiveAotCache<'a, K>
    where\n K: RefUnwindSafe,
    ",1,["cairo_native_stress::NaiveAotCache"]]]],["cairo_native_test",[["impl RefUnwindSafe for RunMode",1,["cairo_native_test::utils::RunMode"]],["impl RefUnwindSafe for TestStatus",1,["cairo_native_test::utils::test::TestStatus"]],["impl RefUnwindSafe for Args",1,["cairo_native_test::Args"]],["impl RefUnwindSafe for RunArgs",1,["cairo_native_test::utils::RunArgs"]],["impl RefUnwindSafe for TestResult",1,["cairo_native_test::utils::test::TestResult"]],["impl RefUnwindSafe for TestsSummary",1,["cairo_native_test::utils::test::TestsSummary"]]]],["scarb_native_dump",[["impl RefUnwindSafe for RunMode",1,["scarb_native_dump::utils::RunMode"]],["impl RefUnwindSafe for TestStatus",1,["scarb_native_dump::utils::test::TestStatus"]],["impl RefUnwindSafe for RunArgs",1,["scarb_native_dump::utils::RunArgs"]],["impl RefUnwindSafe for TestResult",1,["scarb_native_dump::utils::test::TestResult"]],["impl RefUnwindSafe for TestsSummary",1,["scarb_native_dump::utils::test::TestsSummary"]]]],["scarb_native_test",[["impl RefUnwindSafe for TestKind",1,["scarb_native_test::TestKind"]],["impl RefUnwindSafe for RunMode",1,["scarb_native_test::utils::RunMode"]],["impl RefUnwindSafe for TestStatus",1,["scarb_native_test::utils::test::TestStatus"]],["impl RefUnwindSafe for Args",1,["scarb_native_test::Args"]],["impl RefUnwindSafe for TargetGroupDeduplicator",1,["scarb_native_test::TargetGroupDeduplicator"]],["impl RefUnwindSafe for RunArgs",1,["scarb_native_test::utils::RunArgs"]],["impl RefUnwindSafe for TestResult",1,["scarb_native_test::utils::test::TestResult"]],["impl RefUnwindSafe for TestsSummary",1,["scarb_native_test::utils::test::TestsSummary"]]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl !RefUnwindSafe for Error",1,["cairo_native::error::Error"]],["impl !RefUnwindSafe for MetadataStorage",1,["cairo_native::metadata::MetadataStorage"]],["impl RefUnwindSafe for OptLevel",1,["cairo_native::ffi::OptLevel"]],["impl RefUnwindSafe for Value",1,["cairo_native::values::Value"]],["impl RefUnwindSafe for CompilerError",1,["cairo_native::error::CompilerError"]],["impl RefUnwindSafe for SierraAssertError",1,["cairo_native::error::SierraAssertError"]],["impl RefUnwindSafe for BreakpointEvent",1,["cairo_native::metadata::auto_breakpoint::BreakpointEvent"]],["impl RefUnwindSafe for GasMetadataError",1,["cairo_native::metadata::gas::GasMetadataError"]],["impl RefUnwindSafe for NativeContext",1,["cairo_native::context::NativeContext"]],["impl RefUnwindSafe for NativeAssertError",1,["cairo_native::error::panic::NativeAssertError"]],["impl RefUnwindSafe for BuiltinStats",1,["cairo_native::execution_result::BuiltinStats"]],["impl RefUnwindSafe for ContractExecutionResult",1,["cairo_native::execution_result::ContractExecutionResult"]],["impl RefUnwindSafe for ExecutionResult",1,["cairo_native::execution_result::ExecutionResult"]],["impl RefUnwindSafe for AotContractExecutor",1,["cairo_native::executor::contract::AotContractExecutor"]],["impl RefUnwindSafe for AotNativeExecutor",1,["cairo_native::executor::aot::AotNativeExecutor"]],["impl RefUnwindSafe for AutoBreakpoint",1,["cairo_native::metadata::auto_breakpoint::AutoBreakpoint"]],["impl RefUnwindSafe for DebugUtils",1,["cairo_native::metadata::debug_utils::DebugUtils"]],["impl RefUnwindSafe for DropOverridesMeta",1,["cairo_native::metadata::drop_overrides::DropOverridesMeta"]],["impl RefUnwindSafe for DupOverridesMeta",1,["cairo_native::metadata::dup_overrides::DupOverridesMeta"]],["impl RefUnwindSafe for EnumSnapshotVariantsMeta",1,["cairo_native::metadata::enum_snapshot_variants::EnumSnapshotVariantsMeta"]],["impl RefUnwindSafe for GasCost",1,["cairo_native::metadata::gas::GasCost"]],["impl RefUnwindSafe for GasMetadata",1,["cairo_native::metadata::gas::GasMetadata"]],["impl RefUnwindSafe for MetadataComputationConfig",1,["cairo_native::metadata::gas::MetadataComputationConfig"]],["impl RefUnwindSafe for ReallocBindingsMeta",1,["cairo_native::metadata::realloc_bindings::ReallocBindingsMeta"]],["impl RefUnwindSafe for RuntimeBindingsMeta",1,["cairo_native::metadata::runtime_bindings::RuntimeBindingsMeta"]],["impl RefUnwindSafe for TailRecursionMeta",1,["cairo_native::metadata::tail_recursion::TailRecursionMeta"]],["impl RefUnwindSafe for BlockInfo",1,["cairo_native::starknet::BlockInfo"]],["impl RefUnwindSafe for DummySyscallHandler",1,["cairo_native::starknet::DummySyscallHandler"]],["impl RefUnwindSafe for ExecutionInfo",1,["cairo_native::starknet::ExecutionInfo"]],["impl RefUnwindSafe for ExecutionInfoV2",1,["cairo_native::starknet::ExecutionInfoV2"]],["impl RefUnwindSafe for Felt252Abi",1,["cairo_native::starknet::Felt252Abi"]],["impl RefUnwindSafe for ResourceBounds",1,["cairo_native::starknet::ResourceBounds"]],["impl RefUnwindSafe for Secp256k1Point",1,["cairo_native::starknet::Secp256k1Point"]],["impl RefUnwindSafe for Secp256r1Point",1,["cairo_native::starknet::Secp256r1Point"]],["impl RefUnwindSafe for TxInfo",1,["cairo_native::starknet::TxInfo"]],["impl RefUnwindSafe for TxV2Info",1,["cairo_native::starknet::TxV2Info"]],["impl RefUnwindSafe for U256",1,["cairo_native::starknet::U256"]],["impl RefUnwindSafe for ContractLogs",1,["cairo_native::starknet_stub::ContractLogs"]],["impl RefUnwindSafe for StubEvent",1,["cairo_native::starknet_stub::StubEvent"]],["impl RefUnwindSafe for StubSyscallHandler",1,["cairo_native::starknet_stub::StubSyscallHandler"]],["impl RefUnwindSafe for BuiltinCosts",1,["cairo_native::utils::BuiltinCosts"]],["impl RefUnwindSafe for LayoutError",1,["cairo_native::utils::LayoutError"]],["impl<'a, K> RefUnwindSafe for ProgramCache<'a, K>
    where\n K: RefUnwindSafe,
    ",1,["cairo_native::cache::ProgramCache"]],["impl<'a, K> RefUnwindSafe for AotProgramCache<'a, K>
    where\n K: RefUnwindSafe,
    ",1,["cairo_native::cache::aot::AotProgramCache"]],["impl<'a, K> RefUnwindSafe for JitProgramCache<'a, K>
    where\n K: RefUnwindSafe,
    ",1,["cairo_native::cache::jit::JitProgramCache"]],["impl<'m> !RefUnwindSafe for NativeModule<'m>",1,["cairo_native::module::NativeModule"]],["impl<'m> RefUnwindSafe for JitNativeExecutor<'m>",1,["cairo_native::executor::jit::JitNativeExecutor"]],["impl<T> RefUnwindSafe for ArrayAbi<T>
    where\n T: RefUnwindSafe,
    ",1,["cairo_native::starknet::ArrayAbi"]]]],["cairo_native_compile",[["impl RefUnwindSafe for RunMode",1,["cairo_native_compile::RunMode"]],["impl RefUnwindSafe for Args",1,["cairo_native_compile::Args"]]]],["cairo_native_dump",[["impl RefUnwindSafe for CompilerOutput",1,["cairo_native_dump::CompilerOutput"]],["impl RefUnwindSafe for CmdLine",1,["cairo_native_dump::CmdLine"]]]],["cairo_native_run",[["impl RefUnwindSafe for RunMode",1,["cairo_native_run::RunMode"]],["impl RefUnwindSafe for RunMode",1,["cairo_native_run::utils::RunMode"]],["impl RefUnwindSafe for TestStatus",1,["cairo_native_run::utils::test::TestStatus"]],["impl RefUnwindSafe for Args",1,["cairo_native_run::Args"]],["impl RefUnwindSafe for RunArgs",1,["cairo_native_run::utils::RunArgs"]],["impl RefUnwindSafe for TestResult",1,["cairo_native_run::utils::test::TestResult"]],["impl RefUnwindSafe for TestsSummary",1,["cairo_native_run::utils::test::TestsSummary"]]]],["cairo_native_runtime",[["impl RefUnwindSafe for DICT_GAS_REFUND_PER_ACCESS",1,["cairo_native_runtime::DICT_GAS_REFUND_PER_ACCESS"]],["impl RefUnwindSafe for FeltDict",1,["cairo_native_runtime::FeltDict"]],["impl RefUnwindSafe for FormattedItem",1,["cairo_native_runtime::FormattedItem"]],["impl RefUnwindSafe for HALF_PRIME",1,["cairo_native_runtime::HALF_PRIME"]]]],["cairo_native_stress",[["impl RefUnwindSafe for StressTestCommand",1,["cairo_native_stress::StressTestCommand"]],["impl<'a, K> RefUnwindSafe for NaiveAotCache<'a, K>
    where\n K: RefUnwindSafe,
    ",1,["cairo_native_stress::NaiveAotCache"]]]],["cairo_native_test",[["impl RefUnwindSafe for RunMode",1,["cairo_native_test::utils::RunMode"]],["impl RefUnwindSafe for TestStatus",1,["cairo_native_test::utils::test::TestStatus"]],["impl RefUnwindSafe for Args",1,["cairo_native_test::Args"]],["impl RefUnwindSafe for RunArgs",1,["cairo_native_test::utils::RunArgs"]],["impl RefUnwindSafe for TestResult",1,["cairo_native_test::utils::test::TestResult"]],["impl RefUnwindSafe for TestsSummary",1,["cairo_native_test::utils::test::TestsSummary"]]]],["scarb_native_dump",[["impl RefUnwindSafe for RunMode",1,["scarb_native_dump::utils::RunMode"]],["impl RefUnwindSafe for TestStatus",1,["scarb_native_dump::utils::test::TestStatus"]],["impl RefUnwindSafe for RunArgs",1,["scarb_native_dump::utils::RunArgs"]],["impl RefUnwindSafe for TestResult",1,["scarb_native_dump::utils::test::TestResult"]],["impl RefUnwindSafe for TestsSummary",1,["scarb_native_dump::utils::test::TestsSummary"]]]],["scarb_native_test",[["impl RefUnwindSafe for TestKind",1,["scarb_native_test::TestKind"]],["impl RefUnwindSafe for RunMode",1,["scarb_native_test::utils::RunMode"]],["impl RefUnwindSafe for TestStatus",1,["scarb_native_test::utils::test::TestStatus"]],["impl RefUnwindSafe for Args",1,["scarb_native_test::Args"]],["impl RefUnwindSafe for TargetGroupDeduplicator",1,["scarb_native_test::TargetGroupDeduplicator"]],["impl RefUnwindSafe for RunArgs",1,["scarb_native_test::utils::RunArgs"]],["impl RefUnwindSafe for TestResult",1,["scarb_native_test::utils::test::TestResult"]],["impl RefUnwindSafe for TestsSummary",1,["scarb_native_test::utils::test::TestsSummary"]]]]]); 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 ff25bd360..234aa68d3 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([["cairo_native",[["impl !UnwindSafe for Error",1,["cairo_native::error::Error"]],["impl !UnwindSafe for MetadataStorage",1,["cairo_native::metadata::MetadataStorage"]],["impl UnwindSafe for OptLevel",1,["cairo_native::ffi::OptLevel"]],["impl UnwindSafe for Value",1,["cairo_native::values::Value"]],["impl UnwindSafe for CompilerError",1,["cairo_native::error::CompilerError"]],["impl UnwindSafe for SierraAssertError",1,["cairo_native::error::SierraAssertError"]],["impl UnwindSafe for BreakpointEvent",1,["cairo_native::metadata::auto_breakpoint::BreakpointEvent"]],["impl UnwindSafe for GasMetadataError",1,["cairo_native::metadata::gas::GasMetadataError"]],["impl UnwindSafe for NativeContext",1,["cairo_native::context::NativeContext"]],["impl UnwindSafe for NativeAssertError",1,["cairo_native::error::panic::NativeAssertError"]],["impl UnwindSafe for BuiltinStats",1,["cairo_native::execution_result::BuiltinStats"]],["impl UnwindSafe for ContractExecutionResult",1,["cairo_native::execution_result::ContractExecutionResult"]],["impl UnwindSafe for ExecutionResult",1,["cairo_native::execution_result::ExecutionResult"]],["impl UnwindSafe for AotContractExecutor",1,["cairo_native::executor::contract::AotContractExecutor"]],["impl UnwindSafe for AotNativeExecutor",1,["cairo_native::executor::aot::AotNativeExecutor"]],["impl UnwindSafe for AutoBreakpoint",1,["cairo_native::metadata::auto_breakpoint::AutoBreakpoint"]],["impl UnwindSafe for DebugUtils",1,["cairo_native::metadata::debug_utils::DebugUtils"]],["impl UnwindSafe for DropOverridesMeta",1,["cairo_native::metadata::drop_overrides::DropOverridesMeta"]],["impl UnwindSafe for DupOverridesMeta",1,["cairo_native::metadata::dup_overrides::DupOverridesMeta"]],["impl UnwindSafe for EnumSnapshotVariantsMeta",1,["cairo_native::metadata::enum_snapshot_variants::EnumSnapshotVariantsMeta"]],["impl UnwindSafe for GasCost",1,["cairo_native::metadata::gas::GasCost"]],["impl UnwindSafe for GasMetadata",1,["cairo_native::metadata::gas::GasMetadata"]],["impl UnwindSafe for MetadataComputationConfig",1,["cairo_native::metadata::gas::MetadataComputationConfig"]],["impl UnwindSafe for ReallocBindingsMeta",1,["cairo_native::metadata::realloc_bindings::ReallocBindingsMeta"]],["impl UnwindSafe for RuntimeBindingsMeta",1,["cairo_native::metadata::runtime_bindings::RuntimeBindingsMeta"]],["impl UnwindSafe for TailRecursionMeta",1,["cairo_native::metadata::tail_recursion::TailRecursionMeta"]],["impl UnwindSafe for BlockInfo",1,["cairo_native::starknet::BlockInfo"]],["impl UnwindSafe for DummySyscallHandler",1,["cairo_native::starknet::DummySyscallHandler"]],["impl UnwindSafe for ExecutionInfo",1,["cairo_native::starknet::ExecutionInfo"]],["impl UnwindSafe for ExecutionInfoV2",1,["cairo_native::starknet::ExecutionInfoV2"]],["impl UnwindSafe for Felt252Abi",1,["cairo_native::starknet::Felt252Abi"]],["impl UnwindSafe for ResourceBounds",1,["cairo_native::starknet::ResourceBounds"]],["impl UnwindSafe for Secp256k1Point",1,["cairo_native::starknet::Secp256k1Point"]],["impl UnwindSafe for Secp256r1Point",1,["cairo_native::starknet::Secp256r1Point"]],["impl UnwindSafe for TxInfo",1,["cairo_native::starknet::TxInfo"]],["impl UnwindSafe for TxV2Info",1,["cairo_native::starknet::TxV2Info"]],["impl UnwindSafe for U256",1,["cairo_native::starknet::U256"]],["impl UnwindSafe for ContractLogs",1,["cairo_native::starknet_stub::ContractLogs"]],["impl UnwindSafe for StubEvent",1,["cairo_native::starknet_stub::StubEvent"]],["impl UnwindSafe for StubSyscallHandler",1,["cairo_native::starknet_stub::StubSyscallHandler"]],["impl UnwindSafe for BuiltinCosts",1,["cairo_native::utils::BuiltinCosts"]],["impl UnwindSafe for LayoutError",1,["cairo_native::utils::LayoutError"]],["impl<'a, K> UnwindSafe for ProgramCache<'a, K>
    where\n K: UnwindSafe,
    ",1,["cairo_native::cache::ProgramCache"]],["impl<'a, K> UnwindSafe for AotProgramCache<'a, K>
    where\n K: UnwindSafe,
    ",1,["cairo_native::cache::aot::AotProgramCache"]],["impl<'a, K> UnwindSafe for JitProgramCache<'a, K>
    where\n K: UnwindSafe,
    ",1,["cairo_native::cache::jit::JitProgramCache"]],["impl<'m> !UnwindSafe for NativeModule<'m>",1,["cairo_native::module::NativeModule"]],["impl<'m> UnwindSafe for JitNativeExecutor<'m>",1,["cairo_native::executor::jit::JitNativeExecutor"]],["impl<T> UnwindSafe for ArrayAbi<T>
    where\n T: RefUnwindSafe,
    ",1,["cairo_native::starknet::ArrayAbi"]]]],["cairo_native_compile",[["impl UnwindSafe for RunMode",1,["cairo_native_compile::RunMode"]],["impl UnwindSafe for Args",1,["cairo_native_compile::Args"]]]],["cairo_native_dump",[["impl UnwindSafe for CompilerOutput",1,["cairo_native_dump::CompilerOutput"]],["impl UnwindSafe for CmdLine",1,["cairo_native_dump::CmdLine"]]]],["cairo_native_run",[["impl UnwindSafe for RunMode",1,["cairo_native_run::RunMode"]],["impl UnwindSafe for RunMode",1,["cairo_native_run::utils::RunMode"]],["impl UnwindSafe for TestStatus",1,["cairo_native_run::utils::test::TestStatus"]],["impl UnwindSafe for Args",1,["cairo_native_run::Args"]],["impl UnwindSafe for RunArgs",1,["cairo_native_run::utils::RunArgs"]],["impl UnwindSafe for TestResult",1,["cairo_native_run::utils::test::TestResult"]],["impl UnwindSafe for TestsSummary",1,["cairo_native_run::utils::test::TestsSummary"]]]],["cairo_native_runtime",[["impl UnwindSafe for DICT_GAS_REFUND_PER_ACCESS",1,["cairo_native_runtime::DICT_GAS_REFUND_PER_ACCESS"]],["impl UnwindSafe for FeltDict",1,["cairo_native_runtime::FeltDict"]],["impl UnwindSafe for FormattedItem",1,["cairo_native_runtime::FormattedItem"]],["impl UnwindSafe for HALF_PRIME",1,["cairo_native_runtime::HALF_PRIME"]]]],["cairo_native_stress",[["impl UnwindSafe for StressTestCommand",1,["cairo_native_stress::StressTestCommand"]],["impl<'a, K> UnwindSafe for NaiveAotCache<'a, K>
    where\n K: UnwindSafe,
    ",1,["cairo_native_stress::NaiveAotCache"]]]],["cairo_native_test",[["impl UnwindSafe for RunMode",1,["cairo_native_test::utils::RunMode"]],["impl UnwindSafe for TestStatus",1,["cairo_native_test::utils::test::TestStatus"]],["impl UnwindSafe for Args",1,["cairo_native_test::Args"]],["impl UnwindSafe for RunArgs",1,["cairo_native_test::utils::RunArgs"]],["impl UnwindSafe for TestResult",1,["cairo_native_test::utils::test::TestResult"]],["impl UnwindSafe for TestsSummary",1,["cairo_native_test::utils::test::TestsSummary"]]]],["scarb_native_dump",[["impl UnwindSafe for RunMode",1,["scarb_native_dump::utils::RunMode"]],["impl UnwindSafe for TestStatus",1,["scarb_native_dump::utils::test::TestStatus"]],["impl UnwindSafe for RunArgs",1,["scarb_native_dump::utils::RunArgs"]],["impl UnwindSafe for TestResult",1,["scarb_native_dump::utils::test::TestResult"]],["impl UnwindSafe for TestsSummary",1,["scarb_native_dump::utils::test::TestsSummary"]]]],["scarb_native_test",[["impl UnwindSafe for TestKind",1,["scarb_native_test::TestKind"]],["impl UnwindSafe for RunMode",1,["scarb_native_test::utils::RunMode"]],["impl UnwindSafe for TestStatus",1,["scarb_native_test::utils::test::TestStatus"]],["impl UnwindSafe for Args",1,["scarb_native_test::Args"]],["impl UnwindSafe for TargetGroupDeduplicator",1,["scarb_native_test::TargetGroupDeduplicator"]],["impl UnwindSafe for RunArgs",1,["scarb_native_test::utils::RunArgs"]],["impl UnwindSafe for TestResult",1,["scarb_native_test::utils::test::TestResult"]],["impl UnwindSafe for TestsSummary",1,["scarb_native_test::utils::test::TestsSummary"]]]]]); + var implementors = Object.fromEntries([["cairo_native",[["impl !UnwindSafe for Error",1,["cairo_native::error::Error"]],["impl !UnwindSafe for MetadataStorage",1,["cairo_native::metadata::MetadataStorage"]],["impl UnwindSafe for OptLevel",1,["cairo_native::ffi::OptLevel"]],["impl UnwindSafe for Value",1,["cairo_native::values::Value"]],["impl UnwindSafe for CompilerError",1,["cairo_native::error::CompilerError"]],["impl UnwindSafe for SierraAssertError",1,["cairo_native::error::SierraAssertError"]],["impl UnwindSafe for BreakpointEvent",1,["cairo_native::metadata::auto_breakpoint::BreakpointEvent"]],["impl UnwindSafe for GasMetadataError",1,["cairo_native::metadata::gas::GasMetadataError"]],["impl UnwindSafe for NativeContext",1,["cairo_native::context::NativeContext"]],["impl UnwindSafe for NativeAssertError",1,["cairo_native::error::panic::NativeAssertError"]],["impl UnwindSafe for BuiltinStats",1,["cairo_native::execution_result::BuiltinStats"]],["impl UnwindSafe for ContractExecutionResult",1,["cairo_native::execution_result::ContractExecutionResult"]],["impl UnwindSafe for ExecutionResult",1,["cairo_native::execution_result::ExecutionResult"]],["impl UnwindSafe for AotContractExecutor",1,["cairo_native::executor::contract::AotContractExecutor"]],["impl UnwindSafe for AotNativeExecutor",1,["cairo_native::executor::aot::AotNativeExecutor"]],["impl UnwindSafe for AutoBreakpoint",1,["cairo_native::metadata::auto_breakpoint::AutoBreakpoint"]],["impl UnwindSafe for DebugUtils",1,["cairo_native::metadata::debug_utils::DebugUtils"]],["impl UnwindSafe for DropOverridesMeta",1,["cairo_native::metadata::drop_overrides::DropOverridesMeta"]],["impl UnwindSafe for DupOverridesMeta",1,["cairo_native::metadata::dup_overrides::DupOverridesMeta"]],["impl UnwindSafe for EnumSnapshotVariantsMeta",1,["cairo_native::metadata::enum_snapshot_variants::EnumSnapshotVariantsMeta"]],["impl UnwindSafe for GasCost",1,["cairo_native::metadata::gas::GasCost"]],["impl UnwindSafe for GasMetadata",1,["cairo_native::metadata::gas::GasMetadata"]],["impl UnwindSafe for MetadataComputationConfig",1,["cairo_native::metadata::gas::MetadataComputationConfig"]],["impl UnwindSafe for ReallocBindingsMeta",1,["cairo_native::metadata::realloc_bindings::ReallocBindingsMeta"]],["impl UnwindSafe for RuntimeBindingsMeta",1,["cairo_native::metadata::runtime_bindings::RuntimeBindingsMeta"]],["impl UnwindSafe for TailRecursionMeta",1,["cairo_native::metadata::tail_recursion::TailRecursionMeta"]],["impl UnwindSafe for BlockInfo",1,["cairo_native::starknet::BlockInfo"]],["impl UnwindSafe for DummySyscallHandler",1,["cairo_native::starknet::DummySyscallHandler"]],["impl UnwindSafe for ExecutionInfo",1,["cairo_native::starknet::ExecutionInfo"]],["impl UnwindSafe for ExecutionInfoV2",1,["cairo_native::starknet::ExecutionInfoV2"]],["impl UnwindSafe for Felt252Abi",1,["cairo_native::starknet::Felt252Abi"]],["impl UnwindSafe for ResourceBounds",1,["cairo_native::starknet::ResourceBounds"]],["impl UnwindSafe for Secp256k1Point",1,["cairo_native::starknet::Secp256k1Point"]],["impl UnwindSafe for Secp256r1Point",1,["cairo_native::starknet::Secp256r1Point"]],["impl UnwindSafe for TxInfo",1,["cairo_native::starknet::TxInfo"]],["impl UnwindSafe for TxV2Info",1,["cairo_native::starknet::TxV2Info"]],["impl UnwindSafe for U256",1,["cairo_native::starknet::U256"]],["impl UnwindSafe for ContractLogs",1,["cairo_native::starknet_stub::ContractLogs"]],["impl UnwindSafe for StubEvent",1,["cairo_native::starknet_stub::StubEvent"]],["impl UnwindSafe for StubSyscallHandler",1,["cairo_native::starknet_stub::StubSyscallHandler"]],["impl UnwindSafe for BuiltinCosts",1,["cairo_native::utils::BuiltinCosts"]],["impl UnwindSafe for LayoutError",1,["cairo_native::utils::LayoutError"]],["impl<'a, K> UnwindSafe for ProgramCache<'a, K>
    where\n K: UnwindSafe,
    ",1,["cairo_native::cache::ProgramCache"]],["impl<'a, K> UnwindSafe for AotProgramCache<'a, K>
    where\n K: UnwindSafe,
    ",1,["cairo_native::cache::aot::AotProgramCache"]],["impl<'a, K> UnwindSafe for JitProgramCache<'a, K>
    where\n K: UnwindSafe,
    ",1,["cairo_native::cache::jit::JitProgramCache"]],["impl<'m> !UnwindSafe for NativeModule<'m>",1,["cairo_native::module::NativeModule"]],["impl<'m> UnwindSafe for JitNativeExecutor<'m>",1,["cairo_native::executor::jit::JitNativeExecutor"]],["impl<T> UnwindSafe for ArrayAbi<T>
    where\n T: RefUnwindSafe,
    ",1,["cairo_native::starknet::ArrayAbi"]]]],["cairo_native_compile",[["impl UnwindSafe for RunMode",1,["cairo_native_compile::RunMode"]],["impl UnwindSafe for Args",1,["cairo_native_compile::Args"]]]],["cairo_native_dump",[["impl UnwindSafe for CompilerOutput",1,["cairo_native_dump::CompilerOutput"]],["impl UnwindSafe for CmdLine",1,["cairo_native_dump::CmdLine"]]]],["cairo_native_run",[["impl UnwindSafe for RunMode",1,["cairo_native_run::RunMode"]],["impl UnwindSafe for RunMode",1,["cairo_native_run::utils::RunMode"]],["impl UnwindSafe for TestStatus",1,["cairo_native_run::utils::test::TestStatus"]],["impl UnwindSafe for Args",1,["cairo_native_run::Args"]],["impl UnwindSafe for RunArgs",1,["cairo_native_run::utils::RunArgs"]],["impl UnwindSafe for TestResult",1,["cairo_native_run::utils::test::TestResult"]],["impl UnwindSafe for TestsSummary",1,["cairo_native_run::utils::test::TestsSummary"]]]],["cairo_native_runtime",[["impl UnwindSafe for DICT_GAS_REFUND_PER_ACCESS",1,["cairo_native_runtime::DICT_GAS_REFUND_PER_ACCESS"]],["impl UnwindSafe for FeltDict",1,["cairo_native_runtime::FeltDict"]],["impl UnwindSafe for FormattedItem",1,["cairo_native_runtime::FormattedItem"]],["impl UnwindSafe for HALF_PRIME",1,["cairo_native_runtime::HALF_PRIME"]]]],["cairo_native_stress",[["impl UnwindSafe for StressTestCommand",1,["cairo_native_stress::StressTestCommand"]],["impl<'a, K> UnwindSafe for NaiveAotCache<'a, K>
    where\n K: UnwindSafe,
    ",1,["cairo_native_stress::NaiveAotCache"]]]],["cairo_native_test",[["impl UnwindSafe for RunMode",1,["cairo_native_test::utils::RunMode"]],["impl UnwindSafe for TestStatus",1,["cairo_native_test::utils::test::TestStatus"]],["impl UnwindSafe for Args",1,["cairo_native_test::Args"]],["impl UnwindSafe for RunArgs",1,["cairo_native_test::utils::RunArgs"]],["impl UnwindSafe for TestResult",1,["cairo_native_test::utils::test::TestResult"]],["impl UnwindSafe for TestsSummary",1,["cairo_native_test::utils::test::TestsSummary"]]]],["scarb_native_dump",[["impl UnwindSafe for RunMode",1,["scarb_native_dump::utils::RunMode"]],["impl UnwindSafe for TestStatus",1,["scarb_native_dump::utils::test::TestStatus"]],["impl UnwindSafe for RunArgs",1,["scarb_native_dump::utils::RunArgs"]],["impl UnwindSafe for TestResult",1,["scarb_native_dump::utils::test::TestResult"]],["impl UnwindSafe for TestsSummary",1,["scarb_native_dump::utils::test::TestsSummary"]]]],["scarb_native_test",[["impl UnwindSafe for TestKind",1,["scarb_native_test::TestKind"]],["impl UnwindSafe for RunMode",1,["scarb_native_test::utils::RunMode"]],["impl UnwindSafe for TestStatus",1,["scarb_native_test::utils::test::TestStatus"]],["impl UnwindSafe for Args",1,["scarb_native_test::Args"]],["impl UnwindSafe for TargetGroupDeduplicator",1,["scarb_native_test::TargetGroupDeduplicator"]],["impl UnwindSafe for RunArgs",1,["scarb_native_test::utils::RunArgs"]],["impl UnwindSafe for TestResult",1,["scarb_native_test::utils::test::TestResult"]],["impl UnwindSafe for TestsSummary",1,["scarb_native_test::utils::test::TestsSummary"]]]]]); 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 f58150f67..77b728cd3 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([["cairo_native",[["
    source§

    impl<'de, T, U> BorrowDecode<'de> for Result<T, U>
    where\n T: BorrowDecode<'de>,\n U: BorrowDecode<'de>,

    source§

    fn borrow_decode<D>(decoder: &mut D) -> Result<Result<T, U>, DecodeError>
    where\n D: BorrowDecoder<'de>,

    Attempt to decode this type with the given BorrowDecode.
    ","BorrowDecode<'de>","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    source§

    impl<T, U> Decode for Result<T, U>
    where\n T: Decode,\n U: Decode,

    source§

    fn decode<D>(decoder: &mut D) -> Result<Result<T, U>, DecodeError>
    where\n D: Decoder,

    Attempt to decode this type with the given Decode.
    ","Decode","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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>","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    source§

    impl<T, U> Encode for Result<T, U>
    where\n T: Encode,\n U: Encode,

    source§

    fn encode<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
    where\n E: Encoder,

    Encode a given type.
    ","Encode","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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>","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    §

    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>","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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>","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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>","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    §

    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    §

    impl<T, E> JsonSchema for Result<T, E>
    where\n T: JsonSchema,\n E: JsonSchema,

    §

    fn schema_name() -> String

    The name of the generated JSON Schema. Read more
    §

    fn schema_id() -> Cow<'static, str>

    Returns a string that uniquely identifies the schema produced by this type. Read more
    §

    fn json_schema(gen: &mut SchemaGenerator) -> Schema

    Generates a JSON Schema for this type. Read more
    §

    fn is_referenceable() -> bool

    Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
    ","JsonSchema","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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>","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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,"cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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,"cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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,"cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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,"cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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,"cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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>","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    §

    impl<T, E> TapFallible for Result<T, E>

    §

    type Ok = T

    The interior type used to indicate a successful construction.
    §

    type Err = E

    The interior type used to indicate a failed construction.
    §

    fn tap_ok(self, func: impl FnOnce(&T)) -> Result<T, E>

    Immutably accesses an interior success value. Read more
    §

    fn tap_ok_mut(self, func: impl FnOnce(&mut T)) -> Result<T, E>

    Mutably accesses an interior success value. Read more
    §

    fn tap_err(self, func: impl FnOnce(&E)) -> Result<T, E>

    Immutably accesses an interior failure value. Read more
    §

    fn tap_err_mut(self, func: impl FnOnce(&mut E)) -> Result<T, E>

    Mutably accesses an interior failure value. Read more
    §

    fn tap_ok_dbg(self, func: impl FnOnce(&Self::Ok)) -> Self

    Calls .tap_ok() only in debug builds, and is erased in release builds.
    §

    fn tap_ok_mut_dbg(self, func: impl FnOnce(&mut Self::Ok)) -> Self

    Calls .tap_ok_mut() only in debug builds, and is erased in release\nbuilds.
    §

    fn tap_err_dbg(self, func: impl FnOnce(&Self::Err)) -> Self

    Calls .tap_err() only in debug builds, and is erased in release\nbuilds.
    §

    fn tap_err_mut_dbg(self, func: impl FnOnce(&mut Self::Err)) -> Self

    Calls .tap_err_mut() only in debug builds, and is erased in release\nbuilds.
    ","TapFallible","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    source§

    impl<T, E> ToNativeAssertError<T> for Result<T, E>

    ","ToNativeAssertError","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    1.0.0 · source§

    impl<T, E> Copy for Result<T, E>
    where\n T: Copy,\n E: Copy,

    ","Copy","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    1.0.0 · source§

    impl<T, E> Eq for Result<T, E>
    where\n T: Eq,\n E: Eq,

    ","Eq","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    1.0.0 · source§

    impl<T, E> StructuralPartialEq for Result<T, E>

    ","StructuralPartialEq","cairo_native::error::Result","cairo_native::starknet::SyscallResult"]]]]); + var type_impls = Object.fromEntries([["cairo_native",[["
    source§

    impl<'de, T, U> BorrowDecode<'de> for Result<T, U>
    where\n T: BorrowDecode<'de>,\n U: BorrowDecode<'de>,

    source§

    fn borrow_decode<D>(decoder: &mut D) -> Result<Result<T, U>, DecodeError>
    where\n D: BorrowDecoder<'de>,

    Attempt to decode this type with the given BorrowDecode.
    ","BorrowDecode<'de>","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    source§

    impl<T, U> Decode for Result<T, U>
    where\n T: Decode,\n U: Decode,

    source§

    fn decode<D>(decoder: &mut D) -> Result<Result<T, U>, DecodeError>
    where\n D: Decoder,

    Attempt to decode this type with the given Decode.
    ","Decode","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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>","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    source§

    impl<T, U> Encode for Result<T, U>
    where\n T: Encode,\n U: Encode,

    source§

    fn encode<E>(&self, encoder: &mut E) -> Result<(), EncodeError>
    where\n E: Encoder,

    Encode a given type.
    ","Encode","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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>","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    §

    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>","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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>","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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>","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    §

    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    §

    impl<T, E> JsonSchema for Result<T, E>
    where\n T: JsonSchema,\n E: JsonSchema,

    §

    fn schema_name() -> String

    The name of the generated JSON Schema. Read more
    §

    fn schema_id() -> Cow<'static, str>

    Returns a string that uniquely identifies the schema produced by this type. Read more
    §

    fn json_schema(gen: &mut SchemaGenerator) -> Schema

    Generates a JSON Schema for this type. Read more
    §

    fn is_referenceable() -> bool

    Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
    ","JsonSchema","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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>","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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,"cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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,"cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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,"cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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,"cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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,"cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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>","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    §

    impl<T, E> TapFallible for Result<T, E>

    §

    type Ok = T

    The interior type used to indicate a successful construction.
    §

    type Err = E

    The interior type used to indicate a failed construction.
    §

    fn tap_ok(self, func: impl FnOnce(&T)) -> Result<T, E>

    Immutably accesses an interior success value. Read more
    §

    fn tap_ok_mut(self, func: impl FnOnce(&mut T)) -> Result<T, E>

    Mutably accesses an interior success value. Read more
    §

    fn tap_err(self, func: impl FnOnce(&E)) -> Result<T, E>

    Immutably accesses an interior failure value. Read more
    §

    fn tap_err_mut(self, func: impl FnOnce(&mut E)) -> Result<T, E>

    Mutably accesses an interior failure value. Read more
    §

    fn tap_ok_dbg(self, func: impl FnOnce(&Self::Ok)) -> Self

    Calls .tap_ok() only in debug builds, and is erased in release builds.
    §

    fn tap_ok_mut_dbg(self, func: impl FnOnce(&mut Self::Ok)) -> Self

    Calls .tap_ok_mut() only in debug builds, and is erased in release\nbuilds.
    §

    fn tap_err_dbg(self, func: impl FnOnce(&Self::Err)) -> Self

    Calls .tap_err() only in debug builds, and is erased in release\nbuilds.
    §

    fn tap_err_mut_dbg(self, func: impl FnOnce(&mut Self::Err)) -> Self

    Calls .tap_err_mut() only in debug builds, and is erased in release\nbuilds.
    ","TapFallible","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    source§

    impl<T, E> ToNativeAssertError<T> for Result<T, E>

    ","ToNativeAssertError","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    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","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    1.0.0 · source§

    impl<T, E> Copy for Result<T, E>
    where\n T: Copy,\n E: Copy,

    ","Copy","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    1.0.0 · source§

    impl<T, E> Eq for Result<T, E>
    where\n T: Eq,\n E: Eq,

    ","Eq","cairo_native::error::Result","cairo_native::starknet::SyscallResult"],["
    1.0.0 · source§

    impl<T, E> StructuralPartialEq for Result<T, E>

    ","StructuralPartialEq","cairo_native::error::Result","cairo_native::starknet::SyscallResult"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { window.pending_type_impls = type_impls; } })() -//{"start":55,"fragment_lengths":[192970]} \ No newline at end of file +//{"start":55,"fragment_lengths":[192724]} \ No newline at end of file