pub trait Structure {
// Provided methods
fn render_inner(&self, _site: &Site, _land: &Land<'_>, _painter: &Painter) { ... }
fn render(&self, site: &Site, land: &Land<'_>, painter: &Painter) { ... }
fn render_collect(
&self,
site: &Site,
canvas: &CanvasInfo<'_>,
) -> (Store<Primitive>, Vec<(Id<Primitive>, Fill)>, Vec<EntityInfo>) { ... }
fn rel_terrain_offset(&self, col: &ColumnSample<'_>) -> i32 { ... }
fn terrain_surface_at<R: Rng>(
&self,
_wpos: Vec2<i32>,
_old: Block,
_rng: &mut R,
_col: &ColumnSample<'_>,
_z_off: i32,
_site: &Site,
) -> Option<Block> { ... }
}
Provided Methods§
fn render_inner(&self, _site: &Site, _land: &Land<'_>, _painter: &Painter)
fn render(&self, site: &Site, land: &Land<'_>, painter: &Painter)
fn render_collect( &self, site: &Site, canvas: &CanvasInfo<'_>, ) -> (Store<Primitive>, Vec<(Id<Primitive>, Fill)>, Vec<EntityInfo>)
Sourcefn rel_terrain_offset(&self, col: &ColumnSample<'_>) -> i32
fn rel_terrain_offset(&self, col: &ColumnSample<'_>) -> i32
What z_off
in terrain_surface_at
should be relative to for each
column.
fn terrain_surface_at<R: Rng>( &self, _wpos: Vec2<i32>, _old: Block, _rng: &mut R, _col: &ColumnSample<'_>, _z_off: i32, _site: &Site, ) -> Option<Block>
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.