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§
Provided Methods§
Sourcefn description(&self) -> Markup
fn description(&self) -> Markup
Get the description of the callable.
Sourcefn required_inputs(&self) -> impl Iterator<Item = &Parameter>
fn required_inputs(&self) -> impl Iterator<Item = &Parameter>
Get the required input parameters of the callable.
Sourcefn input_groups(&self) -> BTreeSet<Group>
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.
Sourcefn inputs_in_group<'a>(
&'a self,
group: &'a Group,
) -> impl Iterator<Item = &'a Parameter>
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.
Sourcefn other_inputs(&self) -> impl Iterator<Item = &Parameter>
fn other_inputs(&self) -> impl Iterator<Item = &Parameter>
Get the inputs of the callable that are neither required nor part of a group.
Sourcefn render_required_inputs(&self) -> Markup
fn render_required_inputs(&self) -> Markup
Render the required inputs of the callable.
Sourcefn render_group_inputs(&self) -> Markup
fn render_group_inputs(&self) -> Markup
Render the inputs with a group of the callable.
Sourcefn render_other_inputs(&self) -> Markup
fn render_other_inputs(&self) -> Markup
Render the inputs that are neither required nor part of a group.
Sourcefn render_inputs(&self) -> Markup
fn render_inputs(&self) -> Markup
Render the inputs of the callable.
Sourcefn render_outputs(&self) -> Markup
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.