pub struct DecayOptions { /* private fields */ }Implementations§
Source§impl DecayOptions
impl DecayOptions
pub fn new<A, B>(origin: A, scale: B) -> DecayOptions
pub fn with_offset<T: Into<Scale>>(self, val: T) -> Self
pub fn with_decay<T: Into<f64>>(self, val: T) -> Self
pub fn with_multi_value_mode<T: Into<MultiValueMode>>(self, val: T) -> Self
pub fn with_scale(self, val: Scale) -> Self
pub fn with_origin(self, val: Origin) -> Self
pub fn build<A: Into<String>>(self, field: A) -> Decay
Trait Implementations§
Source§impl Debug for DecayOptions
impl Debug for DecayOptions
Source§impl Default for DecayOptions
impl Default for DecayOptions
Source§fn default() -> DecayOptions
fn default() -> DecayOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DecayOptions
impl RefUnwindSafe for DecayOptions
impl Send for DecayOptions
impl Sync for DecayOptions
impl Unpin for DecayOptions
impl UnsafeUnpin for DecayOptions
impl UnwindSafe for DecayOptions
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more