Trait fpr_cli::Parse2

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

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>

source

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

source

fn default2(c: &C, i: Init<C, Self::I>) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

source§

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]

source§

fn default2(c: &Ctx, i: Init<Ctx, Self::I>) -> Self

source§

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

source§

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§

fn default2(c: &Ctx, i: Init<Ctx, Self::I>) -> Self

Implementors§

source§

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

source§

type I = T

source§

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