#[non_exhaustive]pub struct NormalizedBoundingBox {
pub left: f32,
pub top: f32,
pub right: f32,
pub bottom: f32,
/* private fields */
}Expand description
Normalized bounding box. The normalized vertex coordinates are relative to the original image. Range: [0, 1].
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.left: f32Left X coordinate.
top: f32Top Y coordinate.
right: f32Right X coordinate.
bottom: f32Bottom Y coordinate.
Implementations§
Trait Implementations§
Source§impl Clone for NormalizedBoundingBox
impl Clone for NormalizedBoundingBox
Source§fn clone(&self) -> NormalizedBoundingBox
fn clone(&self) -> NormalizedBoundingBox
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 NormalizedBoundingBox
impl Debug for NormalizedBoundingBox
Source§impl Default for NormalizedBoundingBox
impl Default for NormalizedBoundingBox
Source§fn default() -> NormalizedBoundingBox
fn default() -> NormalizedBoundingBox
Returns the “default value” for a type. Read more
Source§impl Message for NormalizedBoundingBox
impl Message for NormalizedBoundingBox
Source§impl PartialEq for NormalizedBoundingBox
impl PartialEq for NormalizedBoundingBox
Source§fn eq(&self, other: &NormalizedBoundingBox) -> bool
fn eq(&self, other: &NormalizedBoundingBox) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NormalizedBoundingBox
Auto Trait Implementations§
impl Freeze for NormalizedBoundingBox
impl RefUnwindSafe for NormalizedBoundingBox
impl Send for NormalizedBoundingBox
impl Sync for NormalizedBoundingBox
impl Unpin for NormalizedBoundingBox
impl UnsafeUnpin for NormalizedBoundingBox
impl UnwindSafe for NormalizedBoundingBox
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