Skip to main content

LayerExt

Trait LayerExt 

Source
pub trait LayerExt: IsA<Layer> + 'static {
    // Provided method
    fn viewport(&self) -> Option<Viewport> { ... }
}
Expand description

Trait containing all Layer methods.

§Implementors

Layer, MapLayer, MarkerLayer, PathLayer

Provided Methods§

Source

fn viewport(&self) -> Option<Viewport>

Gets the #ShumateViewport used by this layer.

§Returns

The #ShumateViewport.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<O: IsA<Layer>> LayerExt for O