/// Create new ParsingTemplate with predefined values
Create new ParsingTemplate with predefined values
Create new ParsingTemplate with predefined values
pub fn new_from_python(fields: Vec<bool>) -> Self {
        assert_eq!(fields.len(), DATA_FIELDS_NUM);
        let mut tmplt = ParsingTemplate::new();
        for (field, val) in Fields::iterator().zip(fields) {
            tmplt.set(field, val);
        }
        tmplt
    }
pub fn new_from_python ( fields : Vec < bool > ) -> Self { assert_eq ! ( fields len ( ) DATA_FIELDS_NUM ) ; let mut tmplt = ParsingTemplate :: new ( ) ; for ( field , val ) in Fields :: iterator ( ) . zip ( fields ) { tmplt . set ( field , val ) ; } tmplt }
Create new ParsingTemplate with predefined values
Create new ParsingTemplate with predefined values
fields
Vec<bool>