pub struct FuelValuesBuilder {
burn_durations: Vec<i32>,
}Expand description
Mutable construction phase for FuelValues.
Fields§
§burn_durations: Vec<i32>Implementations§
Source§impl FuelValuesBuilder
impl FuelValuesBuilder
Sourcepub fn add_tag(self, tag: &Identifier, burn_duration: i32) -> Self
pub fn add_tag(self, tag: &Identifier, burn_duration: i32) -> Self
Assigns every item in a tag a burn duration.
Sourcepub fn remove_tag(self, tag: &Identifier) -> Self
pub fn remove_tag(self, tag: &Identifier) -> Self
Removes every item in a tag from the table.
Sourcepub fn build(self) -> FuelValues
pub fn build(self) -> FuelValues
Finishes the immutable table.
fn put(&mut self, item: &'static Item, burn_duration: i32)
Auto Trait Implementations§
impl Freeze for FuelValuesBuilder
impl RefUnwindSafe for FuelValuesBuilder
impl Send for FuelValuesBuilder
impl Sync for FuelValuesBuilder
impl Unpin for FuelValuesBuilder
impl UnsafeUnpin for FuelValuesBuilder
impl UnwindSafe for FuelValuesBuilder
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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 moreWraps this value in an
Arc<SyncMutex<>>