pub struct NestedGraphHandle {
pub alias: String,
pub inputs: BTreeMap<String, Vec<PortRef>>,
pub outputs: BTreeMap<String, Vec<PortRef>>,
}Expand description
Interface for a nested graph once it has been inlined into another graph.
Fields§
§alias: String§inputs: BTreeMap<String, Vec<PortRef>>§outputs: BTreeMap<String, Vec<PortRef>>Implementations§
Source§impl NestedGraphHandle
impl NestedGraphHandle
Sourcepub fn input(&self, port: impl Into<String>) -> PortHandle
pub fn input(&self, port: impl Into<String>) -> PortHandle
Port handle for a nested graph input (outer -> nested).
Sourcepub fn output(&self, port: impl Into<String>) -> PortHandle
pub fn output(&self, port: impl Into<String>) -> PortHandle
Port handle for a nested graph output (nested -> outer).
pub fn input_ports(&self) -> impl Iterator<Item = &str>
pub fn output_ports(&self) -> impl Iterator<Item = &str>
Trait Implementations§
Source§impl Clone for NestedGraphHandle
impl Clone for NestedGraphHandle
Source§fn clone(&self) -> NestedGraphHandle
fn clone(&self) -> NestedGraphHandle
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 moreAuto Trait Implementations§
impl Freeze for NestedGraphHandle
impl RefUnwindSafe for NestedGraphHandle
impl Send for NestedGraphHandle
impl Sync for NestedGraphHandle
impl Unpin for NestedGraphHandle
impl UnwindSafe for NestedGraphHandle
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