crius icon indicating copy to clipboard operation
crius copied to clipboard

Store Command in a struct

Open TatriX opened this issue 8 years ago • 1 comments

What is the best way to store Command in a struct's field for use in methods?

TatriX avatar Apr 17 '18 13:04 TatriX

This can be done by using function pointers which are concrete types implementing the Fn traits.

tazjin avatar May 12 '18 15:05 tazjin