Skip to main content

ErasedLayer

Trait ErasedLayer 

Source
pub trait ErasedLayer:
    Copy
    + PartialEq
    + Debug
    + 'static {
    // Required method
    fn as_layer(self) -> AnyLayer;
}
Expand description

A layer handle of any concreteness — AnyLayer, AnyContainerLayer, AnyOffsetLayer or a typed Handle<L> — for what a LayerHandle can hold. Dart’s T extends Layer.

Required Methods§

Source

fn as_layer(self) -> AnyLayer

Dart’s implicit upcast to Layer.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T: Layer> ErasedLayer for Handle<T>

Dart’s implicit upcast of a concrete layer to Layer: the type-erased handle, through the table built from the type’s impl Layer.

Implementors§