Struct mg::completion::CompletionCell
[−]
[src]
pub struct CompletionCell { pub foreground: Option<String>, pub value: String, }
A completion cell is the value with attributes of one data in a row.
Fields
foreground: Option<String>
The foreground color of the cell or None if using the default color.
value: String
The text value to show on the cell.
Methods
impl CompletionCell
[src]
fn new(value: &str) -> Self
[src]
Create a new cell.
fn foreground(self, foreground: &str) -> Self
[src]
Set the foreground color of the cell.
Trait Implementations
impl Clone for CompletionCell
[src]
fn clone(&self) -> CompletionCell
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl ToCell for CompletionCell
[src]
fn to_cell(&self) -> CompletionCell
[src]
Convert a value to a CompletionCell
.