Trait variadics::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.

Object Safety§

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§