Skip to main content

with_buffer

Macro with_buffer 

Source
macro_rules! with_buffer {
    ($buf:expr, |$v:ident| $body:expr) => { ... };
}
Expand description

Evaluates an expression with the typed elements of a Buffer: binds $v to the Vec of the buffer’s element type in each arm, so the body is instantiated for every element type.