Skip to content

Instantly share code, notes, and snippets.

@CryZe
Created November 11, 2016 21:06
Show Gist options
  • Select an option

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

Select an option

Save CryZe/4aacab50f3e1c9248dc0224bfb864108 to your computer and use it in GitHub Desktop.
mutability bug
fn rasterize_mesh<F>(mesh: &[Triangle<F>], domain: &Domain, builder: &Builder<F>)
where F: Float + BaseFloat + FromPrimitive + Send
{
mesh.into_par_iter();
}
error: cannot borrow immutable borrowed content `*mesh` as mutable
--> src\voxelizer.rs:130:5
|
130 | mesh.into_par_iter();
| ^^^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment