[][src]Struct myelin_engine::object::Object

pub struct Object<'a, T> {
    pub id: Id,
    pub description: ObjectDescription<T>,
    pub behavior: &'a dyn ObjectBehavior<T>,
}

An object that is stored in the simulation

Fields

id: Id

The object's unique ID. Can be stored in order to retrieve this object later on.

description: ObjectDescription<T>

Physical description of the object

behavior: &'a dyn ObjectBehavior<T>

Custom behavior of the object

Trait Implementations

impl<'a, T: Clone> Clone for Object<'a, T>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'a, T: Debug> Debug for Object<'a, T>[src]

Auto Trait Implementations

impl<'a, T> !Send for Object<'a, T>

impl<'a, T> !Sync for Object<'a, T>

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

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Downcast for T where
    T: Any