Skip to main content

CliShape

Trait CliShape 

Source
pub trait CliShape {
    const ARITY: Arity;
}
Expand description

States how many occurrences a source of one shape takes.

Required Associated Constants§

Source

const ARITY: Arity

The occurrences the shape takes.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl CliShape for Many

Source§

const ARITY: Arity = Arity::Many

Source§

impl CliShape for Optional

Source§

const ARITY: Arity = Arity::Optional

Source§

impl CliShape for OptionalValue

Source§

const ARITY: Arity = Arity::OptionalValue

Source§

impl CliShape for Switch

Source§

const ARITY: Arity = Arity::Presence

Source§

impl CliShape for Whole

Source§

const ARITY: Arity = Arity::One