Skip to main content

val_at

Macro val_at 

Source
macro_rules! val_at {
    ($idx:tt) => { ... };
}
Expand description

Creates a closure that returns an indexed field from a referenced tuple by value.

The generated pattern destructures the shared reference before selecting the field. Moving the tuple from that reference therefore requires a copyable value.