pub struct AnalysisSubjectBounds {
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
}Available on crate feature
async only.Expand description
Bounds rectangle for an ImageAnalysisOverlayView.Subject (macOS) or
ImageAnalysisInteraction.Subject (iOS).
The coordinate space matches what VisionKit reports for the analysis
resolution. x and y are the origin (top-left corner).
Fields§
§x: f64X coordinate of the origin.
y: f64Y coordinate of the origin.
width: f64Width of the bounding rectangle.
height: f64Height of the bounding rectangle.
Trait Implementations§
Source§impl Clone for AnalysisSubjectBounds
impl Clone for AnalysisSubjectBounds
Source§fn clone(&self) -> AnalysisSubjectBounds
fn clone(&self) -> AnalysisSubjectBounds
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 AnalysisSubjectBounds
impl Debug for AnalysisSubjectBounds
Source§impl<'de> Deserialize<'de> for AnalysisSubjectBounds
impl<'de> Deserialize<'de> for AnalysisSubjectBounds
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AnalysisSubjectBounds
impl PartialEq for AnalysisSubjectBounds
Source§fn eq(&self, other: &AnalysisSubjectBounds) -> bool
fn eq(&self, other: &AnalysisSubjectBounds) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AnalysisSubjectBounds
Auto Trait Implementations§
impl Freeze for AnalysisSubjectBounds
impl RefUnwindSafe for AnalysisSubjectBounds
impl Send for AnalysisSubjectBounds
impl Sync for AnalysisSubjectBounds
impl Unpin for AnalysisSubjectBounds
impl UnsafeUnpin for AnalysisSubjectBounds
impl UnwindSafe for AnalysisSubjectBounds
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