[][src]Struct akashi::Card

pub struct Card { /* fields omitted */ }

Represents a tradable card.

Strictly speaking, this is just a bare-bones Entity.

Methods

impl Card[src]

pub fn new(
    id: Snowflake,
    component_manager: Arc<ComponentManager<Card>>,
    components_attached: HashSet<TypeId>
) -> Card
[src]

Create a new Card instance.

pub fn generate(
    snowflake_gen: &mut SnowflakeGenerator,
    component_manager: Arc<ComponentManager<Card>>
) -> Card
[src]

Create an 'empty' Card instance with a random ID.

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

Get this Card's unique ID.

pub fn component_manager(&self) -> &ComponentManager<Card>[src]

Get a reference to this Card's associated ComponentManager.

Trait Implementations

impl Clone for Card[src]

impl Component<Card> for AttachedCardType[src]

impl Debug for Card[src]

impl Entity for Card[src]

impl PartialEq<Card> for Card[src]

Auto Trait Implementations

impl !RefUnwindSafe for Card

impl Send for Card

impl Sync for Card

impl Unpin for Card

impl !UnwindSafe for Card

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> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[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.