pub(crate) fn tile_size(material: &Material) -> Option<usize> {
        if let Material::Tileset(tileset) = material {
            Some(tileset.tile_size)
        } else {
            None
        }
    }
/// Returns the tile_size in case of a Tileset Material.
Returns the tile_size in case of a Tileset Material.
Returns the tile_size in case of a Tileset Material .
pub(crate) fn tile_size(material: &Material) -> Option<usize> {
        if let Material::Tileset(tileset) = material {
            Some(tileset.tile_size)
        } else {
            None
        }
    }
pub ( crate ) fn tile_size ( material : & Material ) -> Option < usize > { if let Material :: Tileset ( tileset ) = material { Some ( tileset . tile_size ) } else { None } }
Returns the tile_size in case of a Tileset Material.
Returns the tile_size in case of a Tileset Material .
material
&Material
material
&Material