Struct minecraft_data_rs::api::foods::Foods[][src]

pub struct Foods { /* fields omitted */ }

Implementations

impl Foods[src]

pub fn new(version: Arc<Version>) -> Self[src]

pub fn foods_array(&self) -> DataResult<Vec<Food>>[src]

Returns the unindexed list of food

pub fn foods(&self) -> DataResult<HashMap<u32, Food>>[src]

Returns food indexed by id

pub fn foods_by_name(&self) -> DataResult<HashMap<String, Food>>[src]

Returns food indexed by name

Auto Trait Implementations

impl RefUnwindSafe for Foods

impl Send for Foods

impl Sync for Foods

impl Unpin for Foods

impl UnwindSafe for Foods

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.