[][src]Trait rustenginelib::square::DeltaBuffer

pub trait DeltaBuffer {
    fn len(&self) -> usize;
fn get(&self, i: usize) -> Δ }

DeltaBuffer trait adds methods to various size buffers that hold deltas

Required methods

fn len(&self) -> usize

len tells the length of the delta buffer

fn get(&self, i: usize) -> &Delta

get gets a delta by index from the delta buffer

Loading content...

Implementations on Foreign Types

impl DeltaBuffer for [Delta; 4][src]

fn len(&self) -> usize[src]

len tells the length of the delta buffer

fn get(&self, i: usize) -> &Delta[src]

get gets a delta by index from the delta buffer

impl DeltaBuffer for [Delta; 8][src]

fn len(&self) -> usize[src]

len tells the length of the delta buffer

fn get(&self, i: usize) -> &Delta[src]

get gets a delta by index from the delta buffer

Loading content...

Implementors

Loading content...