pub struct BaseOutput<L: Link> {
pub value: Value,
pub links: Vec<L>,
pub block_id: Uuid,
/* private fields */
}Expand description
The base implementation of an output pin
Fields§
§value: Value§links: Vec<L>§block_id: UuidImplementations§
Source§impl<L: Link> BaseOutput<L>
impl<L: Link> BaseOutput<L>
Sourcepub fn new_named(name: &str, kind: HaystackKind, block_id: Uuid) -> Self
pub fn new_named(name: &str, kind: HaystackKind, block_id: Uuid) -> Self
Trait Implementations§
Source§impl<L: Link> OutputProps for BaseOutput<L>
The implementation of the OutputProps trait
impl<L: Link> OutputProps for BaseOutput<L>
The implementation of the OutputProps trait
Source§fn remove_link_by_id(&mut self, link_id: &Uuid)
fn remove_link_by_id(&mut self, link_id: &Uuid)
Source§fn is_connected(&self) -> bool
fn is_connected(&self) -> bool
True if this output is connected to at least one input
Source§fn remove_target_block_links(&mut self, block_id: &Uuid)
fn remove_target_block_links(&mut self, block_id: &Uuid)
Remove all links to a specific block from this output
Source§fn remove_all_links(&mut self)
fn remove_all_links(&mut self)
Remove all links from this output
Source§fn remove_link(&mut self, link: &dyn Link)
fn remove_link(&mut self, link: &dyn Link)
Remove a link from this output Read more
Auto Trait Implementations§
impl<L> Freeze for BaseOutput<L>
impl<L> RefUnwindSafe for BaseOutput<L>where
L: RefUnwindSafe,
impl<L> Send for BaseOutput<L>where
L: Send,
impl<L> Sync for BaseOutput<L>where
L: Sync,
impl<L> Unpin for BaseOutput<L>where
L: Unpin,
impl<L> UnwindSafe for BaseOutput<L>where
L: UnwindSafe,
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