Struct PartialDeriv

Source
pub struct PartialDeriv<'plan, Coeffs> { /* private fields */ }
Expand description

The partial derivative of a polynomial.

This struct is created by PartialDerivPlan. See its documentation for more information.

Trait Implementations§

Source§

impl<'plan, Coeffs: Clone> Clone for PartialDeriv<'plan, Coeffs>

Source§

fn clone(&self) -> PartialDeriv<'plan, Coeffs>

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'plan, Coeffs: Debug> Debug for PartialDeriv<'plan, Coeffs>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'plan, Coeffs, OCoeff> IntoIterator for PartialDeriv<'plan, Coeffs>
where Coeffs: Sequence, for<'a> <Coeffs as SequenceTypes<'a>>::Item: Multiple<Output = OCoeff>,

Source§

type Item = OCoeff

The type of the elements being iterated over.
Source§

type IntoIter = PartialDerivIter<'plan, Coeffs>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'plan, Coeffs, OCoeff> Sequence for PartialDeriv<'plan, Coeffs>
where for<'a> <Coeffs as SequenceTypes<'a>>::Item: Multiple<Output = OCoeff>, Coeffs: Sequence,

Source§

fn len(&self) -> usize

Returns the length of the sequence. Read more
Source§

fn get(&self, index: usize) -> Option<OCoeff>

Returns the element at the given index or None. Read more
Source§

fn iter(&self) -> PartialDerivIter<'plan, Wrapper<&Coeffs, ((),)>>

Returns an iterator that returns elements. Read more
Source§

fn is_empty(&self) -> bool

Returns true if the sequence is empty. Read more
Source§

fn rget(&self, rindex: usize) -> Option<Self::Item>

Returns the element at the given index counting from the end or None. Read more
Source§

fn first(&self) -> Option<Self::Item>

Returns the first element or None if the sequence is empty. Read more
Source§

fn last(&self) -> Option<Self::Item>

Returns the last element or None if the sequence is empty. Read more
Source§

fn min<'a>(&'a self) -> Option<Self::Item>
where Self::Item: Ord,

Returns the minimum of the sequence or None if the sequence is empty. Read more
Source§

fn max<'a>(&'a self) -> Option<Self::Item>
where Self::Item: Ord,

Returns the maximum of the sequence or None if the sequence is empty. Read more
Source§

fn copied<Item>(self) -> Copied<Self, Item>
where Self: Sized + for<'a> SequenceTypes<'a, Item = &'a Item>, Item: Copy,

Creates a sequence that copies all of its elements. Read more
Source§

fn cloned<Item>(self) -> Cloned<Self, Item>
where Self: Sized + for<'a> SequenceTypes<'a, Item = &'a Item>, Item: Clone,

Creates a sequence that clones all of its elements. Read more
Source§

fn map<B, F>(self, f: F) -> Map<Self, F>
where Self: Sized, F: for<'a> Fn(Self::Item) -> B,

Takes a closure and creates a sequence that calls the closure on each element. Read more
Source§

fn repeat(self, nreps: usize) -> Repeat<Self>
where Self: Sized,

Returns a sequence that repeats nreps times. Read more
Source§

fn rev(self) -> Rev<Self>
where Self: Sized,

Returns the reverted sequence. Read more
Source§

fn concat<Other>(self, other: Other) -> Option<Concat<Self, Other>>
where Self: Sized, Other: Sequence<Item = Self::Item> + for<'a> SequenceTypes<'a>,

Returns the concatenation with another sequence. Read more
Source§

fn select<Idx>(self, indices: Idx) -> Option<Select<Self, Idx>>
where Self: Sized, Idx: Sequence<Item = usize> + for<'a> SequenceTypes<'a>,

Returns a selection of the sequence or None if any index is out of bounds. Read more
Source§

fn zip<Other>(self, other: Other) -> Option<Zip<Self, Other>>
where Self: Sized, Other: Sequence,

‘Zips up’ two sequences into a single sequence of pairs. Read more
Source§

fn as_sqnc(&self) -> Wrapper<&Self, ((),)>

Returns a Sequence that references self. Read more
Source§

impl<'this, 'plan, Coeffs, OCoeff> SequenceTypes<'this> for PartialDeriv<'plan, Coeffs>
where for<'a> <Coeffs as SequenceTypes<'a>>::Item: Multiple<Output = OCoeff>, Coeffs: Sequence,

Source§

type Item = OCoeff

The element type of a Sequence.
Source§

type Iter = PartialDerivIter<'plan, Wrapper<&'this Coeffs, ((),)>>

The return type of Sequence::iter.

Auto Trait Implementations§

§

impl<'plan, Coeffs> Freeze for PartialDeriv<'plan, Coeffs>
where Coeffs: Freeze,

§

impl<'plan, Coeffs> RefUnwindSafe for PartialDeriv<'plan, Coeffs>
where Coeffs: RefUnwindSafe,

§

impl<'plan, Coeffs> Send for PartialDeriv<'plan, Coeffs>
where Coeffs: Send,

§

impl<'plan, Coeffs> Sync for PartialDeriv<'plan, Coeffs>
where Coeffs: Sync,

§

impl<'plan, Coeffs> Unpin for PartialDeriv<'plan, Coeffs>
where Coeffs: Unpin,

§

impl<'plan, Coeffs> UnwindSafe for PartialDeriv<'plan, Coeffs>
where Coeffs: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<S> DerefSequence for S
where S: Sequence + ?Sized,

Source§

type Sequence = S

The return type of DerefSequence::deref_sqnc().
Source§

fn deref_sqnc(&self) -> &<S as DerefSequence>::Sequence

Returns a reference to a type that implements Sequence.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<S, OwnedItem> SequenceOwned for S
where S: Sequence<Item = OwnedItem> + for<'a> SequenceTypes<'a> + ?Sized,

Source§

type OwnedItem = OwnedItem

Source§

impl<S, OwnedItem> SequenceRef for S
where S: Sequence<Item = &'a OwnedItem> + for<'a> SequenceTypes<'a> + ?Sized, OwnedItem: ?Sized,

Source§

type OwnedItem = OwnedItem

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.