pub struct Subroutine(/* private fields */);
Trait Implementations§
Source§impl Clone for Subroutine
impl Clone for Subroutine
Source§fn clone(&self) -> Subroutine
fn clone(&self) -> Subroutine
Returns a copy of the value. Read more
1.0.0 · 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 Subroutine
impl Debug for Subroutine
Source§impl Node for Subroutine
impl Node for Subroutine
Source§fn current_variant(&self) -> Cow<'_, str>
fn current_variant(&self) -> Cow<'_, str>
Format: subroutine:<start_node_id>:<end_node_id>
Source§fn set_variant(&mut self, variant: &str)
fn set_variant(&mut self, variant: &str)
Format: subroutine@<start_node_id>:<end_node_id>
Source§fn execute(&self, context: &mut ExecutionContext<'_>) -> usize
fn execute(&self, context: &mut ExecutionContext<'_>) -> usize
Execution of the node’s code. Returns a branch index.
Source§fn inputs(&self) -> Vec<InputSocket>
fn inputs(&self) -> Vec<InputSocket>
Get information about node’s inputs
Source§fn outputs(&self) -> Vec<OutputSocket>
fn outputs(&self) -> Vec<OutputSocket>
Get information about node’s outputs
Source§fn clone_node(&self) -> Rc<dyn Node>
fn clone_node(&self) -> Rc<dyn Node>
Clone the node itself instead of it wrapped in Rc
Source§fn accepts_arbitrary_variants(&self) -> bool
fn accepts_arbitrary_variants(&self) -> bool
Whether variation can be set as a custom string (not listed in
variants
) or notAuto Trait Implementations§
impl Freeze for Subroutine
impl RefUnwindSafe for Subroutine
impl Send for Subroutine
impl Sync for Subroutine
impl Unpin for Subroutine
impl UnwindSafe for Subroutine
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