the.bay.news

Concatenating integers

The Rust Programming Language Forum
Concatenating integers
const WIDTH: usize = 900; const HEIGHT: usize = 900; struct Image { width: usize, height: usize, buffer: Vec<u32>, } impl Image { fn load(filename: &str) -> Image { let image = lodepng::decode32_file(&filename).expect(&format!("Couldn't load {}", &filename)); Image { width: image.width, height: image.height, buffer: image .buffer .iter() .map(|color| { ...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.