fixed_wide_vectors/deferred_division/src/ratio.rs

11 lines
195 B
Rust
Raw Normal View History

2024-08-27 20:28:53 +00:00
#[derive(Clone,Copy,Debug,Hash)]
pub struct Ratio<Num,Den>{
pub(crate)num:Num,
pub(crate)den:Den,
}
impl<Num,Den> Ratio<Num,Den>{
pub const fn new(num:Num,den:Den)->Self{
Self{num,den}
}
2024-08-27 20:28:53 +00:00
}