Trait variadics::RefVariadic

source ·
pub trait RefVariadic: EitherRefVariadic<RefVar = Self> + Sealed
where Self: Copy,
{ }
Expand description

A variadic where each item is a shared reference &item.

This can be created using VariadicExt::as_ref_var:

let as_ref: var_type!(&u32, &String, &bool) =
    var_expr!(1_u32, "Hello".to_owned(), false).as_ref_var();

This is a sealed trait.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl RefVariadic for ()

source§

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

Implementors§