pub struct MicroExpression {
pub name: String,
pub morph_weights: HashMap<String, f32>,
pub duration: f32,
pub intensity: f32,
}Expand description
A single micro-expression definition.
Fields§
§name: StringHuman-readable name, e.g. “disgust_flash”.
morph_weights: HashMap<String, f32>Morph target weights for this expression.
duration: f32Typical duration in seconds (0.04..0.2).
intensity: f32Intensity multiplier 0..1.
Auto Trait Implementations§
impl Freeze for MicroExpression
impl RefUnwindSafe for MicroExpression
impl Send for MicroExpression
impl Sync for MicroExpression
impl Unpin for MicroExpression
impl UnsafeUnpin for MicroExpression
impl UnwindSafe for MicroExpression
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> 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