Skip to main content

base_traits/
lib.rs

1// lib.rs : base-traits
2
3// /////////////////////////////////////////////////////////
4// crate-level feature definitions
5
6#![cfg_attr(feature = "experimental-exact_size_is_empty", feature(exact_size_is_empty))]
7#![cfg_attr(all(not(test), feature = "nostd"), no_std)]
8
9// /////////////////////////////////////////////////////////
10// crate-level feature discrimination
11
12// /////////////////////////////////////////////////////////
13// imports
14
15pub(crate) mod macros;
16
17macros::declare_and_publish!(pub traits,
18    AsF64,
19    AsI128,
20    AsI32,
21    AsI64,
22    AsISize,
23    AsStr,
24    AsU128,
25    AsU32,
26    AsU64,
27    AsUSize,
28    Infinity,
29    Integer,
30    IsDefault,
31    IsEmpty,
32    IsInfinity,
33    IsNAN,
34    IsZero,
35    Len,
36    Numeric,
37    Real,
38    Scalar,
39    Signed,
40    ToF64,
41    ToI128,
42    ToI16,
43    ToI32,
44    ToI64,
45    ToISize,
46    ToU128,
47    ToU16,
48    ToU32,
49    ToU64,
50    ToUSize,
51    Unsigned,
52    Zero,
53);
54
55mod private {
56    #![allow(unused_imports)]
57
58    pub(crate) use super::traits::Sealed;
59}
60
61// ///////////////////////////// end of file //////////////////////////// //