pub struct ControlProgram { /* private fields */ }Expand description
The animated properties of one graph node: property name -> curve. Attach it
with Graph::set_node_control.
Implementations§
Source§impl ControlProgram
impl ControlProgram
pub fn new() -> Self
Sourcepub fn bind(self, property: &str, source: ControlSource) -> Self
pub fn bind(self, property: &str, source: ControlSource) -> Self
Bind property to source. Re-binding a name replaces its curve, so a
program cannot hold two curves fighting over one property.
pub fn is_empty(&self) -> bool
Sourcepub fn resolve(
self,
specs: &[PropertySpec],
) -> Result<ArmController, ControlFault>
pub fn resolve( self, specs: &[PropertySpec], ) -> Result<ArmController, ControlFault>
Check every binding against the target element’s declared properties and
resolve each one’s PropKind, so the run’s per-frame sampling is a
straight conversion with no name lookup. The first offending binding
fails.
Trait Implementations§
Source§impl Clone for ControlProgram
impl Clone for ControlProgram
Source§fn clone(&self) -> ControlProgram
fn clone(&self) -> ControlProgram
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControlProgram
impl Debug for ControlProgram
Source§impl Default for ControlProgram
impl Default for ControlProgram
Source§fn default() -> ControlProgram
fn default() -> ControlProgram
Returns the “default value” for a type. Read more
Source§impl PartialEq for ControlProgram
impl PartialEq for ControlProgram
impl StructuralPartialEq for ControlProgram
Auto Trait Implementations§
impl Freeze for ControlProgram
impl RefUnwindSafe for ControlProgram
impl Send for ControlProgram
impl Sync for ControlProgram
impl Unpin for ControlProgram
impl UnsafeUnpin for ControlProgram
impl UnwindSafe for ControlProgram
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