[−][src]Struct myelin_engine::object::ObjectDescription
The behaviourless description of an object that has
been placed inside a Simulation.
Fields (Non-exhaustive)
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.shape: PolygonThe vertices defining the shape of the object
in relation to its position
location: PointThe global location of the center of the object
rotation: RadiansThe object's rotation
mobility: MobilityThe current velocity of the object, defined as a two dimensional vector relative to the objects center
passable: boolWhether the object is passable or not
associated_data: TArbitrary data associated with this object
Trait Implementations
impl<T: Clone> Clone for ObjectDescription<T>[src]
fn clone(&self) -> ObjectDescription<T>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<T: PartialEq> PartialEq<ObjectDescription<T>> for ObjectDescription<T>[src]
fn eq(&self, other: &ObjectDescription<T>) -> bool[src]
fn ne(&self, other: &ObjectDescription<T>) -> bool[src]
impl<T> From<ObjectDescription<T>> for ObjectBuilder<T>[src]
fn from(object_description: ObjectDescription<T>) -> Self[src]
impl<T: Debug> Debug for ObjectDescription<T>[src]
impl<T> Serialize for ObjectDescription<T> where
T: Serialize, [src]
T: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl<'de, T> Deserialize<'de> for ObjectDescription<T> where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<T> Send for ObjectDescription<T> where
T: Send,
T: Send,
impl<T> Sync for ObjectDescription<T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<T> From<T> for T[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
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]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>[src]
fn is_in_subset(&self) -> bool[src]
unsafe fn to_subset_unchecked(&self) -> SS[src]
fn from_subset(element: &SS) -> SP[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> UserData for T where
T: Send + Sync + Clone + Any, [src]
T: Send + Sync + Clone + Any,