signal_processing 0.3.0

A signal processing library.
Documentation
use core::ops::Mul;


use num::{One};

use crate::quantities::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()
    }
}