Trait dotrix::ecs::Accessor[][src]

pub trait Accessor: Send + Sync {
    type Item: Service;
    pub fn fetch(services: &mut Services) -> Self;
}

Abstraction to access Service in their storage

Associated Types

type Item: Service[src]

Type of Service to be accessed

Loading content...

Required methods

pub fn fetch(services: &mut Services) -> Self[src]

Fetches the Service from the storage

Loading content...

Implementors

impl<T> Accessor for Const<T> where
    T: Service
[src]

type Item = T

impl<T> Accessor for Mut<T> where
    T: Service
[src]

type Item = T

Loading content...