Use spoiler flag next time, please.
This comment is hidden because it contains spoiler information about the solution
It collects the range 0 to n (exclusive) in its return type, a Vec<u32>.
Here's a more explicit example:
return (0..n as u32).collect::<Vec<u32>>();
Does that answer your question?
Please explain how it works