Trait CopyRefVariadic

Source
pub trait CopyRefVariadic: EitherRefVariadic + Sealed {
    // Required method
    fn copy_var(&self) -> Self::UnRefVar;
}
Expand description

Copy a variadic of references EitherRefVariadic into a variadic of owned values EitherRefVariadic::UnRefVar.

let ref_var = var_expr!(&1, &"hello", &false);
let copy_var = ref_var.copy_var();
assert_eq!(var_expr!(1, "hello", false), copy_var);

Required Methods§

Source

fn copy_var(&self) -> Self::UnRefVar

Copy self per-value.

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 CopyRefVariadic for ()

Source§

fn copy_var(&self) -> Self::UnRefVar

Source§

impl<Item, Rest> CopyRefVariadic for (&Item, Rest)
where Item: Copy, Rest: CopyRefVariadic,

Source§

fn copy_var(&self) -> Self::UnRefVar

Source§

impl<Item, Rest> CopyRefVariadic for (&mut Item, Rest)
where Item: Copy, Rest: CopyRefVariadic,

Source§

fn copy_var(&self) -> Self::UnRefVar

Implementors§