Polynomial

Type Alias Polynomial 

Source
pub type Polynomial = PolynomialBase<MonomialDyn>;

Aliased Type§

pub struct Polynomial { /* private fields */ }

Implementations§

Source§

impl Polynomial

Source

pub fn to_bytes(&self) -> Vec<u8>

Source

pub fn from_bytes(bytes: &[u8]) -> Result<Self>

Trait Implementations§

Source§

impl From<PolynomialBase<LinearMonomial>> for Polynomial

Source§

fn from(l: Linear) -> Self

Converts to this type from the input type.
Source§

impl From<PolynomialBase<QuadraticMonomial>> for Polynomial

Source§

fn from(q: Quadratic) -> Self

Converts to this type from the input type.
Source§

impl Mul<Function> for &Polynomial

Source§

type Output = Function

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Function) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Function> for Polynomial

Source§

type Output = Function

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Function) -> Self::Output

Performs the * operation. Read more
Source§

impl TryFrom<Polynomial> for Polynomial

Source§

type Error = ParseError

The type returned in the event of a conversion error.
Source§

fn try_from(value: Polynomial) -> Result<Self, Self::Error>

Performs the conversion.