Struct fm::tree::ColoredString
source · pub struct ColoredString {
pub text: String,
pub attr: Attr,
pub path: PathBuf,
}Expand description
Holds a string and its display attributes.
Fields§
§text: StringA text to be printed. In most case, it should be a filename.
attr: AttrA tuikit::attr::Attr (fg, bg, effect) to enhance the text.
path: PathBufThe complete path of this string.
Trait Implementations§
source§impl Clone for ColoredString
impl Clone for ColoredString
source§fn clone(&self) -> ColoredString
fn clone(&self) -> ColoredString
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more