pub enum InstanceTarget {
Input,
Output,
Null(Option<String>),
Core,
Default,
Named(String),
Path {
path: String,
id: TargetId,
},
// some variants omitted
}
Expand description
A node instance
Variants§
Input
A flow input node.
Output
A flow output node.
Null(Option<String>)
A black hole for inputs.
Core
A reserved namespace for built-in nodes.
Default
An unspecified node.
Named(String)
A named node instance.
Path
Fields
An instance created inline.
Implementations§
source§impl InstanceTarget
impl InstanceTarget
sourcepub fn or(self, other: InstanceTarget) -> InstanceTarget
pub fn or(self, other: InstanceTarget) -> InstanceTarget
Returns self unless self is InstanceTarget::Default, in which case it returns other
.
sourcepub fn named<T: Into<String>>(name: T) -> Self
pub fn named<T: Into<String>>(name: T) -> Self
Create a new InstanceTarget::Named from a string.
Trait Implementations§
source§impl Clone for InstanceTarget
impl Clone for InstanceTarget
source§fn clone(&self) -> InstanceTarget
fn clone(&self) -> InstanceTarget
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 InstanceTarget
impl Debug for InstanceTarget
source§impl Display for InstanceTarget
impl Display for InstanceTarget
source§impl FromStr for InstanceTarget
impl FromStr for InstanceTarget
source§impl Hash for InstanceTarget
impl Hash for InstanceTarget
source§impl PartialEq<InstanceTarget> for InstanceTarget
impl PartialEq<InstanceTarget> for InstanceTarget
source§fn eq(&self, other: &InstanceTarget) -> bool
fn eq(&self, other: &InstanceTarget) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InstanceTarget
impl Serialize for InstanceTarget
impl Eq for InstanceTarget
impl StructuralEq for InstanceTarget
impl StructuralPartialEq for InstanceTarget
Auto Trait Implementations§
impl RefUnwindSafe for InstanceTarget
impl Send for InstanceTarget
impl Sync for InstanceTarget
impl Unpin for InstanceTarget
impl UnwindSafe for InstanceTarget
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