pub struct StatInstanceBuilder<K> { /* private fields */ }
Expand description
Builder for StatInstance
.
Implementations§
Source§impl<K: Clone> StatInstanceBuilder<K>
impl<K: Clone> StatInstanceBuilder<K>
Sourcepub fn value_with_effectors(&mut self, value: f64) -> &mut Self
pub fn value_with_effectors(&mut self, value: f64) -> &mut Self
The value of this stat after applying the effectors.
Sourcepub fn build(&self) -> Result<StatInstance<K>, StatInstanceBuilderError>
pub fn build(&self) -> Result<StatInstance<K>, StatInstanceBuilderError>
Trait Implementations§
Source§impl<K: Clone> Clone for StatInstanceBuilder<K>
impl<K: Clone> Clone for StatInstanceBuilder<K>
Source§fn clone(&self) -> StatInstanceBuilder<K>
fn clone(&self) -> StatInstanceBuilder<K>
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<K> Freeze for StatInstanceBuilder<K>where
K: Freeze,
impl<K> RefUnwindSafe for StatInstanceBuilder<K>where
K: RefUnwindSafe,
impl<K> Send for StatInstanceBuilder<K>where
K: Send,
impl<K> Sync for StatInstanceBuilder<K>where
K: Sync,
impl<K> Unpin for StatInstanceBuilder<K>where
K: Unpin,
impl<K> UnwindSafe for StatInstanceBuilder<K>where
K: UnwindSafe,
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