[][src]Struct async_ecs::entity::entity::Entity

pub struct Entity(_);

Entity type, as seen by the user.

Implementations

impl Entity[src]

pub fn from_id(id: u64) -> Self[src]

Create new entity with the given ID.

pub fn from_parts(index: Index, generation: Generation) -> Self[src]

Create new entity with the given given index and generation.

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

Get the id of the entity.

pub fn index(&self) -> Index[src]

Get the index of the entity.

pub fn generation(&self) -> Generation[src]

Trait Implementations

impl Clone for Entity[src]

impl Copy for Entity[src]

impl Debug for Entity[src]

impl Display for Entity[src]

impl Eq for Entity[src]

impl Hash for Entity[src]

impl Ord for Entity[src]

impl PartialEq<Entity> for Entity[src]

impl PartialOrd<Entity> for Entity[src]

Auto Trait Implementations

impl RefUnwindSafe for Entity

impl Send for Entity

impl Sync for Entity

impl Unpin for Entity

impl UnwindSafe for Entity

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any + Send + Sync
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.