pub trait Acts<C>: Sized {
// Required methods
fn opts() -> Vec<&'static str>;
fn next_impl(
c: &C,
s: &mut ParseCtx,
a: &Arg,
args: &[Arg],
) -> Result<(), ActsErr>;
fn desc_act() -> &'static str;
fn usage_v() -> Vec<[&'static str; 2]>;
fn add_paths(pfx: &Vec<String>, p: &mut Vec<Vec<String>>);
// Provided methods
fn run(c: &C) -> Result<(), String> { ... }
fn next(c: &C, s: &mut ParseCtx, args: &[Arg]) -> Result<(), ActsErr> { ... }
fn select_act() -> Result<&'static str, ActsErr> { ... }
fn list() -> Vec<Vec<String>> { ... }
fn usage() -> String { ... }
}Required Methods§
fn opts() -> Vec<&'static str>
fn next_impl( c: &C, s: &mut ParseCtx, a: &Arg, args: &[Arg], ) -> Result<(), ActsErr>
fn desc_act() -> &'static str
fn usage_v() -> Vec<[&'static str; 2]>
fn add_paths(pfx: &Vec<String>, p: &mut Vec<Vec<String>>)
Provided Methods§
fn run(c: &C) -> Result<(), String>
fn next(c: &C, s: &mut ParseCtx, args: &[Arg]) -> Result<(), ActsErr>
fn select_act() -> Result<&'static str, ActsErr>
fn list() -> Vec<Vec<String>>
fn usage() -> String
Object Safety§
This trait is not object safe.