Struct bullet::poly::Poly
[−]
[src]
pub struct Poly { /* fields omitted */ }
Methods
impl Poly
[src]
fn zero() -> Poly
[src]
fn rational(r: Rational) -> Poly
[src]
fn int(i: i64) -> Poly
[src]
fn from_node(node: NodeRc) -> Poly
[src]
fn pow_i(self, builder: &Builder, i: i32) -> Result<Poly, Error>
[src]
fn pow_n(self, n: u32) -> Poly
[src]
fn is_zero(&self) -> bool
[src]
fn factors(&self) -> Iter<Base, Rational>
[src]
fn as_rational(&self) -> Option<Rational>
[src]
fn as_int(&self) -> Option<i64>
[src]
fn split(&self) -> Vec<Poly>
[src]
fn factorize(&self) -> Option<(Poly, Poly)>
[src]
Trait Implementations
impl Debug for Poly
[src]
impl Clone for Poly
[src]
fn clone(&self) -> Poly
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Add for Poly
[src]
type Output = Poly
The resulting type after applying the +
operator.
fn add(self, rhs: Poly) -> Poly
[src]
Performs the +
operation.
impl Mul for Poly
[src]
type Output = Poly
The resulting type after applying the *
operator.
fn mul(self, rhs: Poly) -> Poly
[src]
Performs the *
operation.
impl Mul<i64> for Poly
[src]
type Output = Poly
The resulting type after applying the *
operator.
fn mul(self, rhs: i64) -> Poly
[src]
Performs the *
operation.
impl MulAssign<i64> for Poly
[src]
fn mul_assign(&mut self, rhs: i64)
[src]
Performs the *=
operation.
impl MulAssign<Rational> for Poly
[src]
fn mul_assign(&mut self, rhs: Rational)
[src]
Performs the *=
operation.
impl PartialEq for Poly
[src]
fn eq(&self, rhs: &Poly) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for Poly
[src]
impl PartialOrd for Poly
[src]
fn partial_cmp(&self, rhs: &Poly) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Poly
[src]
fn cmp(&self, rhs: &Poly) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl Hash for Poly
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more