Trait SectionPos

Source
pub trait SectionPos {
    // Required methods
    fn coords(&self) -> (usize, usize, usize);
    fn new(x: usize, y: usize, z: usize) -> Self;
}
Expand description

A trait for position types that are sometimes valid ways to index into a chunk section.

Required Methods§

Source

fn coords(&self) -> (usize, usize, usize)

Source

fn new(x: usize, y: usize, z: usize) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SectionPos for ChunkSectionBiomePos

Source§

fn coords(&self) -> (usize, usize, usize)

Source§

fn new(x: usize, y: usize, z: usize) -> Self

Source§

impl SectionPos for ChunkSectionBlockPos

Source§

fn coords(&self) -> (usize, usize, usize)

Source§

fn new(x: usize, y: usize, z: usize) -> Self

Implementors§