pub struct PolynomialRing<F> { /* private fields */ }Implementations§
Source§impl<F> PolynomialRing<F>
impl<F> PolynomialRing<F>
pub fn new<I, S>( variables: I, order: MonomialOrder, ) -> Result<Self, ParsePolynomialError>
pub fn variables(&self) -> &[String]
pub fn order(&self) -> MonomialOrder
Source§impl<F: ParseCoefficient> PolynomialRing<F>
impl<F: ParseCoefficient> PolynomialRing<F>
pub fn parse(&self, input: &str) -> Result<Polynomial<F>, ParsePolynomialError>
pub fn parse_many( &self, input: &str, ) -> Result<Vec<Polynomial<F>>, ParsePolynomialError>
pub fn format( &self, polynomial: &Polynomial<F>, ) -> Result<String, ParsePolynomialError>
pub fn format_monomial( &self, monomial: &Monomial, ) -> Result<String, ParsePolynomialError>
Trait Implementations§
Source§impl<F: Clone> Clone for PolynomialRing<F>
impl<F: Clone> Clone for PolynomialRing<F>
Source§fn clone(&self) -> PolynomialRing<F>
fn clone(&self) -> PolynomialRing<F>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<F> Freeze for PolynomialRing<F>
impl<F> RefUnwindSafe for PolynomialRing<F>where
F: RefUnwindSafe,
impl<F> Send for PolynomialRing<F>where
F: Send,
impl<F> Sync for PolynomialRing<F>where
F: Sync,
impl<F> Unpin for PolynomialRing<F>where
F: Unpin,
impl<F> UnsafeUnpin for PolynomialRing<F>
impl<F> UnwindSafe for PolynomialRing<F>where
F: UnwindSafe,
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