deep_causality_num 0.3.3

Number utils for for deep_causality crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * SPDX-License-Identifier: MIT
 * Copyright (c) 2023 - 2026. The DeepCausality Authors and Contributors. All Rights Reserved.
 */

pub trait IntAsScalar: Sized {
    #[inline(always)]
    fn splat(scalar: Self) -> Self {
        scalar
    }
}

impl IntAsScalar for u8 {}
impl IntAsScalar for u16 {}
impl IntAsScalar for u32 {}
impl IntAsScalar for u64 {}
impl IntAsScalar for u128 {}