tag_id

Macro tag_id 

Source
tag_id!() { /* proc-macro */ }
Expand description

Returns a const TagId validated at compile time.

§Examples

Instantiate a valid TagId at compile time:

let _my_flow: dot_ix::model::common::TagId = tag_id!("valid_id"); // Ok!
//

If the ID is invalid, a compilation error is produced:


let _my_flow: dot_ix::model::common::TagId = tag_id!("-invalid_id"); // Compile error
//                                           ^^^^^^^^^^^^^^^^^^^^^^^
// error: "-invalid_id" is not a valid `TagId`.
//        `TagId`s must begin with a letter or underscore, and contain only letters, numbers, or underscores.