1 //! The libcore prelude
3 //! This module is intended for users of libcore which do not link to libstd as
4 //! well. This module is imported by default when `#![no_std]` is used in the
5 //! same manner as the standard library's prelude.
7 #![stable(feature = "core_prelude", since = "1.4.0")]
11 /// The 2015 version of the core prelude.
13 /// See the [module-level documentation](self) for more.
14 #[stable(feature = "prelude_2015", since = "1.55.0")]
16 #[stable(feature = "prelude_2015", since = "1.55.0")]
21 /// The 2018 version of the core prelude.
23 /// See the [module-level documentation](self) for more.
24 #[stable(feature = "prelude_2018", since = "1.55.0")]
26 #[stable(feature = "prelude_2018", since = "1.55.0")]
31 /// The 2021 version of the core prelude.
33 /// See the [module-level documentation](self) for more.
34 #[stable(feature = "prelude_2021", since = "1.55.0")]
36 #[stable(feature = "prelude_2021", since = "1.55.0")]
40 #[stable(feature = "prelude_2021", since = "1.55.0")]
42 pub use crate::iter::FromIterator;
44 #[stable(feature = "prelude_2021", since = "1.55.0")]
46 pub use crate::convert::{TryFrom, TryInto};
49 /// The 2024 edition of the core prelude.
51 /// See the [module-level documentation](self) for more.
52 #[unstable(feature = "prelude_2024", issue = "none")]
54 #[unstable(feature = "prelude_2024", issue = "none")]
56 pub use super::rust_2021::*;