pub struct ExpressionDef {
pub name: String,
pub targets: Vec<(String, f64)>,
pub tags: Vec<String>,
pub symmetry_pair: Option<String>,
}Expand description
Definition of a named compound expression made up of weighted morph-target contributions.
Fields§
§name: StringUnique name, e.g. "Happy".
targets: Vec<(String, f64)>Ordered list of (morph_target_name, weight) pairs that together
compose this expression. Weights are in [0.0, 1.0].
Semantic tags (e.g. ["positive", "mouth", "eyes"]).
symmetry_pair: Option<String>Optional name of the bilateral-symmetric counterpart expression,
e.g. "Contempt" for "Contempt_R".
Implementations§
Trait Implementations§
Source§impl Clone for ExpressionDef
impl Clone for ExpressionDef
Source§fn clone(&self) -> ExpressionDef
fn clone(&self) -> ExpressionDef
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 ExpressionDef
impl RefUnwindSafe for ExpressionDef
impl Send for ExpressionDef
impl Sync for ExpressionDef
impl Unpin for ExpressionDef
impl UnsafeUnpin for ExpressionDef
impl UnwindSafe for ExpressionDef
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