refix-codegen 0.7.0

Code generator for typed FIX protocol messages, for the ReFIX engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use refix_dictionary::{Dictionary, Tag};

/// Every length tag the dictionary links to a data field, in order.
pub(crate) fn length_tags(dictionary: &Dictionary) -> Vec<Tag> {
    let mut tags: Vec<Tag> = dictionary
        .fields()
        .iter()
        .filter_map(|field| field.length_tag)
        .collect();
    tags.sort_unstable();
    tags
}