solana-math 0.4.1

Checked arithmetic and conversion traits for Solana-oriented Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! `solana-math` provides checked arithmetic and conversion traits that
//! return explicit errors instead of panicking.
//!
//! Functionality is organized into trait implementations in [`impls`] and uses
//! [`SafeMathError`] for overflow, underflow, and conversion failures.

#![cfg_attr(not(any(test, feature = "std")), no_std)]

mod debug_log;
pub mod error;
pub mod impls;

pub use error::*;
pub use impls::*;