nalgebra/src/base/scalar.rs
2021-08-04 17:34:25 +02:00

9 lines
282 B
Rust

use std::fmt::Debug;
/// The basic scalar type for all structures of `nalgebra`.
///
/// This does not make any assumption on the algebraic properties of `Self`.
pub trait Scalar: 'static + Clone + PartialEq + Debug {}
impl<T: 'static + Clone + PartialEq + Debug> Scalar for T {}