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§
Object Safety§
This trait is not object safe.