Trait PolyfillClone

Source
pub trait PolyfillClone: View + Sized {
    // Required method
    fn clone(&self) -> Self;
}
Expand description

A temporary replacement Clone

Required Methods§

Source

fn clone(&self) -> Self

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.

Implementations on Foreign Types§

Source§

impl PolyfillClone for bool

Source§

fn clone(&self) -> Self

Source§

impl PolyfillClone for i64

Source§

fn clone(&self) -> Self

Source§

impl PolyfillClone for u8

Source§

fn clone(&self) -> Self

Source§

impl PolyfillClone for u16

Source§

fn clone(&self) -> Self

Source§

impl PolyfillClone for usize

Source§

fn clone(&self) -> Self

Source§

impl<'a> PolyfillClone for &'a str

Source§

fn clone(&self) -> Self

Source§

impl<'a, T> PolyfillClone for &'a [T]

Source§

fn clone(&self) -> Self

Source§

impl<T1: PolyfillClone, T2: PolyfillClone> PolyfillClone for (T1, T2)

Source§

fn clone(&self) -> Self

Source§

impl<T: Copy> PolyfillClone for Vec<T>

Source§

fn clone(&self) -> Self

We trust the builtin Vec::clone implementation

Implementors§