SurfaceResourceExtension

Trait SurfaceResourceExtension 

Source
pub trait SurfaceResourceExtension {
    // Required method
    fn deep_clone(&self) -> Self;
}
Expand description

A trait with extension methods for surface resource.

Required Methods§

Source

fn deep_clone(&self) -> Self

Creates a full copy of the internals of the data and creates a new surface resource of it.

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§