pub struct BspRoomRect { /* private fields */ }Expand description
Axis-aligned integer room rectangle carved inside a BSP dungeon leaf.
Implementations§
Source§impl BspRoomRect
Geometric helpers for BspRoomRect.
impl BspRoomRect
Geometric helpers for BspRoomRect.
Source§impl BspRoomRect
Implements impl #impl_generics #name #ty_generics #where_clause.
impl BspRoomRect
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_x(&self) -> usize
pub fn get_mut_x(&mut self) -> &mut usize
pub fn set_x(&mut self, val: usize) -> &mut Self
pub fn get_y(&self) -> usize
pub fn get_mut_y(&mut self) -> &mut usize
pub fn set_y(&mut self, val: usize) -> &mut Self
pub fn get_width(&self) -> usize
pub fn get_mut_width(&mut self) -> &mut usize
pub fn set_width(&mut self, val: usize) -> &mut Self
pub fn get_height(&self) -> usize
pub fn get_mut_height(&mut self) -> &mut usize
pub fn set_height(&mut self, val: usize) -> &mut Self
Trait Implementations§
Source§impl Clone for BspRoomRect
impl Clone for BspRoomRect
impl Copy for BspRoomRect
Source§impl Debug for BspRoomRect
impl Debug for BspRoomRect
impl Eq for BspRoomRect
Source§impl Hash for BspRoomRect
impl Hash for BspRoomRect
Source§impl PartialEq for BspRoomRect
impl PartialEq for BspRoomRect
impl StructuralPartialEq for BspRoomRect
Auto Trait Implementations§
impl Forget for BspRoomRect
impl Freeze for BspRoomRect
impl Move for BspRoomRect
impl RefUnwindSafe for BspRoomRect
impl Send for BspRoomRect
impl Sync for BspRoomRect
impl Unpin for BspRoomRect
impl UnsafeUnpin for BspRoomRect
impl UnwindSafe for BspRoomRect
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