[][src]Struct dofus_stuff::character::ItemSlot

pub struct ItemSlot<'a, 'i> { /* fields omitted */ }

Methods

impl<'a, 'i> ItemSlot<'a, 'i>[src]

pub fn new(allowed: &'a [ItemType]) -> Self[src]

pub fn equip(&mut self, item: &'i Equipement)[src]

pub fn get_allowed(&self) -> &'a [ItemType][src]

pub fn get_item(&self) -> Option<&'i Equipement>[src]

Trait Implementations

impl<'a, 'i> Clone for ItemSlot<'a, 'i>[src]

impl<'a, 'i> Debug for ItemSlot<'a, 'i>[src]

Auto Trait Implementations

impl<'a, 'i> Send for ItemSlot<'a, 'i>

impl<'a, 'i> Unpin for ItemSlot<'a, 'i>

impl<'a, 'i> Sync for ItemSlot<'a, 'i>

impl<'a, 'i> UnwindSafe for ItemSlot<'a, 'i>

impl<'a, 'i> RefUnwindSafe for ItemSlot<'a, 'i>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

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

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