pub struct Bounds<T> { /* private fields */ }
Expand description
Defines a basic four-corner bounding box
Implementations§
Source§impl<T> Bounds<T>
impl<T> Bounds<T>
Sourcepub const fn new(
upper_left: T,
upper_right: T,
lower_left: T,
lower_right: T,
) -> Bounds<T>
pub const fn new( upper_left: T, upper_right: T, lower_left: T, lower_right: T, ) -> Bounds<T>
Creates a new bounding box using the specified four corners
pub fn upper_left_corner(&self) -> &T
pub fn lower_left_corner(&self) -> &T
pub fn upper_right_corner(&self) -> &T
pub fn lower_right_corner(&self) -> &T
Auto Trait Implementations§
impl<T> Freeze for Bounds<T>where
T: Freeze,
impl<T> RefUnwindSafe for Bounds<T>where
T: RefUnwindSafe,
impl<T> Send for Bounds<T>where
T: Send,
impl<T> Sync for Bounds<T>where
T: Sync,
impl<T> Unpin for Bounds<T>where
T: Unpin,
impl<T> UnwindSafe for Bounds<T>where
T: UnwindSafe,
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