multitype/
lib.rs

1// Copyright 2025 Gabriel Bjørnager Jensen.
2
3#![doc(html_logo_url = "https://gitlab.com/bjoernager/multitype/-/raw/master/doc-icon.svg")]
4
5//! Primitive type traits.
6//!
7//! Multitype is a crate for seamlessly generalising fundamental types via traits.
8//!
9//! Multitype provideds the [`Uint`](num::Uint), [`Int`](num::Int), and [`Float`](num::Float) traits to abstract over the equivalent primitive types.
10//! These traits are intended to provide one-to-one copies of the interfaces that the primitive types define.
11
12#![no_std]
13
14#![cfg_attr(feature = "f16",           feature(f16))]
15#![cfg_attr(feature = "f128",          feature(f128))]
16#![cfg_attr(feature = "unstable-docs", feature(doc_cfg, intra_doc_pointers))]
17
18extern crate self as multitype;
19
20#[cfg(feature = "alloc")]
21extern crate alloc;
22
23#[cfg(feature = "std")]
24extern crate std;
25
26pub mod array;
27pub mod num;
28pub mod ptr;