sphrs/
float.rs

1// Copyright 2018-2023 Stefan Kroboth
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
5// http://opensource.org/licenses/MIT>, at your option. This file may not be
6// copied, modified, or distributed except according to those terms.
7
8use num::{Float, FromPrimitive};
9use num_traits::float::FloatConst;
10use std::fmt::Debug;
11
12/// Trait alias for trait bounds on floats
13pub trait SphrsFloat: Float + FloatConst + FromPrimitive + Debug {}
14impl<I> SphrsFloat for I where I: Float + FloatConst + FromPrimitive + Debug {}