Skip to main content

CloneAsTuple

Trait CloneAsTuple 

Source
pub trait CloneAsTuple<Tuple> {
    // Required method
    fn clone_as_tuple(&self) -> Tuple;
}
Expand description

Clone as tuple.

Required Methods§

Source

fn clone_as_tuple(&self) -> Tuple

Clone as tuple.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T> CloneAsTuple<(T, T)> for HomoPair<T>
where T: Clone,

Source§

impl<T> CloneAsTuple<(T,)> for Single<T>
where T: Clone,