[−][src]Struct polynomials::Polynomial
Implementations
impl<T> Polynomial<T>
[src]
pub fn new() -> Polynomial<T>
[src]
pub fn push(&mut self, value: T)
[src]
pub fn pop(&mut self) -> Option<T>
[src]
pub fn degree(&self) -> usize where
T: Sub<T, Output = T> + Eq + Copy,
[src]
T: Sub<T, Output = T> + Eq + Copy,
pub fn eval<X>(&self, x: X) -> Option<T> where
T: AddAssign + Copy,
X: MulAssign + Mul<T, Output = T> + Copy,
[src]
T: AddAssign + Copy,
X: MulAssign + Mul<T, Output = T> + Copy,
pub fn iter(&self) -> impl Iterator<Item = &T>
[src]
pub fn into_iter(self) -> impl IntoIterator<Item = T, IntoIter = IntoIter<T>>
[src]
Trait Implementations
impl<T: Add<Output = T>> Add<Polynomial<T>> for Polynomial<T> where
T: Add + Copy + Clone,
[src]
T: Add + Copy + Clone,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self::Output
[src]
impl<T> AddAssign<Polynomial<T>> for Polynomial<T> where
T: Add<Output = T> + Copy,
[src]
T: Add<Output = T> + Copy,
fn add_assign(&mut self, rhs: Self)
[src]
impl<T: Clone> Clone for Polynomial<T>
[src]
fn clone(&self) -> Polynomial<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for Polynomial<T>
[src]
impl<T> Div<T> for Polynomial<T> where
T: DivAssign + Copy,
[src]
T: DivAssign + Copy,
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: T) -> Self::Output
[src]
impl<T> DivAssign<T> for Polynomial<T> where
T: DivAssign + Copy,
[src]
T: DivAssign + Copy,
fn div_assign(&mut self, rhs: T)
[src]
impl<T> Eq for Polynomial<T> where
T: Sub<T, Output = T> + Eq + Copy,
[src]
T: Sub<T, Output = T> + Eq + Copy,
impl<T> From<Vec<T>> for Polynomial<T>
[src]
impl<T, I: SliceIndex<[T]>> Index<I> for Polynomial<T>
[src]
type Output = I::Output
The returned type after indexing.
fn index(&self, index: I) -> &Self::Output
[src]
impl<T, I: SliceIndex<[T]>> IndexMut<I> for Polynomial<T>
[src]
impl<T> Into<Vec<T>> for Polynomial<T>
[src]
impl<T> Mul<Polynomial<T>> for Polynomial<T> where
T: Mul<Output = T> + AddAssign + Sub<Output = T>,
T: Copy + Clone,
[src]
T: Mul<Output = T> + AddAssign + Sub<Output = T>,
T: Copy + Clone,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self::Output
[src]
impl<T> Mul<T> for Polynomial<T> where
T: MulAssign + Copy,
[src]
T: MulAssign + Copy,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Self::Output
[src]
impl<T> MulAssign<Polynomial<T>> for Polynomial<T> where
T: Mul<Output = T> + AddAssign + Sub<Output = T>,
T: Copy + Clone,
[src]
T: Mul<Output = T> + AddAssign + Sub<Output = T>,
T: Copy + Clone,
fn mul_assign(&mut self, rhs: Self)
[src]
impl<T> MulAssign<T> for Polynomial<T> where
T: MulAssign + Copy,
[src]
T: MulAssign + Copy,
fn mul_assign(&mut self, rhs: T)
[src]
impl<T> PartialEq<Polynomial<T>> for Polynomial<T> where
T: Sub<T, Output = T> + Eq + Copy,
[src]
T: Sub<T, Output = T> + Eq + Copy,
impl<T: Sub<Output = T>> Sub<Polynomial<T>> for Polynomial<T> where
T: Sub + Neg<Output = T> + Copy + Clone,
[src]
T: Sub + Neg<Output = T> + Copy + Clone,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self::Output
[src]
impl<T> SubAssign<Polynomial<T>> for Polynomial<T> where
T: Sub<Output = T> + Neg<Output = T> + Copy,
[src]
T: Sub<Output = T> + Neg<Output = T> + Copy,
fn sub_assign(&mut self, rhs: Self)
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Polynomial<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Polynomial<T> where
T: Send,
T: Send,
impl<T> Sync for Polynomial<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Polynomial<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Polynomial<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,