todo
This commit is contained in:
parent
43b8190148
commit
98349915ec
@ -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>{
|
||||
|
Loading…
Reference in New Issue
Block a user