pub struct Targets {
pub inputs: Vec<Input>,
pub morph_target: usize,
pub morph_weight: usize,
pub extra: Vec<Extra>,
}
Expand description
Declares morph targets, their weights, and any user-defined attributes associated with them.
Fields§
§inputs: Vec<Input>
The interpretation of the Source
s.
morph_target: usize
The index into inputs
for the Semantic::MorphTarget
input (which must exist).
morph_weight: usize
The index into inputs
for the Semantic::MorphWeight
input (which must exist).
extra: Vec<Extra>
Provides arbitrary additional information about this element.
Implementations§
Source§impl Targets
impl Targets
Sourcepub fn new(inputs: Vec<Input>) -> Self
pub fn new(inputs: Vec<Input>) -> Self
Construct a new Targets
from a list of inputs.
One of the inputs must have Semantic::MorphTarget
, and
one of the inputs must have Semantic::MorphWeight
.
Source§impl Targets
impl Targets
Sourcepub fn morph_target_input(&self) -> &Input
pub fn morph_target_input(&self) -> &Input
The input with Semantic::MorphTarget
.
Sourcepub fn morph_weight_input(&self) -> &Input
pub fn morph_weight_input(&self) -> &Input
The input with Semantic::MorphWeight
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Targets
impl RefUnwindSafe for Targets
impl Send for Targets
impl Sync for Targets
impl Unpin for Targets
impl UnwindSafe for Targets
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