Trait variadics::MutVariadic

source ·
pub trait MutVariadic: EitherRefVariadic<MutVar = Self> + Sealed { }
Expand description

A variadic where each item is an exclusive reference &mut item.

This can be created using VariadicExt::as_mut_var:

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

This is a sealed trait.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl MutVariadic for ()

source§

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

Implementors§