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>
impl<G, R> Curve<R> for Weighted<G>
Source§impl<G, I> Generator<I> for Weighted<G>
impl<G, I> Generator<I> for Weighted<G>
Source§fn extract<I, J>(self, iterator: I) -> Extract<Self, J> ⓘ
fn extract<I, J>(self, iterator: I) -> Extract<Self, J> ⓘ
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
impl<G: Copy> Copy for Weighted<G>
impl<G> StructuralPartialEq for Weighted<G>
Auto Trait Implementations§
impl<G> Freeze for Weighted<G>where
G: Freeze,
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