Enum Spread
pub enum Spread {
Times(f64),
Plus(f64),
}Expand description
How Open::around’s seed is derived from a center value – §6.1’s
around, one function name covering both scales via which keyword it is
given.
Variants§
Times(f64)
A multiplicative spread: seed [center / f, center * f], sampled
logarithmically. Written times on every user-facing surface (§6.5).
Plus(f64)
An additive spread: seed [center - d, center + d], sampled
linearly. Written plus on every user-facing surface (§6.5).
Trait Implementations§
impl Copy for Spread
§impl<'de> Deserialize<'de> for Spread
impl<'de> Deserialize<'de> for Spread
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Spread
Auto Trait Implementations§
impl Freeze for Spread
impl RefUnwindSafe for Spread
impl Send for Spread
impl Sync for Spread
impl Unpin for Spread
impl UnsafeUnpin for Spread
impl UnwindSafe for Spread
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