Skip to content

Instantly share code, notes, and snippets.

@CryZe
Created September 6, 2016 13:19
Show Gist options
  • Select an option

  • Save CryZe/cbc100b305369c2be39eb2b4c8ed9c28 to your computer and use it in GitHub Desktop.

Select an option

Save CryZe/cbc100b305369c2be39eb2b4c8ed9c28 to your computer and use it in GitHub Desktop.
buf_read from hell
pub fn buf_read<R1, R2, P>(p3b: R1, simgeo: R2, frame: usize) -> Result<Array3D<P>>
where R1: BufRead + Seek,
R2: BufRead + Seek,
P: for<'a> Phases<'a> + Zero + Clone,
for<'a> <P as Phases<'a>>::Phase: FromPrimitive + Zero + Clone
{
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment