pub trait OutputProps {
// Required methods
fn desc(&self) -> &OutDesc;
fn block_id(&self) -> &Uuid;
fn is_connected(&self) -> bool;
fn links(&self) -> Vec<&dyn Link>;
fn remove_link_by_id(&mut self, link_id: &Uuid);
fn remove_target_block_links(&mut self, block_id: &Uuid);
fn remove_all_links(&mut self);
fn value(&self) -> &Value;
// Provided methods
fn name(&self) -> &str { ... }
fn remove_link(&mut self, link: &dyn Link) { ... }
}Expand description
Properties of a block output pin
Required Methods§
Sourcefn is_connected(&self) -> bool
fn is_connected(&self) -> bool
True if this output is connected to at least one input
Sourcefn remove_link_by_id(&mut self, link_id: &Uuid)
fn remove_link_by_id(&mut self, link_id: &Uuid)
Sourcefn 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
Sourcefn remove_all_links(&mut self)
fn remove_all_links(&mut self)
Remove all links from this output
Provided Methods§
Sourcefn remove_link(&mut self, link: &dyn Link)
fn remove_link(&mut self, link: &dyn Link)
Implementors§
impl<L: Link> OutputProps for BaseOutput<L>
The implementation of the OutputProps trait