pub struct Bounds {
pub position: Pos,
pub size: (u32, u32),
}Fields§
§position: PosTop left
size: (u32, u32)Implementations§
Source§impl Bounds
impl Bounds
pub fn r(self) -> i32
pub fn b(self) -> i32
pub fn contains(self, x: f32, y: f32) -> bool
pub fn join(self, other: Bounds) -> Self
pub fn area(&self) -> f32
pub fn size_tiles(&self) -> (u32, u32)
pub fn position_tiles(&self) -> (i32, i32)
pub fn empty() -> Self
Trait Implementations§
impl Copy for Bounds
Auto Trait Implementations§
impl Freeze for Bounds
impl RefUnwindSafe for Bounds
impl Send for Bounds
impl Sync for Bounds
impl Unpin for Bounds
impl UnsafeUnpin for Bounds
impl UnwindSafe for Bounds
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