[][src]Trait afeather::BorrowedStorage

pub trait BorrowedStorage {
    type Item;
    type Batch;
    fn version(&self) -> Version;
fn read(&self, index: usize) -> Option<Self::Item>;
fn read_batch(&self) -> Self::Batch; }

Associated Types

type Item

type Batch

Loading content...

Required methods

fn version(&self) -> Version

fn read(&self, index: usize) -> Option<Self::Item>

fn read_batch(&self) -> Self::Batch

Loading content...

Implementations on Foreign Types

impl<B: BorrowedStorage> BorrowedStorage for Ref<'static, B>[src]

type Item = B::Item

type Batch = B::Batch

impl<T0: BorrowedStorage, T1: BorrowedStorage> BorrowedStorage for (T0, T1)[src]

BorrowedStorage ///

type Item = (T0::Item, T1::Item)

type Batch = (T0::Batch, T1::Batch)

impl<T0: BorrowedStorage, T1: BorrowedStorage, T2: BorrowedStorage> BorrowedStorage for (T0, T1, T2)[src]

type Item = (T0::Item, T1::Item, T2::Item)

type Batch = (T0::Batch, T1::Batch, T2::Batch)

impl<T0: BorrowedStorage, T1: BorrowedStorage, T2: BorrowedStorage, T3: BorrowedStorage> BorrowedStorage for (T0, T1, T2, T3)[src]

type Item = (T0::Item, T1::Item, T2::Item, T3::Item)

type Batch = (T0::Batch, T1::Batch, T2::Batch, T3::Batch)

impl<'a> BorrowedStorage for ()[src]

type Item = ()

type Batch = ()

impl<T: BorrowedStorage> BorrowedStorage for Option<T>[src]

type Item = Option<T::Item>

type Batch = Option<T::Batch>

Loading content...

Implementors

impl<T: 'static> BorrowedStorage for BorrowedGlobal<T>[src]

type Item = &'static T

type Batch = &'static T

impl<T: 'static> BorrowedStorage for BorrowedPerArchetype<T>[src]

type Item = &'static T

type Batch = &'static T

impl<T: 'static> BorrowedStorage for BorrowedPerEntity<T>[src]

type Item = &'static T

type Batch = &'static [T]

impl<T: 'static> BorrowedStorage for BorrowedSparse<T>[src]

type Item = &'static T

type Batch = &'static HashMap<usize, T>

Loading content...