[][src]Struct pleco_engine::tables::material::Material

pub struct Material { /* fields omitted */ }

Methods

impl Material[src]

pub fn new() -> Self[src]

Creates a new Material of size entries.

Panics

Panics if size is not a power of 2.

pub fn clear(&mut self)[src]

pub fn probe(&mut self, board: &Board) -> &mut MaterialEntry[src]

Trait Implementations

impl Send for Material[src]

impl PreFetchable for Material[src]

fn prefetch(&self, key: u64)[src]

Pre-fetches a particular key. This means bringing it into the cache for faster eventual access.

fn prefetch2(&self, key: u64)[src]

Pre-fetches a particular key, alongside the next key.

Auto Trait Implementations

impl !Sync for Material

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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