Struct enterpolation::weights::Weighted
source · pub struct Weighted<G> { /* private fields */ }
Expand description
Interpolation Adaptor used for weighted elements to automatically unwrap them from their weights.
This Adaptor is often appended to an interpolation with weighted elements to automatically unwrap them.
Implementations§
Trait Implementations§
source§impl<G, R> Curve<R> for Weighted<G>where
G: Curve<R>,
G::Output: Project,
R: Real,
impl<G, R> Curve<R> for Weighted<G>where G: Curve<R>, G::Output: Project, R: Real,
source§impl<G, I> Generator<I> for Weighted<G>where
G: Generator<I>,
G::Output: Project,
impl<G, I> Generator<I> for Weighted<G>where G: Generator<I>, G::Output: Project,
source§fn extract<I, J>(self, iterator: I) -> Extract<Self, J> ⓘwhere
Self: Sized,
I: IntoIterator<IntoIter = J>,
J: Iterator<Item = Input>,
fn extract<I, J>(self, iterator: I) -> Extract<Self, J> ⓘwhere Self: Sized, I: IntoIterator<IntoIter = J>, J: Iterator<Item = Input>,
Helper function if one wants to extract values from the interpolation. Read more
source§fn stack<G>(self, gen: G) -> Stack<Self, G>where
Self: Sized,
fn stack<G>(self, gen: G) -> Stack<Self, G>where Self: Sized,
Stack two generators together Read more
source§impl<G: PartialEq> PartialEq<Weighted<G>> for Weighted<G>
impl<G: PartialEq> PartialEq<Weighted<G>> for Weighted<G>
impl<G: Copy> Copy for Weighted<G>
impl<G> StructuralPartialEq for Weighted<G>
Auto Trait Implementations§
impl<G> RefUnwindSafe for Weighted<G>where G: RefUnwindSafe,
impl<G> Send for Weighted<G>where G: Send,
impl<G> Sync for Weighted<G>where G: Sync,
impl<G> Unpin for Weighted<G>where G: Unpin,
impl<G> UnwindSafe for Weighted<G>where G: 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