This commit is contained in:
Quaternions 2024-08-23 17:55:14 -07:00
parent 43b8190148
commit 98349915ec

View File

@ -15,6 +15,7 @@ pub trait TryNarrow{
mod tests {
use super::*;
//TODO: use num_traits to do a blanket implementation (self<T::MIN as U)
impl TryNarrow for i16{
type Output=i8;
fn try_narrow(self)->Result<Self::Output,NarrowError>{