pub struct ArtworkFace {
pub left: f32,
pub right: f32,
pub top: f32,
pub bottom: f32,
pub eyes: f32,
}Expand description
A face found in a backdrop (experimental smart-crop). Each edge is a
fraction of the image’s width or height, from its left or top, so it
holds at every ArtworkSize.
Fields§
§left: f32§right: f32§top: f32A box runs from about the brow to the chin: hair is above it.
bottom: f32§eyes: f32The eyes’ height: the mean of the two.
Trait Implementations§
Source§impl Clone for ArtworkFace
impl Clone for ArtworkFace
impl Copy for ArtworkFace
Source§impl Debug for ArtworkFace
impl Debug for ArtworkFace
Source§impl<'de> Deserialize<'de> for ArtworkFace
impl<'de> Deserialize<'de> for ArtworkFace
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 ArtworkFace
impl PartialEq for ArtworkFace
Source§impl Serialize for ArtworkFace
impl Serialize for ArtworkFace
impl StructuralPartialEq for ArtworkFace
Auto Trait Implementations§
impl Forget for ArtworkFace
impl Freeze for ArtworkFace
impl Move for ArtworkFace
impl RefUnwindSafe for ArtworkFace
impl Send for ArtworkFace
impl Sync for ArtworkFace
impl Unpin for ArtworkFace
impl UnsafeUnpin for ArtworkFace
impl UnwindSafe for ArtworkFace
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