Trait Callable

Source
pub trait Callable {
Show 14 methods // Required methods fn name(&self) -> &str; fn meta(&self) -> &MetaMap; fn inputs(&self) -> &[Parameter]; fn outputs(&self) -> &[Parameter]; // Provided methods fn description(&self) -> Markup { ... } fn required_inputs(&self) -> impl Iterator<Item = &Parameter> { ... } fn input_groups(&self) -> BTreeSet<Group> { ... } fn inputs_in_group<'a>( &'a self, group: &'a Group, ) -> impl Iterator<Item = &'a Parameter> { ... } fn other_inputs(&self) -> impl Iterator<Item = &Parameter> { ... } fn render_required_inputs(&self) -> Markup { ... } fn render_group_inputs(&self) -> Markup { ... } fn render_other_inputs(&self) -> Markup { ... } fn render_inputs(&self) -> Markup { ... } fn render_outputs(&self) -> Markup { ... }
}
Expand description

A callable (workflow or task) in a WDL document.

Required Methods§

Source

fn name(&self) -> &str

Get the name of the callable.

Source

fn meta(&self) -> &MetaMap

Get the MetaMap of the callable.

Source

fn inputs(&self) -> &[Parameter]

Get the inputs of the callable.

Source

fn outputs(&self) -> &[Parameter]

Get the outputs of the callable.

Provided Methods§

Source

fn description(&self) -> Markup

Get the description of the callable.

Source

fn required_inputs(&self) -> impl Iterator<Item = &Parameter>

Get the required input parameters of the callable.

Source

fn input_groups(&self) -> BTreeSet<Group>

Get the sorted set of unique group values of the inputs.

The Common group, if present, will always be first in the set, followed by any other groups in alphabetical order, and lastly the Resources group.

Source

fn inputs_in_group<'a>( &'a self, group: &'a Group, ) -> impl Iterator<Item = &'a Parameter>

Get the inputs of the callable that are part of group.

Source

fn other_inputs(&self) -> impl Iterator<Item = &Parameter>

Get the inputs of the callable that are neither required nor part of a group.

Source

fn render_required_inputs(&self) -> Markup

Render the required inputs of the callable.

Source

fn render_group_inputs(&self) -> Markup

Render the inputs with a group of the callable.

Source

fn render_other_inputs(&self) -> Markup

Render the inputs that are neither required nor part of a group.

Source

fn render_inputs(&self) -> Markup

Render the inputs of the callable.

Source

fn render_outputs(&self) -> Markup

Render the outputs of the callable.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§