nalgebra/src/base/scalar.rs

9 lines
282 B
Rust
Raw Normal View History

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 {}