2017-06-13 15:52:59 -07:00
|
|
|
|
//! # The Rust core allocation and collections library
|
2014-05-13 16:10:05 -07:00
|
|
|
|
//!
|
2017-06-13 15:52:59 -07:00
|
|
|
|
//! This library provides smart pointers and collections for managing
|
|
|
|
|
//! heap-allocated values.
|
2014-05-13 16:10:05 -07:00
|
|
|
|
//!
|
2018-06-23 21:48:56 +02:00
|
|
|
|
//! This library, like libcore, normally doesn’t need to be used directly
|
|
|
|
|
//! since its contents are re-exported in the [`std` crate](../std/index.html).
|
|
|
|
|
//! Crates that use the `#![no_std]` attribute however will typically
|
|
|
|
|
//! not depend on `std`, so they’d use this crate instead.
|
2014-05-13 16:10:05 -07:00
|
|
|
|
//!
|
2014-07-10 14:19:17 -07:00
|
|
|
|
//! ## Boxed values
|
2014-05-13 16:10:05 -07:00
|
|
|
|
//!
|
2019-07-07 08:31:50 -07:00
|
|
|
|
//! The [`Box`] type is a smart pointer type. There can only be one owner of a
|
|
|
|
|
//! [`Box`], and the owner can decide to mutate the contents, which live on the
|
|
|
|
|
//! heap.
|
2014-05-13 16:10:05 -07:00
|
|
|
|
//!
|
2015-05-09 00:12:29 +09:00
|
|
|
|
//! This type can be sent among threads efficiently as the size of a `Box` value
|
2014-08-04 22:48:39 +12:00
|
|
|
|
//! is the same as that of a pointer. Tree-like data structures are often built
|
|
|
|
|
//! with boxes because each node often has only one owner, the parent.
|
2014-05-13 16:10:05 -07:00
|
|
|
|
//!
|
|
|
|
|
//! ## Reference counted pointers
|
|
|
|
|
//!
|
2019-07-07 08:31:50 -07:00
|
|
|
|
//! The [`Rc`] type is a non-threadsafe reference-counted pointer type intended
|
|
|
|
|
//! for sharing memory within a thread. An [`Rc`] pointer wraps a type, `T`, and
|
|
|
|
|
//! only allows access to `&T`, a shared reference.
|
2014-05-13 16:10:05 -07:00
|
|
|
|
//!
|
2019-07-07 08:31:50 -07:00
|
|
|
|
//! This type is useful when inherited mutability (such as using [`Box`]) is too
|
|
|
|
|
//! constraining for an application, and is often paired with the [`Cell`] or
|
|
|
|
|
//! [`RefCell`] types in order to allow mutation.
|
2014-05-13 16:10:05 -07:00
|
|
|
|
//!
|
|
|
|
|
//! ## Atomically reference counted pointers
|
|
|
|
|
//!
|
2019-07-07 08:31:50 -07:00
|
|
|
|
//! The [`Arc`] type is the threadsafe equivalent of the [`Rc`] type. It
|
|
|
|
|
//! provides all the same functionality of [`Rc`], except it requires that the
|
|
|
|
|
//! contained type `T` is shareable. Additionally, [`Arc<T>`][`Arc`] is itself
|
|
|
|
|
//! sendable while [`Rc<T>`][`Rc`] is not.
|
2014-05-13 16:10:05 -07:00
|
|
|
|
//!
|
2017-01-28 22:16:16 +00:00
|
|
|
|
//! This type allows for shared access to the contained data, and is often
|
2014-05-13 16:10:05 -07:00
|
|
|
|
//! paired with synchronization primitives such as mutexes to allow mutation of
|
|
|
|
|
//! shared resources.
|
|
|
|
|
//!
|
2017-06-13 15:52:59 -07:00
|
|
|
|
//! ## Collections
|
|
|
|
|
//!
|
|
|
|
|
//! Implementations of the most common general purpose data structures are
|
2018-01-12 16:41:25 -05:00
|
|
|
|
//! defined in this library. They are re-exported through the
|
2017-06-13 15:52:59 -07:00
|
|
|
|
//! [standard collections library](../std/collections/index.html).
|
|
|
|
|
//!
|
2014-05-13 16:10:05 -07:00
|
|
|
|
//! ## Heap interfaces
|
|
|
|
|
//!
|
2018-04-03 14:41:15 +02:00
|
|
|
|
//! The [`alloc`](alloc/index.html) module defines the low-level interface to the
|
2014-10-24 17:34:57 -04:00
|
|
|
|
//! default global allocator. It is not compatible with the libc allocator API.
|
2019-07-07 08:31:50 -07:00
|
|
|
|
//!
|
2020-08-20 23:43:46 +02:00
|
|
|
|
//! [`Arc`]: sync
|
|
|
|
|
//! [`Box`]: boxed
|
|
|
|
|
//! [`Cell`]: core::cell
|
|
|
|
|
//! [`Rc`]: rc
|
|
|
|
|
//! [`RefCell`]: core::cell
|
2014-05-13 16:10:05 -07:00
|
|
|
|
|
2015-06-25 10:07:01 -07:00
|
|
|
|
#![allow(unused_attributes)]
|
2019-04-03 19:50:28 +02:00
|
|
|
|
#![stable(feature = "alloc", since = "1.36.0")]
|
2019-02-05 14:37:15 +01:00
|
|
|
|
#![doc(
|
2020-01-30 21:14:39 +00:00
|
|
|
|
html_playground_url = "https://play.rust-lang.org/",
|
2015-08-16 17:22:50 +02:00
|
|
|
|
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
|
2021-10-06 15:34:59 +02:00
|
|
|
|
test(no_crate_inject, attr(allow(unused_variables), deny(warnings)))
|
2020-11-04 22:58:37 +01:00
|
|
|
|
)]
|
2022-01-14 09:50:49 +01:00
|
|
|
|
#![doc(cfg_hide(
|
|
|
|
|
not(test),
|
|
|
|
|
not(any(test, bootstrap)),
|
|
|
|
|
any(not(feature = "miri-test-libstd"), test, doctest),
|
|
|
|
|
no_global_oom_handling,
|
|
|
|
|
not(no_global_oom_handling),
|
2021-10-14 20:47:14 +02:00
|
|
|
|
not(no_rc),
|
|
|
|
|
not(no_sync),
|
2022-01-14 09:50:49 +01:00
|
|
|
|
target_has_atomic = "ptr"
|
|
|
|
|
))]
|
2014-05-13 16:10:05 -07:00
|
|
|
|
#![no_std]
|
2015-12-11 13:07:11 -08:00
|
|
|
|
#![needs_allocator]
|
2022-08-18 18:07:35 -04:00
|
|
|
|
// To run liballoc tests without x.py without ending up with two copies of liballoc, Miri needs to be
|
|
|
|
|
// able to "empty" this crate. See <https://github.com/rust-lang/miri-test-libstd/issues/4>.
|
|
|
|
|
// rustc itself never sets the feature, so this line has no affect there.
|
|
|
|
|
#![cfg(any(not(feature = "miri-test-libstd"), test, doctest))]
|
2021-08-04 19:00:46 +02:00
|
|
|
|
//
|
|
|
|
|
// Lints:
|
|
|
|
|
#![deny(unsafe_op_in_unsafe_fn)]
|
2018-12-21 11:22:18 +01:00
|
|
|
|
#![warn(deprecated_in_future)]
|
2019-01-28 10:49:11 +01:00
|
|
|
|
#![warn(missing_debug_implementations)]
|
2021-08-04 19:00:46 +02:00
|
|
|
|
#![warn(missing_docs)]
|
2019-04-14 10:16:23 +02:00
|
|
|
|
#![allow(explicit_outlives_requirements)]
|
2021-08-04 19:00:46 +02:00
|
|
|
|
//
|
|
|
|
|
// Library features:
|
|
|
|
|
#![feature(alloc_layout_extra)]
|
2018-03-28 22:37:37 +02:00
|
|
|
|
#![feature(allocator_api)]
|
2020-05-18 23:14:55 +02:00
|
|
|
|
#![feature(array_chunks)]
|
2022-06-26 22:53:25 +02:00
|
|
|
|
#![feature(array_into_iter_constructors)]
|
2020-10-28 11:58:06 +01:00
|
|
|
|
#![feature(array_methods)]
|
2020-08-13 19:09:14 +00:00
|
|
|
|
#![feature(array_windows)]
|
2022-02-16 19:23:37 +08:00
|
|
|
|
#![feature(assert_matches)]
|
2022-02-03 17:56:10 +08:00
|
|
|
|
#![feature(async_iterator)]
|
2015-06-09 11:18:03 -07:00
|
|
|
|
#![feature(coerce_unsized)]
|
2022-01-04 01:37:53 +09:00
|
|
|
|
#![cfg_attr(not(no_global_oom_handling), feature(const_alloc_error))]
|
2021-12-23 22:03:12 +09:00
|
|
|
|
#![feature(const_box)]
|
2022-09-23 18:03:44 +02:00
|
|
|
|
#![cfg_attr(not(no_global_oom_handling), feature(const_btree_len))]
|
2020-09-17 11:02:56 -07:00
|
|
|
|
#![feature(const_cow_is_borrowed)]
|
2021-12-23 22:03:12 +09:00
|
|
|
|
#![feature(const_convert)]
|
|
|
|
|
#![feature(const_size_of_val)]
|
|
|
|
|
#![feature(const_align_of_val)]
|
|
|
|
|
#![feature(const_ptr_read)]
|
|
|
|
|
#![feature(const_maybe_uninit_write)]
|
|
|
|
|
#![feature(const_maybe_uninit_as_mut_ptr)]
|
|
|
|
|
#![feature(const_refs_to_cell)]
|
2015-06-09 11:18:03 -07:00
|
|
|
|
#![feature(core_intrinsics)]
|
2021-12-23 22:03:12 +09:00
|
|
|
|
#![feature(const_eval_select)]
|
|
|
|
|
#![feature(const_pin)]
|
2022-09-14 14:15:44 +02:00
|
|
|
|
#![feature(const_waker)]
|
2022-02-16 19:23:37 +08:00
|
|
|
|
#![feature(cstr_from_bytes_until_nul)]
|
2021-08-04 19:00:46 +02:00
|
|
|
|
#![feature(dispatch_from_dyn)]
|
2022-09-20 15:41:42 +02:00
|
|
|
|
#![feature(error_generic_member_access)]
|
|
|
|
|
#![feature(error_in_core)]
|
2017-06-13 15:52:59 -07:00
|
|
|
|
#![feature(exact_size_is_empty)]
|
2020-05-12 20:09:55 -07:00
|
|
|
|
#![feature(extend_one)]
|
2017-06-13 15:52:59 -07:00
|
|
|
|
#![feature(fmt_internals)]
|
2019-02-01 13:31:24 +01:00
|
|
|
|
#![feature(fn_traits)]
|
2022-03-04 00:17:26 -08:00
|
|
|
|
#![feature(hasher_prefixfree_extras)]
|
2019-10-11 20:43:25 +02:00
|
|
|
|
#![feature(inplace_iteration)]
|
2021-07-12 21:40:38 +02:00
|
|
|
|
#![feature(iter_advance_by)]
|
2022-06-26 22:53:25 +02:00
|
|
|
|
#![feature(iter_next_chunk)]
|
2020-06-28 14:24:09 -04:00
|
|
|
|
#![feature(layout_for_ptr)]
|
2021-08-04 19:00:46 +02:00
|
|
|
|
#![feature(maybe_uninit_slice)]
|
2022-06-26 22:53:25 +02:00
|
|
|
|
#![feature(maybe_uninit_uninit_array)]
|
2022-10-16 21:01:28 -07:00
|
|
|
|
#![feature(maybe_uninit_uninit_array_transpose)]
|
2021-08-04 19:00:46 +02:00
|
|
|
|
#![cfg_attr(test, feature(new_uninit))]
|
2020-08-04 18:03:34 +02:00
|
|
|
|
#![feature(nonnull_slice_from_raw_parts)]
|
2017-06-13 15:52:59 -07:00
|
|
|
|
#![feature(pattern)]
|
2022-07-10 14:14:28 +04:00
|
|
|
|
#![feature(pointer_byte_offsets)]
|
2022-09-20 15:41:42 +02:00
|
|
|
|
#![feature(provide_any)]
|
2017-12-22 19:29:16 +01:00
|
|
|
|
#![feature(ptr_internals)]
|
2021-10-19 15:23:19 -07:00
|
|
|
|
#![feature(ptr_metadata)]
|
2022-04-10 16:02:52 -07:00
|
|
|
|
#![feature(ptr_sub_ptr)]
|
Stabilize `Rc`, `Arc` and `Pin` as method receivers
This lets you write methods using `self: Rc<Self>`, `self: Arc<Self>`, `self: Pin<&mut Self>`, `self: Pin<Box<Self>`, and other combinations involving `Pin` and another stdlib receiver type, without needing the `arbitrary_self_types`. Other user-created receiver types can be used, but they still require the feature flag to use.
This is implemented by introducing a new trait, `Receiver`, which the method receiver's type must implement if the `arbitrary_self_types` feature is not enabled. To keep composed receiver types such as `&Arc<Self>` unstable, the receiver type is also required to implement `Deref<Target=Self>` when the feature flag is not enabled.
This lets you use `self: Rc<Self>` and `self: Arc<Self>` in stable Rust, which was not allowed previously. It was agreed that they would be stabilized in #55786. `self: Pin<&Self>` and other pinned receiver types do not require the `arbitrary_self_types` feature, but they cannot be used on stable because `Pin` still requires the `pin` feature.
2018-11-20 11:50:50 -05:00
|
|
|
|
#![feature(receiver_trait)]
|
2022-09-02 18:53:20 -04:00
|
|
|
|
#![feature(saturating_int_impl)]
|
2021-01-06 16:34:13 -05:00
|
|
|
|
#![feature(set_ptr_value)]
|
2022-09-22 23:12:29 -07:00
|
|
|
|
#![feature(sized_type_properties)]
|
2022-05-27 18:37:33 +04:00
|
|
|
|
#![feature(slice_from_ptr_range)]
|
2021-08-04 19:00:46 +02:00
|
|
|
|
#![feature(slice_group_by)]
|
2020-08-04 18:03:34 +02:00
|
|
|
|
#![feature(slice_ptr_get)]
|
|
|
|
|
#![feature(slice_ptr_len)]
|
2021-02-01 21:20:44 -05:00
|
|
|
|
#![feature(slice_range)]
|
2017-06-13 15:52:59 -07:00
|
|
|
|
#![feature(str_internals)]
|
2022-03-29 17:45:54 -04:00
|
|
|
|
#![feature(strict_provenance)]
|
2017-06-13 15:52:59 -07:00
|
|
|
|
#![feature(trusted_len)]
|
2021-08-04 19:00:46 +02:00
|
|
|
|
#![feature(trusted_random_access)]
|
|
|
|
|
#![feature(try_trait_v2)]
|
2022-07-30 01:53:53 +00:00
|
|
|
|
#![cfg_attr(not(bootstrap), feature(tuple_trait))]
|
2022-04-01 20:07:28 -04:00
|
|
|
|
#![feature(unchecked_math)]
|
2018-04-06 14:23:00 +02:00
|
|
|
|
#![feature(unicode_internals)]
|
2015-06-09 11:18:03 -07:00
|
|
|
|
#![feature(unsize)]
|
2022-08-20 12:49:20 -04:00
|
|
|
|
#![feature(utf8_chunks)]
|
2022-06-12 00:55:09 +02:00
|
|
|
|
#![feature(std_internals)]
|
2021-08-04 19:00:46 +02:00
|
|
|
|
//
|
|
|
|
|
// Language features:
|
2017-07-17 09:32:08 -07:00
|
|
|
|
#![feature(allocator_internals)]
|
2021-08-04 19:00:46 +02:00
|
|
|
|
#![feature(allow_internal_unstable)]
|
2019-07-31 21:00:35 +02:00
|
|
|
|
#![feature(associated_type_bounds)]
|
2021-08-04 19:00:46 +02:00
|
|
|
|
#![feature(cfg_sanitize)]
|
2021-12-23 22:03:12 +09:00
|
|
|
|
#![feature(const_deref)]
|
|
|
|
|
#![feature(const_mut_refs)]
|
|
|
|
|
#![feature(const_ptr_write)]
|
|
|
|
|
#![feature(const_precise_live_drops)]
|
2021-08-04 19:00:46 +02:00
|
|
|
|
#![feature(const_trait_impl)]
|
2021-12-23 22:03:12 +09:00
|
|
|
|
#![feature(const_try)]
|
2021-08-04 19:00:46 +02:00
|
|
|
|
#![feature(dropck_eyepatch)]
|
|
|
|
|
#![feature(exclusive_range_pattern)]
|
|
|
|
|
#![feature(fundamental)]
|
|
|
|
|
#![cfg_attr(not(test), feature(generator_trait))]
|
2022-02-16 19:23:37 +08:00
|
|
|
|
#![feature(hashmap_internals)]
|
2021-08-04 19:00:46 +02:00
|
|
|
|
#![feature(lang_items)]
|
|
|
|
|
#![feature(min_specialization)]
|
|
|
|
|
#![feature(negative_impls)]
|
|
|
|
|
#![feature(never_type)]
|
|
|
|
|
#![feature(rustc_allow_const_fn_unstable)]
|
|
|
|
|
#![feature(rustc_attrs)]
|
2022-05-27 22:19:43 -07:00
|
|
|
|
#![feature(pointer_is_aligned)]
|
2022-02-16 19:23:37 +08:00
|
|
|
|
#![feature(slice_internals)]
|
2021-08-04 19:00:46 +02:00
|
|
|
|
#![feature(staged_api)]
|
2022-05-28 16:37:52 +02:00
|
|
|
|
#![feature(stmt_expr_attributes)]
|
2021-08-04 19:00:46 +02:00
|
|
|
|
#![cfg_attr(test, feature(test))]
|
|
|
|
|
#![feature(unboxed_closures)]
|
|
|
|
|
#![feature(unsized_fn_params)]
|
2021-10-04 02:02:33 +01:00
|
|
|
|
#![feature(c_unwind)]
|
2022-07-29 18:54:47 +00:00
|
|
|
|
#![feature(with_negative_coherence)]
|
2021-08-04 19:00:46 +02:00
|
|
|
|
//
|
|
|
|
|
// Rustdoc features:
|
2020-11-04 22:58:37 +01:00
|
|
|
|
#![feature(doc_cfg)]
|
2021-10-19 09:27:59 +02:00
|
|
|
|
#![feature(doc_cfg_hide)]
|
2021-08-04 19:00:46 +02:00
|
|
|
|
// Technically, this is a bug in rustdoc: rustdoc sees the documentation on `#[lang = slice_alloc]`
|
|
|
|
|
// blocks is for `&[T]`, which also has documentation using this feature in `core`, and gets mad
|
|
|
|
|
// that the feature-gate isn't enabled. Ideally, it wouldn't check for the feature gate for docs
|
|
|
|
|
// from other crates, but since this can only appear for lang items, it doesn't seem worth fixing.
|
|
|
|
|
#![feature(intra_doc_pointers)]
|
2014-05-13 16:10:05 -07:00
|
|
|
|
|
2021-08-04 19:00:46 +02:00
|
|
|
|
// Allow testing this library
|
2015-09-24 10:00:54 +12:00
|
|
|
|
#[cfg(test)]
|
|
|
|
|
#[macro_use]
|
|
|
|
|
extern crate std;
|
2017-06-13 15:52:59 -07:00
|
|
|
|
#[cfg(test)]
|
|
|
|
|
extern crate test;
|
|
|
|
|
|
2016-10-15 16:32:14 +01:00
|
|
|
|
// Module with internal macros used by other modules (needs to be included before other modules).
|
|
|
|
|
#[macro_use]
|
|
|
|
|
mod macros;
|
|
|
|
|
|
2021-11-03 20:47:00 +01:00
|
|
|
|
mod raw_vec;
|
|
|
|
|
|
2014-05-13 16:10:05 -07:00
|
|
|
|
// Heaps provided for low-level allocation strategies
|
|
|
|
|
|
2018-04-03 14:41:15 +02:00
|
|
|
|
pub mod alloc;
|
|
|
|
|
|
2014-05-13 16:10:05 -07:00
|
|
|
|
// Primitive types using the heaps above
|
|
|
|
|
|
2015-02-17 21:41:32 +01:00
|
|
|
|
// Need to conditionally define the mod from `boxed.rs` to avoid
|
|
|
|
|
// duplicating the lang-items when building in test cfg; but also need
|
2018-02-18 17:39:40 +00:00
|
|
|
|
// to allow code to have `use boxed::Box;` declarations.
|
2014-05-13 16:10:05 -07:00
|
|
|
|
#[cfg(not(test))]
|
2014-07-10 14:19:17 -07:00
|
|
|
|
pub mod boxed;
|
2015-01-20 23:57:56 +03:00
|
|
|
|
#[cfg(test)]
|
2015-09-24 10:00:54 +12:00
|
|
|
|
mod boxed {
|
2018-02-18 17:39:40 +00:00
|
|
|
|
pub use std::boxed::Box;
|
2015-09-24 10:00:54 +12:00
|
|
|
|
}
|
2017-06-13 15:52:59 -07:00
|
|
|
|
pub mod borrow;
|
2018-06-15 03:52:25 +02:00
|
|
|
|
pub mod collections;
|
2021-10-14 20:47:14 +02:00
|
|
|
|
#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
|
2022-02-16 19:23:37 +08:00
|
|
|
|
pub mod ffi;
|
2017-06-13 15:52:59 -07:00
|
|
|
|
pub mod fmt;
|
2021-10-14 20:47:14 +02:00
|
|
|
|
#[cfg(not(no_rc))]
|
2014-05-13 16:10:05 -07:00
|
|
|
|
pub mod rc;
|
2017-06-13 15:52:59 -07:00
|
|
|
|
pub mod slice;
|
|
|
|
|
pub mod str;
|
|
|
|
|
pub mod string;
|
2021-10-14 20:47:14 +02:00
|
|
|
|
#[cfg(all(not(no_rc), not(no_sync), target_has_atomic = "ptr"))]
|
2018-06-15 04:07:09 +02:00
|
|
|
|
pub mod sync;
|
2021-10-14 20:47:14 +02:00
|
|
|
|
#[cfg(all(not(no_global_oom_handling), not(no_rc), not(no_sync), target_has_atomic = "ptr"))]
|
Add Wake trait for safe construction of Wakers.
Currently, constructing a waker requires calling the unsafe
`Waker::from_raw` API. This API requires the user to manually construct
a vtable for the waker themself - which is both cumbersome and very
error prone. This API would provide an ergonomic, straightforward and
guaranteed memory-safe way of constructing a waker.
It has been our longstanding intention that the `Waker` type essentially
function as an `Arc<dyn Wake>`, with a `Wake` trait as defined here. Two
considerations prevented the original API from being shipped as simply
an `Arc<dyn Wake>`:
- We want to support futures on embedded systems, which may not have an
allocator, and in optimized executors for which this API may not be
best-suited. Therefore, we have always explicitly supported the
maximally-flexible (but also memory-unsafe) `RawWaker` API, and
`Waker` has always lived in libcore.
- Because `Waker` lives in libcore and `Arc` lives in liballoc, it has
not been feasible to provide a constructor for `Waker` from `Arc<dyn
Wake>`.
Therefore, the Wake trait was left out of the initial version of the
task waker API.
However, as Rust 1.41, it is possible under the more flexible orphan
rules to implement `From<Arc<W>> for Waker where W: Wake` in liballoc.
Therefore, we can now define this constructor even though `Waker` lives
in libcore.
This PR adds these APIs:
- A `Wake` trait, which contains two methods
- A required method `wake`, which is called by `Waker::wake`
- A provided method `wake_by_ref`, which is called by
`Waker::wake_by_ref` and which implementors can override if they
can optimize this use case.
- An implementation of `From<Arc<W>> for Waker where W: Wake + Send +
Sync + 'static`
- A similar implementation of `From<Arc<W>> for RawWaker`.
2020-01-31 14:26:24 +01:00
|
|
|
|
pub mod task;
|
2017-06-13 15:52:59 -07:00
|
|
|
|
#[cfg(test)]
|
2019-06-02 01:50:10 +09:00
|
|
|
|
mod tests;
|
2017-06-13 15:52:59 -07:00
|
|
|
|
pub mod vec;
|
|
|
|
|
|
2019-09-01 14:10:50 +03:00
|
|
|
|
#[doc(hidden)]
|
2019-12-21 13:16:18 +02:00
|
|
|
|
#[unstable(feature = "liballoc_internals", issue = "none", reason = "implementation detail")]
|
2019-09-01 14:10:50 +03:00
|
|
|
|
pub mod __export {
|
|
|
|
|
pub use core::format_args;
|
|
|
|
|
}
|