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,
|
|
|
|
}
|
2024-08-28 16:06:16 +00:00
|
|
|
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
|
|
|
}
|