devela/code/
reexports.rs

1// devela::code::reexports
2//
3//! General reexported items, except macros and overloadable operators.
4//
5
6#![allow(unused_imports)]
7
8use crate::reexport;
9
10/* `core::clone` re-exports */
11
12// NOTE: the trait and the derive macro have the same name
13/// <span class='stab portability' title='re-exported from rust&#39;s `core`'>`core`</span>
14pub use core::clone::Clone;
15
16/* `core::convert` re-exports */
17
18// enums
19reexport! { rust: core::convert,
20tag: crate::TAG_ERROR!(),
21doc: "The error type for errors that can never happen.", Infallible }
22
23// traits
24reexport! { rust: core::convert,
25doc: "Used to do a cheap mutable-to-mutable reference conversion.", AsMut }
26reexport! { rust: core::convert,
27doc: "Used to do a cheap reference-to-reference conversion.", AsRef }
28reexport! { rust: core::convert,
29doc: "Used to do value-to-value conversions while consuming the input value.", From }
30reexport! { rust: core::convert,
31doc: "A value-to-value conversion that consumes the input value.", Into }
32reexport! { rust: core::convert,
33doc: "Simple and safe type conversions that may fail in a controlled way.", TryFrom }
34reexport! { rust: core::convert,
35doc: "An attempted conversion that consumes self, which may or may not be expensive.",
36    TryInto }
37
38// functions
39reexport! { rust: core::convert,
40doc: "The identity function. Just returns back its input.", identity }
41
42/* `core::default` re-exports */
43
44// NOTE: the trait and the derive macro have the same name
45/// <span class='stab portability' title='re-exported from rust&#39;s `core`'>`core`</span>
46pub use core::default::Default;