Enum bbecs::components::ComponentData[][src]

pub enum ComponentData {
    Point(Rc<RefCell<Point>>),
    F32(Rc<RefCell<f32>>),
    Color(Rc<RefCell<Color>>),
    Mesh(Rc<RefCell<Mesh>>),
    U32(Rc<RefCell<u32>>),
    Usize(Rc<RefCell<usize>>),
    Bool(Rc<RefCell<bool>>),
    GgezKeyCode(Rc<RefCell<KeyCode>>),
    Marker(Rc<RefCell<String>>),
    GgezText(Rc<RefCell<Text>>),
}

These components are used to store data into the world. Each of the components contains a vector of the appropriate data. Generally consumers of this library will not need to call Components directly. However the methods attached to components will be used to extract the data.

Variants

Point(Rc<RefCell<Point>>)
F32(Rc<RefCell<f32>>)
Color(Rc<RefCell<Color>>)
Mesh(Rc<RefCell<Mesh>>)
U32(Rc<RefCell<u32>>)
Usize(Rc<RefCell<usize>>)
Bool(Rc<RefCell<bool>>)
GgezKeyCode(Rc<RefCell<KeyCode>>)
Marker(Rc<RefCell<String>>)
GgezText(Rc<RefCell<Text>>)

Trait Implementations

impl CastComponents<Color> for ComponentData[src]

impl CastComponents<Mesh> for ComponentData[src]

impl CastComponents<Point> for ComponentData[src]

impl CastComponents<String> for ComponentData[src]

impl CastComponents<Text> for ComponentData[src]

impl CastComponents<VirtualKeyCode> for ComponentData[src]

impl CastComponents<bool> for ComponentData[src]

impl CastComponents<f32> for ComponentData[src]

impl CastComponents<u32> for ComponentData[src]

impl CastComponents<usize> for ComponentData[src]

impl Clone for ComponentData[src]

impl Debug for ComponentData[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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.

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