[][src]Enum rtdlib::types::MaskPoint

pub enum MaskPoint {
    Chin(MaskPointChin),
    Eyes(MaskPointEyes),
    Forehead(MaskPointForehead),
    Mouth(MaskPointMouth),
    // some variants omitted
}

Part of the face, relative to which a mask should be placed

Variants

A mask should be placed relatively to the chin

A mask should be placed relatively to the eyes

A mask should be placed relatively to the forehead

A mask should be placed relatively to the mouth

Implementations

impl MaskPoint[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

pub fn is_chin(&self) -> bool[src]

pub fn is_eyes(&self) -> bool[src]

pub fn is_forehead(&self) -> bool[src]

pub fn is_mouth(&self) -> bool[src]

pub fn on_chin<F: FnOnce(&MaskPointChin)>(&self, fnc: F) -> &Self[src]

pub fn on_eyes<F: FnOnce(&MaskPointEyes)>(&self, fnc: F) -> &Self[src]

pub fn on_forehead<F: FnOnce(&MaskPointForehead)>(&self, fnc: F) -> &Self[src]

pub fn on_mouth<F: FnOnce(&MaskPointMouth)>(&self, fnc: F) -> &Self[src]

pub fn as_chin(&self) -> Option<&MaskPointChin>[src]

pub fn as_eyes(&self) -> Option<&MaskPointEyes>[src]

pub fn as_forehead(&self) -> Option<&MaskPointForehead>[src]

pub fn as_mouth(&self) -> Option<&MaskPointMouth>[src]

pub fn chin<T: AsRef<MaskPointChin>>(t: T) -> Self[src]

pub fn eyes<T: AsRef<MaskPointEyes>>(t: T) -> Self[src]

pub fn forehead<T: AsRef<MaskPointForehead>>(t: T) -> Self[src]

pub fn mouth<T: AsRef<MaskPointMouth>>(t: T) -> Self[src]

Trait Implementations

impl AsRef<MaskPoint> for MaskPoint[src]

impl Clone for MaskPoint[src]

impl Debug for MaskPoint[src]

impl Default for MaskPoint[src]

impl<'de> Deserialize<'de> for MaskPoint[src]

impl RObject for MaskPoint[src]

impl Serialize for MaskPoint[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.