Macro the_key::define_key_seq[][src]

macro_rules! define_key_seq {
    ($name:ident, [$($key_part:ident),*]) => { ... };
}

Defines a key sequence. Each key part is a uniq struct whose implement trait the_key::KeyPartsSequence

Example

use the_key::*;

define_key_part!(KeyPart1, "key_part_1".as_bytes());
define_key_part!(KeyPart2, "key_part_2".as_bytes());
define_key_seq!(KeyPartsSeq, [KeyPart1, KeyPart2]);