Trait veloren_common::volumes::dyna::Access

source ·
pub trait Access {
    // Required methods
    fn idx(pos: Vec3<i32>, sz: Vec3<u32>) -> usize;
    fn pos(idx: usize, sz: Vec3<u32>) -> Vec3<i32>;
}

Required Methods§

source

fn idx(pos: Vec3<i32>, sz: Vec3<u32>) -> usize

source

fn pos(idx: usize, sz: Vec3<u32>) -> Vec3<i32>

idx must be in range, permitted to panic otherwise.

Object Safety§

This trait is not object safe.

Implementors§