pub struct CString { /* private fields */ }

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Set foreground color. Support Color enum and HSL, RGB mode. Read more
Set background color. Support Color enum and HSL, RGB mode. Read more
Support RGB color and HSL mode Read more
Terminal effect See ANSI escape code For terminals compatibility, check Terminals compatibility Read more
Turn bold mode on.
Turn blinking mode on. Blink doesn’t work in many terminal emulators ,and it will still work on the console.
Turn low intensity mode on.
Turn underline mode on.
Turn reverse mode on (invert the foreground and background colors).
Turn invisible text mode on (useful for passwords).
Apply gradient color to sentences, support multiple lines. You can use use colorful::Color; or use colorful::HSL; or use colorful::RGB; to import colors and create gradient string. Read more
Rainbow mode, support multiple lines Read more
Neon mode
Show some warning words. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.