Trait LayerRaster

Source
pub trait LayerRaster:
    IntoMessage
    + Debug
    + Send {
    // Required methods
    fn message_tag() -> &'static dyn MessageTag;
    fn build_from(
        coords: WorldTileCoords,
        layer_name: String,
        image: RgbaImage,
    ) -> Self;
    fn coords(&self) -> WorldTileCoords;
    fn to_layer(self) -> AvailableRasterLayerData;
}

Required Methods§

Source

fn message_tag() -> &'static dyn MessageTag

Source

fn build_from( coords: WorldTileCoords, layer_name: String, image: RgbaImage, ) -> Self

Source

fn coords(&self) -> WorldTileCoords

Source

fn to_layer(self) -> AvailableRasterLayerData

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.

Implementors§