pub struct BoundingBox<T: Copy> {
pub x0: T,
pub y0: T,
pub x1: T,
pub y1: T,
}Fields§
§x0: T§y0: T§x1: T§y1: TImplementations§
Source§impl<T> BoundingBox<T>
impl<T> BoundingBox<T>
Trait Implementations§
Source§impl<T: Clone + Copy> Clone for BoundingBox<T>
impl<T: Clone + Copy> Clone for BoundingBox<T>
Source§fn clone(&self) -> BoundingBox<T>
fn clone(&self) -> BoundingBox<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<&RotatedRect> for BoundingBox<f32>
impl From<&RotatedRect> for BoundingBox<f32>
Source§fn from(rect: &RotatedRect) -> Self
fn from(rect: &RotatedRect) -> Self
Converts to this type from the input type.
Source§impl From<BoundingBox<f32>> for BoundingBox<u8>
impl From<BoundingBox<f32>> for BoundingBox<u8>
Source§fn from(item: BoundingBox<f32>) -> Self
fn from(item: BoundingBox<f32>) -> Self
Converts to this type from the input type.
impl<T: Copy + Copy> Copy for BoundingBox<T>
Auto Trait Implementations§
impl<T> Freeze for BoundingBox<T>where
T: Freeze,
impl<T> RefUnwindSafe for BoundingBox<T>where
T: RefUnwindSafe,
impl<T> Send for BoundingBox<T>where
T: Send,
impl<T> Sync for BoundingBox<T>where
T: Sync,
impl<T> Unpin for BoundingBox<T>where
T: Unpin,
impl<T> UnwindSafe for BoundingBox<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