Trait fpr_cli::Parse2

source ·
pub trait Parse2<C>
where Self: Sized,
{ type I; // Required methods fn parse2( i: Init<C, Self::I>, k: &'static str, c: &C, p: &mut ParsedArgs<'_>, ) -> Result<Self, ArgParseErr> where Self::I: Display; fn desc2( i: Init<C, Self::I>, d: &'static str, k: &'static str, c: &C, ) -> [String; 4] where Self::I: Display; }

Required Associated Types§

source

type I

Required Methods§

source

fn parse2( i: Init<C, Self::I>, k: &'static str, c: &C, p: &mut ParsedArgs<'_>, ) -> Result<Self, ArgParseErr>
where Self::I: Display,

source

fn desc2( i: Init<C, Self::I>, d: &'static str, k: &'static str, c: &C, ) -> [String; 4]
where Self::I: Display,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<Ctx, T: Parse + Display> Parse2<Ctx> for Option<T>

§

type I = T

source§

fn parse2( i: Init<Ctx, T>, k: &'static str, c: &Ctx, p: &mut ParsedArgs<'_>, ) -> Result<Self, ArgParseErr>

source§

fn desc2( i: Init<Ctx, T>, d: &'static str, k: &'static str, c: &Ctx, ) -> [String; 4]

source§

impl<Ctx, T: Parse + Display> Parse2<Ctx> for Vec<T>

§

type I = DisplayVec<T>

source§

fn parse2( i: Init<Ctx, Self::I>, k: &'static str, c: &Ctx, p: &mut ParsedArgs<'_>, ) -> Result<Self, ArgParseErr>

source§

fn desc2( i: Init<Ctx, Self::I>, d: &'static str, k: &'static str, c: &Ctx, ) -> [String; 4]

Implementors§

source§

impl<C, T: Parse + Display> Parse2<C> for T

§

type I = T

source§

impl<Ctx, T: Parse + Display> Parse2<Ctx> for OptVec<T>

§

type I = DisplayVec<T>