Skip to content

Dense help-like tabular combinatoric #253

Answered by pacak
eugenesvk asked this question in Q&A
Discussion options

You must be logged in to vote

You can make a wrapper type or a wrapper trait for NamedArg that would translate your short names to long ones, something like this:

pub trait ShortName {
    fn s(self, name: char) -> NamedArg {
        self.short(name)
    }
   ...
}

impl ShortName for NamedArg {}

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@eugenesvk
Comment options

@eugenesvk
Comment options

@pacak
Comment options

@eugenesvk
Comment options

@pacak
Comment options

Answer selected by eugenesvk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants