pub struct PolynomialParameters { /* private fields */ }
Implementations§
Source§impl PolynomialParameters
impl PolynomialParameters
pub fn num_terms(&self) -> usize
pub fn max_degree(&self) -> Degree
pub fn max_id(&self) -> VariableID
Source§impl PolynomialParameters
impl PolynomialParameters
pub fn new( num_terms: usize, max_degree: Degree, max_id: VariableID, ) -> Result<Self>
pub fn default_linear() -> Self
pub fn default_quadratic() -> Self
Trait Implementations§
Source§impl Arbitrary for PolynomialParameters
impl Arbitrary for PolynomialParameters
Source§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.Source§type Strategy = BoxedStrategy<PolynomialParameters>
type Strategy = BoxedStrategy<PolynomialParameters>
The type of
Strategy
used to generate values of type Self
.Source§fn arbitrary_with(_: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_: Self::Parameters) -> Self::Strategy
Source§impl Clone for PolynomialParameters
impl Clone for PolynomialParameters
Source§fn clone(&self) -> PolynomialParameters
fn clone(&self) -> PolynomialParameters
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PolynomialParameters
impl Debug for PolynomialParameters
Source§impl Default for PolynomialParameters
impl Default for PolynomialParameters
Source§impl From<LinearParameters> for PolynomialParameters
impl From<LinearParameters> for PolynomialParameters
Source§fn from(p: LinearParameters) -> Self
fn from(p: LinearParameters) -> Self
Converts to this type from the input type.
Source§impl From<QuadraticParameters> for PolynomialParameters
impl From<QuadraticParameters> for PolynomialParameters
Source§fn from(p: QuadraticParameters) -> Self
fn from(p: QuadraticParameters) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PolynomialParameters
impl PartialEq for PolynomialParameters
impl Copy for PolynomialParameters
impl Eq for PolynomialParameters
impl StructuralPartialEq for PolynomialParameters
Auto Trait Implementations§
impl Freeze for PolynomialParameters
impl RefUnwindSafe for PolynomialParameters
impl Send for PolynomialParameters
impl Sync for PolynomialParameters
impl Unpin for PolynomialParameters
impl UnwindSafe for PolynomialParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more