Struct Config

Source
pub struct Config { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl ConfigInterface for Config

Source§

fn species(&self) -> Arc<HashMap<i32, Arc<SpeciesData>>>

Source§

fn locations(&self) -> Arc<HashMap<i32, Arc<LocationData>>>

Source§

fn items(&self) -> Arc<HashMap<i32, Arc<ItemData>>>

Source§

fn settings(&self) -> Arc<Settings>

Source§

fn species_names(&self) -> Arc<HashMap<i32, String>>

Source§

fn location_names(&self) -> Arc<HashMap<i32, String>>

Source§

fn item_names(&self) -> Arc<HashMap<i32, String>>

Source§

fn items_by_attributes( &self, ) -> Arc<HashMap<ItemAttributesType, Arc<Vec<Arc<ItemData>>>>>

Source§

fn items_by_properties( &self, ) -> Arc<HashMap<ItemPropertiesType, Arc<Vec<Arc<ItemData>>>>>

Source§

fn items_by_category( &self, ) -> Arc<HashMap<ItemCategory, Arc<Vec<Arc<ItemData>>>>>

Source§

fn item_ids_by_category(&self) -> Arc<HashMap<ItemCategory, Arc<Vec<i32>>>>

Source§

fn get_species_data(&self, species_id: i32) -> Option<Arc<SpeciesData>>

Source§

fn get_location_data(&self, location_id: i32) -> Option<Arc<LocationData>>

Source§

fn get_item_data(&self, item_id: i32) -> Option<Arc<ItemData>>

Source§

fn get_items_by_attributes_type( &self, attributes_type: ItemAttributesType, ) -> Option<Arc<Vec<Arc<ItemData>>>>

Source§

fn get_items_by_properties_type( &self, properties_type: ItemPropertiesType, ) -> Option<Arc<Vec<Arc<ItemData>>>>

Source§

fn get_items_by_category( &self, item_category: ItemCategory, ) -> Option<Arc<Vec<Arc<ItemData>>>>

Source§

fn get_item_ids_by_category( &self, item_category: ItemCategory, ) -> Option<Arc<Vec<i32>>>

Source§

fn is_item_in_category( &self, item_data: Arc<ItemData>, category: ItemCategory, ) -> bool

Source§

fn is_item_id_in_category( &self, item_id: i32, item_category: ItemCategory, ) -> bool

Source§

impl Debug for Config

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Config

Source§

fn default() -> Config

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Config

Source§

fn eq(&self, other: &Config) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Config

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoSql for T

Source§

fn into_sql<T>(self) -> Self::Expression

Convert self to an expression for Diesel’s query builder. Read more
Source§

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
where &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,

Convert &self to an expression for Diesel’s query builder. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V