DerefCopy

Trait DerefCopy 

Source
pub trait DerefCopy: Copy {
    type Output;

    // Required method
    fn deref_copy(self) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn deref_copy(self) -> Self::Output

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 DerefCopy for f32

Source§

type Output = f32

Source§

fn deref_copy(self) -> Self

Source§

impl DerefCopy for f64

Source§

type Output = f64

Source§

fn deref_copy(self) -> Self

Source§

impl<T: Copy> DerefCopy for &T

Source§

type Output = T

Source§

fn deref_copy(self) -> T

Implementors§