OutputProps

Trait OutputProps 

Source
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§

Source

fn desc(&self) -> &OutDesc

The output’s description

Source

fn block_id(&self) -> &Uuid

The block id of the block this output belongs to

Source

fn is_connected(&self) -> bool

True if this output is connected to at least one input

Get a list of links to this output

Remove a link by id from this output

§Arguments
  • link_id: The id of the link to be removed

Remove all links to a specific block from this output

Remove all links from this output

Source

fn value(&self) -> &Value

Get this output’s value

Provided Methods§

Source

fn name(&self) -> &str

The output’s name

Remove a link from this output

§Arguments
  • link: The link to be removed

Implementors§

Source§

impl<L: Link> OutputProps for BaseOutput<L>

The implementation of the OutputProps trait