var searchIndex = {}; searchIndex["term_painter"] = {"doc":"This is a crate for coloring and formatting terminal output. Simple\nexample:","items":[[3,"Style","term_painter","Saves all properties of a style. Implements `ToStyle`, so you can call\nstyle modifiers on it.",null,null],[12,"fg","","",0,null],[12,"bg","","",0,null],[3,"Painted","","Wraps an object of type `T` and a style. When attempting to print it, the\ngiven style is applied before printing and reset afterwards.\nAll formatting traits (`Display`, `Debug`, ...) that are implemented\nfor `T` are also implemented the wrapper type `Painted<T>`.",null,null],[4,"Color","","Lists all possible Colors. It implements `ToStyle` so it's possible to call\n`ToStyle`'s methods directly on a `Color` variant like:",null,null],[13,"NotSet","","",1,null],[13,"Black","","",1,null],[13,"Red","","",1,null],[13,"Green","","",1,null],[13,"Yellow","","",1,null],[13,"Blue","","",1,null],[13,"Magenta","","",1,null],[13,"Cyan","","",1,null],[13,"White","","",1,null],[13,"BrightBlack","","",1,null],[13,"BrightRed","","",1,null],[13,"BrightGreen","","",1,null],[13,"BrightYellow","","",1,null],[13,"BrightBlue","","",1,null],[13,"BrightMagenta","","",1,null],[13,"BrightCyan","","",1,null],[13,"BrightWhite","","",1,null],[4,"Attr","","Lists possible attributes. It implements `ToStyle` so it's possible to call\n`ToStyle`'s methods directly on a `Attr` variant like:",null,null],[13,"Plain","","Just default style",2,null],[13,"Bold","","",2,null],[13,"Dim","","",2,null],[13,"Underline","","",2,null],[13,"Blink","","",2,null],[13,"Reverse","","",2,null],[13,"Secure","","",2,null],[8,"ToStyle","","Everything that can be seen as part of a style. This is the core of this\ncrate. All functions ("style modifier") consume self and return a modified\nversion of the style.",null,null],[10,"to_style","","",3,null],[11,"fg","","Sets the foreground (text) color.",3,null],[11,"bg","","Sets the background color.",3,null],[11,"bold","","Makes the text bold.",3,null],[11,"dim","","Dim mode.",3,null],[11,"underline","","Underlines the text.",3,null],[11,"not_underline","","Removes underline-attribute.",3,null],[11,"blink","","Underlines the text.",3,null],[11,"reverse","","Underlines the text.",3,null],[11,"secure","","Secure mode.",3,null],[11,"paint","","Wraps the style specified in `self` and something of arbitrary type\ninto a `Painted`. When `Painted` is printed it will print the arbitrary\nsomething with the given style.",3,null],[11,"with","","Executes the given function, applying the style information before\ncalling it and resetting after it finished.",3,null],[11,"eq","","",1,null],[11,"clone","","",1,null],[11,"fmt","","",1,null],[11,"default","","",1,{"inputs":[],"output":{"name":"self"}}],[11,"to_style","","Returns a Style with default values and the `self` color as foreground\ncolor.",1,null],[11,"eq","","",2,null],[11,"clone","","",2,null],[11,"fmt","","",2,null],[11,"to_style","","Returns a Style with default values and the `self` attribute enabled.",2,null],[11,"eq","","",0,null],[11,"ne","","",0,null],[11,"clone","","",0,null],[11,"fmt","","",0,null],[11,"default","","",0,{"inputs":[],"output":{"name":"self"}}],[11,"get_bold","","",0,null],[11,"set_bold","","",0,null],[11,"get_dim","","",0,null],[11,"set_dim","","",0,null],[11,"get_underline","","",0,null],[11,"set_underline","","",0,null],[11,"get_blink","","",0,null],[11,"set_blink","","",0,null],[11,"get_reverse","","",0,null],[11,"set_reverse","","",0,null],[11,"get_secure","","",0,null],[11,"set_secure","","",0,null],[11,"to_style","","Dummy implementation that just returns `self`.",0,null],[11,"fmt","","",4,null],[11,"fmt","","",4,null],[11,"fmt","","",4,null],[11,"fmt","","",4,null],[11,"fmt","","",4,null],[11,"fmt","","",4,null],[11,"fmt","","",4,null],[11,"fmt","","",4,null],[11,"fmt","","",4,null]],"paths":[[3,"Style"],[4,"Color"],[4,"Attr"],[8,"ToStyle"],[3,"Painted"]]}; initSearch(searchIndex);