Struct veloren_common::comp::inventory::trade_pricing::TRADE_PRICING
source · struct TRADE_PRICING {
__private_field: (),
}
Fields§
§__private_field: ()
Methods from Deref<Target = TradePricing>§
const COIN_ITEM: &'static str = "common.items.utility.coins"
const CRAFTING_FACTOR: f32 = 0.949999988f32
const INVEST_FACTOR: f32 = 0.330000013f32
fn price_lookup( &self, requested_name: &ItemDefinitionIdOwned, ) -> Option<&MaterialUse>
fn calculate_material_cost(&self, r: &RememberedRecipe) -> Option<MaterialUse>
fn calculate_material_cost_sum(&self, r: &RememberedRecipe) -> Option<f32>
fn sort_by_price(&self, recipes: &mut [RememberedRecipe]) -> bool
fn random_items_impl( &self, stockmap: &mut HashMap<Good, f32>, number: u32, selling: bool, always_coin: bool, limit: u32, ) -> Vec<(ItemDefinitionIdOwned, u32)>
fn get_materials_impl(&self, item: &ItemDefinitionId<'_>) -> Option<MaterialUse>
Trait Implementations§
source§impl Deref for TRADE_PRICING
impl Deref for TRADE_PRICING
§type Target = TradePricing
type Target = TradePricing
The resulting type after dereferencing.
source§fn deref(&self) -> &TradePricing
fn deref(&self) -> &TradePricing
Dereferences the value.
impl LazyStatic for TRADE_PRICING
Auto Trait Implementations§
impl Freeze for TRADE_PRICING
impl RefUnwindSafe for TRADE_PRICING
impl Send for TRADE_PRICING
impl Sync for TRADE_PRICING
impl Unpin for TRADE_PRICING
impl UnwindSafe for TRADE_PRICING
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>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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 more