Enum rtdlib::types::MaskPoint [−][src]
Part of the face, relative to which a mask should be placed
Variants
Chin(MaskPointChin)
A mask should be placed relatively to the chin
Eyes(MaskPointEyes)
A mask should be placed relatively to the eyes
Forehead(MaskPointForehead)
A mask should be placed relatively to the forehead
Mouth(MaskPointMouth)
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]
fn deserialize<D>(deserializer: D) -> Result<MaskPoint, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl RObject for MaskPoint
[src]
impl Serialize for MaskPoint
[src]
Auto Trait Implementations
impl RefUnwindSafe for MaskPoint
[src]
impl Send for MaskPoint
[src]
impl Sync for MaskPoint
[src]
impl Unpin for MaskPoint
[src]
impl UnwindSafe for MaskPoint
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,