pub enum GradAdaptor {
Single(GradientsParams),
Multi(MultiGradientsParams),
}Expand description
Wrapper to unify the remove method for GradientsParams and MultiGradientsParams.
Variants§
Single(GradientsParams)
Wrapper for GradientsParams.
Multi(MultiGradientsParams)
Wrapper for MultiGradientsParams.
Implementations§
Trait Implementations§
Source§impl From<GradientsParams> for GradAdaptor
impl From<GradientsParams> for GradAdaptor
Source§fn from(grads: GradientsParams) -> Self
fn from(grads: GradientsParams) -> Self
Converts to this type from the input type.
Source§impl From<MultiGradientsParams> for GradAdaptor
impl From<MultiGradientsParams> for GradAdaptor
Source§fn from(grads: MultiGradientsParams) -> Self
fn from(grads: MultiGradientsParams) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GradAdaptor
impl !RefUnwindSafe for GradAdaptor
impl Send for GradAdaptor
impl !Sync for GradAdaptor
impl Unpin for GradAdaptor
impl UnsafeUnpin for GradAdaptor
impl !UnwindSafe for GradAdaptor
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