Skip to content

Commit

Permalink
make GeoFloat + Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Jan 11, 2021
1 parent cd3e60e commit e0ea65b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions geo/src/lib.rs
Expand Up @@ -152,5 +152,11 @@ pub mod prelude {
/// })
/// }
/// ```
pub trait GeoFloat: num_traits::Float + CoordinateType + algorithm::kernels::HasKernel {}
impl<T> GeoFloat for T where T: num_traits::Float + CoordinateType + algorithm::kernels::HasKernel {}
pub trait GeoFloat:
num_traits::Float + CoordinateType + algorithm::kernels::HasKernel + std::fmt::Debug
{
}
impl<T> GeoFloat for T where
T: num_traits::Float + CoordinateType + algorithm::kernels::HasKernel + std::fmt::Debug
{
}

0 comments on commit e0ea65b

Please sign in to comment.