Trait pyro::Fetch

source ·
pub trait Fetch<'s> {
    type Component: Component;
    type Iter: ExactSizeIterator + 's;

    unsafe fn fetch<S: Storage>(storage: &'s S) -> Self::Iter;
}
Expand description

A helper trait that works in lockstep with Read and Write to borrow components either mutable or immutable.

Required Associated Types§

Required Methods§

Implementors§