pub struct GrowthBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with call().
Implementations§
Source§impl<S: State> GrowthBuilder<S>
impl<S: State> GrowthBuilder<S>
Sourcepub fn call(self) -> f64where
S: IsComplete,
pub fn call(self) -> f64where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn floor(self, value: impl Into<f64>) -> GrowthBuilder<SetFloor<S>>where
S::Floor: IsUnset,
pub fn floor(self, value: impl Into<f64>) -> GrowthBuilder<SetFloor<S>>where
S::Floor: IsUnset,
Required.
Sourcepub fn ceil(self, value: impl Into<f64>) -> GrowthBuilder<SetCeil<S>>where
S::Ceil: IsUnset,
pub fn ceil(self, value: impl Into<f64>) -> GrowthBuilder<SetCeil<S>>where
S::Ceil: IsUnset,
Required.
Sourcepub fn max_level(self, value: impl Into<f64>) -> GrowthBuilder<SetMaxLevel<S>>where
S::MaxLevel: IsUnset,
pub fn max_level(self, value: impl Into<f64>) -> GrowthBuilder<SetMaxLevel<S>>where
S::MaxLevel: IsUnset,
Required.
Auto Trait Implementations§
impl<S> Freeze for GrowthBuilder<S>
impl<S> RefUnwindSafe for GrowthBuilder<S>
impl<S> Send for GrowthBuilder<S>
impl<S> Sync for GrowthBuilder<S>
impl<S> Unpin for GrowthBuilder<S>
impl<S> UnsafeUnpin for GrowthBuilder<S>
impl<S> UnwindSafe for GrowthBuilder<S>
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