re: Creating a 'paged' Vec in Rust VIEW POST

FULL DISCUSSION
 

Isn't (index as f32 / self.page_length as f32).floor() as usize always equal to index / self.page_legth?

 

You are partially correct; I've updated the post after some Reddit Rust devs pointed out a mistake there.

code of conduct - report abuse