pub struct ControllerLayer {
pub name: String,
pub states: Vec<ControllerState>,
pub default_state: Option<usize>,
pub default_weight: f32,
pub weight_parameter: Option<usize>,
pub blending: LayerBlending,
pub mask: Option<LayerMask>,
}Fields§
§name: String§states: Vec<ControllerState>§default_state: Option<usize>The state the layer starts in: an index of states. None exactly when the layer has no states: such a layer
plays nothing (a source’s empty layer, kept so the layers still line up with the source’s).
default_weight: f32As stored; finite, never silently clamped to a consumer’s supported range. The weight the layer has when no
parameter sets one (weight_parameter).
weight_parameter: Option<usize>A numeric controller parameter (an index of parameters) whose value is the layer’s weight, where the source
binds the weight to one; None: default_weight.
blending: LayerBlending§mask: Option<LayerMask>Which joints the layer drives; None: every joint at full strength. Stored as a null when none: a stored
controller without the field is refused, so an absent mask never reads as an unmasked layer.
Trait Implementations§
Source§impl Clone for ControllerLayer
impl Clone for ControllerLayer
Source§impl Debug for ControllerLayer
impl Debug for ControllerLayer
Source§impl<'de> Deserialize<'de> for ControllerLayer
impl<'de> Deserialize<'de> for ControllerLayer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ControllerLayer
impl PartialEq for ControllerLayer
Source§impl Serialize for ControllerLayer
impl Serialize for ControllerLayer
impl StructuralPartialEq for ControllerLayer
Auto Trait Implementations§
impl Forget for ControllerLayer
impl Freeze for ControllerLayer
impl RefUnwindSafe for ControllerLayer
impl Send for ControllerLayer
impl Sync for ControllerLayer
impl Unpin for ControllerLayer
impl UnsafeUnpin for ControllerLayer
impl UnwindSafe for ControllerLayer
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