pub struct NormalizedRect {
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
}Expand description
A normalized rectangle in Vision image coordinates (0.0..=1.0, lower-left origin).
Fields§
§x: f64§y: f64§width: f64§height: f64Implementations§
Trait Implementations§
Source§impl Clone for NormalizedRect
impl Clone for NormalizedRect
Source§fn clone(&self) -> NormalizedRect
fn clone(&self) -> NormalizedRect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NormalizedRect
impl Debug for NormalizedRect
Source§impl PartialEq for NormalizedRect
impl PartialEq for NormalizedRect
Source§fn eq(&self, other: &NormalizedRect) -> bool
fn eq(&self, other: &NormalizedRect) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for NormalizedRect
impl StructuralPartialEq for NormalizedRect
Auto Trait Implementations§
impl Freeze for NormalizedRect
impl RefUnwindSafe for NormalizedRect
impl Send for NormalizedRect
impl Sync for NormalizedRect
impl Unpin for NormalizedRect
impl UnsafeUnpin for NormalizedRect
impl UnwindSafe for NormalizedRect
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