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
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 duplicate 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 for InstanceTarget
impl PartialEq for InstanceTarget
Source§impl Serialize for InstanceTarget
impl Serialize for InstanceTarget
impl Eq for InstanceTarget
impl StructuralPartialEq for InstanceTarget
Auto Trait Implementations§
impl Freeze for InstanceTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more