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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
//! Core trait definitions for the num-valid library.
//!
//! This module contains the fundamental traits that define the behavior
//! of raw and validated scalar types.
use crate::;
/// Raw trait contracts for unchecked operations on primitive types.
/// Validation traits and marker traits for finite value guarantees.
//------------------------------------------------------------------------------------------------------------
/// Defines the identity of a raw numerical kernel by associating its fundamental types.
///
/// This trait acts as a low-level building block that groups the core "raw"
/// types of a numerical backend. It specifies which concrete types implement
/// [`RawRealTrait`] and [`RawComplexTrait`] for a given kernel.
///
/// It is primarily used as a supertrait for [`NumKernel`], which extends
/// this type-level association with concrete validation logic and precision information.
//------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------
/// Defines a complete numerical kernel, acting as the central configuration point.
///
/// This trait is the primary bound for generic functions that need to operate
/// across different numerical backends. It bundles together:
/// 1. The raw underlying types (e.g., `f64`) via the [`RawKernel`] supertrait.
/// 2. The specific validation logic for those types.
/// 3. The precision of the kernel in bits.
/// 4. The final, high-level `Real` and `Complex` validated types.
//------------------------------------------------------------------------------------------------------------