pub struct MachineInstance {
pub inputs: Vec<InputValue>,
/* private fields */
}Fields§
§inputs: Vec<InputValue>Implementations§
Source§impl MachineInstance
impl MachineInstance
pub fn new(m: &Machine) -> Self
pub fn input_index(m: &Machine, name: &str) -> Option<usize>
Sourcepub fn layer_states(&self) -> impl Iterator<Item = usize> + '_
pub fn layer_states(&self) -> impl Iterator<Item = usize> + '_
Current active state per layer, in layer order.
pub fn set_bool(&mut self, idx: usize, v: bool)
pub fn set_number(&mut self, idx: usize, v: f64)
pub fn fire(&mut self, idx: usize)
Sourcepub fn pointer_event(
&mut self,
m: &Machine,
node: NodeId,
kind: PointerEventKind,
)
pub fn pointer_event( &mut self, m: &Machine, node: NodeId, kind: PointerEventKind, )
Route a pointer event on node (from Scene picking) through listeners.
Trait Implementations§
Source§impl Clone for MachineInstance
impl Clone for MachineInstance
Source§fn clone(&self) -> MachineInstance
fn clone(&self) -> MachineInstance
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 moreAuto Trait Implementations§
impl Freeze for MachineInstance
impl RefUnwindSafe for MachineInstance
impl Send for MachineInstance
impl Sync for MachineInstance
impl Unpin for MachineInstance
impl UnsafeUnpin for MachineInstance
impl UnwindSafe for MachineInstance
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