use stilo::{println_styles, style}; fn main() { let keyword_other = style!(Red); let entity_name = style!(Yellow); let keyword_operator = style!(Magenta); let meta_attribute = style!(Blue); let keyword_declaration = style!(Magenta); let punctuation_brackets_angle = style!(Cyan); let string = style!(Green); let brackets_1 = style!(Yellow); let brackets_2 = style!(Magenta); let brackets_3 = style!(Blue); let variable_language_self = style!(Red + italic); let entity_name_function = style!(Blue + italic); println_styles!( "\n"; "use ": {keyword_other}; "std": {entity_name}; "::": {keyword_operator}; "ops": {entity_name}; "::": {keyword_operator}; "Add": {entity_name}; "\n\n"; "#[repr(transparent)]": {meta_attribute}; "\n"; "struct ": {keyword_declaration}; "Wrapper": {entity_name}; "<": {punctuation_brackets_angle}; "T": {entity_name}; "> ": {punctuation_brackets_angle}; "{{": {brackets_1}; "\n value"; ": ": {keyword_operator}; "T": {entity_name}; ",": {keyword_operator}; "\n}}": {brackets_1}; "\n\n"; "impl ": {keyword_other}; "Add": {entity_name}; "<": {punctuation_brackets_angle}; "f32": {entity_name}; "> for ": {punctuation_brackets_angle}; "Wrapper": {entity_name}; "<": {punctuation_brackets_angle}; "f32": {entity_name}; "> ": {punctuation_brackets_angle}; "{{": {brackets_2}; "\n type ": {keyword_declaration}; "Output ": {entity_name}; "= ": {keyword_operator}; "Wrapper": {entity_name}; "<": {punctuation_brackets_angle}; "f32": {entity_name}; ">;": {punctuation_brackets_angle}; "\n\n fn ": {keyword_other}; "add": {entity_name_function}; "(": {keyword_operator}; "self": {variable_language_self}; ", ": {punctuation_brackets_angle}; "rhs"; ": ": {keyword_operator}; "f32": {entity_name}; ") -> ": {keyword_operator}; "Self ": {variable_language_self}; "}}": {keyword_operator}; "\n "; "todo!(": {brackets_3}; "\"": {punctuation_brackets_angle}; "not yet implemented :(": {string}; "\"": {punctuation_brackets_angle}; ")": {brackets_3}; "\n }}": {keyword_operator}; "\n}}": {entity_name}; "\n\nfn ": {keyword_other}; "frobnicate": {entity_name_function}; "<'": {punctuation_brackets_angle}; "a": {entity_name}; ">": {punctuation_brackets_angle}; "(": {entity_name}; "wrapper"; ": &": {keyword_operator}; "'": {punctuation_brackets_angle}; "a ": {entity_name}; "mut ": {keyword_operator}; "Wrapper": {entity_name}; "<": {punctuation_brackets_angle}; "f32": {entity_name}; ">": {punctuation_brackets_angle}; ") ": {entity_name}; " -> &": {keyword_operator}; "'": {punctuation_brackets_angle}; "a f32 {{": {entity_name}; "\n wrapper"; ".": {keyword_operator}; "value "; "+= ": {keyword_operator}; "1": {keyword_other}; ".": {punctuation_brackets_angle}; "0": {keyword_other}; ";": {punctuation_brackets_angle}; "\n unsafe ": {keyword_other}; "{{": {keyword_operator}; "\n &*": {keyword_operator}; "(": {brackets_3}; "wrapper "; "as ": {keyword_other}; "*const ": {keyword_operator}; "_"; ")": {brackets_3}; "\n }}": {keyword_operator}; "\n}}": {entity_name}; ); }