pub enum GradientProfile {
Linear {
f_start: f64,
f_end: f64,
},
Sigmoid {
f_start: f64,
f_end: f64,
},
}Expand description
Gradient composition profile for gradient copolymers.
Variants§
Linear
Linear gradient: f_a(i) = f_start + (f_end - f_start) * i / (n-1)
Sigmoid
Sigmoid gradient: f_a(i) = f_start + (f_end - f_start) * sigmoid((i/n - 0.5) * 10)
Trait Implementations§
Source§impl Clone for GradientProfile
impl Clone for GradientProfile
Source§fn clone(&self) -> GradientProfile
fn clone(&self) -> GradientProfile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GradientProfile
impl RefUnwindSafe for GradientProfile
impl Send for GradientProfile
impl Sync for GradientProfile
impl Unpin for GradientProfile
impl UnsafeUnpin for GradientProfile
impl UnwindSafe for GradientProfile
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