pub struct BspRooms { /* private fields */ }
examples/bsp_rooms.rs (
line 9)
6
7
8
9
10
11
12
fn main() {
let system_time = SystemTime::now().duration_since(UNIX_EPOCH).expect("Can't access system time");
let mut rng = StdRng::seed_from_u64(system_time.as_millis() as u64);
let gen = BspRooms::new();
let map = gen.modify_map(&mut rng, &MapBuffer::new(80, 50));
println!("{:}", &map);
}
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.