Skip to main content

ViewCommandArgs

Trait ViewCommandArgs 

Source
pub trait ViewCommandArgs<O>: CommandArgs {
    // Required method
    fn build_for_view<'t, 'v>(
        partial: Self::Partial,
    ) -> Result<Self, Error<'t, 'v>>;
}
Expand description

View-aware construction for a derived command or flattened argument group.

O is deliberately a type parameter on the trait: generated implementations can state their field requirements without evaluating them for CLIs that never build an executable projection.

Required Methods§

Source

fn build_for_view<'t, 'v>(partial: Self::Partial) -> Result<Self, Error<'t, 'v>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§