[][src]Struct evtclib::Gadget

pub struct Gadget { /* fields omitted */ }

Gadget-specific agent data.

Gadgets are entities that are spawned by certain skills. They are mostly inanimate objects that only exist to achieve a certain skill effect.

Examples of this include the banners spawned by Warriors, but also skill effects like the roots created by Entangle or the other objects in the arena.

Implementations

impl Gadget[src]

pub fn id(&self) -> u16[src]

The id of the gadget.

Note that gadgets do not have true ids and the id is generated "through a combination of gadget parameters".

impl Gadget[src]

pub fn name(&self) -> &str[src]

The name of the gadget.

Trait Implementations

impl Clone for Gadget[src]

impl Debug for Gadget[src]

impl Eq for Gadget[src]

impl Hash for Gadget[src]

impl PartialEq<Gadget> for Gadget[src]

impl StructuralEq for Gadget[src]

impl StructuralPartialEq for Gadget[src]

Auto Trait Implementations

impl RefUnwindSafe for Gadget

impl Send for Gadget

impl Sync for Gadget

impl Unpin for Gadget

impl UnwindSafe for Gadget

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.