pub struct ExpressionPreset {
pub name: String,
pub components: Vec<ExpressionComponent>,
}Expand description
A named facial expression preset composed of multiple target components.
Fields§
§name: String§components: Vec<ExpressionComponent>Implementations§
Source§impl ExpressionPreset
impl ExpressionPreset
Sourcepub fn all() -> Vec<ExpressionPreset>
pub fn all() -> Vec<ExpressionPreset>
Return all built-in expression presets.
Target stems correspond to actual MakeHuman expression unit targets
found under expression/units/{ethnicity}/.
Sourcepub fn from_name(name: &str) -> Option<ExpressionPreset>
pub fn from_name(name: &str) -> Option<ExpressionPreset>
Find a preset by name (case-insensitive).
Trait Implementations§
Source§impl Clone for ExpressionPreset
impl Clone for ExpressionPreset
Source§fn clone(&self) -> ExpressionPreset
fn clone(&self) -> ExpressionPreset
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExpressionPreset
impl RefUnwindSafe for ExpressionPreset
impl Send for ExpressionPreset
impl Sync for ExpressionPreset
impl Unpin for ExpressionPreset
impl UnsafeUnpin for ExpressionPreset
impl UnwindSafe for ExpressionPreset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more