pub fn get_elem<'a, E>(buf: &'a [E], reg: &Reg) -> &'a E
Retrieves the given register from a buffer and returns it as a field element