pub struct RoomLayoutGenerator {
pub model: Option<Model>,
}Fields§
§model: Option<Model>Implementations§
Source§impl RoomLayoutGenerator
impl RoomLayoutGenerator
pub fn new() -> Self
pub fn with_model(model: Model) -> Self
pub fn generate_room( &self, room_type: RoomType, width: usize, height: usize, ) -> RoomLayout
Auto Trait Implementations§
impl Freeze for RoomLayoutGenerator
impl RefUnwindSafe for RoomLayoutGenerator
impl Send for RoomLayoutGenerator
impl Sync for RoomLayoutGenerator
impl Unpin for RoomLayoutGenerator
impl UnsafeUnpin for RoomLayoutGenerator
impl UnwindSafe for RoomLayoutGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more