pub struct SpanInterpolatorAdaptor<Interp, Dist> { /* private fields */ }Expand description
Adaptor that wraps a span interpolator and applies distortion.
Port of C++ span_interpolator_adaptor<Interpolator, Distortion>.
After the base interpolator computes coordinates, the distortion
function modifies them (e.g., for wave, lens, or other effects).
Implementations§
Source§impl<Interp: SpanInterpolator, Dist: Distortion> SpanInterpolatorAdaptor<Interp, Dist>
impl<Interp: SpanInterpolator, Dist: Distortion> SpanInterpolatorAdaptor<Interp, Dist>
pub fn new(interp: Interp, distortion: Dist) -> Self
pub fn interpolator(&self) -> &Interp
pub fn interpolator_mut(&mut self) -> &mut Interp
pub fn distortion(&self) -> &Dist
pub fn distortion_mut(&mut self) -> &mut Dist
Trait Implementations§
Source§impl<Interp: SpanInterpolator, Dist: Distortion> SpanInterpolator for SpanInterpolatorAdaptor<Interp, Dist>
impl<Interp: SpanInterpolator, Dist: Distortion> SpanInterpolator for SpanInterpolatorAdaptor<Interp, Dist>
Auto Trait Implementations§
impl<Interp, Dist> Freeze for SpanInterpolatorAdaptor<Interp, Dist>
impl<Interp, Dist> RefUnwindSafe for SpanInterpolatorAdaptor<Interp, Dist>where
Interp: RefUnwindSafe,
Dist: RefUnwindSafe,
impl<Interp, Dist> Send for SpanInterpolatorAdaptor<Interp, Dist>
impl<Interp, Dist> Sync for SpanInterpolatorAdaptor<Interp, Dist>
impl<Interp, Dist> Unpin for SpanInterpolatorAdaptor<Interp, Dist>
impl<Interp, Dist> UnwindSafe for SpanInterpolatorAdaptor<Interp, Dist>where
Interp: UnwindSafe,
Dist: 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