[−][src]Enum rtdlib::types::MaskPoint
Part of the face, relative to which a mask should be placed
Variants
Forehead(MaskPointForehead)A mask should be placed relatively to the forehead
Eyes(MaskPointEyes)A mask should be placed relatively to the eyes
Mouth(MaskPointMouth)A mask should be placed relatively to the mouth
Chin(MaskPointChin)A mask should be placed relatively to the chin
Methods
impl MaskPoint[src]
pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]
pub fn is_forehead(&self) -> bool[src]
pub fn is_eyes(&self) -> bool[src]
pub fn is_mouth(&self) -> bool[src]
pub fn is_chin(&self) -> bool[src]
pub fn on_forehead<F: FnOnce(&MaskPointForehead)>(&self, fnc: F) -> &Self[src]
pub fn on_eyes<F: FnOnce(&MaskPointEyes)>(&self, fnc: F) -> &Self[src]
pub fn on_mouth<F: FnOnce(&MaskPointMouth)>(&self, fnc: F) -> &Self[src]
pub fn on_chin<F: FnOnce(&MaskPointChin)>(&self, fnc: F) -> &Self[src]
pub fn as_forehead(&self) -> Option<&MaskPointForehead>[src]
pub fn as_eyes(&self) -> Option<&MaskPointEyes>[src]
pub fn as_mouth(&self) -> Option<&MaskPointMouth>[src]
pub fn as_chin(&self) -> Option<&MaskPointChin>[src]
pub fn forehead<T: AsRef<MaskPointForehead>>(t: T) -> Self[src]
pub fn eyes<T: AsRef<MaskPointEyes>>(t: T) -> Self[src]
pub fn mouth<T: AsRef<MaskPointMouth>>(t: T) -> Self[src]
pub fn chin<T: AsRef<MaskPointChin>>(t: T) -> Self[src]
Trait Implementations
impl RObject for MaskPoint[src]
impl AsRef<MaskPoint> for MaskPoint[src]
impl Clone for MaskPoint[src]
impl Default for MaskPoint[src]
impl Debug for MaskPoint[src]
impl Serialize for MaskPoint[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl<'de> Deserialize<'de> for MaskPoint[src]
fn deserialize<D>(deserializer: D) -> Result<MaskPoint, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for MaskPoint
impl Sync for MaskPoint
impl Unpin for MaskPoint
impl UnwindSafe for MaskPoint
impl RefUnwindSafe for MaskPoint
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,