1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use core::ops::Mul;


use num::{One};

use crate::Polynomial;

impl<T> One for Polynomial<T, Vec<T>>
where
    Self: Mul<Output = Self>,
    Polynomial<T, ()>: Into<Self>
{
    fn one() -> Self
    {
        Polynomial::new(()).into()
    }
}
impl<T> One for Polynomial<T, ()>
where
    Self: Mul<Output = Self>,
    Polynomial<T, ()>: Into<Self>
{
    fn one() -> Self
    {
        Polynomial::new(()).into()
    }
}