devela/code/
reexports.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// devela::code::reexports
//
//! General reexported items, except macros and overloadable operators.
//

#![allow(unused_imports)]

use crate::reexport;

/* `core::clone` re-exports */

// NOTE: the trait and the derive macro have the same name
/// <span class='stab portability' title='re-exported from rust&#39;s `core`'>`core`</span>
pub use core::clone::Clone;

/* `core::convert` re-exports */

// enums
reexport! { rust: core::convert,
tag: crate::TAG_ERROR!(),
doc: "The error type for errors that can never happen.", Infallible }

// traits
reexport! { rust: core::convert,
doc: "Used to do a cheap mutable-to-mutable reference conversion.", AsMut }
reexport! { rust: core::convert,
doc: "Used to do a cheap reference-to-reference conversion.", AsRef }
reexport! { rust: core::convert,
doc: "Used to do value-to-value conversions while consuming the input value.", From }
reexport! { rust: core::convert,
doc: "A value-to-value conversion that consumes the input value.", Into }
reexport! { rust: core::convert,
doc: "Simple and safe type conversions that may fail in a controlled way.", TryFrom }
reexport! { rust: core::convert,
doc: "An attempted conversion that consumes self, which may or may not be expensive.",
    TryInto }

// functions
reexport! { rust: core::convert,
doc: "The identity function. Just returns back its input.", identity }

/* `core::default` re-exports */

// NOTE: the trait and the derive macro have the same name
/// <span class='stab portability' title='re-exported from rust&#39;s `core`'>`core`</span>
pub use core::default::Default;