pub struct GradientReflectAdaptor<G> { /* private fields */ }Expand description
Reflecting gradient adaptor — mirrors gradient values at boundaries.
Port of C++ gradient_reflect_adaptor<GradientF>.
Implementations§
Source§impl<G: GradientFunction> GradientReflectAdaptor<G>
impl<G: GradientFunction> GradientReflectAdaptor<G>
Trait Implementations§
Source§impl<G: GradientFunction> GradientFunction for GradientReflectAdaptor<G>
impl<G: GradientFunction> GradientFunction for GradientReflectAdaptor<G>
Auto Trait Implementations§
impl<G> Freeze for GradientReflectAdaptor<G>where
G: Freeze,
impl<G> RefUnwindSafe for GradientReflectAdaptor<G>where
G: RefUnwindSafe,
impl<G> Send for GradientReflectAdaptor<G>where
G: Send,
impl<G> Sync for GradientReflectAdaptor<G>where
G: Sync,
impl<G> Unpin for GradientReflectAdaptor<G>where
G: Unpin,
impl<G> UnwindSafe for GradientReflectAdaptor<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